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
19class SwVbaListHelper;
20typedef std::shared_ptr< SwVbaListHelper > SwVbaListHelperRef;
21
23{
24private:
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 mnGalleryType;
30 sal_Int32 mnTemplateType;
31 OUString msStyleName;
32
34 void Init();
36 void CreateListTemplate();
57
58public:
60 SwVbaListHelper( 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 CreateOutlineNumberForType3()
SwVbaListHelper(css::uno::Reference< css::text::XTextDocument > xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType)
css::uno::Reference< css::beans::XPropertySet > mxStyleProps
css::uno::Reference< css::container::XIndexReplace > mxNumberingRules
sal_Int32 getGalleryType() const
const css::uno::Reference< css::container::XIndexReplace > & getNumberingRules() const
sal_Int32 mnGalleryType
void CreateOutlineNumberForType5()
void CreateOutlineNumberForType7()
void CreateOutlineNumberListTemplate()
void CreateOutlineNumberForType4()
void CreateOutlineNumberForType1()
OUString msStyleName
void CreateBulletListTemplate()
sal_Int32 mnTemplateType
void CreateNumberListTemplate()
css::uno::Reference< css::container::XNameContainer > mxStyleFamily
void CreateOutlineNumberForType6()
void CreateOutlineNumberForType2()
void setPropertyValueWithNameAndLevel(sal_Int32 nLevel, const OUString &sName, const css::uno::Any &aValue)
css::uno::Reference< css::text::XTextDocument > mxTextDocument
css::uno::Any getPropertyValueWithNameAndLevel(sal_Int32 nLevel, const OUString &sName)
std::shared_ptr< SwVbaListHelper > SwVbaListHelperRef