#93624# setting stylesheet for new outline objects

This commit is contained in:
Dieter Loeschky 2001-10-31 07:09:21 +00:00
parent 4aa4ea4e2e
commit 7ee532f650
2 changed files with 13 additions and 6 deletions

View file

@ -2,9 +2,9 @@
*
* $RCSfile: outlnvsh.cxx,v $
*
* $Revision: 1.27 $
* $Revision: 1.28 $
*
* last change: $Author: ka $ $Date: 2001-10-22 13:36:57 $
* last change: $Author: dl $ $Date: 2001-10-31 08:09:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -2339,6 +2339,9 @@ BOOL SdOutlineViewShell::UpdateLayoutObject( SdPage* pPage, Paragraph* pPara )
aFullName += String::CreateFromInt32( (sal_Int32)i );
pSheet = (SfxStyleSheet*) pStyleSheetPool->Find(aFullName, SD_LT_FAMILY);
pTO->StartListening( *pSheet );
if( i == 1 )
pTO->SetStyleSheet( pSheet, TRUE );
}
bNewObject = TRUE;

View file

@ -2,9 +2,9 @@
*
* $RCSfile: outlview.cxx,v $
*
* $Revision: 1.14 $
* $Revision: 1.15 $
*
* last change: $Author: dl $ $Date: 2001-09-12 12:16:46 $
* last change: $Author: dl $ $Date: 2001-10-31 08:09:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -1339,10 +1339,14 @@ BOOL SdOutlineView::PrepareClose(BOOL bUI)
// als Listener anmelden
for (USHORT i = 1; i < 10; i++)
{
SfxStyleSheet* pS = (SfxStyleSheet*)pOutlineStyleList->
GetObject(i);
SfxStyleSheet* pS = (SfxStyleSheet*)pOutlineStyleList->GetObject(i);
if (pS)
{
pTO->StartListening(*pS);
if( i == 1 )
pTO->SetStyleSheet( pS, TRUE );
}
}
AddUndo(new SdrUndoNewObj(*pTO));
}