LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwVbaRange Class Reference

#include <vbarange.hxx>

Inheritance diagram for SwVbaRange:
[legend]
Collaboration diagram for SwVbaRange:
[legend]

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
 

Detailed Description

Definition at line 33 of file vbarange.hxx.

Constructor & Destructor Documentation

◆ SwVbaRange() [1/3]

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 
)
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

◆ SwVbaRange() [2/3]

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 
)
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

◆ SwVbaRange() [3/3]

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 
)
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

◆ ~SwVbaRange()

SwVbaRange::~SwVbaRange ( )
overridevirtual

Definition at line 62 of file vbarange.cxx.

Member Function Documentation

◆ Fields()

uno::Any SAL_CALL SwVbaRange::Fields ( const css::uno::Any &  aIndex)
overridevirtual

◆ getDefaultPropertyName()

virtual OUString SAL_CALL SwVbaRange::getDefaultPropertyName ( )
inlineoverridevirtual

Definition at line 75 of file vbarange.hxx.

◆ getDocument()

const css::uno::Reference< css::text::XTextDocument > & SwVbaRange::getDocument ( ) const
inline

Definition at line 57 of file vbarange.hxx.

References mxTextDocument.

Referenced by SwVbaTables::Add().

◆ getEnd()

sal_Int32 SAL_CALL SwVbaRange::getEnd ( )
override

Definition at line 358 of file vbarange.cxx.

References SwVbaRangeHelper::getPosition(), mxTextCursor, and mxTextDocument.

◆ getFind()

uno::Reference< word::XFind > SAL_CALL SwVbaRange::getFind ( )
overridevirtual

◆ getFont()

uno::Reference< word::XFont > SAL_CALL SwVbaRange::getFont ( )
overridevirtual

◆ getLanguageID()

sal_Int32 SAL_CALL SwVbaRange::getLanguageID ( )
override

Definition at line 316 of file vbarange.cxx.

References SwVbaStyle::getLanguageID(), and mxTextCursor.

◆ getListFormat()

uno::Reference< word::XListFormat > SAL_CALL SwVbaRange::getListFormat ( )
overridevirtual

◆ getParagraphFormat()

uno::Reference< word::XParagraphFormat > SAL_CALL SwVbaRange::getParagraphFormat ( )
overridevirtual

◆ getServiceImplName()

OUString SwVbaRange::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

uno::Sequence< OUString > SwVbaRange::getServiceNames ( )
overridevirtual

◆ getStart()

sal_Int32 SAL_CALL SwVbaRange::getStart ( )
override

Definition at line 342 of file vbarange.cxx.

References SwVbaRangeHelper::getPosition(), mxTextCursor, and mxTextDocument.

◆ getStyle()

uno::Any SAL_CALL SwVbaRange::getStyle ( )
overridevirtual

◆ GetStyleInfo()

void SwVbaRange::GetStyleInfo ( OUString &  aStyleName,
OUString &  aStyleType 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 258 of file vbarange.cxx.

References ERRCODE_BASIC_INTERNAL_ERROR, and mxTextCursor.

Referenced by getStyle().

◆ getText()

OUString SAL_CALL SwVbaRange::getText ( )
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.

Returns

Definition at line 97 of file vbarange.cxx.

References mxTextCursor.

◆ getXText()

const css::uno::Reference< css::text::XText > & SwVbaRange::getXText ( ) const
inline

Definition at line 60 of file vbarange.hxx.

References mxText.

Referenced by SwVbaTablesOfContents::Add(), and SwVbaAutoTextEntry::Insert().

◆ getXTextRange()

uno::Reference< text::XTextRange > SAL_CALL SwVbaRange::getXTextRange ( )
overridevirtual

◆ initialize()

void SwVbaRange::initialize ( const css::uno::Reference< css::text::XTextRange > &  rStart,
const css::uno::Reference< css::text::XTextRange > &  rEnd 
)
private
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 66 of file vbarange.cxx.

References SwVbaRangeHelper::initCursor(), mxText, mxTextCursor, and mxTextDocument.

◆ InRange()

sal_Bool SAL_CALL SwVbaRange::InRange ( const css::uno::Reference< ::ooo::vba::word::XRange > &  Range)
overridevirtual

Definition at line 373 of file vbarange.cxx.

References getXTextRange(), and mxTextCursor.

◆ InsertBreak()

void SAL_CALL SwVbaRange::InsertBreak ( const css::uno::Any &  _breakType)
overridevirtual

◆ InsertParagraph()

void SAL_CALL SwVbaRange::InsertParagraph ( )
overridevirtual

Definition at line 224 of file vbarange.cxx.

References InsertParagraphBefore(), and mxTextCursor.

◆ InsertParagraphAfter()

void SAL_CALL SwVbaRange::InsertParagraphAfter ( )
overridevirtual

Definition at line 239 of file vbarange.cxx.

References mxText, and mxTextCursor.

◆ InsertParagraphBefore()

void SAL_CALL SwVbaRange::InsertParagraphBefore ( )
overridevirtual

Definition at line 231 of file vbarange.cxx.

References mxText, and mxTextCursor.

Referenced by InsertParagraph().

◆ PageSetup()

uno::Any SAL_CALL SwVbaRange::PageSetup ( )
overridevirtual

◆ Revisions()

uno::Any SAL_CALL SwVbaRange::Revisions ( const css::uno::Any &  aIndex)
overridevirtual

◆ Sections()

uno::Any SAL_CALL SwVbaRange::Sections ( const css::uno::Any &  aIndex)
overridevirtual

◆ Select()

void SAL_CALL SwVbaRange::Select ( )
overridevirtual

◆ setEnd()

void SAL_CALL SwVbaRange::setEnd ( ::sal_Int32  _end)
overridevirtual

◆ setLanguageID()

void SAL_CALL SwVbaRange::setLanguageID ( ::sal_Int32  _languageid)
overridevirtual

Definition at line 322 of file vbarange.cxx.

References mxTextCursor, and SwVbaStyle::setLanguageID().

◆ setParagraphFormat()

void SAL_CALL SwVbaRange::setParagraphFormat ( const css::uno::Reference< ooo::vba::word::XParagraphFormat > &  rParagraphFormat)
overridevirtual

Definition at line 253 of file vbarange.cxx.

◆ setStart()

void SAL_CALL SwVbaRange::setStart ( ::sal_Int32  _start)
overridevirtual

◆ setStyle()

void SAL_CALL SwVbaRange::setStyle ( const css::uno::Any &  _xStyle)
overridevirtual

Definition at line 289 of file vbarange.cxx.

References mxTextCursor, and SwVbaStyle::setStyle().

◆ setText()

void SAL_CALL SwVbaRange::setText ( const OUString &  rText)
overridevirtual

◆ setXTextCursor()

void SwVbaRange::setXTextCursor ( const css::uno::Reference< css::text::XTextCursor > &  xTextCursor)
inline

Definition at line 61 of file vbarange.hxx.

References mxTextCursor.

Referenced by SwVbaAutoTextEntry::Insert().

Member Data Documentation

◆ mxText

css::uno::Reference< css::text::XText > SwVbaRange::mxText
private

◆ mxTextCursor

css::uno::Reference< css::text::XTextCursor > SwVbaRange::mxTextCursor
private

◆ mxTextDocument

css::uno::Reference< css::text::XTextDocument > SwVbaRange::mxTextDocument
private

The documentation for this class was generated from the following files: