LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwVbaSelection Class Reference

#include <vbaselection.hxx>

Inheritance diagram for SwVbaSelection:
[legend]
Collaboration diagram for SwVbaSelection:
[legend]

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
 

Detailed Description

Definition at line 35 of file vbaselection.hxx.

Constructor & Destructor Documentation

◆ SwVbaSelection()

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 
)
Exceptions
css::uno::RuntimeException

Definition at line 70 of file vbaselection.cxx.

References ooo::vba::word::getXTextViewCursor(), mxModel, mxModel, mxTextViewCursor, and xModel.

◆ ~SwVbaSelection()

SwVbaSelection::~SwVbaSelection ( )
overridevirtual

Definition at line 75 of file vbaselection.cxx.

Member Function Documentation

◆ Cells()

uno::Any SAL_CALL SwVbaSelection::Cells ( const css::uno::Any &  aIndex)
overridevirtual

◆ Collapse()

void SAL_CALL SwVbaSelection::Collapse ( const css::uno::Any &  Direction)
overridevirtual

◆ Columns()

uno::Any SAL_CALL SwVbaSelection::Columns ( const css::uno::Any &  aIndex)
overridevirtual

◆ Copy()

void SAL_CALL SwVbaSelection::Copy ( )
overridevirtual

Definition at line 1036 of file vbaselection.cxx.

References dispatchRequests(), and mxModel.

Referenced by CopyAsPicture().

◆ CopyAsPicture()

void SAL_CALL SwVbaSelection::CopyAsPicture ( )
overridevirtual

Definition at line 1041 of file vbaselection.cxx.

References Copy().

◆ Delete()

void SAL_CALL SwVbaSelection::Delete ( const css::uno::Any &  _unit,
const css::uno::Any &  _count 
)
overridevirtual

◆ EndKey()

void SAL_CALL SwVbaSelection::EndKey ( const css::uno::Any &  _unit,
const css::uno::Any &  _extend 
)
overridevirtual

◆ Fields()

uno::Any SAL_CALL SwVbaSelection::Fields ( const css::uno::Any &  aIndex)
overridevirtual

◆ getEnd()

sal_Int32 SAL_CALL SwVbaSelection::getEnd ( )
override

Definition at line 877 of file vbaselection.cxx.

References getRange().

◆ getFind()

uno::Reference< word::XFind > SAL_CALL SwVbaSelection::getFind ( )
overridevirtual

◆ getFont()

uno::Reference< word::XFont > SAL_CALL SwVbaSelection::getFont ( )
overridevirtual

Definition at line 549 of file vbaselection.cxx.

References getRange().

◆ getHeaderFooter()

uno::Reference< word::XHeaderFooter > SAL_CALL SwVbaSelection::getHeaderFooter ( )
overridevirtual

◆ getLanguageID()

sal_Int32 SAL_CALL SwVbaSelection::getLanguageID ( )
override

Definition at line 664 of file vbaselection.cxx.

References getRange().

◆ getParagraphFormat()

uno::Reference< word::XParagraphFormat > SAL_CALL SwVbaSelection::getParagraphFormat ( )
overridevirtual

Definition at line 508 of file vbaselection.cxx.

References getRange().

◆ getRange()

uno::Reference< word::XRange > SAL_CALL SwVbaSelection::getRange ( )
overridevirtual

◆ GetSelectedCellRange()

void SwVbaSelection::GetSelectedCellRange ( OUString &  sTLName,
OUString &  sBRName 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 973 of file vbaselection.cxx.

References mxModel, and mxTextViewCursor.

Referenced by Cells(), Columns(), and Rows().

◆ GetSelectedRange()

uno::Reference< text::XTextRange > SwVbaSelection::GetSelectedRange ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 79 of file vbaselection.cxx.

References mxModel.

Referenced by getFind(), getRange(), and Move().

◆ getServiceImplName()

OUString SwVbaSelection::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

uno::Sequence< OUString > SwVbaSelection::getServiceNames ( )
overridevirtual

◆ getStart()

sal_Int32 SAL_CALL SwVbaSelection::getStart ( )
override

Definition at line 868 of file vbaselection.cxx.

References getRange().

◆ getStyle()

uno::Any SAL_CALL SwVbaSelection::getStyle ( )
overridevirtual

Definition at line 536 of file vbaselection.cxx.

References getRange().

◆ getText()

OUString SAL_CALL SwVbaSelection::getText ( )
overridevirtual

Definition at line 107 of file vbaselection.cxx.

References getRange().

◆ GetXTextTable()

uno::Reference< text::XTextTable > SwVbaSelection::GetXTextTable ( ) const
private
Exceptions
css::uno::RuntimeException

Definition at line 951 of file vbaselection.cxx.

References mxTextViewCursor.

Referenced by Cells(), Columns(), IsInTable(), and Rows().

◆ GoTo()

uno::Reference< word::XRange > SAL_CALL SwVbaSelection::GoTo ( const css::uno::Any &  _what,
const css::uno::Any &  _which,
const css::uno::Any &  _count,
const css::uno::Any &  _name 
)
overridevirtual

◆ HasSelection()

bool SwVbaSelection::HasSelection ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 965 of file vbaselection.cxx.

References mxTextViewCursor.

Referenced by Delete().

◆ HomeKey()

void SAL_CALL SwVbaSelection::HomeKey ( const css::uno::Any &  _unit,
const css::uno::Any &  _extend 
)
overridevirtual

◆ Information()

uno::Any SAL_CALL SwVbaSelection::Information ( sal_Int32  _type)
overridevirtual

◆ InRange()

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

Definition at line 1105 of file vbaselection.cxx.

References getRange().

◆ InsertBreak()

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

Definition at line 773 of file vbaselection.cxx.

References getRange().

◆ InsertParagraph()

void SAL_CALL SwVbaSelection::InsertParagraph ( )
overridevirtual

Definition at line 489 of file vbaselection.cxx.

References getRange().

Referenced by TypeParagraph().

◆ InsertParagraphAfter()

void SAL_CALL SwVbaSelection::InsertParagraphAfter ( )
overridevirtual

Definition at line 502 of file vbaselection.cxx.

References getRange().

◆ InsertParagraphBefore()

void SAL_CALL SwVbaSelection::InsertParagraphBefore ( )
overridevirtual

Definition at line 496 of file vbaselection.cxx.

References getRange().

◆ IsInTable()

bool SwVbaSelection::IsInTable ( ) const
private
Exceptions
css::uno::RuntimeException

Definition at line 959 of file vbaselection.cxx.

References GetXTextTable().

Referenced by SplitTable().

◆ Move()

void SwVbaSelection::Move ( const css::uno::Any &  _unit,
const css::uno::Any &  _count,
const css::uno::Any &  _extend,
ooo::vba::word::E_DIRECTION  eDirection 
)
private

◆ MoveDown()

void SAL_CALL SwVbaSelection::MoveDown ( const css::uno::Any &  _unit,
const css::uno::Any &  _count,
const css::uno::Any &  _extend 
)
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().

◆ MoveLeft()

void SAL_CALL SwVbaSelection::MoveLeft ( const css::uno::Any &  _unit,
const css::uno::Any &  _count,
const css::uno::Any &  _extend 
)
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().

◆ MoveRight()

void SAL_CALL SwVbaSelection::MoveRight ( const css::uno::Any &  _unit,
const css::uno::Any &  _count,
const css::uno::Any &  _extend 
)
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().

◆ MoveUp()

void SAL_CALL SwVbaSelection::MoveUp ( const css::uno::Any &  _unit,
const css::uno::Any &  _count,
const css::uno::Any &  _extend 
)
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().

◆ NextCell()

void SwVbaSelection::NextCell ( sal_Int32  nCount,
ooo::vba::word::E_DIRECTION  eDirection 
)
private
Exceptions
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().

◆ Paragraphs()

uno::Any SAL_CALL SwVbaSelection::Paragraphs ( const css::uno::Any &  aIndex)
overridevirtual

◆ Paste()

void SAL_CALL SwVbaSelection::Paste ( )
overridevirtual

Definition at line 1047 of file vbaselection.cxx.

References dispatchRequests(), and mxModel.

◆ Rows()

uno::Any SAL_CALL SwVbaSelection::Rows ( const css::uno::Any &  aIndex)
overridevirtual

◆ SelectColumn()

void SAL_CALL SwVbaSelection::SelectColumn ( )
overridevirtual

Definition at line 893 of file vbaselection.cxx.

References Columns().

◆ SelectRow()

void SAL_CALL SwVbaSelection::SelectRow ( )
overridevirtual

Definition at line 887 of file vbaselection.cxx.

References Rows().

◆ setEnd()

void SAL_CALL SwVbaSelection::setEnd ( ::sal_Int32  _end)
overridevirtual

Definition at line 882 of file vbaselection.cxx.

References getRange().

◆ setLanguageID()

void SAL_CALL SwVbaSelection::setLanguageID ( ::sal_Int32  _languageid)
overridevirtual

Definition at line 669 of file vbaselection.cxx.

References getRange().

◆ setParagraphFormat()

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

Definition at line 514 of file vbaselection.cxx.

References getRange().

◆ setStart()

void SAL_CALL SwVbaSelection::setStart ( ::sal_Int32  _start)
overridevirtual

Definition at line 873 of file vbaselection.cxx.

References getRange().

◆ setStyle()

void SAL_CALL SwVbaSelection::setStyle ( const css::uno::Any &  _xStyle)
overridevirtual

Definition at line 542 of file vbaselection.cxx.

References mxTextViewCursor, and SwVbaStyle::setStyle().

◆ setText()

void SAL_CALL SwVbaSelection::setText ( const OUString &  rText)
overridevirtual

Definition at line 113 of file vbaselection.cxx.

References getRange().

Referenced by TypeText().

◆ ShapeRange()

uno::Any SAL_CALL SwVbaSelection::ShapeRange ( )
overridevirtual

◆ SplitTable()

void SAL_CALL SwVbaSelection::SplitTable ( )
overridevirtual

◆ Tables()

uno::Any SAL_CALL SwVbaSelection::Tables ( const css::uno::Any &  aIndex)
overridevirtual

◆ TypeBackspace()

void SAL_CALL SwVbaSelection::TypeBackspace ( )
overridevirtual

Definition at line 555 of file vbaselection.cxx.

References dispatchRequests(), and mxModel.

◆ TypeParagraph()

void SAL_CALL SwVbaSelection::TypeParagraph ( )
overridevirtual

Definition at line 478 of file vbaselection.cxx.

References InsertParagraph(), and mxTextViewCursor.

◆ TypeText()

void SAL_CALL SwVbaSelection::TypeText ( const OUString &  rText)
overridevirtual

Definition at line 119 of file vbaselection.cxx.

References setText().

◆ WholeStory()

void SAL_CALL SwVbaSelection::WholeStory ( )
overridevirtual

Member Data Documentation

◆ mxModel

css::uno::Reference< css::frame::XModel > SwVbaSelection::mxModel
private

◆ mxTextViewCursor

css::uno::Reference< css::text::XTextViewCursor > SwVbaSelection::mxTextViewCursor
private

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