diff options
author | Noel Power <noel.power@novell.com> | 2012-08-03 14:24:00 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-08-03 14:25:47 +0100 |
commit | 52dff376587c2e072048d9b99748cd46336a48ba (patch) | |
tree | 75a0c652eee2dfcc7d027b516b7e7b9c3333dcfd /svx/source/items | |
parent | cc51389c07f880d513f94b9c4c1bad449435b406 (diff) |
enable preview for 'special' '*' formats
Change-Id: I2f94c3d8d827ecabc6dd5e685bb40954fe2427c4
Diffstat (limited to 'svx/source/items')
-rw-r--r-- | svx/source/items/numfmtsh.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx index 896d88e953b9..48ca710362ea 100644 --- a/svx/source/items/numfmtsh.cxx +++ b/svx/source/items/numfmtsh.cxx @@ -84,7 +84,8 @@ SvxNumberFormatShell::SvxNumberFormatShell( SvNumberFormatter* pNumFormatter, nCurFormatKey ( nFormatKey ), pCurCurrencyEntry(NULL), bBankingSymbol (false), - nCurCurrencyEntryPos((sal_uInt16) SELPOS_NONE) + nCurCurrencyEntryPos((sal_uInt16) SELPOS_NONE), + bUseStarFormat (false) { nValNum = DEFAULT_NUMVALUE; @@ -115,7 +116,8 @@ SvxNumberFormatShell::SvxNumberFormatShell( SvNumberFormatter* pNumFormatter, nCurFormatKey ( nFormatKey ), pCurCurrencyEntry(NULL), bBankingSymbol (false), - nCurCurrencyEntryPos((sal_uInt16) SELPOS_NONE) + nCurCurrencyEntryPos((sal_uInt16) SELPOS_NONE), + bUseStarFormat (false) { // #50441# When used in Writer, the SvxNumberInfoItem contains the // original string in addition to the value @@ -439,7 +441,7 @@ void SvxNumberFormatShell::MakePreviewString( const String& rFormatStr, // real preview - not implemented in NumberFormatter for text formats pFormatter->GetPreviewString( rFormatStr, nValNum, rPreviewStr, - &rpFontColor, eCurLanguage ); + &rpFontColor, eCurLanguage, bUseStarFormat ); } else { @@ -453,7 +455,7 @@ void SvxNumberFormatShell::MakePreviewString( const String& rFormatStr, rPreviewStr, &rpFontColor ); else pFormatter->GetOutputString( nValNum, nExistingFormat, - rPreviewStr, &rpFontColor ); + rPreviewStr, &rpFontColor, bUseStarFormat ); } } @@ -1152,7 +1154,7 @@ void SvxNumberFormatShell::GetPreviewString_Impl( String& rString, Color*& rpCol if ( bUseText ) pFormatter->GetOutputString( aValStr, nCurFormatKey, rString, &rpColor ); else - pFormatter->GetOutputString( nValNum, nCurFormatKey, rString, &rpColor ); + pFormatter->GetOutputString( nValNum, nCurFormatKey, rString, &rpColor, bUseStarFormat ); } // ----------------------------------------------------------------------- |