LibreOffice Module sw (master) 1
|
#include <vbarange.hxx>
Public Member Functions | |
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) | |
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) | |
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) | |
virtual | ~SwVbaRange () override |
const css::uno::Reference< css::text::XTextDocument > & | getDocument () const |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | getXTextRange () override |
const css::uno::Reference< css::text::XText > & | getXText () const |
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 document does not have a trailing CRLF. More... | |
virtual void SAL_CALL | setText (const OUString &rText) override |
virtual css::uno::Reference< ooo::vba::word::XParagraphFormat > SAL_CALL | getParagraphFormat () override |
virtual void SAL_CALL | setParagraphFormat (const css::uno::Reference< ooo::vba::word::XParagraphFormat > &rParagraphFormat) override |
virtual css::uno::Any SAL_CALL | getStyle () override |
virtual void SAL_CALL | setStyle (const css::uno::Any &_xStyle) override |
virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL | getFont () override |
virtual css::uno::Reference< ooo::vba::word::XListFormat > SAL_CALL | getListFormat () override |
virtual void SAL_CALL | InsertBreak (const css::uno::Any &_breakType) override |
virtual void SAL_CALL | Select () override |
virtual void SAL_CALL | InsertParagraph () override |
virtual void SAL_CALL | InsertParagraphBefore () override |
virtual void SAL_CALL | InsertParagraphAfter () override |
virtual ::sal_Int32 SAL_CALL | getLanguageID () override |
virtual void SAL_CALL | setLanguageID (::sal_Int32 _languageid) override |
virtual css::uno::Any SAL_CALL | PageSetup () override |
virtual ::sal_Int32 SAL_CALL | getStart () override |
virtual void SAL_CALL | setStart (::sal_Int32 _start) override |
virtual ::sal_Int32 SAL_CALL | getEnd () override |
virtual void SAL_CALL | setEnd (::sal_Int32 _end) override |
virtual sal_Bool SAL_CALL | InRange (const css::uno::Reference< ::ooo::vba::word::XRange > &Range) override |
virtual css::uno::Any SAL_CALL | Revisions (const css::uno::Any &aIndex) override |
virtual css::uno::Any SAL_CALL | Sections (const css::uno::Any &aIndex) override |
virtual css::uno::Any SAL_CALL | Fields (const css::uno::Any &aIndex) override |
virtual OUString | getServiceImplName () override |
virtual css::uno::Sequence< OUString > | getServiceNames () override |
![]() | |
InheritedHelperInterfaceWeakImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
![]() | |
InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, css::uno::Reference< css::uno::XComponentContext > xContext) | |
virtual OUString | getServiceImplName ()=0 |
virtual css::uno::Sequence< OUString > | getServiceNames ()=0 |
virtual ::sal_Int32 SAL_CALL | getCreator () override |
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL | getParent () override |
virtual css::uno::Any SAL_CALL | Application () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Private Member Functions | |
void | initialize (const css::uno::Reference< css::text::XTextRange > &rStart, const css::uno::Reference< css::text::XTextRange > &rEnd) |
void | GetStyleInfo (OUString &aStyleName, OUString &aStyleType) |
Private Attributes | |
css::uno::Reference< css::text::XTextDocument > | mxTextDocument |
css::uno::Reference< css::text::XTextCursor > | mxTextCursor |
css::uno::Reference< css::text::XText > | mxText |
Additional Inherited Members | |
![]() | |
css::uno::WeakReference< ov::XHelperInterface > | mxParent |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
Definition at line 32 of file vbarange.hxx.
SwVbaRange::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 | ||
) |
css::script::BasicErrorException | |
css::uno::RuntimeException |
SwVbaRange::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 | ||
) |
css::script::BasicErrorException | |
css::uno::RuntimeException |
SwVbaRange::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 | ||
) |
css::script::BasicErrorException | |
css::uno::RuntimeException |
|
overridevirtual |
Definition at line 60 of file vbarange.cxx.
|
overridevirtual |
Definition at line 398 of file vbarange.cxx.
References index, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent, mxTextDocument, and xModel.
|
inline |
Definition at line 56 of file vbarange.hxx.
References mxTextDocument.
Referenced by SwVbaTables::Add().
|
override |
Definition at line 348 of file vbarange.cxx.
References SwVbaRangeHelper::getPosition(), mxTextCursor, and mxTextDocument.
|
overridevirtual |
Definition at line 294 of file vbarange.cxx.
References VbaPalette::getPalette(), getXTextRange(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent.
|
override |
Definition at line 306 of file vbarange.cxx.
References SwVbaStyle::getLanguageID(), and mxTextCursor.
|
overridevirtual |
Definition at line 301 of file vbarange.cxx.
References getXTextRange(), and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext.
|
overridevirtual |
Definition at line 244 of file vbarange.cxx.
References InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, and mxTextCursor.
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 409 of file vbarange.cxx.
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 415 of file vbarange.cxx.
References aServiceNames.
|
override |
Definition at line 332 of file vbarange.cxx.
References SwVbaRangeHelper::getPosition(), mxTextCursor, and mxTextDocument.
|
overridevirtual |
Definition at line 274 of file vbarange.cxx.
References GetStyleInfo(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxTextDocument, and xModel.
|
private |
css::uno::RuntimeException |
Definition at line 256 of file vbarange.cxx.
References ERRCODE_BASIC_INTERNAL_ERROR, and mxTextCursor.
Referenced by getStyle().
|
overridevirtual |
The complexity in this method is because we need to workaround an issue that the last paragraph in a document does not have a trailing CRLF.
Definition at line 95 of file vbarange.cxx.
References mxTextCursor.
|
inline |
Definition at line 59 of file vbarange.hxx.
References mxText.
Referenced by SwVbaTablesOfContents::Add(), and SwVbaAutoTextEntry::Insert().
|
overridevirtual |
Definition at line 83 of file vbarange.cxx.
References mxTextCursor.
Referenced by SwVbaTables::Add(), SwVbaFields::Add(), SwVbaTablesOfContents::Add(), SwVbaBookmarks::Add(), getFont(), getListFormat(), InRange(), SwVbaAutoTextEntry::Insert(), Revisions(), and Sections().
|
private |
css::script::BasicErrorException | |
css::uno::RuntimeException |
Definition at line 64 of file vbarange.cxx.
References SwVbaRangeHelper::initCursor(), mxText, mxTextCursor, and mxTextDocument.
|
overridevirtual |
Definition at line 363 of file vbarange.cxx.
References getXTextRange(), and mxTextCursor.
|
overridevirtual |
Definition at line 169 of file vbarange.cxx.
References ERRCODE_BASIC_BAD_PARAMETER, ERRCODE_BASIC_NOT_IMPLEMENTED, uno::Any::hasValue(), and mxTextCursor.
|
overridevirtual |
Definition at line 222 of file vbarange.cxx.
References InsertParagraphBefore(), and mxTextCursor.
|
overridevirtual |
Definition at line 237 of file vbarange.cxx.
References mxText, and mxTextCursor.
|
overridevirtual |
Definition at line 229 of file vbarange.cxx.
References mxText, and mxTextCursor.
Referenced by InsertParagraph().
|
overridevirtual |
Definition at line 319 of file vbarange.cxx.
References InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxTextCursor, mxTextDocument, and xModel.
|
overridevirtual |
Definition at line 376 of file vbarange.cxx.
References getXTextRange(), index, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent, mxTextDocument, and xModel.
|
overridevirtual |
Definition at line 387 of file vbarange.cxx.
References getXTextRange(), index, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent, mxTextDocument, and xModel.
|
overridevirtual |
Definition at line 213 of file vbarange.cxx.
References ooo::vba::word::getXTextViewCursor(), mxTextCursor, mxTextDocument, and xModel.
|
overridevirtual |
Definition at line 354 of file vbarange.cxx.
References SwVbaRangeHelper::getRangeByPosition(), mxTextCursor, and mxTextDocument.
|
overridevirtual |
Definition at line 312 of file vbarange.cxx.
References mxTextCursor, and SwVbaStyle::setLanguageID().
|
overridevirtual |
Definition at line 251 of file vbarange.cxx.
|
overridevirtual |
Definition at line 338 of file vbarange.cxx.
References SwVbaRangeHelper::getRangeByPosition(), mxTextCursor, and mxTextDocument.
|
overridevirtual |
Definition at line 287 of file vbarange.cxx.
References mxTextCursor, and SwVbaStyle::setStyle().
|
overridevirtual |
Definition at line 124 of file vbarange.cxx.
References SwVbaBookmarks::addBookmarkByName(), SwVbaRangeHelper::findBookmarkByPosition(), SwVbaRangeHelper::insertString(), mxText, mxTextCursor, mxTextDocument, sName, and xModel.
|
inline |
Definition at line 60 of file vbarange.hxx.
References mxTextCursor.
Referenced by SwVbaAutoTextEntry::Insert().
|
private |
Definition at line 37 of file vbarange.hxx.
Referenced by getXText(), initialize(), InsertParagraphAfter(), InsertParagraphBefore(), and setText().
|
private |
Definition at line 36 of file vbarange.hxx.
Referenced by getEnd(), getLanguageID(), getParagraphFormat(), getStart(), GetStyleInfo(), getText(), getXTextRange(), initialize(), InRange(), InsertBreak(), InsertParagraph(), InsertParagraphAfter(), InsertParagraphBefore(), PageSetup(), Select(), setEnd(), setLanguageID(), setStart(), setStyle(), setText(), and setXTextCursor().
|
private |
Definition at line 35 of file vbarange.hxx.
Referenced by Fields(), getDocument(), getEnd(), getStart(), getStyle(), initialize(), PageSetup(), Revisions(), Sections(), Select(), setEnd(), setStart(), and setText().