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, const css::uno::Reference< css::frame::XModel > &rModel) | |
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 |
![]() | |
InheritedHelperInterfaceWeakImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
![]() | |
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 | 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 | |
![]() | |
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, | ||
const css::uno::Reference< css::frame::XModel > & | rModel | ||
) |
css::uno::RuntimeException |
Definition at line 68 of file vbaselection.cxx.
References ooo::vba::word::getXTextViewCursor(), mxModel, mxModel, and mxTextViewCursor.
|
overridevirtual |
Definition at line 73 of file vbaselection.cxx.
|
overridevirtual |
Definition at line 994 of file vbaselection.cxx.
References GetSelectedCellRange(), SwVbaTableHelper::getTabColIndex(), SwVbaTableHelper::getTabRowIndex(), GetXTextTable(), uno::Any::hasValue(), and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext.
|
overridevirtual |
Definition at line 1041 of file vbaselection.cxx.
References ooo::vba::word::getXTextViewCursor(), ooo::vba::word::gotoSelectedObjectAnchor(), uno::Any::hasValue(), mxModel, and mxTextViewCursor.
|
overridevirtual |
Definition at line 914 of file vbaselection.cxx.
References GetSelectedCellRange(), SwVbaTableHelper::getTabColIndex(), GetXTextTable(), uno::Any::hasValue(), and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext.
Referenced by SelectColumn().
|
overridevirtual |
Definition at line 1025 of file vbaselection.cxx.
References dispatchRequests(), and mxModel.
Referenced by CopyAsPicture().
|
overridevirtual |
Definition at line 1030 of file vbaselection.cxx.
References Copy().
|
overridevirtual |
Definition at line 194 of file vbaselection.cxx.
References dispatchRequests(), HasSelection(), uno::Any::hasValue(), mxModel, mxTextViewCursor, and nCount.
|
overridevirtual |
Definition at line 159 of file vbaselection.cxx.
References ooo::vba::word::getCurrentXText(), ooo::vba::word::gotoSelectedObjectAnchor(), mxModel, and mxTextViewCursor.
|
overridevirtual |
Definition at line 813 of file vbaselection.cxx.
References uno::Any::hasValue(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent.
|
override |
Definition at line 866 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 518 of file vbaselection.cxx.
References GetSelectedRange(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, and mxModel.
|
overridevirtual |
Definition at line 538 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 822 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 653 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 506 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 97 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 962 of file vbaselection.cxx.
References mxModel, and mxTextViewCursor.
|
private |
css::uno::RuntimeException |
Definition at line 77 of file vbaselection.cxx.
References mxModel.
Referenced by getFind(), getRange(), and Move().
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 1146 of file vbaselection.cxx.
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 1152 of file vbaselection.cxx.
References aServiceNames.
|
override |
Definition at line 857 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 525 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 105 of file vbaselection.cxx.
References getRange().
|
private |
css::uno::RuntimeException |
Definition at line 940 of file vbaselection.cxx.
References mxTextViewCursor.
Referenced by Cells(), Columns(), IsInTable(), and Rows().
|
overridevirtual |
Definition at line 549 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 954 of file vbaselection.cxx.
References mxTextViewCursor.
Referenced by Delete().
|
overridevirtual |
Definition at line 124 of file vbaselection.cxx.
References ooo::vba::word::getCurrentXText(), ooo::vba::word::getFirstObjectPosition(), ooo::vba::word::gotoSelectedObjectAnchor(), mxModel, and mxTextViewCursor.
|
overridevirtual |
Definition at line 663 of file vbaselection.cxx.
References SwVbaInformationHelper::handleWdActiveEndPageNumber(), SwVbaInformationHelper::handleWdNumberOfPagesInDocument(), SwVbaInformationHelper::handleWdVerticalPositionRelativeToPage(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, mxTextViewCursor, and result.
|
overridevirtual |
Definition at line 1094 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 762 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 487 of file vbaselection.cxx.
References getRange().
Referenced by TypeParagraph().
|
overridevirtual |
Definition at line 500 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 494 of file vbaselection.cxx.
References getRange().
|
private |
css::uno::RuntimeException |
Definition at line 948 of file vbaselection.cxx.
References GetXTextTable().
Referenced by SplitTable().
|
private |
css::script::BasicErrorException | |
css::uno::RuntimeException |
Definition at line 222 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 436 of file vbaselection.cxx.
References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_DOWN, MoveUp(), and nCount.
Referenced by MoveUp().
|
overridevirtual |
Definition at line 417 of file vbaselection.cxx.
References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_LEFT, MoveRight(), and nCount.
Referenced by MoveRight().
|
overridevirtual |
Definition at line 397 of file vbaselection.cxx.
References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_RIGHT, MoveLeft(), and nCount.
Referenced by MoveLeft().
|
overridevirtual |
Definition at line 456 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 346 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, and mxTextViewCursor.
Referenced by Move().
|
overridevirtual |
Definition at line 1116 of file vbaselection.cxx.
References uno::Any::hasValue(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent, mxTextViewCursor, and nIndex.
|
overridevirtual |
Definition at line 1036 of file vbaselection.cxx.
References dispatchRequests(), and mxModel.
|
overridevirtual |
Definition at line 888 of file vbaselection.cxx.
References GetSelectedCellRange(), SwVbaTableHelper::getTabRowIndex(), GetXTextTable(), uno::Any::hasValue(), and InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext.
Referenced by SelectRow().
|
overridevirtual |
Definition at line 882 of file vbaselection.cxx.
References Columns().
|
overridevirtual |
Definition at line 876 of file vbaselection.cxx.
References Rows().
|
overridevirtual |
Definition at line 871 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 658 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 512 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 862 of file vbaselection.cxx.
References getRange().
|
overridevirtual |
Definition at line 531 of file vbaselection.cxx.
References mxTextViewCursor, and SwVbaStyle::setStyle().
|
overridevirtual |
|
overridevirtual |
Definition at line 841 of file vbaselection.cxx.
References InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, and mxModel.
|
overridevirtual |
Definition at line 1099 of file vbaselection.cxx.
References ContentCopy, ooo::vba::word::getDocShell(), SwDocShell::GetFEShell(), IsInTable(), mxModel, and SwEditShell::SplitTable().
|
overridevirtual |
Definition at line 768 of file vbaselection.cxx.
References SwXTextTables::GetObject(), uno::Any::hasValue(), InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, mxModel, InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxParent, mxTextViewCursor, and nIndex.
|
overridevirtual |
Definition at line 544 of file vbaselection.cxx.
References dispatchRequests(), and mxModel.
|
overridevirtual |
Definition at line 476 of file vbaselection.cxx.
References InsertParagraph(), and mxTextViewCursor.
|
overridevirtual |
Definition at line 117 of file vbaselection.cxx.
References setText().
|
overridevirtual |
Definition at line 1070 of file vbaselection.cxx.
References dispatchRequests(), ooo::vba::word::getCurrentXText(), ooo::vba::word::getFirstObjectPosition(), mxModel, and mxTextViewCursor.
|
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().