20#include <com/sun/star/beans/XPropertySet.hpp>
21#include <ooo/vba/word/WdTabLeader.hpp>
27SwVbaTableOfContents::SwVbaTableOfContents(
const uno::Reference< ooo::vba::XHelperInterface >& rParent,
const uno::Reference< uno::XComponentContext >& rContext, uno::Reference< text::XTextDocument > xDoc, uno::Reference< text::XDocumentIndex > xDocumentIndex ) :
40 mxTocProps->getPropertyValue(
"Level") >>= nLevel;
52 return word::WdTabLeader::wdTabLeaderDots;
62 bool bUseFields =
false;
63 mxTocProps->getPropertyValue(
"CreateFromMarks") >>= bUseFields;
74 bool bUseOutlineLevels =
false;
75 mxTocProps->getPropertyValue(
"CreateFromOutline") >>= bUseOutlineLevels;
76 return bUseOutlineLevels;
86 uno::Reference< text::XTextContent > xTextContent(
mxDocumentIndex, uno::UNO_QUERY_THROW );
98 return "SwVbaTableOfContents";
101uno::Sequence< OUString >
106 "ooo.vba.word.TableOfContents"
css::uno::Reference< css::beans::XPropertySet > mxTocProps
virtual void SAL_CALL Delete() override
virtual void SAL_CALL setUseOutlineLevels(sal_Bool _useOutlineLevels) override
virtual OUString getServiceImplName() override
virtual ::sal_Int32 SAL_CALL getLowerHeadingLevel() override
virtual void SAL_CALL setUseFields(sal_Bool _useFields) override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual sal_Bool SAL_CALL getUseOutlineLevels() override
virtual ::sal_Int32 SAL_CALL getTabLeader() override
css::uno::Reference< css::text::XDocumentIndex > mxDocumentIndex
virtual void SAL_CALL setTabLeader(::sal_Int32 _tableader) override
virtual sal_Bool SAL_CALL getUseFields() override
css::uno::Reference< css::text::XTextDocument > mxTextDocument
SwVbaTableOfContents(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::text::XTextDocument > xDoc, css::uno::Reference< css::text::XDocumentIndex > xDocumentIndex)
virtual ~SwVbaTableOfContents() override
virtual void SAL_CALL setLowerHeadingLevel(::sal_Int32 _lowerheadinglevel) override
virtual void SAL_CALL Update() override
Sequence< OUString > aServiceNames