Branch libreoffice-5-0-4
[LibreOffice.git] / include / xmloff / xmlnume.hxx
blob2301e00df6ed7e68d7c0baccb6eb7a79ffe956bb
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
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 ::com::sun::star::uno::Sequence<
55 ::com::sun::star::beans::PropertyValue>& rProps,
56 bool bOutline=false );
58 protected:
60 /// Override this to add attributes to the <list-style> element.
61 SAL_DLLPRIVATE virtual void AddListStyleAttributes();
63 SAL_DLLPRIVATE bool exportStyle( const ::com::sun::star::uno::Reference<
64 ::com::sun::star::style::XStyle >& rStyle );
65 SAL_DLLPRIVATE void exportOutline();
67 SvXMLExport& GetExport() { return rExport; }
69 public:
71 SvxXMLNumRuleExport( SvXMLExport& rExport );
72 virtual ~SvxXMLNumRuleExport();
74 // should be private but sw::StoredChapterNumberingExport needs it
75 void exportLevelStyles(
76 const ::com::sun::star::uno::Reference<
77 ::com::sun::star::container::XIndexReplace > & xNumRule,
78 bool bOutline=false );
80 void exportStyles( bool bUsed,
81 XMLTextListAutoStylePool *pPool,
82 bool bExportChapterNumbering = true );
83 void exportNumberingRule(
84 const OUString& rName, bool bIsHidden,
85 const ::com::sun::star::uno::Reference<
86 ::com::sun::star::container::XIndexReplace > & xNumRule );
89 #endif // INCLUDED_XMLOFF_XMLNUME_HXX
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */