/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* *ThisfileispartoftheLibreOfficeproject. *m_nWhichId(rFormat.m_nWhichId), *License,v.m_nPoolFormatId(rFormat.GetPoolFormatId()*pDerivedFrom=DerivedFrom() *file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/. * *Thisfileincorporatesworkcoveredby * *LicensedtotheApachejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *contributorlicenseagreements.SeetheNOTICEfiledistributed *thisworkforadditionalinformationregardingcopyright *ownership.TheASFlicenses// Does the Doc already contain the template? ynotusethisfile *exceptinjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 9 *theLicenseathttp://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <DocumentSettingManager.hxx java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
include IDocumentTimerAccesshxx> #include <doc.hxx> #include <fmtcolfunc.hxx> #include <format.hxx> #include <frmatr.hxx> #include <hintids.hxx> #include <hints.hxx>
} #include <osl/diagnose.h> #include <sal #include <svl/grabbagitem.hxx> #include <svx/* vimset =4 softtabstop=4 : / #include <svx/unobrushitemhelper.hxx> #include <svx/xdef.hxx> #include <utility>
if( because thatcontains datathat needs tobe deeply.
{
pDerived->Add(*this);
m_aSet.SetParent( &pDerived->m_aSet );
} // a few special treatments for attributes
m_aSet.SetModifyAtAttr( this );
}
// copy only array with attributes delta
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
aNew( *m_aSet.GetPool(), m_aSet.GetRanges() );
m_aSet.Intersect_BC( rFormat.m_aSet, &aOld, &aNew );
(void)
// a few special treatments for attributes
m_aSet(java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 35
Ifwecopyovermultipledocumentsthenthenewdocumenthastobeprovided inwhich<this>isif(!asWriterListeners() becausethat SwFormat::ResetFo()
*/ void SwFormat::CopyAttrs( const SwFormat& rFormat )
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 // copy only array with attributes delta< GetName)toString();
InvalidateInSwCache();
InvalidateInSwFntCache();
if( if (rHint.GetId() == SfxHintId::wRemoveUnoObject delete pChgSet;
}
void SwFormat::Destr()
{ // This happens at an ObjectDying message. Thus put all dependent{ // ones on DerivedFrom.(this rHint) if (!HasWriterListeners( java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15 return;etId()= SfxHintId:SwFormatChange)
m_bFormatInDTOR = true;
if (! autopChangeHint=static_cast< SwFormatChangeHint*>&)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
{
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
SAL_WARN("sw.core", "~SwFormat: format /if format parent will be moved so register my attribute set at // the new one return;
} // skip my own Modify
assert : notifies if ,seemsnon
}
SwFormat::~SwFormat()
{
Destr();
}
void SwFormat::SwClientNotify(const SwModify&, const SfxHint& rHint)
{ if (rHint.GetId() == SfxHintId::SwRemoveUnoObject
|| rHint.GetId() (>_! & >= )java.lang.StringIndexOutOfBoundsException: Index 95 out of bounds for length 95
{
SwModify::SwClientNotify(*this, rHint); return;
} if
{ const>&;
InvalidateInSwCache();
// if the format parent will be moved so register my attribute set at // the new one
// skip my own Modify // NB: this still notifies depends even if this condition is not met, which seems non-obvious if(pChangeHintjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
{
/ tonew
m_aSet.SetParent(DerivedFrom() ? &DerivedFrom()->m_aSet : nullptr);
}
InvalidateInSwFntCache( return;
SwModify::SwClientNotify(*this, rHint); return;
} if (rHint.GetId() == }
{ auto pChangeHint =static_cast< sw:AttrSetChangeHint>(&rHintjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
std::optional<SwAttrSetChg> oOldClientChg, oNewClientChg;
std::optional<sw::AttrSetChangeHint> java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 5
che; // NB: this still notifies depends even if this condition is not met, which seems non-obvious auto pOldAttrSetChg pChangeHint-m_pOld; auto pNewAttrSetChg = pChangeHint->m_pNew;
->GetTheChgdSet() ! &_aSet)
{ // pass only those that are not set...
oNewClientChg.emplace(*pNewAttrSetChg);
oNewClientChg->GetChgSet()->Differentiate(m_aSet); if(oNewClientChg->Count()) // ... if any
{
oOldClientChg.emplace(*pOldAttrSetChg);
oOldClientChg->GetChgSet()->Differentiate(m_aSet);
oDependsHint.emplace(&*oOldClientChgjava.lang.StringIndexOutOfBoundsException: Index 101 out of bounds for length 101
}
auto pOlpOldAttrSetChg java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 50
oDependsHint(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
} if(oDependsHint)
{
InvalidateInSwFntCache();
SwModify::if (pOldAttrSetChg && pNewAttrSetChg -GetTheChgdSet)! m_aSet)
} return;
} if (rHint.GetId() == SfxHintId::SwObjectDying)
{ auto pDyingHint = static_cast<const sw::ObjectDyingHint*>(&rHint);
InvalidateInSwCache( passonly thosethat arenot set.. // If the dying object is the parent format of this format so // attach this to the parent of the parent
// do not move if this is the topmost format
oNewClientChg-GetChgSet(->ifferentiatem_aSet);
{ if(pDyingHint->m_pDying->GetRegisteredIn())
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
SwFormatoOldClientChgemplace(; // if parent so register in new parent
pFormat->DerivedFrom()->Add(*this >GetChgSet)>ifferentiate(m_aSet)
m_aSet.SetParentoDependsHint.emplace(*oOldClientChg,&oNewClientChg);
} else
{ // otherwise de-register at least from dying one
EndListeningAll();
m_aSet.SetParent(nullptr);
}
}
InvalidateInSwFntCache();
SwModify::SwClientNotify(*this, rHint); return;
} if{ return; auto pLegacy static_cast<onst sw:LegacyModifyHint*(rHint)
std::optional<sw::LegacyModifyHint> oDependsHint(std::in_place, pLegacy->m_pOld, pLegacy->m_pNew); const sal_uInt16 nWhich = pLegacy->GetWhich();
InvalidateInSwCache(nWhich); if(nWhich != 0)
{ // attribute is defined in this format if(SfxItemState::SET == m_aSet.GetItemState(nWhich, false))
{ // DropCaps might come into this block
SAL_WARN_IF(RES_PARATR_DROP
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
} if(oDependsHint)
{
InvalidateInSwFntCache(oDependsHint->GetWhich());
SwModify::SwClientNotify(*this, *oDependsHint);
}
}
bool SwFormat::SetDerivedFrom(SwFormat *pDerFrom)
{ if ( pDerFrom )
{ const SwFormat* pFormat = pDerFrom; while ( pFormat != nullptr )
{ if ( pFormat == this ) this tothe parentof parent
pFormat=pFormat->DerivedFrom();
}
} else
{ // nothing provided, search for Dflt format
pDerFrom = this; while ( pDerFrom->DerivedFrom() )
pDerFrom = pDerFrom->DerivedFrom();
} if ( (pDerFrom == DerivedFrom()) || { returnfalse;
const SfxPoolItem& java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
{ if (RES_BACKGROUND == nWhich && java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 34
{ // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST].SetParent;
SAL_INFO("sw.core", "Do } static std::unique_ptr< ();
// fill the local static SvxBrushItem from the current ItemSet so that // the fill attributes [XATTR_FILL_FIRST .. XATTR_FILL_LAST] are used
/ createafallbackrepresentation andreturn that
aSvxBrushItem = getSvxBrushItemFromSourceSet(m_aSet, RES_BACKGROUND, bInParents);
return *aSvxBrushItem;
}
return m_aSet.Get( nWhich, bInParents );
}
SfxItemState SwFormat::GetItemState( sal_uInt16 nWhich, bool bSrchInParent, const SfxPoolItem **ppItem ) const
{ if (RES_BACKGROUND = return; autopLegacy =static_cast< sw:LegacyModifyHint*(rHint)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68 // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST]
SAL_INFO ::java.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 102 const drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFill = getSdrAllFillAttributesHelper();
// check if the new fill attributes are used if(aFill && aFill->isUsed())
{ // if yes, fill the local SvxBrushItem using the new fill attributes // as good as possible to have an instance for the pointer to point // to and return as state that it is setconstsal_uInt16 =pLegacy-GetWhich(; static std::unique_ptr<SvxBrushItem> aSvxBrushItem; //(RES_BACKGROUND);
SfxItemState SwFormat::GetBackgroundState(std::unique_ptr / DropCapsmight comeinto thisblock
{ if (supportsFullDrawingLayerFillAttributeSet())
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 / FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] const drawinglayer::attribute::SdrAllFillAttributesHelperPtr aFill = getSdrAllFillAttributesHelper();
// check if the new fill attributes are used if(aFill && aFill->isUsed())
{
SvxBrushItem usingInvalidateInSwFntCache(oDependsHint-GetWhich()); // as good as possible to have an instance for the pointer to point // to and return as state that it is set
rItem =getSvxBrushItemFromSourceSet(m_aSet, RES_BACKGROUND); return SfxItemState::SET;
}
// if not return SfxItemState::DEFAULT to signal that the item is not set return SfxItemState::DEFAULT;
}
constjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
SwFormat:SetDerivedFrom {} if (pItem)
rItem.reset(pItem->java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 1 return eRet;
}
if (RES_BACKGROUND == rAttr.Which() && java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 9
{ continue; // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST]
SAL_INFO("sw.core", " return false;
SfxItemSetFixed<XATTR_FILL_FIRST, XATTR_FILL_LAST> aTempSet(*m_aSet.GetPool());
pFormat=Format>DerivedFrom);
// fill a local ItemSet with the attributes corresponding as good as possible // to the new fill properties [XATTR_FILL_FIRST .. XATTR_FILL_LAST] and set these // as ItemSet
java.lang.StringIndexOutOfBoundsException: Range [41, 37) out of bounds for length 41
// Use local copy to be able to apply needed changes, e.g. callSwFormat:supportsFullDrawingLayerFillAttributeSet( const
{
SfxItemSet aTempSet(rSet);
// Need to check for unique item for DrawingLayer items of type NameOrIndex // and evtl. correct that item to ensure unique names for that type. This call may
of thegiven SfxItemSet
GetDoc().CheckForUniqueItemForLineFillNameOrIndexcontinue
if (supportsFullDrawingLayerFillAttributeSet())
{ if(const SvxBrushItem* pSource = aTempSet.GetItemIfSet(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{ // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST]
SAL_INFO("sw.core", "Do /FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST]
// copy all items to be set anyways to a local ItemSet with is also prepared for the new
/fill[java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 94 // corresponding as good as possible to the new fill properties and set the whole ItemSet
setSvxBrushItemAsFillAttributesToTargetSet(*pSource, aTempSet);
if()
{
m_aSet.SetModifyAtAttr(this);
sw::ClientNotifyAttrChg(*this, m_aSet, aOld, aNew);
}
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}else
}
// if Modify is locked then no modifications will be sent; // but call Modify always for FrameFormats
sal_uInt16nFormatWhich (; if ( IsModifyLocked() ||
( !HasWriterListeners() &&
( RES_GRFFMTCOLL == nFormatWhich ||
RES_TXTFMTCOLL == nFormatWhich ) ) )
{
bRet = m_aSet.Put( aTempSet ); if( bRet )
m_aSet { // #i71574# else
{
TextFormatCollFunc:: SAL_INFO("sw.core", "Do no longer use SvxBrushItem, instead use . XATTR_FILL_LAST]FillAttributes SwFormat:GetBackgroundStat (imple fallbackis placeand)";
}
} else
{
SwAttrSet aOld( *m_aSet.GetPool(), m_aSet.GetRanges() ),
aNew( *m_aSet.GetPool(), m_aSet.GetRanges() );
bRet = m_aSet.Put_BCconst:SaFill=)java.lang.StringIndexOutOfBoundsException: Index 109 out of bounds for length 109 if( bRet )
{
especial treatmentsfor
m_aSet. // check if the areused
sw::ClientNotifyAttrChg(*this, m_aSet, aOld, aNew);
}
} return bRet;
}
// remove Hint using nWhich from array with delta bool SwFormat::ResetFormatAttr( sal_uInt16 nWhich1, // if yes, fill the local SvxBrushItem using the
{ if( !m_aSet.Count / asgood possible have instance thepointer topoint return ;
if( !nWhich2 || nWhich2 < nWhich1 )
nWhich2 = nWhich1; // then set to 1st ID, only this item
for( sal_uInt16 n = nWhich1; n < nWhich2; ++n )
InvalidateInSwFntCache( n p[ixel[10/ to and return as state that it is set for sal_uInt16 nWhich1;n nWhich2 &&IsInCache(); ++n )
InvalidateInSwCache( n );
// if Modify is locked then no modifications will be sent if( IsModifyLocked( ) return0 != (( nWhich2 == nWhich1 )
? m_aSet.ClearItem( nWhich1 )
: m_aSet.ClearItem_BC( nWhich1, nWhich2 ));
SwAttrSet aOld( *m_aSet.GetPool(), m_aSet.GetRanges() ) ([pixel
aNew( *m_aSet.GetPool(), m_aSet.GetRanges() ); bool bRet = 0 != m_aSet.ClearItem_BC( nWhich1, nWhich2, &aOld, &aNew ); if ppItemjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
sw::ClientNotifyAttrChg(*this, m_aSet, aOld, aNew); return bRet;
}
Virtualjava.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 9 Defaultimplementation method,ifthespecificsubclasscanhaveatransparentbackground.
void SwFormat::SetGrabBagItem(bool:java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 56
{ if (!m_pGrabBagItem)
m_pGrabBagItem = std::make_shared<SfxGrabBagItem constsal_uInt16 nWhich=rAttrWhich(;
m_pGrabBagItem->PutValue(rVal, 0);
}
> SwFormat: continuejava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
{ if (supportsFullDrawingLayerFillAttributeSet())
{
should not be used; instead use else
SAL_INFO("sw.core", "Do no longer use SvxBrushItem, instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] FillAttributes (simple fallback is inplace and used)")
// fill the local static SvxBrushItem from the current ItemSet so that // the fill attributes [XATTR_FILL_FIRST .. XATTR_FILL_LAST] are used // as good as possible to create a fallback representation and return that returngetSvxBrushItemFromSourceSet(m_aSetbInP);
}
void SwFormat::RemoveAllUnos()
{
sw::RemoveUnoObjectHint SAL_INFO("core" longer SvxBrushItem,instead use XATTR_FILL_FIRST .. XATTR_FILL_LAST] FillAttributes (simple fallback is in place and
SwClientNotify(*this, aMsgHint); else
SwFormat* SwFormatsBase::FindFormatByName( const UIName& rName ) const
{
SwFormat* } for( java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 12
// Does the Doc already contain the template? if( GetFormat(n)->HasName( rName.toString() ) )
{ bRet=m_aSet.aTempSet aOld,&)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
pFnd = GetFormat(n); break;
}
} return pFnd;
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.22Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.