LibreOffice Module sw (master) 1
|
#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) |
Definition at line 26 of file vbarangehelper.hxx.
|
static |
css::uno::RuntimeException |
Definition at line 166 of file vbarangehelper.cxx.
References index.
Referenced by SwVbaRange::setText().
|
static |
css::uno::RuntimeException |
Definition at line 136 of file vbarangehelper.cxx.
Referenced by SwVbaRange::getEnd(), and SwVbaRange::getStart().
|
static |
get a range in a xText by creating a cursor that iterates over the text.
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.
xText | a text where a range position is searched |
position | a position inside o the text |
Definition at line 39 of file vbarangehelper.cxx.
References nPos.
Referenced by SwVbaDocument::Range(), SwVbaRange::setEnd(), and SwVbaRange::setStart().
|
static |
css::uno::RuntimeException | |
css::script::BasicErrorException |
Definition at line 92 of file vbarangehelper.cxx.
Referenced by SwVbaRange::initialize().
|
static |
css::uno::RuntimeException |
Definition at line 64 of file vbarangehelper.cxx.
References nIndex.
Referenced by SwVbaRange::setText().