diff options
author | Christian Lippka <cl@openoffice.org> | 2001-11-05 12:49:28 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-11-05 12:49:28 +0000 |
commit | 0840274d151987d18f76b076e18e899633870f06 (patch) | |
tree | 50f594bd9730e3018717c24bdfd5639bf6deec3a | |
parent | b059a2e42bfd1d5095372cd8cdc01443b7bd3f18 (diff) |
#92191# do not allow paragraph styles that differ from shape style
-rw-r--r-- | svx/source/svdraw/svdedxv.cxx | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 7273e2624902..1a8f9c68677e 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdedxv.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: aw $ $Date: 2001-10-29 12:45:18 $ + * last change: $Author: cl $ $Date: 2001-11-05 13:49:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1494,6 +1494,24 @@ SfxStyleSheet* SdrObjEditView::GetStyleSheet(BOOL& rOk) const BOOL SdrObjEditView::SetStyleSheet(SfxStyleSheet* pStyleSheet, BOOL bDontRemoveHardAttr) { + // if we are currently in edit mode we must also set the stylesheet + // on all paragraphs in the Outliner for the edit view + // #92191# + if( NULL != pTextEditOutlinerView ) + { + Outliner* pOutliner = pTextEditOutlinerView->GetOutliner(); + + const ULONG nParaCount = pOutliner->GetParagraphCount(); + ULONG nPara; + for( nPara = 0; nPara < nParaCount; nPara++ ) + { + pOutliner->SetStyleSheet( nPara, pStyleSheet ); + } + } + +/* #92191# we do not support the 'feature' for different styles in paragraphs + any longer + if (pTextEditOutlinerView!=NULL) { BOOL bAllSelected=ImpIsTextEditAllSelected(); if (bAllSelected) { @@ -1519,7 +1537,9 @@ BOOL SdrObjEditView::SetStyleSheet(SfxStyleSheet* pStyleSheet, BOOL bDontRemoveH #endif ImpMakeTextCursorAreaVisible(); return TRUE; - } else { + } else +*/ + { return SdrGlueEditView::SetStyleSheet(pStyleSheet,bDontRemoveHardAttr); } } |