diff options
author | jp <jp@openoffice.org> | 2001-03-29 18:40:27 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2001-03-29 18:40:27 +0000 |
commit | 5119c3a7d0bc638ce1dec4a22c798595c18cd90e (patch) | |
tree | f21ceddd55357f31e5b320e96c7420f92a874103 /starmath | |
parent | cb42786330cc326e7f60c224bdaaa82b0ad84f4a (diff) |
arrange formular before a save
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/document.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 489a1e8c8ef7..cd772b03485e 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -2,9 +2,9 @@ * * $RCSfile: document.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: tl $ $Date: 2001-03-23 08:00:39 $ + * last change: $Author: jp $ $Date: 2001-03-29 19:40:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -901,6 +901,11 @@ BOOL SmDocShell::Save() #endif if ( SfxInPlaceObject::Save() ) { + if( !pTree ) + Parse(); + if( pTree && !IsFormulaArranged() ) + ArrangeFormula(); + SvStorage *pStor = GetStorage(); if(pStor->GetVersion() >= SOFFICE_FILEFORMAT_60) { @@ -932,6 +937,11 @@ BOOL SmDocShell::SaveAs(SvStorage * pNewStor) BOOL bRet = FALSE; if ( SfxInPlaceObject::SaveAs( pNewStor ) ) { + if( !pTree ) + Parse(); + if( pTree && !IsFormulaArranged() ) + ArrangeFormula(); + if (pNewStor->GetVersion() >= SOFFICE_FILEFORMAT_60) { // a math package as a storage @@ -965,6 +975,11 @@ BOOL SmDocShell::ConvertTo( SfxMedium &rMedium ) const SfxFilter* pFlt = rMedium.GetFilter(); if( pFlt ) { + if( !pTree ) + Parse(); + if( pTree && !IsFormulaArranged() ) + ArrangeFormula(); + const String& rFltName = pFlt->GetFilterName(); if(rFltName.EqualsAscii( STAROFFICE_XML )) { |