LibreOffice Module sw (master) 1
|
#include <vbaselection.hxx>
Public Member Functions | |
SwVbaSelection (const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::frame::XModel > xModel) | |
virtual | ~SwVbaSelection () override |
virtual OUString SAL_CALL | getText () override |
virtual void SAL_CALL | setText (const OUString &rText) override |
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL | getRange () override |
virtual void SAL_CALL | HomeKey (const css::uno::Any &_unit, const css::uno::Any &_extend) override |
virtual void SAL_CALL | EndKey (const css::uno::Any &_unit, const css::uno::Any &_extend) override |
virtual void SAL_CALL | TypeText (const OUString &rText) override |
virtual void SAL_CALL | Delete (const css::uno::Any &_unit, const css::uno::Any &_count) override |
virtual void SAL_CALL | MoveRight (const css::uno::Any &_unit, const css::uno::Any &_count, const css::uno::Any &_extend) override |
virtual void SAL_CALL | MoveLeft (const css::uno::Any &_unit, const css::uno::Any &_count, const css::uno::Any &_extend) override |
virtual void SAL_CALL | MoveDown (const css::uno::Any &_unit, const css::uno::Any &_count, const css::uno::Any &_extend) override |
virtual void SAL_CALL | MoveUp (const css::uno::Any &_unit, const css::uno::Any &_count, const css::uno::Any &_extend) override |
virtual void SAL_CALL | TypeParagraph () override |
virtual void SAL_CALL | InsertParagraph () override |
virtual void SAL_CALL | InsertParagraphBefore () override |
virtual void SAL_CALL | InsertParagraphAfter () 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::Reference< ooo::vba::word::XFind > SAL_CALL | getFind () 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 void SAL_CALL | TypeBackspace () override |
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL | GoTo (const css::uno::Any &_what, const css::uno::Any &_which, const css::uno::Any &_count, const css::uno::Any &_name) override |
virtual ::sal_Int32 SAL_CALL | getLanguageID () override |
virtual void SAL_CALL | setLanguageID (::sal_Int32 _languageid) override |
virtual css::uno::Any SAL_CALL | Information (sal_Int32 _type) override |
virtual void SAL_CALL | InsertBreak (const css::uno::Any &_breakType) override |
virtual css::uno::Any SAL_CALL | Tables (const css::uno::Any &aIndex) override |
virtual css::uno::Any SAL_CALL | Fields (const css::uno::Any &aIndex) override |
virtual css::uno::Reference< ooo::vba::word::XHeaderFooter > SAL_CALL | getHeaderFooter () override |
virtual css::uno::Any SAL_CALL | ShapeRange () 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 void SAL_CALL | SelectRow () override |
virtual void SAL_CALL | SelectColumn () override |
virtual css::uno::Any SAL_CALL | Rows (const css::uno::Any &aIndex) override |
virtual css::uno::Any SAL_CALL | Columns (const css::uno::Any &aIndex) override |
virtual css::uno::Any SAL_CALL | Cells (const css::uno::Any &aIndex) override |
virtual void SAL_CALL | Copy () override |
virtual void SAL_CALL | CopyAsPicture () override |
virtual void SAL_CALL | Paste () override |
virtual void SAL_CALL | Collapse (const css::uno::Any &Direction) override |
virtual void SAL_CALL | WholeStory () override |
virtual sal_Bool SAL_CALL | InRange (const css::uno::Reference< ::ooo::vba::word::XRange > &Range) override |
virtual void SAL_CALL | SplitTable () override |
virtual css::uno::Any SAL_CALL | Paragraphs (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 | Move (const css::uno::Any &_unit, const css::uno::Any &_count, const css::uno::Any &_extend, ooo::vba::word::E_DIRECTION eDirection) |
void | NextCell (sal_Int32 nCount, ooo::vba::word::E_DIRECTION eDirection) |
css::uno::Reference< css::text::XTextRange > | GetSelectedRange () |
void | GetSelectedCellRange (OUString &sTLName, OUString &sBRName) |
css::uno::Reference< css::text::XTextTable > | GetXTextTable () const |
bool | IsInTable () const |
bool | HasSelection () |
Private Attributes | |
css::uno::Reference< css::frame::XModel > | mxModel |
css::uno::Reference< css::text::XTextViewCursor > | mxTextViewCursor |
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 35 of file vbaselection.hxx.
SwVbaSelection::SwVbaSelection | ( | const css::uno::Reference< ooo::vba::XHelperInterface > & | rParent, |
const css::uno::Reference< css::uno::XComponentContext > & | rContext, | ||
css::uno::Reference< css::frame::XModel > | xModel | ||
) |
css::uno::RuntimeException |
Definition at line 70 of file vbaselection.cxx.
References ooo::vba::word::getXTextViewCursor(), mxModel, mxModel, mxTextViewCursor, and xModel.
|
overridevirtual |
Definition at line 75 of file vbaselection.cxx.
|
overridevirtual |
Definition at line 1005 of file vbaselection.cxx.
References GetSelectedCellRange(), SwVbaTableHelper::getTabColIndex(), SwVbaTableHelper::getTabRowIndex(), GetXTextTable(), index, and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext.
|
overridevirtual |
Definition at line 1052 of file vbaselection.cxx.
References Direction, ooo::vba::word::getXTextViewCursor(), ooo::vba::word::gotoSelectedObjectAnchor(), mxModel, and mxTextViewCursor.
|
overridevirtual |
Definition at line 925 of file vbaselection.cxx.
References GetSelectedCellRange(), SwVbaTableHelper::getTabColIndex(), GetXTextTable(), index, and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext.
Referenced by SelectColumn().
|
overridevirtual |
Definition at line 1036 of file vbaselection.cxx.
References dispatchRequests(), and mxModel.
Referenced by CopyAsPicture().
|
overridevirtual |
Definition at line 1041 of file vbaselection.cxx.
References Copy().
|
overridevirtual |
Definition at line 196 of file vbaselection.cxx.
References dispatchRequests(), HasSelection(), uno::Any::hasValue(), mxModel, mxTextViewCursor, and nCount.
|
overridevirtual |
Definition at line 161 of file vbaselection.cxx.
References ooo::vba::word::getCurrentXText(), ooo::vba::word::gotoSelectedObjectAnchor(), mxModel, and mxTextViewCursor.
|
overridevirtual |
Definition at line 824 of file vbaselection.cxx.
References index, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent.
|
override |
Definition at line 877 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 520 of file vbaselection.cxx.
References SwVbaFind::GetOrCreateFind(), GetSelectedRange(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, n, and WholeStory().
|
overridevirtual |
Definition at line 549 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 833 of file vbaselection.cxx.
References ooo::vba::word::getCurrentPageStyle(), HeaderFooterHelper::isEvenPagesFooter(), HeaderFooterHelper::isEvenPagesHeader(), HeaderFooterHelper::isFirstPageFooter(), HeaderFooterHelper::isFirstPageHeader(), HeaderFooterHelper::isHeader(), HeaderFooterHelper::isHeaderFooter(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, and nIndex.
|
override |
Definition at line 664 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 508 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 99 of file vbaselection.cxx.
References GetSelectedRange(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, and mxTextViewCursor.
Referenced by getEnd(), getFont(), getLanguageID(), getParagraphFormat(), getStart(), getStyle(), getText(), GoTo(), InRange(), InsertBreak(), InsertParagraph(), InsertParagraphAfter(), InsertParagraphBefore(), setEnd(), setLanguageID(), setParagraphFormat(), setStart(), and setText().
|
private |
css::uno::RuntimeException |
Definition at line 973 of file vbaselection.cxx.
References mxModel, and mxTextViewCursor.
|
private |
css::uno::RuntimeException |
Definition at line 79 of file vbaselection.cxx.
References mxModel.
Referenced by getFind(), getRange(), and Move().
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 1154 of file vbaselection.cxx.
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 1160 of file vbaselection.cxx.
References aServiceNames.
|
override |
Definition at line 868 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 536 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 107 of file vbaselection.cxx.
References getRange().
|
private |
css::uno::RuntimeException |
Definition at line 951 of file vbaselection.cxx.
References mxTextViewCursor.
Referenced by Cells(), Columns(), IsInTable(), and Rows().
|
overridevirtual |
Definition at line 560 of file vbaselection.cxx.
References InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::Application(), ERRCODE_BASIC_BAD_ARGUMENT, ooo::vba::word::getPageCount(), getRange(), uno::Any::hasValue(), mxModel, mxTextViewCursor, nCount, and sName.
|
private |
css::uno::RuntimeException |
Definition at line 965 of file vbaselection.cxx.
References mxTextViewCursor.
Referenced by Delete().
|
overridevirtual |
Definition at line 126 of file vbaselection.cxx.
References ooo::vba::word::getCurrentXText(), ooo::vba::word::getFirstObjectPosition(), ooo::vba::word::gotoSelectedObjectAnchor(), mxModel, and mxTextViewCursor.
|
overridevirtual |
Definition at line 674 of file vbaselection.cxx.
References SwVbaInformationHelper::handleWdActiveEndPageNumber(), SwVbaInformationHelper::handleWdNumberOfPagesInDocument(), SwVbaInformationHelper::handleWdVerticalPositionRelativeToPage(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, mxTextViewCursor, and result.
|
overridevirtual |
Definition at line 1105 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 773 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 489 of file vbaselection.cxx.
References getRange().
Referenced by TypeParagraph().
|
overridevirtual |
Definition at line 502 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 496 of file vbaselection.cxx.
References getRange().
|
private |
css::uno::RuntimeException |
Definition at line 959 of file vbaselection.cxx.
References GetXTextTable().
Referenced by SplitTable().
|
private |
css::script::BasicErrorException | |
css::uno::RuntimeException |
Definition at line 224 of file vbaselection.cxx.
References ERRCODE_BASIC_BAD_ARGUMENT, GetSelectedRange(), ooo::vba::word::gotoSelectedObjectAnchor(), uno::Any::hasValue(), i, ooo::vba::word::MOVE_DOWN, ooo::vba::word::MOVE_LEFT, ooo::vba::word::MOVE_RIGHT, ooo::vba::word::MOVE_UP, mxModel, mxTextViewCursor, nCount, and NextCell().
Referenced by MoveDown(), MoveLeft(), MoveRight(), and MoveUp().
|
overridevirtual |
Definition at line 438 of file vbaselection.cxx.
References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_DOWN, MoveUp(), and nCount.
Referenced by MoveUp().
|
overridevirtual |
Definition at line 419 of file vbaselection.cxx.
References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_LEFT, MoveRight(), and nCount.
Referenced by MoveRight().
|
overridevirtual |
Definition at line 399 of file vbaselection.cxx.
References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_RIGHT, MoveLeft(), and nCount.
Referenced by MoveLeft().
|
overridevirtual |
Definition at line 458 of file vbaselection.cxx.
References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_UP, MoveDown(), and nCount.
Referenced by MoveDown().
|
private |
css::script::BasicErrorException | |
css::uno::RuntimeException |
Definition at line 348 of file vbaselection.cxx.
References ERRCODE_BASIC_BAD_ARGUMENT, ooo::vba::word::MOVE_DOWN, ooo::vba::word::MOVE_LEFT, ooo::vba::word::MOVE_RIGHT, ooo::vba::word::MOVE_UP, mxTextViewCursor, and nCount.
Referenced by Move().
|
overridevirtual |
Definition at line 1124 of file vbaselection.cxx.
References aIndex, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent, mxTextViewCursor, and nIndex.
|
overridevirtual |
Definition at line 1047 of file vbaselection.cxx.
References dispatchRequests(), and mxModel.
|
overridevirtual |
Definition at line 899 of file vbaselection.cxx.
References GetSelectedCellRange(), SwVbaTableHelper::getTabRowIndex(), GetXTextTable(), index, and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext.
Referenced by SelectRow().
|
overridevirtual |
Definition at line 893 of file vbaselection.cxx.
References Columns().
|
overridevirtual |
Definition at line 887 of file vbaselection.cxx.
References Rows().
|
overridevirtual |
Definition at line 882 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 669 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 514 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 873 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 542 of file vbaselection.cxx.
References mxTextViewCursor, and SwVbaStyle::setStyle().
|
overridevirtual |
|
overridevirtual |
Definition at line 852 of file vbaselection.cxx.
References InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, and mxModel.
|
overridevirtual |
Definition at line 1110 of file vbaselection.cxx.
References ContentCopy, ooo::vba::word::getDocShell(), SwDocShell::GetFEShell(), IsInTable(), and mxModel.
|
overridevirtual |
Definition at line 779 of file vbaselection.cxx.
References aIndex, SwXTextTableCursor::GetFrameFormat(), SwXTextTables::GetObject(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent, mxTextViewCursor, and nIndex.
|
overridevirtual |
Definition at line 555 of file vbaselection.cxx.
References dispatchRequests(), and mxModel.
|
overridevirtual |
Definition at line 478 of file vbaselection.cxx.
References InsertParagraph(), and mxTextViewCursor.
|
overridevirtual |
Definition at line 119 of file vbaselection.cxx.
References setText().
|
overridevirtual |
Definition at line 1081 of file vbaselection.cxx.
References dispatchRequests(), ooo::vba::word::getCurrentXText(), ooo::vba::word::getFirstObjectPosition(), mxModel, and mxTextViewCursor.
Referenced by getFind().
|
private |
Definition at line 38 of file vbaselection.hxx.
Referenced by Collapse(), Copy(), Delete(), EndKey(), Fields(), getFind(), getHeaderFooter(), getRange(), GetSelectedCellRange(), GetSelectedRange(), GoTo(), HomeKey(), Information(), Move(), Paragraphs(), Paste(), ShapeRange(), SplitTable(), SwVbaSelection(), Tables(), TypeBackspace(), and WholeStory().
|
private |
Definition at line 39 of file vbaselection.hxx.
Referenced by Collapse(), Delete(), EndKey(), getRange(), GetSelectedCellRange(), GetXTextTable(), GoTo(), HasSelection(), HomeKey(), Information(), Move(), NextCell(), Paragraphs(), setStyle(), SwVbaSelection(), Tables(), TypeParagraph(), and WholeStory().