diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-09-08 12:46:10 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-09-08 12:46:10 +0000 |
commit | f16253ddba59f3e63e057666c4a805908cd80d50 (patch) | |
tree | b38c741806304a3636e39b2498fd6ff0de2bcae0 /sc/source/filter/excel/xehelper.cxx | |
parent | dd4aa6c18618f37cfc7b7cbf4c4d90e61fa2d779 (diff) |
INTEGRATION: CWS dr12 (1.10.62); FILE MERGED
2004/08/12 12:33:50 sab 1.10.62.4: RESYNC: (1.13-1.14); FILE MERGED
2004/07/27 01:26:21 sab 1.10.62.3: RESYNC: (1.11-1.13); FILE MERGED
2004/05/06 11:28:49 dr 1.10.62.2: RESYNC: (1.10-1.11); FILE MERGED
2004/02/24 10:09:48 jmarmion 1.10.62.1: #i21255# text formatting for cell notes
Diffstat (limited to 'sc/source/filter/excel/xehelper.cxx')
-rw-r--r-- | sc/source/filter/excel/xehelper.cxx | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xehelper.cxx b/sc/source/filter/excel/xehelper.cxx index 6c75fbe3e718..6d37c8416035 100644 --- a/sc/source/filter/excel/xehelper.cxx +++ b/sc/source/filter/excel/xehelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xehelper.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: kz $ $Date: 2004-07-30 16:18:52 $ + * last change: $Author: hr $ $Date: 2004-09-08 13:46:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -395,6 +395,25 @@ XclExpStringPtr XclExpStringHelper::CreateString( return pString; } +XclExpStringPtr XclExpStringHelper::CreateString( + const XclExpRoot& rRoot, const EditTextObject& rEditObj, + XclStrFlags nFlags, sal_uInt16 nMaxLen ) +{ + XclExpStringPtr pString; + EditEngine& rEE = rRoot.GetDrawEditEngine(); + BOOL bOldUpdateMode = rEE.GetUpdateMode(); + rEE.SetUpdateMode( TRUE ); + rEE.SetText( rEditObj); + pString = lclCreateString( rRoot, rEE, nFlags, nMaxLen, false ); + rEE.SetUpdateMode( bOldUpdateMode ); + if( !pString->IsEmpty() ) + { + pString->LimitFormatCount( EXC_MAXRECSIZE_BIFF8 / 8 - 1 ); + pString->AppendFormat( pString->Len(), EXC_FONT_APP ); + } + return pString; +} + // Header/footer conversion =================================================== XclExpHFConverter::XclExpHFConverter( const XclExpRoot& rRoot ) : |