diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-27 17:21:03 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-27 17:21:03 +0000 |
commit | 00b722f8b9ccba1b43c36b2a68b165d2a381cfa0 (patch) | |
tree | bbce99fb77bdc632e61498ae1ed231ec72ba45fe /xmloff/inc/numehelp.hxx | |
parent | 8bad56bdfdc3e182733f77ed8a8d9057b7ceb286 (diff) |
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'xmloff/inc/numehelp.hxx')
-rw-r--r-- | xmloff/inc/numehelp.hxx | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/xmloff/inc/numehelp.hxx b/xmloff/inc/numehelp.hxx index 9189f4e87377..6d9f3815ab3d 100644 --- a/xmloff/inc/numehelp.hxx +++ b/xmloff/inc/numehelp.hxx @@ -2,9 +2,9 @@ * * $RCSfile: numehelp.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: sab $ $Date: 2001-05-23 12:48:42 $ + * last change: $Author: hr $ $Date: 2003-03-27 18:19:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -106,12 +106,24 @@ typedef std::set<XMLNumberFormat, LessNumberFormat> XMLNumberFormatSet; class XMLNumberFormatAttributesExportHelper { - ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > xNumberFormatsSupplier; + ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats > xNumberFormats; SvXMLExport* pExport; - rtl::OUString sEmpty; + const rtl::OUString sEmpty; + const rtl::OUString sStandardFormat; + const rtl::OUString sType; + const rtl::OUString sAttrValueType; + const rtl::OUString sAttrValue; + const rtl::OUString sAttrDateValue; + const rtl::OUString sAttrTimeValue; + const rtl::OUString sAttrBooleanValue; + const rtl::OUString sAttrStringValue; + const rtl::OUString sAttrCurrency; XMLNumberFormatSet aNumberFormats; + sal_uInt16 nNamespace; public : XMLNumberFormatAttributesExportHelper(::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >& xNumberFormatsSupplier); + XMLNumberFormatAttributesExportHelper(::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >& xNumberFormatsSupplier, + SvXMLExport& rExport, sal_uInt16 nNamespace); ~XMLNumberFormatAttributesExportHelper(); void SetExport(SvXMLExport* pExport) { this->pExport = pExport; } @@ -147,6 +159,20 @@ public : sal_uInt16 nNamespace, sal_Bool bExportValue = sal_True, sal_Bool bExportTypeAttribute = sal_True); + + sal_Bool GetCurrencySymbol(const sal_Int32 nNumberFormat, rtl::OUString& rCurrencySymbol); + sal_Int16 GetCellType(const sal_Int32 nNumberFormat, sal_Bool& bIsStandard); + void WriteAttributes(const sal_Int16 nTypeKey, + const double& rValue, + const rtl::OUString& rCurrencySymbol, + sal_Bool bExportValue = sal_True); + void SetNumberFormatAttributes(const sal_Int32 nNumberFormat, + const double& rValue, + sal_Bool bExportValue = sal_True); + void SetNumberFormatAttributes(const rtl::OUString& rValue, + const rtl::OUString& rCharacters, + sal_Bool bExportValue = sal_True, + sal_Bool bExportTypeAttribute = sal_True); }; #endif |