21#include <com/sun/star/beans/XPropertySet.hpp>
26SwVbaListTemplate::SwVbaListTemplate(
const uno::Reference< ooo::vba::XHelperInterface >& rParent,
const uno::Reference< uno::XComponentContext >& rContext,
const uno::Reference< text::XTextDocument >& xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType ) :
SwVbaListTemplate_BASE( rParent, rContext )
28 m_pListHelper = std::make_shared<SwVbaListHelper>( xTextDoc, nGalleryType, nTemplateType );
39 if (
index.hasValue() )
46 uno::Reference< container::XIndexReplace > xNumberingRules =
m_pListHelper->getNumberingRules();
47 xProps->setPropertyValue(
"NumberingRules",
uno::Any( xNumberingRules ) );
53 return "SwVbaListTemplate";
56uno::Sequence< OUString >
61 "ooo.vba.word.ListTemplate"
css::uno::Reference< css::uno::XComponentContext > mxContext
css::uno::WeakReference< ov::XHelperInterface > mxParent
virtual ~SwVbaListTemplate() override
virtual css::uno::Any SAL_CALL ListLevels(const css::uno::Any &index) override
virtual OUString getServiceImplName() override
void applyListTemplate(css::uno::Reference< css::beans::XPropertySet > const &xProps)
virtual css::uno::Sequence< OUString > getServiceNames() override
SwVbaListTemplate(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, const css::uno::Reference< css::text::XTextDocument > &xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType)
SwVbaListHelperRef m_pListHelper
Sequence< OUString > aServiceNames