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, 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
 
- Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< 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, 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

- 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 ( const css::uno::Reference< ooo::vba::XHelperInterface > &  rParent,
const css::uno::Reference< css::uno::XComponentContext > &  rContext,
const css::uno::Reference< css::frame::XModel > &  rModel 
)
Exceptions
css::uno::RuntimeException

Definition at line 71 of file vbaselection.cxx.

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

SwVbaSelection::~SwVbaSelection ( )
overridevirtual

Definition at line 76 of file vbaselection.cxx.

Member Function Documentation

uno::Any SAL_CALL SwVbaSelection::Cells ( const css::uno::Any &  aIndex)
overridevirtual
void SAL_CALL SwVbaSelection::Collapse ( const css::uno::Any &  Direction)
overridevirtual
uno::Any SAL_CALL SwVbaSelection::Columns ( const css::uno::Any &  aIndex)
overridevirtual
void SAL_CALL SwVbaSelection::Copy ( )
overridevirtual

Definition at line 1030 of file vbaselection.cxx.

References dispatchRequests(), and mxModel.

Referenced by CopyAsPicture().

void SAL_CALL SwVbaSelection::CopyAsPicture ( )
overridevirtual

Definition at line 1036 of file vbaselection.cxx.

References Copy().

void SAL_CALL SwVbaSelection::Delete ( const css::uno::Any &  _unit,
const css::uno::Any &  _count 
)
overridevirtual
void SAL_CALL SwVbaSelection::EndKey ( const css::uno::Any &  _unit,
const css::uno::Any &  _extend 
)
overridevirtual
uno::Any SAL_CALL SwVbaSelection::Fields ( const css::uno::Any &  aIndex)
overridevirtual
sal_Int32 SAL_CALL SwVbaSelection::getEnd ( )
override

Definition at line 871 of file vbaselection.cxx.

References getRange().

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

Definition at line 542 of file vbaselection.cxx.

References getRange().

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

Definition at line 658 of file vbaselection.cxx.

References getRange().

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

Definition at line 510 of file vbaselection.cxx.

References getRange().

uno::Reference< word::XRange > SAL_CALL SwVbaSelection::getRange ( )
overridevirtual
void SwVbaSelection::GetSelectedCellRange ( OUString &  sTLName,
OUString &  sBRName 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 967 of file vbaselection.cxx.

References mxModel, and mxTextViewCursor.

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

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

Definition at line 80 of file vbaselection.cxx.

References mxModel.

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

OUString SwVbaSelection::getServiceImplName ( )
overridevirtual
uno::Sequence< OUString > SwVbaSelection::getServiceNames ( )
overridevirtual
sal_Int32 SAL_CALL SwVbaSelection::getStart ( )
override

Definition at line 862 of file vbaselection.cxx.

References getRange().

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

Definition at line 529 of file vbaselection.cxx.

References getRange().

OUString SAL_CALL SwVbaSelection::getText ( )
overridevirtual

Definition at line 108 of file vbaselection.cxx.

References getRange().

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

Definition at line 945 of file vbaselection.cxx.

References mxTextViewCursor.

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

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
bool SwVbaSelection::HasSelection ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 959 of file vbaselection.cxx.

References mxTextViewCursor.

Referenced by Delete().

void SAL_CALL SwVbaSelection::HomeKey ( const css::uno::Any &  _unit,
const css::uno::Any &  _extend 
)
overridevirtual
uno::Any SAL_CALL SwVbaSelection::Information ( sal_Int32  _type)
overridevirtual
sal_Bool SAL_CALL SwVbaSelection::InRange ( const css::uno::Reference< ::ooo::vba::word::XRange > &  Range)
overridevirtual

Definition at line 1102 of file vbaselection.cxx.

References getRange().

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

Definition at line 767 of file vbaselection.cxx.

References getRange().

void SAL_CALL SwVbaSelection::InsertParagraph ( )
overridevirtual

Definition at line 491 of file vbaselection.cxx.

References getRange().

Referenced by TypeParagraph().

void SAL_CALL SwVbaSelection::InsertParagraphAfter ( )
overridevirtual

Definition at line 504 of file vbaselection.cxx.

References getRange().

void SAL_CALL SwVbaSelection::InsertParagraphBefore ( )
overridevirtual

Definition at line 498 of file vbaselection.cxx.

References getRange().

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

Definition at line 953 of file vbaselection.cxx.

References GetXTextTable().

Referenced by SplitTable().

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

Definition at line 440 of file vbaselection.cxx.

References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_DOWN, and MoveUp().

Referenced by MoveUp().

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

Definition at line 421 of file vbaselection.cxx.

References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_LEFT, and MoveRight().

Referenced by 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 401 of file vbaselection.cxx.

References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_RIGHT, and MoveLeft().

Referenced by MoveLeft().

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

Definition at line 460 of file vbaselection.cxx.

References uno::Any::hasValue(), Move(), ooo::vba::word::MOVE_UP, and MoveDown().

Referenced by MoveDown().

void SwVbaSelection::NextCell ( sal_Int32  nCount,
ooo::vba::word::E_DIRECTION  eDirection 
)
private
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 350 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().

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

Definition at line 1042 of file vbaselection.cxx.

References dispatchRequests(), and mxModel.

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

Definition at line 887 of file vbaselection.cxx.

References Columns().

void SAL_CALL SwVbaSelection::SelectRow ( )
overridevirtual

Definition at line 881 of file vbaselection.cxx.

References Rows().

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

Definition at line 876 of file vbaselection.cxx.

References getRange().

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

Definition at line 663 of file vbaselection.cxx.

References getRange().

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

Definition at line 516 of file vbaselection.cxx.

References getRange().

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

Definition at line 867 of file vbaselection.cxx.

References getRange().

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

Definition at line 535 of file vbaselection.cxx.

References mxTextViewCursor, and SwVbaStyle::setStyle().

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

Definition at line 114 of file vbaselection.cxx.

References getRange().

Referenced by TypeText().

uno::Any SAL_CALL SwVbaSelection::ShapeRange ( )
overridevirtual
void SAL_CALL SwVbaSelection::SplitTable ( )
overridevirtual
uno::Any SAL_CALL SwVbaSelection::Tables ( const css::uno::Any &  aIndex)
overridevirtual
void SAL_CALL SwVbaSelection::TypeBackspace ( )
overridevirtual

Definition at line 548 of file vbaselection.cxx.

References dispatchRequests(), and mxModel.

void SAL_CALL SwVbaSelection::TypeParagraph ( )
overridevirtual

Definition at line 480 of file vbaselection.cxx.

References InsertParagraph(), and mxTextViewCursor.

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

Definition at line 120 of file vbaselection.cxx.

References setText().

void SAL_CALL SwVbaSelection::WholeStory ( )
overridevirtual

Member Data Documentation

css::uno::Reference< css::frame::XModel > SwVbaSelection::mxModel
private
css::uno::Reference< css::text::XTextViewCursor > SwVbaSelection::mxTextViewCursor
private

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