19#ifndef INCLUDED_SW_SOURCE_UI_VBA_VBARANGE_HXX
20#define INCLUDED_SW_SOURCE_UI_VBA_VBARANGE_HXX
22#include <ooo/vba/word/XRange.hpp>
23#include <ooo/vba/word/XParagraphFormat.hpp>
24#include <ooo/vba/word/XFont.hpp>
25#include <ooo/vba/word/XFind.hpp>
27#include <com/sun/star/text/XTextRange.hpp>
28#include <com/sun/star/text/XTextDocument.hpp>
29#include <ooo/vba/word/XListFormat.hpp>
38 css::uno::Reference< css::text::XText >
mxText;
43 void initialize(
const css::uno::Reference< css::text::XTextRange >& rStart,
const css::uno::Reference< css::text::XTextRange >& rEnd );
45 void GetStyleInfo(OUString& aStyleName, OUString& aStyleType );
49 SwVbaRange(
const css::uno::Reference< ooo::vba::XHelperInterface >& rParent,
const css::uno::Reference< css::uno::XComponentContext >& rContext, css::uno::Reference< css::text::XTextDocument > xTextDocument,
const css::uno::Reference< css::text::XTextRange >& rStart);
52 SwVbaRange(
const css::uno::Reference< ooo::vba::XHelperInterface >& rParent,
const css::uno::Reference< css::uno::XComponentContext >& rContext, css::uno::Reference< css::text::XTextDocument > xTextDocument,
const css::uno::Reference< css::text::XTextRange >& rStart,
const css::uno::Reference< css::text::XTextRange >& rEnd );
55 SwVbaRange(
const css::uno::Reference< ooo::vba::XHelperInterface >& rParent,
const css::uno::Reference< css::uno::XComponentContext >& rContext, css::uno::Reference< css::text::XTextDocument > xTextDocument,
const css::uno::Reference< css::text::XTextRange >& rStart,
const css::uno::Reference< css::text::XTextRange >& rEnd, css::uno::Reference< css::text::XText > xText);
59 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getXTextRange()
override;
60 const css::uno::Reference< css::text::XText >&
getXText()
const {
return mxText; }
64 virtual OUString SAL_CALL
getText()
override;
65 virtual void SAL_CALL
setText(
const OUString& rText )
override;
66 virtual css::uno::Reference< ooo::vba::word::XParagraphFormat > SAL_CALL
getParagraphFormat()
override;
67 virtual void SAL_CALL
setParagraphFormat(
const css::uno::Reference< ooo::vba::word::XParagraphFormat >& rParagraphFormat )
override;
68 virtual css::uno::Any SAL_CALL
getStyle()
override;
69 virtual void SAL_CALL
setStyle(
const css::uno::Any& _xStyle )
override;
70 virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL
getFont()
override;
71 virtual css::uno::Reference< ooo::vba::word::XFind > SAL_CALL
getFind()
override;
72 virtual css::uno::Reference< ooo::vba::word::XListFormat > SAL_CALL
getListFormat()
override;
78 virtual void SAL_CALL
InsertBreak(
const css::uno::Any& _breakType)
override;
79 virtual void SAL_CALL
Select()
override;
84 virtual void SAL_CALL
setLanguageID( ::sal_Int32 _languageid )
override;
85 virtual css::uno::Any SAL_CALL
PageSetup()
override;
86 virtual ::sal_Int32 SAL_CALL
getStart()
override;
87 virtual void SAL_CALL
setStart( ::sal_Int32 _start )
override;
88 virtual ::sal_Int32 SAL_CALL
getEnd()
override;
89 virtual void SAL_CALL
setEnd( ::sal_Int32 _end )
override;
90 virtual sal_Bool SAL_CALL
InRange(
const css::uno::Reference< ::ooo::vba::word::XRange >&
Range )
override;
91 virtual css::uno::Any SAL_CALL
Revisions(
const css::uno::Any& aIndex )
override;
92 virtual css::uno::Any SAL_CALL
Sections(
const css::uno::Any& aIndex )
override;
93 virtual css::uno::Any SAL_CALL
Fields(
const css::uno::Any& aIndex )
override;
virtual ::sal_Int32 SAL_CALL getStart() override
void initialize(const css::uno::Reference< css::text::XTextRange > &rStart, const css::uno::Reference< css::text::XTextRange > &rEnd)
virtual void SAL_CALL setText(const OUString &rText) override
virtual css::uno::Any SAL_CALL Revisions(const css::uno::Any &aIndex) override
css::uno::Reference< css::text::XTextDocument > mxTextDocument
virtual css::uno::Any SAL_CALL getStyle() override
void setXTextCursor(const css::uno::Reference< css::text::XTextCursor > &xTextCursor)
virtual OUString SAL_CALL getText() override
The complexity in this method is because we need to workaround an issue that the last paragraph in a ...
virtual void SAL_CALL InsertParagraph() override
virtual void SAL_CALL setParagraphFormat(const css::uno::Reference< ooo::vba::word::XParagraphFormat > &rParagraphFormat) override
virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getXTextRange() override
virtual void SAL_CALL Select() override
virtual void SAL_CALL setStart(::sal_Int32 _start) override
virtual css::uno::Sequence< OUString > getServiceNames() override
SwVbaRange(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::text::XTextDocument > xTextDocument, const css::uno::Reference< css::text::XTextRange > &rStart, const css::uno::Reference< css::text::XTextRange > &rEnd, css::uno::Reference< css::text::XText > xText)
virtual void SAL_CALL setEnd(::sal_Int32 _end) override
virtual css::uno::Any SAL_CALL PageSetup() override
virtual ::sal_Int32 SAL_CALL getEnd() override
virtual css::uno::Reference< ooo::vba::word::XListFormat > SAL_CALL getListFormat() override
virtual OUString SAL_CALL getDefaultPropertyName() override
virtual css::uno::Reference< ooo::vba::word::XFind > SAL_CALL getFind() override
virtual css::uno::Any SAL_CALL Fields(const css::uno::Any &aIndex) override
SwVbaRange(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::text::XTextDocument > xTextDocument, const css::uno::Reference< css::text::XTextRange > &rStart)
virtual css::uno::Reference< ooo::vba::word::XParagraphFormat > SAL_CALL getParagraphFormat() override
const css::uno::Reference< css::text::XTextDocument > & getDocument() const
void GetStyleInfo(OUString &aStyleName, OUString &aStyleType)
virtual void SAL_CALL setLanguageID(::sal_Int32 _languageid) override
virtual OUString getServiceImplName() override
virtual void SAL_CALL InsertParagraphBefore() override
virtual sal_Bool SAL_CALL InRange(const css::uno::Reference< ::ooo::vba::word::XRange > &Range) override
const css::uno::Reference< css::text::XText > & getXText() const
css::uno::Reference< css::text::XText > mxText
virtual css::uno::Any SAL_CALL Sections(const css::uno::Any &aIndex) override
virtual void SAL_CALL InsertParagraphAfter() override
virtual ::sal_Int32 SAL_CALL getLanguageID() override
css::uno::Reference< css::text::XTextCursor > mxTextCursor
virtual void SAL_CALL setStyle(const css::uno::Any &_xStyle) override
virtual ~SwVbaRange() override
SwVbaRange(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::text::XTextDocument > xTextDocument, const css::uno::Reference< css::text::XTextRange > &rStart, const css::uno::Reference< css::text::XTextRange > &rEnd)
virtual void SAL_CALL InsertBreak(const css::uno::Any &_breakType) override
InheritedHelperInterfaceWeakImpl< ooo::vba::word::XRange > SwVbaRange_BASE