summaryrefslogtreecommitdiff
path: root/xmloff/inc/TransGradientStyle.hxx
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2001-10-19 17:43:58 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2001-10-19 17:43:58 +0000
commit4895a4b9d9e66892a1ef249a7df3226fa9c5341b (patch)
tree2ae887d342adf4be1e165b6596937c248387fc77 /xmloff/inc/TransGradientStyle.hxx
parent0d2ee20f34b139649cb404723f1cd92beb9a66bc (diff)
#93467# eliminated (most) direct calls on XDocumentHandler
Diffstat (limited to 'xmloff/inc/TransGradientStyle.hxx')
-rw-r--r--xmloff/inc/TransGradientStyle.hxx61
1 files changed, 31 insertions, 30 deletions
diff --git a/xmloff/inc/TransGradientStyle.hxx b/xmloff/inc/TransGradientStyle.hxx
index e8f0fc078d06..510ce58b4df5 100644
--- a/xmloff/inc/TransGradientStyle.hxx
+++ b/xmloff/inc/TransGradientStyle.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TransGradientStyle.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: dvo $ $Date: 2001-06-29 21:07:26 $
+ * last change: $Author: dvo $ $Date: 2001-10-19 18:43:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,44 +62,45 @@
#ifndef _XMLOFF_TRANSGRADIENTSTYLE_HXX
#define _XMLOFF_TRANSGRADIENTSTYLE_HXX
-#ifndef _COM_SUN_STAR_XML_SAX_XDOCUMENTHANDLER_HPP_
-#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
-#endif
-#ifndef _XMLOFF_XMLTOKEN_HXX
-#include "xmltoken.hxx"
+
+#ifndef _SAL_TYPES_H_
+#include <sal/types.h>
#endif
+class SvXMLImport;
+class SvXMLExport;
+namespace com { namespace sun { namespace star {
+ namespace uno { template<class A> class Reference; }
+ namespace xml { namespace sax { class XAttributeList; } }
+ namespace uno { class Any; }
+} } }
+namespace rtl { class OUString; }
-class SvXMLNamespaceMap;
-class SvXMLAttributeList;
-class SvXMLUnitConverter;
-class XMLTransGradientStyle
+class XMLTransGradientStyleImport
{
-public:
- XMLTransGradientStyle( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & _rHandler,
- const SvXMLNamespaceMap& _rNamespaceMap, const SvXMLUnitConverter& _rUnitConverter );
- ~XMLTransGradientStyle();
-
- sal_Bool exportXML( const ::rtl::OUString& rStrName, const ::com::sun::star::uno::Any& rValue );
- sal_Bool importXML( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList, ::com::sun::star::uno::Any& rValue, ::rtl::OUString& rStrName );
+ SvXMLImport& rImport;
-private:
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler;
- const SvXMLNamespaceMap& mrNamespaceMap;
- const SvXMLUnitConverter& rUnitConverter;
+public:
+ XMLTransGradientStyleImport( SvXMLImport& rImport );
+ ~XMLTransGradientStyleImport();
- SvXMLAttributeList *pAttrList;
+ sal_Bool importXML(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
+ ::com::sun::star::uno::Any& rValue,
+ ::rtl::OUString& rStrName );
+};
- sal_Bool ImpExportXML( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler,
- const SvXMLNamespaceMap& rNamespaceMap, const SvXMLUnitConverter& rUnitConverter,
- const ::rtl::OUString& rStrName, const ::com::sun::star::uno::Any& rValue );
- sal_Bool ImpImportXML( const SvXMLUnitConverter& rUnitConverter,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
- ::com::sun::star::uno::Any& rValue, ::rtl::OUString& rStrName );
+class XMLTransGradientStyleExport
+{
+ SvXMLExport& rExport;
- void AddAttribute( sal_uInt16 nPrefix, enum ::xmloff::token::XMLTokenEnum eName, const ::rtl::OUString& rStrValue );
+public:
+ XMLTransGradientStyleExport( SvXMLExport& rExport );
+ ~XMLTransGradientStyleExport();
+ sal_Bool exportXML( const ::rtl::OUString& rStrName, const ::com::sun::star::uno::Any& rValue );
};
#endif // _XMLOFF_TRANSGRADIENTSTYLE_HXX