Coverage Report

Created: 2025-11-16 09:57

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/xmloff/xmlnume.hxx
Line
Count
Source
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;
36
37
class XMLOFF_DLLPUBLIC SvxXMLNumRuleExport final
38
{
39
    SvXMLExport& m_rExport;
40
    // Boolean indicating, if properties for position-and-space-mode LABEL_ALIGNMENT
41
    // are exported or not. (#i89178#)
42
    // These properties have been introduced in ODF 1.2. Thus, its export have
43
    // to be suppressed on writing ODF 1.0 respectively ODF 1.1
44
    bool mbExportPositionAndSpaceModeLabelAlignment;
45
46
    SAL_DLLPRIVATE void exportLevelStyle(
47
            sal_Int32 nLevel,
48
            const css::uno::Sequence< css::beans::PropertyValue>& rProps,
49
            bool bOutline );
50
51
    SAL_DLLPRIVATE void exportStyle( const css::uno::Reference< css::style::XStyle >& rStyle );
52
    SAL_DLLPRIVATE void exportOutline();
53
54
0
    SvXMLExport& GetExport() { return m_rExport; }
55
56
public:
57
58
    SvxXMLNumRuleExport( SvXMLExport& rExport );
59
60
    // should be private but sw::StoredChapterNumberingExport needs it
61
    void exportLevelStyles(
62
            const css::uno::Reference< css::container::XIndexReplace > & xNumRule,
63
            bool bOutline=false );
64
65
    void exportStyles(bool bUsed, bool bExportChapterNumbering);
66
    void exportNumberingRule(
67
            const OUString& rName, bool bIsHidden,
68
            const css::uno::Reference< css::container::XIndexReplace > & xNumRule );
69
};
70
71
#endif // INCLUDED_XMLOFF_XMLNUME_HXX
72
73
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */