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, 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
 
- Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< 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, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
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 32 of file vbarange.hxx.

Constructor & Destructor Documentation

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

Definition at line 66 of file vbarange.cxx.

Member Function Documentation

uno::Any SAL_CALL SwVbaRange::Fields ( const css::uno::Any &  aIndex)
overridevirtual
const css::uno::Reference< css::text::XTextDocument >& SwVbaRange::getDocument ( ) const
inline

Definition at line 56 of file vbarange.hxx.

References mxTextDocument.

Referenced by SwVbaTables::Add().

sal_Int32 SAL_CALL SwVbaRange::getEnd ( )
override

Definition at line 354 of file vbarange.cxx.

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

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

Definition at line 312 of file vbarange.cxx.

References SwVbaStyle::getLanguageID(), and mxTextCursor.

uno::Reference< word::XListFormat > SAL_CALL SwVbaRange::getListFormat ( )
overridevirtual
uno::Reference< word::XParagraphFormat > SAL_CALL SwVbaRange::getParagraphFormat ( )
overridevirtual
OUString SwVbaRange::getServiceImplName ( )
overridevirtual
uno::Sequence< OUString > SwVbaRange::getServiceNames ( )
overridevirtual
sal_Int32 SAL_CALL SwVbaRange::getStart ( )
override

Definition at line 338 of file vbarange.cxx.

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

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

Definition at line 262 of file vbarange.cxx.

References ERRCODE_BASIC_INTERNAL_ERROR, and mxTextCursor.

Referenced by getStyle().

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 101 of file vbarange.cxx.

References mxTextCursor.

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

Definition at line 59 of file vbarange.hxx.

References mxText.

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

uno::Reference< text::XTextRange > SAL_CALL SwVbaRange::getXTextRange ( )
overridevirtual
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 70 of file vbarange.cxx.

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

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

Definition at line 369 of file vbarange.cxx.

References getXTextRange(), and mxTextCursor.

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

Definition at line 228 of file vbarange.cxx.

References InsertParagraphBefore(), and mxTextCursor.

void SAL_CALL SwVbaRange::InsertParagraphAfter ( )
overridevirtual

Definition at line 243 of file vbarange.cxx.

References mxText, and mxTextCursor.

void SAL_CALL SwVbaRange::InsertParagraphBefore ( )
overridevirtual

Definition at line 235 of file vbarange.cxx.

References mxText, and mxTextCursor.

Referenced by InsertParagraph().

uno::Any SAL_CALL SwVbaRange::PageSetup ( )
overridevirtual
uno::Any SAL_CALL SwVbaRange::Revisions ( const css::uno::Any &  aIndex)
overridevirtual
uno::Any SAL_CALL SwVbaRange::Sections ( const css::uno::Any &  aIndex)
overridevirtual
void SAL_CALL SwVbaRange::Select ( )
overridevirtual
void SAL_CALL SwVbaRange::setEnd ( ::sal_Int32  _end)
overridevirtual
void SAL_CALL SwVbaRange::setLanguageID ( ::sal_Int32  _languageid)
overridevirtual

Definition at line 318 of file vbarange.cxx.

References mxTextCursor, and SwVbaStyle::setLanguageID().

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

Definition at line 257 of file vbarange.cxx.

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

Definition at line 293 of file vbarange.cxx.

References mxTextCursor, and SwVbaStyle::setStyle().

void SAL_CALL SwVbaRange::setText ( const OUString &  rText)
overridevirtual
void SwVbaRange::setXTextCursor ( const css::uno::Reference< css::text::XTextCursor > &  xTextCursor)
inline

Definition at line 60 of file vbarange.hxx.

Referenced by SwVbaAutoTextEntry::Insert().

Member Data Documentation

css::uno::Reference< css::text::XText > SwVbaRange::mxText
private
css::uno::Reference< css::text::XTextCursor > SwVbaRange::mxTextCursor
private
css::uno::Reference< css::text::XTextDocument > SwVbaRange::mxTextDocument
private

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