Line data Source code
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 <tools/mapunit.hxx>
25 : #include <xmloff/attrlist.hxx>
26 :
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 : } } }
33 :
34 : class SvXMLNamespaceMap;
35 : class SvXMLUnitConverter;
36 : class SvXMLExportItemMapper;
37 : class SvXMLExport;
38 : class XMLTextListAutoStylePool;
39 :
40 : class SvxXMLNumRuleExport
41 : {
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;
51 :
52 : void exportLevelStyles(
53 : const ::com::sun::star::uno::Reference<
54 : ::com::sun::star::container::XIndexReplace > & xNumRule,
55 : bool bOutline=false );
56 :
57 : void exportLevelStyle(
58 : sal_Int32 nLevel,
59 : const ::com::sun::star::uno::Sequence<
60 : ::com::sun::star::beans::PropertyValue>& rProps,
61 : bool bOutline=false );
62 :
63 : protected:
64 :
65 : // This method may be overloaded to add attributes to the <list-style>
66 : // element.
67 : virtual void AddListStyleAttributes();
68 :
69 : bool exportStyle( const ::com::sun::star::uno::Reference<
70 : ::com::sun::star::style::XStyle >& rStyle );
71 : void exportOutline();
72 :
73 52710 : SvXMLExport& GetExport() { return rExport; }
74 :
75 : public:
76 :
77 : SvxXMLNumRuleExport( SvXMLExport& rExport );
78 : virtual ~SvxXMLNumRuleExport();
79 :
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 );
87 : };
88 :
89 : #endif // INCLUDED_XMLOFF_XMLNUME_HXX
90 :
91 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|