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

#include <vbacomment.hxx>

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

Public Member Functions

 ScVbaComment (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::frame::XModel > &xModel, const css::uno::Reference< css::table::XCellRange > &xRange)
 
virtual OUString SAL_CALL getAuthor () override
 
virtual void SAL_CALL setAuthor (const OUString &_author) override
 
virtual css::uno::Reference< ov::msforms::XShape > SAL_CALL getShape () override
 
virtual sal_Bool SAL_CALL getVisible () override
 
virtual void SAL_CALL setVisible (sal_Bool _visible) override
 
virtual void SAL_CALL Delete () override
 
virtual css::uno::Reference< ov::excel::XComment > SAL_CALL Next () override
 
virtual css::uno::Reference< ov::excel::XComment > SAL_CALL Previous () override
 
virtual OUString SAL_CALL Text (const css::uno::Any &Text, const css::uno::Any &Start, const css::uno::Any &Overwrite) 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

css::uno::Reference< css::sheet::XSheetAnnotation > getAnnotation ()
 
css::uno::Reference< css::sheet::XSheetAnnotations > getAnnotations () const
 
sal_Int32 getAnnotationIndex ()
 
css::uno::Reference< ov::excel::XComment > getCommentByIndex (sal_Int32 Index)
 

Private Attributes

css::uno::Reference< css::frame::XModel > mxModel
 
css::uno::Reference< css::table::XCellRange > mxRange
 

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 32 of file vbacomment.hxx.

Constructor & Destructor Documentation

◆ ScVbaComment()

ScVbaComment::ScVbaComment ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const css::uno::Reference< css::frame::XModel > &  xModel,
const css::uno::Reference< css::table::XCellRange > &  xRange 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 43 of file vbacomment.cxx.

References getAnnotation(), mxModel, and xModel.

Member Function Documentation

◆ Delete()

void SAL_CALL ScVbaComment::Delete ( )
overridevirtual

Definition at line 150 of file vbacomment.cxx.

References getAnnotationIndex(), and getAnnotations().

◆ getAnnotation()

uno::Reference< sheet::XSheetAnnotation > ScVbaComment::getAnnotation ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 60 of file vbacomment.cxx.

References mxRange.

Referenced by getAnnotationIndex(), getAuthor(), getShape(), getVisible(), ScVbaComment(), setVisible(), and Text().

◆ getAnnotationIndex()

sal_Int32 ScVbaComment::getAnnotationIndex ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 78 of file vbacomment.cxx.

References aIndex, getAnnotation(), getAnnotations(), and SAL_INFO.

Referenced by Delete(), Next(), and Previous().

◆ getAnnotations()

uno::Reference< sheet::XSheetAnnotations > ScVbaComment::getAnnotations ( ) const
private
Exceptions
css::uno::RuntimeException

Definition at line 68 of file vbacomment.cxx.

References mxRange.

Referenced by Delete(), getAnnotationIndex(), getCommentByIndex(), and Text().

◆ getAuthor()

OUString SAL_CALL ScVbaComment::getAuthor ( )
overridevirtual

Definition at line 115 of file vbacomment.cxx.

References getAnnotation().

◆ getCommentByIndex()

uno::Reference< excel::XComment > ScVbaComment::getCommentByIndex ( sal_Int32  Index)
private

◆ getServiceImplName()

OUString ScVbaComment::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

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

◆ getShape()

uno::Reference< msforms::XShape > SAL_CALL ScVbaComment::getShape ( )
overridevirtual

◆ getVisible()

sal_Bool SAL_CALL ScVbaComment::getVisible ( )
overridevirtual

Definition at line 138 of file vbacomment.cxx.

References getAnnotation().

◆ Next()

uno::Reference< excel::XComment > SAL_CALL ScVbaComment::Next ( void  )
overridevirtual

Definition at line 156 of file vbacomment.cxx.

References getAnnotationIndex(), and getCommentByIndex().

◆ Previous()

uno::Reference< excel::XComment > SAL_CALL ScVbaComment::Previous ( )
overridevirtual

Definition at line 163 of file vbacomment.cxx.

References getAnnotationIndex(), and getCommentByIndex().

◆ setAuthor()

void SAL_CALL ScVbaComment::setAuthor ( const OUString &  _author)
overridevirtual

Definition at line 121 of file vbacomment.cxx.

◆ setVisible()

void SAL_CALL ScVbaComment::setVisible ( sal_Bool  _visible)
overridevirtual

Definition at line 144 of file vbacomment.cxx.

References getAnnotation().

◆ Text()

OUString SAL_CALL ScVbaComment::Text ( const css::uno::Any &  Text,
const css::uno::Any &  Start,
const css::uno::Any &  Overwrite 
)
overridevirtual

Definition at line 170 of file vbacomment.cxx.

References getAnnotation(), getAnnotations(), uno::Any::hasValue(), and mxRange.

Member Data Documentation

◆ mxModel

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

Definition at line 34 of file vbacomment.hxx.

Referenced by getCommentByIndex(), and getShape().

◆ mxRange

css::uno::Reference< css::table::XCellRange > ScVbaComment::mxRange
private

Definition at line 35 of file vbacomment.hxx.

Referenced by getAnnotation(), getAnnotations(), getShape(), and Text().


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