1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
21 #define INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
23 #include <sal/config.h>
24 #include <xmloff/dllapi.h>
25 #include <sal/types.h>
26 #include <rtl/ustring.hxx>
28 #include <rtl/ref.hxx>
29 #include <salhelper/simplereferenceobject.hxx>
30 #include <com/sun/star/uno/Reference.hxx>
32 namespace com
{ namespace sun
{ namespace star
{
33 namespace style
{ class XStyle
; }
34 namespace container
{ class XNameAccess
;}
35 namespace beans
{ class XPropertySet
; }
39 class XMLPropertyHandlerFactory
;
40 class XMLPropertySetMapper
;
41 class SvXMLExportPropertyMapper
;
44 struct XMLPageExportNameEntry
46 OUString sPageMasterName
;
51 class XMLOFF_DLLPUBLIC XMLPageExport
: public salhelper::SimpleReferenceObject
55 css::uno::Reference
< css::container::XNameAccess
> xPageStyles
;
57 ::std::vector
< XMLPageExportNameEntry
> aNameVector
;
58 SAL_DLLPRIVATE
bool findPageMasterName( const OUString
& rStyleName
, OUString
& rPMName
) const;
60 rtl::Reference
< XMLPropertyHandlerFactory
> xPageMasterPropHdlFactory
;
61 rtl::Reference
< XMLPropertySetMapper
> xPageMasterPropSetMapper
;
62 rtl::Reference
< SvXMLExportPropertyMapper
> xPageMasterExportPropMapper
;
66 SvXMLExport
& GetExport() { return rExport
; }
68 void collectPageMasterAutoStyle(
69 const css::uno::Reference
< css::beans::XPropertySet
> & rPropSet
,
70 OUString
& rPageMasterName
);
72 virtual void exportMasterPageContent(
73 const css::uno::Reference
< css::beans::XPropertySet
> & rPropSet
,
77 const css::uno::Reference
< css::style::XStyle
>& rStyle
,
80 void exportStyles( bool bUsed
, bool bAutoStyles
);
83 XMLPageExport( SvXMLExport
& rExp
);
84 virtual ~XMLPageExport() override
;
86 void collectAutoStyles( bool bUsed
) { exportStyles( bUsed
, true ); }
87 void exportAutoStyles();
88 void exportMasterStyles( bool bUsed
) { exportStyles( bUsed
, false ); }
90 //text grid enhancement for better CJK support
91 void exportDefaultStyle();
94 #endif // INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */