summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/ximpstyl.hxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2000-11-27 11:52:59 +0000
committerArmin Weiss <aw@openoffice.org>2000-11-27 11:52:59 +0000
commit6f2bd847cd1748c00d90f3ca22a733550da7cc2c (patch)
tree7901d1b82642c6ff0a59580b762199cbead95ac1 /xmloff/source/draw/ximpstyl.hxx
parentc8c062e21d5f9d176a42af25ec158df9d086d9b5 (diff)
#80012# changed style:page-master to contain a style:properties section
Diffstat (limited to 'xmloff/source/draw/ximpstyl.hxx')
-rw-r--r--xmloff/source/draw/ximpstyl.hxx43
1 files changed, 35 insertions, 8 deletions
diff --git a/xmloff/source/draw/ximpstyl.hxx b/xmloff/source/draw/ximpstyl.hxx
index dc6cf530dc7f..2577a3783467 100644
--- a/xmloff/source/draw/ximpstyl.hxx
+++ b/xmloff/source/draw/ximpstyl.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ximpstyl.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:07:04 $
+ * last change: $Author: aw $ $Date: 2000-11-27 12:52:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -83,9 +83,9 @@
#endif
//////////////////////////////////////////////////////////////////////////////
-// style:page-master context
+// special style:style context inside style:page-master context
-class SdXMLPageMasterContext: public SvXMLStyleContext
+class SdXMLPageMasterStyleContext: public SvXMLStyleContext
{
sal_Int32 mnBorderBottom;
sal_Int32 mnBorderLeft;
@@ -94,7 +94,6 @@ class SdXMLPageMasterContext: public SvXMLStyleContext
sal_Int32 mnWidth;
sal_Int32 mnHeight;
com::sun::star::view::PaperOrientation meOrientation;
- rtl::OUString msName;
const SdXMLImport& GetSdImport() const { return (const SdXMLImport&)GetImport(); }
SdXMLImport& GetSdImport() { return (SdXMLImport&)GetImport(); }
@@ -102,14 +101,13 @@ class SdXMLPageMasterContext: public SvXMLStyleContext
public:
TYPEINFO();
- SdXMLPageMasterContext(
+ SdXMLPageMasterStyleContext(
SdXMLImport& rImport,
sal_uInt16 nPrfx,
const rtl::OUString& rLName,
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList);
- virtual ~SdXMLPageMasterContext();
+ virtual ~SdXMLPageMasterStyleContext();
- const rtl::OUString& GetName() const { return msName; }
sal_Int32 GetBorderBottom() const { return mnBorderBottom; }
sal_Int32 GetBorderLeft() const { return mnBorderLeft; }
sal_Int32 GetBorderRight() const { return mnBorderRight; }
@@ -120,6 +118,35 @@ public:
};
//////////////////////////////////////////////////////////////////////////////
+// style:page-master context
+
+class SdXMLPageMasterContext: public SvXMLStyleContext
+{
+ rtl::OUString msName;
+ SdXMLPageMasterStyleContext*mpPageMasterStyle;
+
+ const SdXMLImport& GetSdImport() const { return (const SdXMLImport&)GetImport(); }
+ SdXMLImport& GetSdImport() { return (SdXMLImport&)GetImport(); }
+
+public:
+ TYPEINFO();
+
+ SdXMLPageMasterContext(
+ SdXMLImport& rImport,
+ sal_uInt16 nPrfx,
+ const rtl::OUString& rLName,
+ const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList);
+ virtual ~SdXMLPageMasterContext();
+
+ virtual SvXMLImportContext *CreateChildContext(
+ sal_uInt16 nPrefix, const rtl::OUString& rLocalName,
+ const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
+
+ const rtl::OUString& GetName() const { return msName; }
+ const SdXMLPageMasterStyleContext* GetPageMasterStyle() const { return mpPageMasterStyle; }
+};
+
+//////////////////////////////////////////////////////////////////////////////
// style:masterpage context
class SdXMLMasterPageContext: public SdXMLGroupShapeContext