Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / xmloff / xmlnume.hxx
blob420e6448127c81848a3a9168e9c7368803339c7c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_XMLNUME_HXX
21 #define INCLUDED_XMLOFF_XMLNUME_HXX
23 #include <rtl/ustring.hxx>
24 #include <tools/mapunit.hxx>
25 #include <xmloff/attrlist.hxx>
27 namespace com { namespace sun { namespace star {
28 namespace frame { class XModel; }
29 namespace style { class XStyle; }
30 namespace container { class XIndexReplace; }
31 namespace beans { struct PropertyValue; }
32 } } }
34 class SvXMLNamespaceMap;
35 class SvXMLUnitConverter;
36 class SvXMLExportItemMapper;
37 class SvXMLExport;
38 class XMLTextListAutoStylePool;
40 class XMLOFF_DLLPUBLIC SvxXMLNumRuleExport final
42 SvXMLExport& rExport;
43 const OUString sNumberingRules;
44 const OUString sIsPhysical;
45 const OUString sIsContinuousNumbering;
46 // Boolean indicating, if properties for position-and-space-mode LABEL_ALIGNEMNT
47 // are exported or not. (#i89178#)
48 // These properties have been introduced in ODF 1.2. Thus, its export have
49 // to be suppressed on writing ODF 1.0 respectively ODF 1.1
50 bool mbExportPositionAndSpaceModeLabelAlignment;
52 SAL_DLLPRIVATE void exportLevelStyle(
53 sal_Int32 nLevel,
54 const css::uno::Sequence< css::beans::PropertyValue>& rProps,
55 bool bOutline );
57 SAL_DLLPRIVATE void exportStyle( const css::uno::Reference< css::style::XStyle >& rStyle );
58 SAL_DLLPRIVATE void exportOutline();
60 SvXMLExport& GetExport() { return rExport; }
62 public:
64 SvxXMLNumRuleExport( SvXMLExport& rExport );
65 ~SvxXMLNumRuleExport();
67 // should be private but sw::StoredChapterNumberingExport needs it
68 void exportLevelStyles(
69 const css::uno::Reference< css::container::XIndexReplace > & xNumRule,
70 bool bOutline=false );
72 void exportStyles( bool bUsed,
73 XMLTextListAutoStylePool *pPool,
74 bool bExportChapterNumbering );
75 void exportNumberingRule(
76 const OUString& rName, bool bIsHidden,
77 const css::uno::Reference< css::container::XIndexReplace > & xNumRule );
80 #endif // INCLUDED_XMLOFF_XMLNUME_HXX
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */