19 #ifndef INCLUDED_SW_SOURCE_UI_VBA_VBABOOKMARKS_HXX
20 #define INCLUDED_SW_SOURCE_UI_VBA_VBABOOKMARKS_HXX
23 #include <ooo/vba/word/XBookmarks.hpp>
24 #include <com/sun/star/container/XIndexAccess.hpp>
25 #include <com/sun/star/text/XBookmarksSupplier.hpp>
26 #include <com/sun/star/text/XTextRange.hpp>
33 css::uno::Reference< css::frame::XModel >
mxModel;
41 SwVbaBookmarks(
const css::uno::Reference< ov::XHelperInterface >& xParent,
const css::uno::Reference< css::uno::XComponentContext > & xContext,
const css::uno::Reference< css::container::XIndexAccess >& xBookmarks,
const css::uno::Reference< css::frame::XModel >& xModel );
44 static void addBookmarkByName(
const css::uno::Reference< css::frame::XModel >& xModel,
const OUString& rName,
const css::uno::Reference< css::text::XTextRange >& rTextRange );
47 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
createEnumeration()
override;
60 virtual css::uno::Any SAL_CALL
Add(
const OUString& rName,
const css::uno::Any& rRange )
override;
61 virtual sal_Bool SAL_CALL
Exists(
const OUString& rName )
override;
64 #endif // INCLUDED_SW_SOURCE_UI_VBA_VBABOOKMARKS_HXX
void removeBookmarkByName(const OUString &rName)
virtual void SAL_CALL setShowHidden(sal_Bool _hidden) override
virtual css::uno::Any createCollectionObject(const css::uno::Any &aSource) override
virtual sal_Bool SAL_CALL Exists(const OUString &rName) override
css::uno::Reference< css::frame::XModel > mxModel
virtual OUString getServiceImplName() override
virtual css::uno::Sequence< OUString > getServiceNames() override
css::uno::Reference< css::text::XBookmarksSupplier > mxBookmarksSupplier
SwVbaBookmarks(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::container::XIndexAccess > &xBookmarks, const css::uno::Reference< css::frame::XModel > &xModel)
CollTestImplHelper< ooo::vba::word::XBookmarks > SwVbaBookmarks_BASE
virtual sal_Bool SAL_CALL getShowHidden() override
static void addBookmarkByName(const css::uno::Reference< css::frame::XModel > &xModel, const OUString &rName, const css::uno::Reference< css::text::XTextRange > &rTextRange)
virtual void SAL_CALL setDefaultSorting(sal_Int32 _type) override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
virtual css::uno::Any SAL_CALL Add(const OUString &rName, const css::uno::Any &rRange) override
virtual sal_Int32 SAL_CALL getDefaultSorting() override
virtual css::uno::Type SAL_CALL getElementType() override