update emoji autocorrect entries from po-files
[LibreOffice.git] / include / xmloff / xmlnumi.hxx
blobc4ef73352a6674368d76b6bdaa83fca03ed202e1
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_XMLNUMI_HXX
21 #define INCLUDED_XMLOFF_XMLNUMI_HXX
23 #include <com/sun/star/container/XIndexReplace.hpp>
25 #include <xmloff/xmlstyle.hxx>
26 #include <com/sun/star/style/NumberingType.hpp>
28 namespace com { namespace sun { namespace star { namespace frame { class XModel; } } } }
30 class SvxXMLListLevelStyleContext_Impl;
31 typedef std::vector<SvxXMLListLevelStyleContext_Impl *> SvxXMLListStyle_Impl;
33 class XMLOFF_DLLPUBLIC SvxXMLListStyleContext
34 : public SvXMLStyleContext
36 const OUString sIsPhysical;
37 const OUString sNumberingRules;
38 const OUString sIsContinuousNumbering;
40 ::com::sun::star::uno::Reference <
41 ::com::sun::star::container::XIndexReplace > xNumRules;
43 SvxXMLListStyle_Impl *pLevelStyles;
45 sal_Int32 nLevels;
46 bool bConsecutive : 1;
47 bool bOutline : 1;
49 protected:
51 SAL_DLLPRIVATE virtual void SetAttribute( sal_uInt16 nPrefixKey,
52 const OUString& rLocalName,
53 const OUString& rValue ) SAL_OVERRIDE;
55 public:
57 TYPEINFO_OVERRIDE();
59 SvxXMLListStyleContext(
60 SvXMLImport& rImport, sal_uInt16 nPrfx,
61 const OUString& rLName,
62 const ::com::sun::star::uno::Reference<
63 ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
64 bool bOutl = false );
66 virtual ~SvxXMLListStyleContext();
68 virtual SvXMLImportContext *CreateChildContext(
69 sal_uInt16 nPrefix,
70 const OUString& rLocalName,
71 const ::com::sun::star::uno::Reference<
72 ::com::sun::star::xml::sax::XAttributeList >& xAttrList ) SAL_OVERRIDE;
74 void FillUnoNumRule(
75 const css::uno::Reference<
76 css::container::XIndexReplace> & rNumRule) const;
78 const ::com::sun::star::uno::Reference <
79 ::com::sun::star::container::XIndexReplace >& GetNumRules() const
80 { return xNumRules; }
81 bool IsOutline() const { return bOutline; }
82 bool IsConsecutive() const { return bConsecutive; }
83 sal_Int32 GetLevels() const { return nLevels; }
85 static ::com::sun::star::uno::Reference <
86 ::com::sun::star::container::XIndexReplace >
87 CreateNumRule(
88 const ::com::sun::star::uno::Reference <
89 ::com::sun::star::frame::XModel > & rModel );
91 static void SetDefaultStyle(
92 const ::com::sun::star::uno::Reference <
93 ::com::sun::star::container::XIndexReplace > & rNumRule,
94 sal_Int16 nLevel,
95 bool bOrdered );
97 virtual void CreateAndInsertLate( bool bOverwrite ) SAL_OVERRIDE;
99 void CreateAndInsertAuto() const;
102 #endif // INCLUDED_XMLOFF_XMLNUMI_HXX
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */