LibreOffice Module sw (master)  1
Static Public Member Functions | List of all members
SwVbaRangeHelper Class Reference

#include <vbarangehelper.hxx>

Static Public Member Functions

static css::uno::Reference< css::text::XTextRange > getRangeByPosition (const css::uno::Reference< css::text::XText > &rText, sal_Int32 _position)
 get a range in a xText by creating a cursor that iterates over the text. More...
 
static void insertString (css::uno::Reference< css::text::XTextRange > const &rTextRange, css::uno::Reference< css::text::XText > const &rText, const OUString &rStr, bool _bAbsorb)
 
static css::uno::Reference< css::text::XTextCursor > initCursor (const css::uno::Reference< css::text::XTextRange > &rTextRange, const css::uno::Reference< css::text::XText > &rText)
 
static sal_Int32 getPosition (const css::uno::Reference< css::text::XText > &rText, const css::uno::Reference< css::text::XTextRange > &rTextRange)
 
static css::uno::Reference< css::text::XTextContent > findBookmarkByPosition (const css::uno::Reference< css::text::XTextDocument > &xTextDoc, const css::uno::Reference< css::text::XTextRange > &xTextRange)
 

Detailed Description

Definition at line 28 of file vbarangehelper.hxx.

Member Function Documentation

uno::Reference< text::XTextContent > SwVbaRangeHelper::findBookmarkByPosition ( const css::uno::Reference< css::text::XTextDocument > &  xTextDoc,
const css::uno::Reference< css::text::XTextRange > &  xTextRange 
)
static
Exceptions
css::uno::RuntimeException

Definition at line 165 of file vbarangehelper.cxx.

References index.

Referenced by SwVbaRange::setText().

sal_Int32 SwVbaRangeHelper::getPosition ( const css::uno::Reference< css::text::XText > &  rText,
const css::uno::Reference< css::text::XTextRange > &  rTextRange 
)
static
Exceptions
css::uno::RuntimeException

Definition at line 135 of file vbarangehelper.cxx.

Referenced by SwVbaRange::getEnd(), and SwVbaRange::getStart().

uno::Reference< text::XTextRange > SwVbaRangeHelper::getRangeByPosition ( const css::uno::Reference< css::text::XText > &  rText,
sal_Int32  _position 
)
static

get a range in a xText by creating a cursor that iterates over the text.

Exceptions
css::uno::RuntimeException

If the iterating cursor is equal to the desired position, the range equivalent is returned. Some special cases are tables that are inside of the text, because the position has to be adjusted.

Parameters
xTexta text where a range position is searched
positiona position inside o the text
Returns
a range for the position; null is returned if no range can be constructed.

Definition at line 38 of file vbarangehelper.cxx.

References nPos.

Referenced by SwVbaDocument::Range(), SwVbaRange::setEnd(), and SwVbaRange::setStart().

uno::Reference< text::XTextCursor > SwVbaRangeHelper::initCursor ( const css::uno::Reference< css::text::XTextRange > &  rTextRange,
const css::uno::Reference< css::text::XText > &  rText 
)
static
Exceptions
css::uno::RuntimeException
css::script::BasicErrorException

Definition at line 91 of file vbarangehelper.cxx.

Referenced by SwVbaRange::initialize().

void SwVbaRangeHelper::insertString ( css::uno::Reference< css::text::XTextRange > const &  rTextRange,
css::uno::Reference< css::text::XText > const &  rText,
const OUString &  rStr,
bool  _bAbsorb 
)
static
Exceptions
css::uno::RuntimeException

Definition at line 63 of file vbarangehelper.cxx.

Referenced by SwVbaRange::setText().


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