summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-02-26 12:32:03 +0000
committerOliver Bolte <obo@openoffice.org>2008-02-26 12:32:03 +0000
commitc829d1bec8d097f3fb02bb91f45292c68c0ad276 (patch)
tree99300741abe23312b10f66c264b1c85be9e572dc /xmloff/source
parent8006193852899746abe369c4f7bcdc584d2ee24c (diff)
INTEGRATION: CWS custommeta (1.4.82); FILE MERGED
2007/12/21 12:28:07 mst 1.4.82.1: refactoring for XDocumentProperties import/export: chart - xmloff/source/chart/SchXML{Export,Import}.cxx, xmloff/source/chart/contexts.{hxx,cxx}: + SchXMLDocContext virtually inherits from SvXMLImportContext + new class SchXMLFlatDocContext_Impl for flat file ODF; multiply inherits from SchXMLDocContext and SvXMLMetaDocumentContext + refactor SchXMLImport::CreateContext to use SvXMLMetaDocumentContext
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/chart/contexts.hxx31
1 files changed, 27 insertions, 4 deletions
diff --git a/xmloff/source/chart/contexts.hxx b/xmloff/source/chart/contexts.hxx
index a9785d250330..8d1098dfb82a 100644
--- a/xmloff/source/chart/contexts.hxx
+++ b/xmloff/source/chart/contexts.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: contexts.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 14:53:45 $
+ * last change: $Author: obo $ $Date: 2008-02-26 13:32:03 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -45,6 +45,8 @@
#include <xmloff/xmltkmap.hxx>
#endif
+#include <xmloff/xmlmetai.hxx>
+
namespace com { namespace sun { namespace star { namespace xml { namespace sax {
class XAttributeList;
}}}}}
@@ -57,9 +59,9 @@ namespace com { namespace sun { namespace star { namespace xml { namespace sax {
======================================== */
-class SchXMLDocContext : public SvXMLImportContext
+class SchXMLDocContext : public virtual SvXMLImportContext
{
-private:
+protected:
SchXMLImportHelper& mrImportHelper;
public:
@@ -80,6 +82,27 @@ public:
// ========================================
+// context for flat file xml format
+class SchXMLFlatDocContext_Impl
+ : public SchXMLDocContext, public SvXMLMetaDocumentContext
+{
+public:
+ SchXMLFlatDocContext_Impl(
+ SchXMLImportHelper& i_rImpHelper,
+ SchXMLImport& i_rImport,
+ USHORT i_nPrefix, const ::rtl::OUString & i_rLName,
+ const com::sun::star::uno::Reference<com::sun::star::document::XDocumentProperties>& i_xDocProps,
+ const com::sun::star::uno::Reference<com::sun::star::xml::sax::XDocumentHandler>& i_xDocBuilder);
+
+ virtual ~SchXMLFlatDocContext_Impl();
+
+ virtual SvXMLImportContext *CreateChildContext(
+ USHORT i_nPrefix, const ::rtl::OUString& i_rLocalName,
+ const com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>& i_xAttrList);
+};
+
+// ========================================
+
class SchXMLBodyContext : public SvXMLImportContext
{
private: