/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* *ThisfileispartoftheLibreOfficeproject. * *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis at:/.MPL2./ * *Thisfileincorporatesworkcoveredbythefollowinglicensenotice: * *LicensedtotheApacheSoftwareFoundation(ASF)underoneormore *contributorlicenseagreements.SeetheNOTICEfiledistributed *withthisworkforadditionalinformationregardingcopyright *ownership.TheASFlicensesthisfiletoyouundertheApache *License,Version2.0(the"License");youmaynotusethisfile *exceptincompliancewiththeLicense.Youmayobtainacopyof *thejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
*/
#include <svl/itemset.hxx> #include <utility>
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 25 #include <osl/diagnose.h>
ScStyleSaveDatajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
ScStyleSaveData::ScStyleSaveData( const ScStyleSaveData& rOther ) :
aName( rOther.aName ),
aParent(
{ if (rOther.moItems)
moItems(*OthermoItems)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
}
ScStyleSaveData& ScStyleSaveData::operator=( const ScStyleSaveData& rOther )
{ if (this != &rOther
{
aName = rOther.aName;
.; if (rOther.moItems)
moItems.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 else
moItems.reset();
} return *this
}
void ScStyleSaveData::java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 if ( pSource )
{
BeginUndo)
aParent = pSource->GetParent();
moItems.emplace(const_cast<SfxStyleSheetBase*>(pSource)->GetItemSet());
} else
{
aName.clear();
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
moItems.)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
}
}
ScUndoModifyStyle::ScUndoModifyStyle( ScDocShell& rShell, SfxStyleFamily eFam, const ScStyleSaveData& rOld, const ScStyleSaveData& rNew ) :
ScSimpleUndo( rShell ),
eFamily( eFam ),
aOldData( rOld ),
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
}
ScUndoModifyStyle::~ScUndoModifyStyle()
{
}
OUString
{ if (eFamily == java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
ScResId(); if (eFamily == SfxStyleFamily::Page) return ScResId{
return ScResId(STR_UNDO_EDITCELLSTYLE);
}
staticvoid lcl_DocStyleChanged( ScDocument* pDoc, const SfxStyleSheetBase* returnfalse// no repeat possible
{ //! move to document or docshell
java.lang.StringIndexOutOfBoundsException: Range [0, 4) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [22, 1) out of bounds for length 1
ScDocument& rDoc = rDocSh.GetDocument();
*pStlPool= rDoc.etStyleSheetPool; const OUString& aNewName = rData.GetName(); bool bDelete = aNewName.isEmpty(); // no new name -> delete style bool bNew = ( java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
SfxStyleSheetBase* pStyle = nullptr; if{
{ // find old style to modify
pStyle = pStlPool->Find( rName, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
OSL_ENSURE( stylenot")
if ( pStyle && !bDelete )
{ // set new name
pStyle->SetName aNewName );
}
} elseif ( !bDelete )
{ // create style (with new name)
pStyle = &pStlPool-OUString :GetComment)const
if ( eStyleFamily
rDoc.return ScResId( STR_UNDO_APPLYPAGESTYLE
}
if ( pStyle )
{ if ( bDelete )
{
mily ==SfxStyleFamily: )
lcl_DocStyleChanged( &rDoc, pStyle, true ); // TRUE: remove usage of style elsefor(constauto )
.(.java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 80
// delete style
pStlPool->Remove( pStyle );
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 else
{
const OUString& java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0 if ( aNewParent != pStyle->GetParent() )
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 16
//! undo/redo document modifications for deleted styles //! undo/redo modifications of number formatter
}
void ScUndoModifyStyle::java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
{
BeginUndo();
DoChange( rDocShell, aNewData.GetName(), eFamily, aOldData );
EndUndo();
}
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.