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, css::uno::Reference< css::text::XTextDocument > xTextDocument, 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, css::uno::Reference< css::text::XTextDocument > xTextDocument, 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, 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 | ~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::XFind > SAL_CALL | getFind () override |
virtual css::uno::Reference< ooo::vba::word::XListFormat > SAL_CALL | getListFormat () override |
virtual OUString SAL_CALL | getDefaultPropertyName () 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 |
Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< typename... Ifc > | |
InheritedHelperInterfaceWeakImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
Public Member Functions inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > > | |
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 | |
Protected Attributes inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > > | |
css::uno::WeakReference< ov::XHelperInterface > | mxParent |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
Definition at line 33 of file vbarange.hxx.
SwVbaRange::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 | ||
) |
css::script::BasicErrorException | |
css::uno::RuntimeException |
SwVbaRange::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::script::BasicErrorException | |
css::uno::RuntimeException |
SwVbaRange::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 | ||
) |
css::script::BasicErrorException | |
css::uno::RuntimeException |
|
overridevirtual |
Definition at line 62 of file vbarange.cxx.
|
overridevirtual |
Definition at line 408 of file vbarange.cxx.
References index, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent, mxTextDocument, and xModel.
|
inlineoverridevirtual |
Definition at line 75 of file vbarange.hxx.
|
inline |
Definition at line 57 of file vbarange.hxx.
References mxTextDocument.
Referenced by SwVbaTables::Add().
|
override |
Definition at line 358 of file vbarange.cxx.
References SwVbaRangeHelper::getPosition(), mxTextCursor, and mxTextDocument.
|
overridevirtual |
Definition at line 303 of file vbarange.cxx.
References SwVbaFind::GetOrCreateFind(), getXTextRange(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxTextDocument, and xModel.
|
overridevirtual |
Definition at line 296 of file vbarange.cxx.
References VbaPalette::getPalette(), getXTextRange(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent.
|
override |
Definition at line 316 of file vbarange.cxx.
References SwVbaStyle::getLanguageID(), and mxTextCursor.
|
overridevirtual |
Definition at line 311 of file vbarange.cxx.
References getXTextRange(), and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext.
|
overridevirtual |
Definition at line 246 of file vbarange.cxx.
References InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, and mxTextCursor.
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 419 of file vbarange.cxx.
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 425 of file vbarange.cxx.
References aServiceNames.
|
override |
Definition at line 342 of file vbarange.cxx.
References SwVbaRangeHelper::getPosition(), mxTextCursor, and mxTextDocument.
|
overridevirtual |
Definition at line 276 of file vbarange.cxx.
References GetStyleInfo(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxTextDocument, and xModel.
|
private |
css::uno::RuntimeException |
Definition at line 258 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 97 of file vbarange.cxx.
References mxTextCursor.
|
inline |
Definition at line 60 of file vbarange.hxx.
References mxText.
Referenced by SwVbaTablesOfContents::Add(), and SwVbaAutoTextEntry::Insert().
|
overridevirtual |
Definition at line 85 of file vbarange.cxx.
References mxTextCursor.
Referenced by SwVbaTables::Add(), SwVbaFields::Add(), SwVbaTablesOfContents::Add(), SwVbaBookmarks::Add(), getFind(), getFont(), getListFormat(), InRange(), SwVbaAutoTextEntry::Insert(), Revisions(), and Sections().
|
private |
css::script::BasicErrorException | |
css::uno::RuntimeException |
Definition at line 66 of file vbarange.cxx.
References SwVbaRangeHelper::initCursor(), mxText, mxTextCursor, and mxTextDocument.
|
overridevirtual |
Definition at line 373 of file vbarange.cxx.
References getXTextRange(), and mxTextCursor.
|
overridevirtual |
Definition at line 171 of file vbarange.cxx.
References ERRCODE_BASIC_BAD_PARAMETER, ERRCODE_BASIC_NOT_IMPLEMENTED, uno::Any::hasValue(), and mxTextCursor.
|
overridevirtual |
Definition at line 224 of file vbarange.cxx.
References InsertParagraphBefore(), and mxTextCursor.
|
overridevirtual |
Definition at line 239 of file vbarange.cxx.
References mxText, and mxTextCursor.
|
overridevirtual |
Definition at line 231 of file vbarange.cxx.
References mxText, and mxTextCursor.
Referenced by InsertParagraph().
|
overridevirtual |
Definition at line 329 of file vbarange.cxx.
References InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxTextCursor, mxTextDocument, and xModel.
|
overridevirtual |
Definition at line 386 of file vbarange.cxx.
References getXTextRange(), index, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent, mxTextDocument, and xModel.
|
overridevirtual |
Definition at line 397 of file vbarange.cxx.
References getXTextRange(), index, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent, mxTextDocument, and xModel.
|
overridevirtual |
Definition at line 215 of file vbarange.cxx.
References ooo::vba::word::getXTextViewCursor(), mxTextCursor, mxTextDocument, and xModel.
|
overridevirtual |
Definition at line 364 of file vbarange.cxx.
References SwVbaRangeHelper::getRangeByPosition(), mxTextCursor, and mxTextDocument.
|
overridevirtual |
Definition at line 322 of file vbarange.cxx.
References mxTextCursor, and SwVbaStyle::setLanguageID().
|
overridevirtual |
Definition at line 253 of file vbarange.cxx.
|
overridevirtual |
Definition at line 348 of file vbarange.cxx.
References SwVbaRangeHelper::getRangeByPosition(), mxTextCursor, and mxTextDocument.
|
overridevirtual |
Definition at line 289 of file vbarange.cxx.
References mxTextCursor, and SwVbaStyle::setStyle().
|
overridevirtual |
Definition at line 126 of file vbarange.cxx.
References SwVbaBookmarks::addBookmarkByName(), SwVbaRangeHelper::findBookmarkByPosition(), SwVbaRangeHelper::insertString(), mxText, mxTextCursor, mxTextDocument, sName, and xModel.
|
inline |
Definition at line 61 of file vbarange.hxx.
References mxTextCursor.
Referenced by SwVbaAutoTextEntry::Insert().
|
private |
Definition at line 38 of file vbarange.hxx.
Referenced by getXText(), initialize(), InsertParagraphAfter(), InsertParagraphBefore(), and setText().
|
private |
Definition at line 37 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 36 of file vbarange.hxx.
Referenced by Fields(), getDocument(), getEnd(), getFind(), getStart(), getStyle(), initialize(), PageSetup(), Revisions(), Sections(), Select(), setEnd(), setStart(), and setText().