1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 _XMLOFF_XMLNUMI_HXX
21 #define _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 SvxXMLListStyle_Impl
;
32 class SvxXMLListStyleContext
: public SvXMLStyleContext
34 const OUString sIsPhysical
;
35 const OUString sNumberingRules
;
37 const OUString sIsContinuousNumbering
;
39 ::com::sun::star::uno::Reference
<
40 ::com::sun::star::container::XIndexReplace
> xNumRules
;
42 SvxXMLListStyle_Impl
*pLevelStyles
;
45 sal_Bool bConsecutive
: 1;
46 sal_Bool bOutline
: 1;
50 virtual void SetAttribute( sal_uInt16 nPrefixKey
,
51 const OUString
& rLocalName
,
52 const OUString
& rValue
);
58 SvxXMLListStyleContext(
59 SvXMLImport
& rImport
, sal_uInt16 nPrfx
,
60 const OUString
& rLName
,
61 const ::com::sun::star::uno::Reference
<
62 ::com::sun::star::xml::sax::XAttributeList
>& xAttrList
,
63 sal_Bool bOutl
=sal_False
);
65 virtual ~SvxXMLListStyleContext();
67 virtual SvXMLImportContext
*CreateChildContext(
69 const OUString
& rLocalName
,
70 const ::com::sun::star::uno::Reference
<
71 ::com::sun::star::xml::sax::XAttributeList
>& xAttrList
);
74 const ::com::sun::star::uno::Reference
<
75 ::com::sun::star::container::XIndexReplace
> & rNumRule
,
76 const SvI18NMap
*pI18NMap
) const;
78 const ::com::sun::star::uno::Reference
<
79 ::com::sun::star::container::XIndexReplace
>& GetNumRules() const
81 sal_Bool
IsOutline() const { return bOutline
; }
82 sal_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
>
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
,
97 virtual void CreateAndInsertLate( sal_Bool bOverwrite
);
99 void CreateAndInsertAuto() const;
102 #endif // _XMLOFF_XMLNUMI_HXX
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */