LibreOffice Module xmloff (master)  1
xmlnume.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_XMLNUME_HXX
21 #define INCLUDED_XMLOFF_XMLNUME_HXX
22 
23 #include <rtl/ustring.hxx>
24 #include <xmloff/dllapi.h>
25 
26 namespace com::sun::star {
27  namespace style { class XStyle; }
28  namespace container { class XIndexReplace; }
29  namespace beans { struct PropertyValue; }
30 }
31 
32 namespace com::sun::star::uno { template <class E> class Sequence; }
33 namespace com::sun::star::uno { template <class interface_type> class Reference; }
34 
35 class SvXMLExport;
37 
39 {
41  // Boolean indicating, if properties for position-and-space-mode LABEL_ALIGNMENT
42  // are exported or not. (#i89178#)
43  // These properties have been introduced in ODF 1.2. Thus, its export have
44  // to be suppressed on writing ODF 1.0 respectively ODF 1.1
46 
47  SAL_DLLPRIVATE void exportLevelStyle(
48  sal_Int32 nLevel,
49  const css::uno::Sequence< css::beans::PropertyValue>& rProps,
50  bool bOutline );
51 
52  SAL_DLLPRIVATE void exportStyle( const css::uno::Reference< css::style::XStyle >& rStyle );
53  SAL_DLLPRIVATE void exportOutline();
54 
55  SvXMLExport& GetExport() { return rExport; }
56 
57 public:
58 
59  SvxXMLNumRuleExport( SvXMLExport& rExport );
61 
62  // should be private but sw::StoredChapterNumberingExport needs it
63  void exportLevelStyles(
64  const css::uno::Reference< css::container::XIndexReplace > & xNumRule,
65  bool bOutline=false );
66 
67  void exportStyles( bool bUsed,
69  bool bExportChapterNumbering );
70  void exportNumberingRule(
71  const OUString& rName, bool bIsHidden,
72  const css::uno::Reference< css::container::XIndexReplace > & xNumRule );
73 };
74 
75 #endif // INCLUDED_XMLOFF_XMLNUME_HXX
76 
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvXMLExport & GetExport()
Definition: xmlnume.hxx:55
SvXMLExport & rExport
Definition: xmlnume.hxx:40
Reference
exports com.sun.star. container
exports com.sun.star. style
exports com.sun.star. beans
bool mbExportPositionAndSpaceModeLabelAlignment
Definition: xmlnume.hxx:45
css::uno::Any const SvXMLExport & rExport
Definition: ImageStyle.hxx:38
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29