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>
26 #include <com/sun/star/text/XTextRange.hpp>
27 #include <com/sun/star/text/XTextDocument.hpp>
28 #include <ooo/vba/word/XListFormat.hpp>
37 css::uno::Reference< css::text::XText >
mxText;
42 void initialize(
const css::uno::Reference< css::text::XTextRange >& rStart,
const css::uno::Reference< css::text::XTextRange >& rEnd );
44 void GetStyleInfo(OUString& aStyleName, OUString& aStyleType );
48 SwVbaRange(
const css::uno::Reference< ooo::vba::XHelperInterface >& rParent,
const css::uno::Reference< css::uno::XComponentContext >& rContext,
const css::uno::Reference< css::text::XTextDocument >& rTextDocument,
const css::uno::Reference< css::text::XTextRange >& rStart);
51 SwVbaRange(
const css::uno::Reference< ooo::vba::XHelperInterface >& rParent,
const css::uno::Reference< css::uno::XComponentContext >& rContext,
const css::uno::Reference< css::text::XTextDocument >& rTextDocument,
const css::uno::Reference< css::text::XTextRange >& rStart,
const css::uno::Reference< css::text::XTextRange >& rEnd );
54 SwVbaRange(
const css::uno::Reference< ooo::vba::XHelperInterface >& rParent,
const css::uno::Reference< css::uno::XComponentContext >& rContext,
const css::uno::Reference< css::text::XTextDocument >& rTextDocument,
const css::uno::Reference< css::text::XTextRange >& rStart,
const css::uno::Reference< css::text::XTextRange >& rEnd,
const css::uno::Reference< css::text::XText >& rText);
58 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getXTextRange()
override;
59 const css::uno::Reference< css::text::XText >&
getXText()
const {
return mxText; }
60 void setXTextCursor(
const css::uno::Reference< css::text::XTextCursor >& xTextCursor ) { mxTextCursor = xTextCursor; }
63 virtual OUString SAL_CALL
getText()
override;
64 virtual void SAL_CALL
setText(
const OUString& rText )
override;
65 virtual css::uno::Reference< ooo::vba::word::XParagraphFormat > SAL_CALL
getParagraphFormat()
override;
66 virtual void SAL_CALL
setParagraphFormat(
const css::uno::Reference< ooo::vba::word::XParagraphFormat >& rParagraphFormat )
override;
67 virtual css::uno::Any SAL_CALL
getStyle()
override;
68 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::XListFormat > SAL_CALL
getListFormat()
override;
73 virtual void SAL_CALL
InsertBreak(
const css::uno::Any& _breakType)
override;
74 virtual void SAL_CALL
Select()
override;
79 virtual void SAL_CALL
setLanguageID( ::sal_Int32 _languageid )
override;
80 virtual css::uno::Any SAL_CALL
PageSetup()
override;
81 virtual ::sal_Int32 SAL_CALL
getStart()
override;
82 virtual void SAL_CALL
setStart( ::sal_Int32 _start )
override;
83 virtual ::sal_Int32 SAL_CALL
getEnd()
override;
84 virtual void SAL_CALL
setEnd( ::sal_Int32 _end )
override;
85 virtual sal_Bool SAL_CALL
InRange(
const css::uno::Reference< ::ooo::vba::word::XRange >&
Range )
override;
86 virtual css::uno::Any SAL_CALL
Revisions(
const css::uno::Any& aIndex )
override;
87 virtual css::uno::Any SAL_CALL
Sections(
const css::uno::Any& aIndex )
override;
88 virtual css::uno::Any SAL_CALL
Fields(
const css::uno::Any& aIndex )
override;
94 #endif // INCLUDED_SW_SOURCE_UI_VBA_VBARANGE_HXX
virtual sal_Bool SAL_CALL InRange(const css::uno::Reference< ::ooo::vba::word::XRange > &Range) override
virtual void SAL_CALL setText(const OUString &rText) override
virtual css::uno::Any SAL_CALL Revisions(const css::uno::Any &aIndex) override
virtual css::uno::Any SAL_CALL getStyle() override
virtual void SAL_CALL setLanguageID(::sal_Int32 _languageid) override
virtual ::sal_Int32 SAL_CALL getStart() override
css::uno::Reference< css::text::XTextDocument > mxTextDocument
const css::uno::Reference< css::text::XText > & getXText() const
virtual css::uno::Reference< ooo::vba::word::XParagraphFormat > SAL_CALL getParagraphFormat() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getXTextRange() override
virtual ~SwVbaRange() override
virtual css::uno::Reference< ooo::vba::word::XListFormat > SAL_CALL getListFormat() override
virtual ::sal_Int32 SAL_CALL getEnd() override
virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() override
void setXTextCursor(const css::uno::Reference< css::text::XTextCursor > &xTextCursor)
virtual void SAL_CALL Select() override
void GetStyleInfo(OUString &aStyleName, OUString &aStyleType)
virtual css::uno::Any SAL_CALL PageSetup() override
virtual void SAL_CALL InsertParagraphAfter() override
virtual css::uno::Any SAL_CALL Fields(const css::uno::Any &aIndex) override
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 ::sal_Int32 SAL_CALL getLanguageID() override
virtual void SAL_CALL setStart(::sal_Int32 _start) override
virtual void SAL_CALL InsertParagraph() override
css::uno::Reference< css::text::XTextCursor > mxTextCursor
virtual OUString getServiceImplName() override
const css::uno::Reference< css::text::XTextDocument > & getDocument() const
SwVbaRange(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, const css::uno::Reference< css::text::XTextDocument > &rTextDocument, const css::uno::Reference< css::text::XTextRange > &rStart)
InheritedHelperInterfaceWeakImpl< ooo::vba::word::XRange > SwVbaRange_BASE
virtual css::uno::Any SAL_CALL Sections(const css::uno::Any &aIndex) override
void initialize(const css::uno::Reference< css::text::XTextRange > &rStart, const css::uno::Reference< css::text::XTextRange > &rEnd)
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual void SAL_CALL setEnd(::sal_Int32 _end) override
css::uno::Reference< css::text::XText > mxText
virtual void SAL_CALL setParagraphFormat(const css::uno::Reference< ooo::vba::word::XParagraphFormat > &rParagraphFormat) override
virtual void SAL_CALL setStyle(const css::uno::Any &_xStyle) override
virtual void SAL_CALL InsertBreak(const css::uno::Any &_breakType) override
virtual void SAL_CALL InsertParagraphBefore() override