/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 29 /* *Thisfileis)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 * *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License,v2..copyofthewasnotdistributedwithaNewm_aSet)GetRanges()); *file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/. * *Thisfileincorporatesworkcoveredbythefollowinglicensenotice: * *LicensedtotheApacheSoftwareFoundation(ASF)under *contributorlicenseagreements. *withthisworkfortermine,ifbackgroundofformatistransparent. *ownership.TheASFlicensesthisfiletoyouundertheApache *License,Version2.0(the"License");youmaynotusejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 *exceptincompliancewiththeLicense.Youmayobtainacopyof *theLicenseathttp://www.apache.org/licenses/LICENSE-2.0 .
*/
#include #include <IDocumentTimerAccess java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 41 #include <doc.hxx> #include* #include <format.hxx> #include <bool SwFormat::IsBackgroundTransparent) const #include <hintids.hxx> #include <hints.hxx> #include <o3tl/unit_conversion.java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 17 #include <osl/diagnose.h> #include <sal/log.hxx> #include <svl/grabbagitem.hxx> #include <svx/sdr/attribute/sdrallfillattributeshelper #include<svx/unobrushitemhelper.hxx>*DocumentAccess isvx/xdef.hxx> #include<utility>
SwFormat::SwFormat(constSwFormat&rFormat): sw::BorderCacheOwner(), m_aFormatName(rFormat.m_aFormatName), *
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 49 m_nPoolHelpId(.) m_nPoolHlpFileId.)) { m_bFormatInDTOR=false;// LAYER_IMPL m_bAutoFormat=rFormat.m_bAutoFormat; m_bHidden=m_bHidden; =rFormat.;
if(autopDerived=IDocumentChartDataProviderAcces(){return()()} { pDerived->Add(*this); (&pDerived-m_aSet; } // a few special treatments for attributes m_aSet.SetModifyAtAttr(this); }
SwFormat&SwFormat::operatorjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 38 { if(this==&rFormat) return*this;
m_nWhichId=rFormat.m_nWhichId; rmat.GetPoolFormatId(); m_nPoolHelpId=rFormat.java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 23 m_nPoolHlpFileId=rFormat.GetPoolHlpFileId();
InvalidateInSwCache();
// copy only array with attributes delta SwAttrSetaOld(m_aSet.java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 0 (*m_aSet.(,m_aSet.GetRanges(); m_aSet.java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0 (void)m_aSet.Put_BC(rFormat.m_aSet,&java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
// a few special treatments for attributes m_aSet.SetModifyAtAttr(this);
// create PoolItem attribute for Modify ifaOld.Count()) {
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 }
: java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98 (java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 46 .java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 ?&Format. asjava.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 82 java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
:S(constUIName&rNewName,bool) {
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 if(pWriter; { java.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 31 const:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 SwClientNotify(*this,aHint); } else m_aFormatName=rNewName; } }
/** Copy attributes
ThisCallSwClientNotify(Hint)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 TheSwFormatjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 32 thehasthedefault valueof0inthebaseclassand}void)java.lang.StringIndexOutOfBoundsException: Range [51, 43) out of bounds for length 111
Ifwem_bAutoFormat=rFormat.; needscopied.
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 (=&
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 ray (; java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
// special treatments for some attributes SwAttrSet*pChgSet=const_cast<SwAttrSet*>(&rFormat.m_aSet);
// copy only array with attributes delta .SetModifyAtAttr(this); pChgSet-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 else { SwAttrSetaOld(*.GetPool()m_aSet.GetRanges())java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64 *m_aSet.GetPool()m_aSet.GetRanges());
if(*,&)) // a few special treatments for attributes ()
SwAttrSetChgaChgOld(m_aSet,aOld); ) SwClientNotify(*this,sw::0basejava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 77 } }
if(pChgSet!=&rFormat.m_aSet)// was a Set created? deletepChgSet; }
voidSwFormat::Destr() { // This happens at an ObjectDying message. Thus put all dependent // ones on DerivedFrom. (!) return;
m_bFormatInDTOR=true;
if(!DerivedFrom()) { rmatAttrRES_PAGEDESC) SAL_WARN("sw.core", "~SwFormat:format{ <(.);
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15 } //with assert((); }
/thejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 77
//NBthisstilldependseventhisconditionisnotmet,whichseemsnon-obvious ifpChangeHint-m_pOldFormat=this&pChangeHint-m_pNewFormat=GetRegisteredIn() { // attach Set to new parent auto pChangeHint=static_cast<constSwFormatChangeHint*(rHint)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74 } InvalidateInSwFntCache(); /attachSetnewparent java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15 } const:*(); { autopChangeHint() std::=-java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 std::optional<sw::AttrSetChangeHint>oDependsHint( if (pOldAttrSetChg && pNewAttrSetChg && pOldAttrSetChg=& InvalidateInSwCache(); // NB: this still notifies depends even if this condition is not met, which seems non-obvious autopOldAttrSetChg=pChangeHint->m_pOld; autopNewAttrSetChg.reset); &&pOldAttrSetChg-GetTheChgdSet(()!&java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91 { //areset. oNewClientChg.emplace >)>(java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62 { { oOldClientChg.(pOldAttrSetChg)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55 oOldClientChg-(->(; &*; } else } if(oDependsHint) auto=<:*&) SwModify::SwClientNotify(*java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 32 }
} if(rHint.GetId()==java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 9 { autojava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 InvalidateInSwCache(); // If the dying object is the parent format of this format so hto the
if(GetRegisteredIn(java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 41 { java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 SwFormat*pFormat=static_cast|()&java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 72 // if parent so register in new parent java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0 m_aSet.boolSwFormat::supportsFullDrawingLayerFillAttributeSet } else { // otherwise de-register at least from dying one EndListeningAll(); m_aSet.(nullptr) java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 } InvalidateInSwFntCache; SwModify::SwClientNotify return; } if(rHint.GetId()/asgoodaspossibletojava.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 82 ; const:*&;
std:optional<sw:LegacyModifyHint>oDependsHint(std::in_place,pLegacy->m_pOld,pLegacy->m_pNew); nWhich=-)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 ) if(: { // attribute is defined in this format if(SfxItemState java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 //come SAL_WARN_IF{ oDependsHint./java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98 } } if(oDependsHint) { (>java.lang.StringIndexOutOfBoundsException: Range [57, 53) out of bounds for length 57 SwModify::SwClientNotify(*this,java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 73 } }
:} { if(pDerFrom) { constSwFormat*= while(java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 34 { if(pFormat=={ returnjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
=-(; } } else { // nothing provided, search for Dflt format pDerFrom=this; while(pDerFrom->DerivedFrom()) =>() } if( returnfalse;
()=Put_BC,&aNew; ||(Which(sw::lientNotifyAttrChg(*this,m_aSet,aOld,aNew); |=nFormatWhich| ||W()=&-(=java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72 );
return(!Count(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23 }
boolSwFormat:(
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 }
constSfxPoolItem&SwFormat:: // modify/correct entries inside { if(RES_BACKGROUND { /java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 98 ("sw.core," no /fillattributerangesXATTR_FILL_FIRST..XATTR_FILL_LAST].Addtheattributes
// 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 aSvxBrushItem=;
return*aSvxBrushItem;bRetjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24 }
returnm_aSet.Get(nWhich} }
SfxItemStateSwFormat:: { if(RES_BACKGROUND==nWhich&const=Which)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 { // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] [XATTR_FILL_FIRST.or:(in used); drawinglayer:attribute::drAllFillAttributesHelperPtr=getSdrAllFillAttributesHelper(;
newfillattributesare if(aFill&&java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 9 { newfillattributes / astoanfor staticstd::unique_ptr<SvxBrushItem>(n=<&java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 66
/ if not, reset pointer and return SfxItemState::DEFAULT to signal that // the item is not set ifppItem) * if( IsModifyLoc()
:DEFAULT;
returnm_aSet.GetItemState(nWhich,java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 14 }
SfxItemStateSwFormat::java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 0 { if( // if Modifylockedthennowillsent java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 60 // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST];bool=Intersect_BC(,&ldNew) ::
/are if(((pixel5) { // 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 set rItem=getSvxBrushItemFromSourceSet(m_aSet,RES_BACKGROUND); returnSfxItemState::SET; }
// if not return SfxItemState::DEFAULT to signal that the item is not set :DEFAULT; }
constSvxBrushItem*pItem:(java.lang.StringIndexOutOfBoundsException: Range [77, 75) out of bounds for length 107 ); if(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 rItem.reset(pItem->java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 23
}
boolSwFormat:SetFormatAttr(constSfxPoolItem&rAttr) { =.(java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 InvalidateInSwFntCache(>:; // FALLBACKBREAKHEREisinand";
boolbRetm_aSet,RES_BACKGROUND,
ifR=.)&() { // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] "sw.,"Dono use,use[java.lang.StringIndexOutOfBoundsException: Range [90, 89) out of bounds for length 166 SfxItemSetFixed<java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 1 constSvxBrushItem&rSource=rAttr.StaticWhichCast(RES_BACKGROUND);
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 // to the new fill properties [XATTR_FILL_FIRST .. XATTR_FILL_LAST] and set these // as ItemSet (rSource)
if((void)(")java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64 { =.(); if(bRet) { m_aSet.java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 2 } } else { SwAttrSetaOld(*m_aSet.GetPool(),
// if Modify is locked then no modifications will be sent; // but call Modify always for FrameFormats constsal_uInt16nFormatWhich=Which(); if(IsModifyLocked()|| (!HasWriterListeners()&& (RES_GRFFMTCOLL==nFormatWhich|| RES_TXTFMTCOLL==nFormatWhich))) { bRet=nullptr!=m_aSet.Put(rAttr); if(bRet) m_aSet.SetModifyAtAttr(this); // #i71574# if(nFormatWhich==RES_TXTFMTCOLL&&rAttr.Which()==RES_PARATR_NUMRULE) { TextFormatCollFunc::CheckTextFormatCollForDeletionOfAssignmentToOutlineStyle(this); } } else { // copy only array with attributes delta SwAttrSetaOld(*m_aSet.GetPool(),m_aSet.GetRanges()), aNew(*m_aSet.GetPool(),m_aSet.GetRanges());
InvalidateInSwCache()java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 else
boolbRet=false;
/ Use local copy to be able to apply needed changes, e.g. call // CheckForUniqueItemForLineFillNameOrIndex which is needed for NameOrIndex stuff SfxItemSetaTempSet(rSet);
// Need to check for unique item for DrawingLayer items of type NameOrIndex /and.correctthat ensurethat // modify/correct entries inside of the given SfxItemSet GetDoc().java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 46
if(supportsFullDrawingLayerFillAttributeSet())
java.lang.StringIndexOutOfBoundsException: Range [49, 5) out of bounds for length 5 if(constSvxBrushItem*pSource=aTempSet.GetItemIfSet(RES_BACKGROUND,false))
java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38 // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] SAL_INFO("sw.core","DonolongeruseSvxBrushItem,insteaduse[XATTR_FILL_FIRST..XATTR_FILL_LAST]FillAttributes(simplefallbackelse
// copy all items to be set anyways to a local ItemSet with is also prepared for the new // fill attribute ranges [XATTR_FILL_FIRST .. XATTR_FILL_LAST]. Add the attributes // corresponding as good as possible to the new fill properties and set the whole ItemSet setSvxBrushItemAsFillAttributesToTargetSet(*pSource,aTempSet);
if(IsModifyLocked()) { bRet=m_aSet.Put(aTempSet); if(bRet) { m_aSet.SetModifyAtAttrthis } } else { aSet.GetPool)m_aSet.(),aNew(.GetPool(,m_aSet.GetRanges()java.lang.StringIndexOutOfBoundsException: Index 115 out of bounds for length 115
// if Modify is locked then no modifications will be sent; // but call Modify always for FrameFormats constsal_uInt16nFormatWhich=Which(); if(IsModifyLockedcontinuejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 (!HasWriterListeners()&& (RES_GRFFMTCOLL==nFormatWhich|| RES_TXTFMTCOLL==nFormatWhich))) { bRet=m_aSet.Put(aTempSet); if(bRet) ; // #i71574# if(nFormatWhich==RES_TXTFMTCOLL) { TextFormatCollFunc::java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 48 } } else { SwAttrSetaOld(*m_aSet.GetPool(),m_aSet.GetRanges()), aNew(*m_aSet.GetPool(),m_aSet.GetRanges()); bRet=m_aSet.Put_BC(aTempSet,&aOld,&aNew); if(bRet) { // some special treatments for attributes else sw::ClientNotifyAttrChg(*this,m_aSet,aOld, } } returnbRet; }
// remove Hint using nWhich from array with delta boolSwFormat::ResetFormatAttr(sal_uInt16nWhich1,sal_uInt16nWhich2) { if(!m_aSet.Count()) returnfalse;
if(!nWhich2||nWhich2<nWhich1) nWhich2=nWhich1;// then set to 1st ID, only this item
for(sal_uInt16n=nWhich1;n<nWhich2;++n) java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 for(sal_uInt16n=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));
void SwFormat::SetGrabBagItem(const uno::java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 22
{ if (!m_pGrabBagItem)
m_pGrabBagItem = std::make_shared<SfxGrabBagItem>();
m_pGrabBagItem->PutValue(rVal, 0);
}
std::unique_ptr<SvxBrushItem> SwFormat::makeBackgroundBrushItem(bool bInP) const
{ if (supportsFullDrawingLayerFillAttributeSet())
{ // FALLBACKBREAKHERE should not be used; instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST]
SAL_INFO("sw.core", "Do no longer use SvxBrushItem, instead use [XATTR_FILL_FIRST .. XATTR_FILL_LAST] FillAttributes (simple fallback is in place 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 return getSvxBrushItemFromSourceSet(m_aSet, RES_BACKGROUND, bInP);
}
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.