Line data Source code
1 : #ifndef INCLUDED_OOO_VBA_EXCEL_XCOMMENT_HDL
2 : #define INCLUDED_OOO_VBA_EXCEL_XCOMMENT_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/RuntimeException.hdl"
7 : #include "ooo/vba/XHelperInterface.hdl"
8 : namespace ooo { namespace vba { namespace excel { class XComment; } } }
9 : namespace ooo { namespace vba { namespace msforms { class XShape; } } }
10 : #include "com/sun/star/uno/Any.h"
11 : #include "com/sun/star/uno/Reference.h"
12 : #include "cppu/macros.hxx"
13 : #include "rtl/ustring.hxx"
14 : #include "sal/types.h"
15 :
16 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
17 :
18 : namespace ooo { namespace vba { namespace excel {
19 :
20 0 : class SAL_NO_VTABLE XComment : public ::ooo::vba::XHelperInterface
21 : {
22 : public:
23 :
24 : // Attributes
25 : virtual ::rtl::OUString SAL_CALL getAuthor() = 0;
26 : virtual void SAL_CALL setAuthor( const ::rtl::OUString& _author ) = 0;
27 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::msforms::XShape > SAL_CALL getShape() = 0;
28 : virtual ::sal_Bool SAL_CALL getVisible() = 0;
29 : virtual void SAL_CALL setVisible( ::sal_Bool _visible ) = 0;
30 :
31 : // Methods
32 : virtual void SAL_CALL Delete() = 0;
33 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XComment > SAL_CALL Next() = 0;
34 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::excel::XComment > SAL_CALL Previous() = 0;
35 : virtual ::rtl::OUString SAL_CALL Text( const ::com::sun::star::uno::Any& Text, const ::com::sun::star::uno::Any& Start, const ::com::sun::star::uno::Any& Overwrite ) = 0;
36 :
37 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
38 :
39 : protected:
40 0 : ~XComment() throw () {} // avoid warnings about virtual members and non-virtual dtor
41 : };
42 :
43 :
44 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::excel::XComment const *);
45 : } } }
46 :
47 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::excel::XComment > *) SAL_THROW(());
48 :
49 : #endif
|