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

#include <vbalisthelper.hxx>

Collaboration diagram for SwVbaListHelper:
[legend]

Public Member Functions

 SwVbaListHelper (const 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 const mnGalleryType
 
sal_Int32 const mnTemplateType
 
OUString msStyleName
 

Detailed Description

Definition at line 22 of file vbalisthelper.hxx.

Constructor & Destructor Documentation

SwVbaListHelper::SwVbaListHelper ( const 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

void SwVbaListHelper::CreateBulletListTemplate ( )
private
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().

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

Definition at line 191 of file vbalisthelper.cxx.

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

Referenced by CreateListTemplate().

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

Definition at line 303 of file vbalisthelper.cxx.

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

Referenced by CreateOutlineNumberListTemplate().

void SwVbaListHelper::CreateOutlineNumberForType2 ( )
private
void SwVbaListHelper::CreateOutlineNumberForType3 ( )
private
void SwVbaListHelper::CreateOutlineNumberForType4 ( )
private
void SwVbaListHelper::CreateOutlineNumberForType5 ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 531 of file vbalisthelper.cxx.

References LIST_LEVEL_COUNT, mxNumberingRules, setOrAppendPropertyValue(), UNO_NAME_NUMBERING_TYPE, and UNO_NAME_PARENT_NUMBERING.

Referenced by CreateOutlineNumberListTemplate().

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

Definition at line 549 of file vbalisthelper.cxx.

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

Referenced by CreateOutlineNumberListTemplate().

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

Definition at line 632 of file vbalisthelper.cxx.

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

Referenced by CreateOutlineNumberListTemplate().

void SwVbaListHelper::CreateOutlineNumberListTemplate ( )
private
sal_Int32 SwVbaListHelper::getGalleryType ( ) const
inline

Definition at line 62 of file vbalisthelper.hxx.

References mnGalleryType.

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

Definition at line 63 of file vbalisthelper.hxx.

References mxNumberingRules.

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

Definition at line 645 of file vbalisthelper.cxx.

References getPropertyValue(), and mxNumberingRules.

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().

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 mxNumberingRules, mxStyleProps, and setOrAppendPropertyValue().

Member Data Documentation

sal_Int32 const SwVbaListHelper::mnGalleryType
private

Definition at line 29 of file vbalisthelper.hxx.

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

sal_Int32 const SwVbaListHelper::mnTemplateType
private
OUString SwVbaListHelper::msStyleName
private

Definition at line 31 of file vbalisthelper.hxx.

Referenced by Init().

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

Definition at line 27 of file vbalisthelper.hxx.

Referenced by Init().

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

Definition at line 28 of file vbalisthelper.hxx.

Referenced by Init(), and setPropertyValueWithNameAndLevel().

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: