LibreOffice Module sw (master)  1
vbalisthelper.hxx
Go to the documentation of this file.
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 #ifndef INCLUDED_SW_SOURCE_UI_VBA_VBALISTHELPER_HXX
10 #define INCLUDED_SW_SOURCE_UI_VBA_VBALISTHELPER_HXX
11 
12 #include <com/sun/star/beans/XPropertySet.hpp>
13 #include <com/sun/star/container/XIndexReplace.hpp>
14 #include <com/sun/star/container/XNameContainer.hpp>
15 #include <com/sun/star/text/XTextDocument.hpp>
16 
17 #include <memory>
18 
20 typedef std::shared_ptr< SwVbaListHelper > SwVbaListHelperRef;
21 
23 {
24 private:
25  css::uno::Reference< css::text::XTextDocument > mxTextDocument;
26  css::uno::Reference< css::container::XIndexReplace > mxNumberingRules;
27  css::uno::Reference< css::container::XNameContainer > mxStyleFamily;
28  css::uno::Reference< css::beans::XPropertySet > mxStyleProps;
29  sal_Int32 const mnGalleryType;
30  sal_Int32 const mnTemplateType;
31  OUString msStyleName;
32 
34  void Init();
36  void CreateListTemplate();
57 
58 public:
60  SwVbaListHelper( const css::uno::Reference< css::text::XTextDocument >& xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType );
61 
62  sal_Int32 getGalleryType() const { return mnGalleryType; }
63  const css::uno::Reference< css::container::XIndexReplace >& getNumberingRules() const { return mxNumberingRules; }
65  css::uno::Any getPropertyValueWithNameAndLevel( sal_Int32 nLevel, const OUString& sName );
67  void setPropertyValueWithNameAndLevel( sal_Int32 nLevel, const OUString& sName, const css::uno::Any& aValue );
68 
69 };
70 
71 #endif // INCLUDED_SW_SOURCE_UI_VBA_VBALISTHELPER_HXX
72 
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void CreateBulletListTemplate()
void CreateOutlineNumberForType6()
sal_Int32 const mnGalleryType
SwVbaListHelper(const css::uno::Reference< css::text::XTextDocument > &xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType)
void CreateOutlineNumberListTemplate()
void CreateNumberListTemplate()
css::uno::Reference< css::container::XIndexReplace > mxNumberingRules
void CreateOutlineNumberForType2()
sal_Int32 getGalleryType() const
css::uno::Reference< css::text::XTextDocument > mxTextDocument
const css::uno::Reference< css::container::XIndexReplace > & getNumberingRules() const
void CreateOutlineNumberForType5()
css::uno::Any getPropertyValueWithNameAndLevel(sal_Int32 nLevel, const OUString &sName)
css::uno::Reference< css::beans::XPropertySet > mxStyleProps
void CreateOutlineNumberForType7()
void setPropertyValueWithNameAndLevel(sal_Int32 nLevel, const OUString &sName, const css::uno::Any &aValue)
void CreateOutlineNumberForType1()
std::shared_ptr< SwVbaListHelper > SwVbaListHelperRef
void CreateOutlineNumberForType4()
OUString msStyleName
void CreateOutlineNumberForType3()
css::uno::Reference< css::container::XNameContainer > mxStyleFamily
sal_Int32 const mnTemplateType