LibreOffice Module xmloff (master)  1
XMLPageExport.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
21 #define INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
22 
23 #include <sal/config.h>
24 #include <xmloff/dllapi.h>
25 #include <rtl/ustring.hxx>
26 #include <vector>
27 #include <rtl/ref.hxx>
29 #include <com/sun/star/uno/Reference.hxx>
30 
31 namespace com::sun::star {
32  namespace style { class XStyle; }
33  namespace container { class XNameAccess;}
34  namespace beans { class XPropertySet; }
35 }
36 
37 class SvXMLExport;
41 
42 
44 {
45  OUString sPageMasterName;
47  OUString sStyleName;
48 };
49 
50 
52 {
54 
55  css::uno::Reference< css::container::XNameAccess > xPageStyles;
56 
57  ::std::vector< XMLPageExportNameEntry > aNameVector;
58 
64 
65 protected:
66 
67  SvXMLExport& GetExport() { return rExport; }
68 
69  void collectPageMasterAutoStyle(
70  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
71  XMLPageExportNameEntry & rEntry);
72 
73  virtual void exportMasterPageContent(
74  const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
75  bool bAutoStyles );
76 
77  bool exportStyle(
78  const css::uno::Reference< css::style::XStyle >& rStyle,
79  bool bAutoStyles );
80 
81  void exportStyles( bool bUsed, bool bAutoStyles );
82 
83 public:
84  XMLPageExport( SvXMLExport& rExp );
85  virtual ~XMLPageExport() override;
86 
87  void collectAutoStyles( bool bUsed ) { exportStyles( bUsed, true ); }
88  void exportAutoStyles();
89  void exportMasterStyles( bool bUsed ) { exportStyles( bUsed, false ); }
90 
91  //text grid enhancement for better CJK support
92  void exportDefaultStyle();
93 };
94 
95 #endif // INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
96 
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
rtl::Reference< SvXMLExportPropertyMapper > m_xPageMasterDrawingPageExportPropMapper
void collectAutoStyles(bool bUsed)
rtl::Reference< XMLPropertySetMapper > m_xPageMasterDrawingPagePropSetMapper
This class is a base-class to create XMLPropertyHandler.
Definition: prhdlfac.hxx:40
exports com.sun.star. container
rtl::Reference< XMLPropertyHandlerFactory > xPageMasterPropHdlFactory
void exportMasterStyles(bool bUsed)
::std::vector< XMLPageExportNameEntry > aNameVector
class SAL_NO_VTABLE XPropertySet
css::uno::Reference< css::container::XNameAccess > xPageStyles
SvXMLExport & GetExport()
exports com.sun.star. style
exports com.sun.star. beans
rtl::Reference< SvXMLExportPropertyMapper > xPageMasterExportPropMapper
SvXMLExport & rExport
rtl::Reference< XMLPropertySetMapper > xPageMasterPropSetMapper
css::uno::Any const SvXMLExport & rExport
Definition: ImageStyle.hxx:38
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29