23#include <ooo/vba/word/WdListGalleryType.hpp>
24#include <com/sun/star/beans/XPropertySet.hpp>
25#include <com/sun/star/lang/XMultiServiceFactory.hpp>
26#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
27#include <com/sun/star/style/NumberingType.hpp>
28#include <com/sun/star/container/XIndexReplace.hpp>
51SwVbaListHelper::SwVbaListHelper( css::uno::Reference< css::text::XTextDocument > xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType ) : mxTextDocument(
std::move( xTextDoc )), mnGalleryType( nGalleryType ), mnTemplateType( nTemplateType )
61 case word::WdListGalleryType::wdBulletGallery:
66 case word::WdListGalleryType::wdNumberGallery:
71 case word::WdListGalleryType::wdOutlineNumberGallery:
78 throw uno::RuntimeException();
84 uno::Reference< style::XStyleFamiliesSupplier > xStyleSupplier(
mxTextDocument, uno::UNO_QUERY_THROW );
85 mxStyleFamily.set( xStyleSupplier->getStyleFamilies()->getByName(
"NumberingStyles"), uno::UNO_QUERY_THROW );
95 uno::Reference< lang::XMultiServiceFactory > xDocMSF(
mxTextDocument, uno::UNO_QUERY_THROW );
96 mxStyleProps.set( xDocMSF->createInstance(
"com.sun.star.style.NumberingStyle"), uno::UNO_QUERY_THROW );
111 case word::WdListGalleryType::wdBulletGallery:
116 case word::WdListGalleryType::wdNumberGallery:
121 case word::WdListGalleryType::wdOutlineNumberGallery:
128 throw uno::RuntimeException();
136 sal_Int32 nLevel = 0;
142 OUString aBulletChar;
183 throw css::uno::RuntimeException();
194 sal_Int32 nLevel = 0;
198 sal_Int16 nNumberingType = 0;
204 nNumberingType = style::NumberingType::ARABIC;
210 nNumberingType = style::NumberingType::ARABIC;
216 nNumberingType = style::NumberingType::ROMAN_UPPER;
222 nNumberingType = style::NumberingType::CHARS_UPPER_LETTER;
228 nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
234 nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
240 nNumberingType = style::NumberingType::ROMAN_LOWER;
247 throw css::uno::RuntimeException();
298 throw css::uno::RuntimeException();
305 sal_Int16 nNumberingType = 0;
318 nNumberingType = style::NumberingType::ARABIC;
325 nNumberingType = style::NumberingType::ROMAN_LOWER;
332 nNumberingType = style::NumberingType::ARABIC;
339 nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
346 nNumberingType = style::NumberingType::ROMAN_LOWER;
353 nNumberingType = style::NumberingType::ARABIC;
360 nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
367 nNumberingType = style::NumberingType::ROMAN_LOWER;
402 OUString aBulletChar;
449 sal_Int16 nNumberingType = 0;
461 nNumberingType = style::NumberingType::ROMAN_UPPER;
468 nNumberingType = style::NumberingType::ARABIC;
476 nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
483 nNumberingType = style::NumberingType::ROMAN_LOWER;
490 nNumberingType = style::NumberingType::ARABIC;
497 nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
504 nNumberingType = style::NumberingType::ROMAN_LOWER;
511 nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
518 nNumberingType = style::NumberingType::ROMAN_LOWER;
551 sal_Int16 nNumberingType = 0;
563 nNumberingType = style::NumberingType::ROMAN_UPPER;
570 nNumberingType = style::NumberingType::CHARS_UPPER_LETTER;
577 nNumberingType = style::NumberingType::ARABIC;
584 nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
591 nNumberingType = style::NumberingType::ARABIC;
598 nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
605 nNumberingType = style::NumberingType::ROMAN_LOWER;
612 nNumberingType = style::NumberingType::CHARS_LOWER_LETTER;
619 nNumberingType = style::NumberingType::ROMAN_LOWER;
PropertyValueVector_t aPropertyValues
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
void CreateOutlineNumberForType5()
void CreateOutlineNumberForType7()
void CreateOutlineNumberListTemplate()
void CreateOutlineNumberForType4()
void CreateOutlineNumberForType1()
void CreateBulletListTemplate()
void CreateNumberListTemplate()
void CreateListTemplate()
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)
sal_Int16 nParentNumbering
#define SAL_INFO(area, stream)
VBAHELPER_DLLPUBLIC void setOrAppendPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
constexpr OUStringLiteral UNO_NAME_NUMBERING_TYPE
constexpr OUStringLiteral CHAR_CLOSED_DOT
constexpr OUStringLiteral CHAR_ARROW
constexpr OUStringLiteral UNO_NAME_SUFFIX
constexpr OUStringLiteral CHAR_CHECK_MARK
constexpr OUStringLiteral UNO_NAME_CHAR_STYLE_NAME
constexpr OUStringLiteral UNO_NAME_PARENT_NUMBERING
constexpr OUStringLiteral UNO_NAME_BULLET_CHAR
constexpr OUStringLiteral UNO_NAME_PREFIX
constexpr OUStringLiteral CHAR_EMPTY_DOT
const sal_Int32 LIST_LEVEL_COUNT
constexpr OUStringLiteral CHAR_FOUR_DIAMONDS
constexpr OUStringLiteral CHAR_DIAMOND
constexpr OUStringLiteral CHAR_SQUARE
constexpr OUStringLiteral CHAR_STAR_SYMBOL