summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/xestyle.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/inc/xestyle.hxx')
-rw-r--r--sc/source/filter/inc/xestyle.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/filter/inc/xestyle.hxx b/sc/source/filter/inc/xestyle.hxx
index 507b8d2ec59d..6856fa197ef0 100644
--- a/sc/source/filter/inc/xestyle.hxx
+++ b/sc/source/filter/inc/xestyle.hxx
@@ -273,12 +273,15 @@ struct XclExpNumFmt
mnScNumFmt( nScNumFmt ), mnXclNumFmt( nXclNumFmt ), maNumFmtString( rFrmt ) {}
void SaveXml( XclExpXmlStream& rStrm );
+
+ static OUString GetNumberFormatCode(XclRoot& rRoot, const sal_uInt16 nScNumFmt,
+ SvNumberFormatter* xFormatter, NfKeywordTable* pKeywoardTable );
};
class SvNumberFormatter;
-typedef ::std::auto_ptr< SvNumberFormatter > SvNumberFormatterPtr;
+typedef boost::scoped_ptr< SvNumberFormatter > SvNumberFormatterPtr;
/** Stores all number formats used in the document. */
class XclExpNumFmtBuffer : public XclExpRecordBase, protected XclExpRoot
@@ -299,6 +302,9 @@ public:
virtual void Save( XclExpStream& rStrm ) SAL_OVERRIDE;
virtual void SaveXml( XclExpXmlStream& rStrm ) SAL_OVERRIDE;
+ NfKeywordTable* getKeywordTable();
+ SvNumberFormatter* getFormatter();
+
private:
/** Writes the FORMAT record with index nXclIx and format string rFormatStr. */
void WriteFormatRecord( XclExpStream& rStrm, sal_uInt16 nXclNumFmt, const OUString& rFormatStr );