diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-10-19 17:43:58 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-10-19 17:43:58 +0000 |
commit | 4895a4b9d9e66892a1ef249a7df3226fa9c5341b (patch) | |
tree | 2ae887d342adf4be1e165b6596937c248387fc77 /xmloff/inc/GradientStyle.hxx | |
parent | 0d2ee20f34b139649cb404723f1cd92beb9a66bc (diff) |
#93467# eliminated (most) direct calls on XDocumentHandler
Diffstat (limited to 'xmloff/inc/GradientStyle.hxx')
-rw-r--r-- | xmloff/inc/GradientStyle.hxx | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/xmloff/inc/GradientStyle.hxx b/xmloff/inc/GradientStyle.hxx index db9445fd4592..24b177bc653b 100644 --- a/xmloff/inc/GradientStyle.hxx +++ b/xmloff/inc/GradientStyle.hxx @@ -2,9 +2,9 @@ * * $RCSfile: GradientStyle.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,45 +62,47 @@ #ifndef _XMLOFF_GRADIENTSTYLE_HXX #define _XMLOFF_GRADIENTSTYLE_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 XMLGradientStyle +class XMLGradientStyleImport { -public: - XMLGradientStyle( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > * _pHandler, - const SvXMLNamespaceMap& _rNamespaceMap, const SvXMLUnitConverter& _rUnitConverter ); - ~XMLGradientStyle(); + SvXMLImport& rImport; - 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 ); +public: + XMLGradientStyleImport( SvXMLImport& rImport ); + ~XMLGradientStyleImport(); -private: - const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > * mpHandler; - const SvXMLNamespaceMap& mrNamespaceMap; - const SvXMLUnitConverter& mrUnitConverter; + 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 ); +}; - SvXMLAttributeList *mpAttrList; - 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 XMLGradientStyleExport +{ + SvXMLExport& rExport; - void AddAttribute( sal_uInt16 nPrefix, enum ::xmloff::token::XMLTokenEnum eName, const ::rtl::OUString& rStrValue ); +public: + XMLGradientStyleExport( SvXMLExport& rExport ); + ~XMLGradientStyleExport(); + sal_Bool exportXML( + const ::rtl::OUString& rStrName, + const ::com::sun::star::uno::Any& rValue ); }; #endif // _XMLOFF_GRADIENTSTYLE_HXX |