LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwVbaListHelper Class Reference

#include <vbalisthelper.hxx>

Public Member Functions

 SwVbaListHelper (css::uno::Reference< css::text::XTextDocument > xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType)
 
sal_Int32 getGalleryType () const
 
const css::uno::Reference< css::container::XIndexReplace > & getNumberingRules () const
 
css::uno::Any getPropertyValueWithNameAndLevel (sal_Int32 nLevel, const OUString &sName)
 
void setPropertyValueWithNameAndLevel (sal_Int32 nLevel, const OUString &sName, const css::uno::Any &aValue)
 

Private Member Functions

void Init ()
 
void CreateListTemplate ()
 
void CreateBulletListTemplate ()
 
void CreateNumberListTemplate ()
 
void CreateOutlineNumberListTemplate ()
 
void CreateOutlineNumberForType1 ()
 
void CreateOutlineNumberForType2 ()
 
void CreateOutlineNumberForType3 ()
 
void CreateOutlineNumberForType4 ()
 
void CreateOutlineNumberForType5 ()
 
void CreateOutlineNumberForType6 ()
 
void CreateOutlineNumberForType7 ()
 

Private Attributes

css::uno::Reference< css::text::XTextDocument > mxTextDocument
 
css::uno::Reference< css::container::XIndexReplace > mxNumberingRules
 
css::uno::Reference< css::container::XNameContainer > mxStyleFamily
 
css::uno::Reference< css::beans::XPropertySetmxStyleProps
 
sal_Int32 mnGalleryType
 
sal_Int32 mnTemplateType
 
OUString msStyleName
 

Detailed Description

Definition at line 22 of file vbalisthelper.hxx.

Constructor & Destructor Documentation

◆ SwVbaListHelper()

SwVbaListHelper::SwVbaListHelper ( css::uno::Reference< css::text::XTextDocument >  xTextDoc,
sal_Int32  nGalleryType,
sal_Int32  nTemplateType 
)
Exceptions
css::uno::RuntimeException

Definition at line 51 of file vbalisthelper.cxx.

References Init().

Member Function Documentation

◆ CreateBulletListTemplate()

void SwVbaListHelper::CreateBulletListTemplate ( )
private

◆ CreateListTemplate()

void SwVbaListHelper::CreateListTemplate ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 107 of file vbalisthelper.cxx.

References CreateBulletListTemplate(), CreateNumberListTemplate(), CreateOutlineNumberListTemplate(), and mnGalleryType.

Referenced by Init().

◆ CreateNumberListTemplate()

void SwVbaListHelper::CreateNumberListTemplate ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 191 of file vbalisthelper.cxx.

References aPropertyValues, mnTemplateType, mxNumberingRules, setOrAppendPropertyValue(), sSuffix, UNO_NAME_NUMBERING_TYPE, and UNO_NAME_SUFFIX.

Referenced by CreateListTemplate().

◆ CreateOutlineNumberForType1()

void SwVbaListHelper::CreateOutlineNumberForType1 ( )
private

◆ CreateOutlineNumberForType2()

void SwVbaListHelper::CreateOutlineNumberForType2 ( )
private

◆ CreateOutlineNumberForType3()

void SwVbaListHelper::CreateOutlineNumberForType3 ( )
private

◆ CreateOutlineNumberForType4()

void SwVbaListHelper::CreateOutlineNumberForType4 ( )
private

◆ CreateOutlineNumberForType5()

void SwVbaListHelper::CreateOutlineNumberForType5 ( )
private

◆ CreateOutlineNumberForType6()

void SwVbaListHelper::CreateOutlineNumberForType6 ( )
private

◆ CreateOutlineNumberForType7()

void SwVbaListHelper::CreateOutlineNumberForType7 ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 632 of file vbalisthelper.cxx.

References aPropertyValues, LIST_LEVEL_COUNT, mxNumberingRules, setOrAppendPropertyValue(), UNO_NAME_NUMBERING_TYPE, and UNO_NAME_PREFIX.

Referenced by CreateOutlineNumberListTemplate().

◆ CreateOutlineNumberListTemplate()

void SwVbaListHelper::CreateOutlineNumberListTemplate ( )
private

◆ getGalleryType()

sal_Int32 SwVbaListHelper::getGalleryType ( ) const
inline

Definition at line 62 of file vbalisthelper.hxx.

References mnGalleryType.

◆ getNumberingRules()

const css::uno::Reference< css::container::XIndexReplace > & SwVbaListHelper::getNumberingRules ( ) const
inline

Definition at line 63 of file vbalisthelper.hxx.

References mxNumberingRules.

◆ getPropertyValueWithNameAndLevel()

uno::Any SwVbaListHelper::getPropertyValueWithNameAndLevel ( sal_Int32  nLevel,
const OUString &  sName 
)
Exceptions
css::uno::RuntimeException

Definition at line 645 of file vbalisthelper.cxx.

References aPropertyValues, getPropertyValue(), mxNumberingRules, and sName.

◆ Init()

void SwVbaListHelper::Init ( void  )
private
Exceptions
css::uno::RuntimeException

Definition at line 56 of file vbalisthelper.cxx.

References CreateListTemplate(), mnGalleryType, mnTemplateType, msStyleName, mxNumberingRules, mxStyleFamily, mxStyleProps, mxTextDocument, and SAL_INFO.

Referenced by SwVbaListHelper().

◆ setPropertyValueWithNameAndLevel()

void SwVbaListHelper::setPropertyValueWithNameAndLevel ( sal_Int32  nLevel,
const OUString &  sName,
const css::uno::Any &  aValue 
)
Exceptions
css::uno::RuntimeException

Definition at line 652 of file vbalisthelper.cxx.

References aPropertyValues, mxNumberingRules, mxStyleProps, setOrAppendPropertyValue(), and sName.

Member Data Documentation

◆ mnGalleryType

sal_Int32 SwVbaListHelper::mnGalleryType
private

Definition at line 29 of file vbalisthelper.hxx.

Referenced by CreateListTemplate(), getGalleryType(), and Init().

◆ mnTemplateType

sal_Int32 SwVbaListHelper::mnTemplateType
private

◆ msStyleName

OUString SwVbaListHelper::msStyleName
private

Definition at line 31 of file vbalisthelper.hxx.

Referenced by Init().

◆ mxNumberingRules

css::uno::Reference< css::container::XIndexReplace > SwVbaListHelper::mxNumberingRules
private

◆ mxStyleFamily

css::uno::Reference< css::container::XNameContainer > SwVbaListHelper::mxStyleFamily
private

Definition at line 27 of file vbalisthelper.hxx.

Referenced by Init().

◆ mxStyleProps

css::uno::Reference< css::beans::XPropertySet > SwVbaListHelper::mxStyleProps
private

Definition at line 28 of file vbalisthelper.hxx.

Referenced by Init(), and setPropertyValueWithNameAndLevel().

◆ mxTextDocument

css::uno::Reference< css::text::XTextDocument > SwVbaListHelper::mxTextDocument
private

Definition at line 25 of file vbalisthelper.hxx.

Referenced by Init().


The documentation for this class was generated from the following files: