diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-04-11 12:25:22 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-04-11 12:25:22 +0000 |
commit | 31a2668bbc9ac6c474a2995124ceac02533cc83b (patch) | |
tree | 8223a24e8cfa277af6a918533c8cc05efee7c487 /xmloff | |
parent | dc0748a85661742575d8ad051b795b0ba5b13e7a (diff) |
INTEGRATION: CWS hedaburemove01 (1.1.2); FILE ADDED
2007/02/09 16:08:57 vg 1.1.2.1: #72503# get rid of hedabu procedure: Moving headers to xmloff/inc/xmloff and correspondent necessary changes
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/xmloff/XMLTextMasterPageContext.hxx | 108 | ||||
-rw-r--r-- | xmloff/inc/xmloff/XMLTextMasterPageExport.hxx | 92 | ||||
-rw-r--r-- | xmloff/inc/xmloff/XMLTextMasterStylesContext.hxx | 78 | ||||
-rw-r--r-- | xmloff/inc/xmloff/XMLTextShapeStyleContext.hxx | 88 |
4 files changed, 366 insertions, 0 deletions
diff --git a/xmloff/inc/xmloff/XMLTextMasterPageContext.hxx b/xmloff/inc/xmloff/XMLTextMasterPageContext.hxx new file mode 100644 index 000000000000..35a1aedd1585 --- /dev/null +++ b/xmloff/inc/xmloff/XMLTextMasterPageContext.hxx @@ -0,0 +1,108 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: XMLTextMasterPageContext.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 13:24:49 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ +#ifndef _XMLOFF_TEXTMASTERPAGECONTEXT_HXX_ +#define _XMLOFF_TEXTMASTERPAGECONTEXT_HXX_ + +#ifndef _SAL_CONFIG_H_ +#include "sal/config.h" +#endif + +#ifndef INCLUDED_XMLOFF_DLLAPI_H +#include "xmloff/dllapi.h" +#endif + +#ifndef _SAL_TYPES_H_ +#include "sal/types.h" +#endif + +#ifndef _XMLOFF_XMLSTYLE_HXX_ +#include <xmloff/xmlstyle.hxx> +#endif + +namespace com { namespace sun { namespace star { + namespace style { class XStyle; } +} } } + +class XMLOFF_DLLPUBLIC XMLTextMasterPageContext : public SvXMLStyleContext +{ + const ::rtl::OUString sIsPhysical; + const ::rtl::OUString sPageStyleLayout; + const ::rtl::OUString sFollowStyle; + ::rtl::OUString sFollow; + ::rtl::OUString sPageMasterName; + + ::com::sun::star::uno::Reference < ::com::sun::star::style::XStyle > xStyle; + + sal_Bool bInsertHeader; + sal_Bool bInsertFooter; + sal_Bool bInsertHeaderLeft; + sal_Bool bInsertFooterLeft; + sal_Bool bHeaderInserted; + sal_Bool bFooterInserted; + sal_Bool bHeaderLeftInserted; + sal_Bool bFooterLeftInserted; + + SAL_DLLPRIVATE ::com::sun::star::uno::Reference < + ::com::sun::star::style::XStyle > Create(); +protected: + ::com::sun::star::uno::Reference < + ::com::sun::star::style::XStyle > GetStyle() { return xStyle; } +public: + + TYPEINFO(); + + XMLTextMasterPageContext( SvXMLImport& rImport, sal_uInt16 nPrfx, + const ::rtl::OUString& rLName, + const ::com::sun::star::uno::Reference< + ::com::sun::star::xml::sax::XAttributeList > & xAttrList, + sal_Bool bOverwrite ); + virtual ~XMLTextMasterPageContext(); + + virtual SvXMLImportContext *CreateChildContext( + sal_uInt16 nPrefix, + const ::rtl::OUString& rLocalName, + const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList ); + + virtual SvXMLImportContext *CreateHeaderFooterContext( + sal_uInt16 nPrefix, + const ::rtl::OUString& rLocalName, + const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList, + const sal_Bool bFooter, + const sal_Bool bLeft ); + + virtual void Finish( sal_Bool bOverwrite ); +}; + +#endif diff --git a/xmloff/inc/xmloff/XMLTextMasterPageExport.hxx b/xmloff/inc/xmloff/XMLTextMasterPageExport.hxx new file mode 100644 index 000000000000..8abbbf93adf2 --- /dev/null +++ b/xmloff/inc/xmloff/XMLTextMasterPageExport.hxx @@ -0,0 +1,92 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: XMLTextMasterPageExport.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 13:25:00 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _XMLOFF_XMLTEXTMASTERPAGEEXPORT_HXX +#define _XMLOFF_XMLTEXTMASTERPAGEEXPORT_HXX + +#ifndef _SAL_CONFIG_H_ +#include "sal/config.h" +#endif + +#ifndef INCLUDED_XMLOFF_DLLAPI_H +#include "xmloff/dllapi.h" +#endif + +#ifndef _RTL_USTRING_HXX_ +#include <rtl/ustring.hxx> +#endif +#ifndef _XMLOFF_ATTRLIST_HXX +#include <xmloff/attrlist.hxx> +#endif + +#ifndef _XMLOFF_XMLPAGEEXPORT_HXX +#include <xmloff/XMLPageExport.hxx> +#endif + +namespace com { namespace sun { namespace star { + namespace text { class XText; } +} } } + +class XMLOFF_DLLPUBLIC XMLTextMasterPageExport : public XMLPageExport +{ + const ::rtl::OUString sHeaderText; + const ::rtl::OUString sHeaderOn; + const ::rtl::OUString sHeaderShareContent; + const ::rtl::OUString sHeaderTextLeft; + + const ::rtl::OUString sFooterText; + const ::rtl::OUString sFooterOn; + const ::rtl::OUString sFooterShareContent; + const ::rtl::OUString sFooterTextLeft; + +protected: + + virtual void exportHeaderFooterContent( + const ::com::sun::star::uno::Reference< + ::com::sun::star::text::XText >& rText, + sal_Bool bAutoStyles, sal_Bool bExportParagraph = sal_True ); + + virtual void exportMasterPageContent( + const ::com::sun::star::uno::Reference < + ::com::sun::star::beans::XPropertySet > & rPropSet, + sal_Bool bAutoStyles ); + +public: + XMLTextMasterPageExport( SvXMLExport& rExp ); + ~XMLTextMasterPageExport(); +}; + +#endif // _XMLOFF_XMLTEXTMASTERPAGEEXPORT_HXX + diff --git a/xmloff/inc/xmloff/XMLTextMasterStylesContext.hxx b/xmloff/inc/xmloff/XMLTextMasterStylesContext.hxx new file mode 100644 index 000000000000..69690d93fbdf --- /dev/null +++ b/xmloff/inc/xmloff/XMLTextMasterStylesContext.hxx @@ -0,0 +1,78 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: XMLTextMasterStylesContext.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 13:25:11 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _XMLOFF_XMLTEXTMASTERSTYLESCONTEXT_HXX +#define _XMLOFF_XMLTEXTMASTERSTYLESCONTEXT_HXX + +#ifndef _SAL_CONFIG_H_ +#include "sal/config.h" +#endif + +#ifndef INCLUDED_XMLOFF_DLLAPI_H +#include "xmloff/dllapi.h" +#endif + +#ifndef _XMLOFF_XMLSTYLE_HXX +#include <xmloff/xmlstyle.hxx> +#endif + +class XMLOFF_DLLPUBLIC XMLTextMasterStylesContext : public SvXMLStylesContext +{ +protected: + virtual SvXMLStyleContext *CreateStyleChildContext( sal_uInt16 nPrefix, + const ::rtl::OUString& rLocalName, + const ::com::sun::star::uno::Reference< + ::com::sun::star::xml::sax::XAttributeList > & xAttrList ); + + virtual SvXMLStyleContext *CreateStyleStyleChildContext( sal_uInt16 nFamily, + sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, + const ::com::sun::star::uno::Reference< + ::com::sun::star::xml::sax::XAttributeList > & xAttrList ); + + virtual sal_Bool InsertStyleFamily( sal_uInt16 nFamily ) const; + +public: + TYPEINFO(); + + XMLTextMasterStylesContext( SvXMLImport& rImport, sal_uInt16 nPrfx, + const ::rtl::OUString& rLName, + const ::com::sun::star::uno::Reference< + ::com::sun::star::xml::sax::XAttributeList > & xAttrList); + + virtual ~XMLTextMasterStylesContext(); +}; + +#endif // _XMLOFF_XMLTEXTMASTERSTYLECONTEXT_HXX + diff --git a/xmloff/inc/xmloff/XMLTextShapeStyleContext.hxx b/xmloff/inc/xmloff/XMLTextShapeStyleContext.hxx new file mode 100644 index 000000000000..30bed316aeea --- /dev/null +++ b/xmloff/inc/xmloff/XMLTextShapeStyleContext.hxx @@ -0,0 +1,88 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: XMLTextShapeStyleContext.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 13:25:22 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ +#ifndef _XMLOFF_XMLTEXTSHAPESTYLECONTEXT_HXX_ +#define _XMLOFF_XMLTEXTSHAPESTYLECONTEXT_HXX_ + +#ifndef _SAL_CONFIG_H_ +#include "sal/config.h" +#endif + +#ifndef INCLUDED_XMLOFF_DLLAPI_H +#include "xmloff/dllapi.h" +#endif + +#ifndef _XMLOFF_XMLSHAPESTYLECONTEXT_HXX +#include <xmloff/XMLShapeStyleContext.hxx> +#endif + +class XMLOFF_DLLPUBLIC XMLTextShapeStyleContext : public XMLShapeStyleContext +{ + const ::rtl::OUString sIsAutoUpdate; + + sal_Bool bAutoUpdate : 1; + + SvXMLImportContextRef xEventContext; + +protected: + + virtual void SetAttribute( sal_uInt16 nPrefixKey, + const ::rtl::OUString& rLocalName, + const ::rtl::OUString& rValue ); + +public: + + TYPEINFO(); + + XMLTextShapeStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx, + const ::rtl::OUString& rLName, + const ::com::sun::star::uno::Reference< + ::com::sun::star::xml::sax::XAttributeList > & xAttrList, + SvXMLStylesContext& rStyles, sal_uInt16 nFamily, + sal_Bool bDefaultStyle = sal_False ); + virtual ~XMLTextShapeStyleContext(); + + virtual SvXMLImportContext *CreateChildContext( + sal_uInt16 nPrefix, + const ::rtl::OUString& rLocalName, + const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList ); + + sal_Bool IsAutoUpdate() const { return bAutoUpdate; } + + virtual void CreateAndInsert( sal_Bool bOverwrite ); + + virtual void Finish( sal_Bool bOverwrite ); +}; + +#endif |