Line data Source code
1 : #ifndef INCLUDED_OOO_VBA_XDOCUMENTPROPERTY_HDL
2 : #define INCLUDED_OOO_VBA_XDOCUMENTPROPERTY_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/RuntimeException.hdl"
7 : #include "com/sun/star/script/BasicErrorException.hdl"
8 : #include "ooo/vba/XHelperInterface.hdl"
9 : #include "com/sun/star/script/XDefaultProperty.hdl"
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 {
19 :
20 0 : class SAL_NO_VTABLE XDocumentProperty : public css::script::XDefaultProperty, public ::ooo::vba::XHelperInterface
21 : {
22 : public:
23 :
24 : // Methods
25 : virtual void SAL_CALL Delete() = 0;
26 : virtual ::rtl::OUString SAL_CALL getName() = 0;
27 : virtual void SAL_CALL setName( const ::rtl::OUString& Name ) = 0;
28 : virtual ::sal_Int8 SAL_CALL getType() = 0;
29 : virtual void SAL_CALL setType( ::sal_Int8 Type ) = 0;
30 : virtual ::sal_Bool SAL_CALL getLinkToContent() = 0;
31 : virtual void SAL_CALL setLinkToContent( ::sal_Bool LinkToContent ) = 0;
32 : virtual ::com::sun::star::uno::Any SAL_CALL getValue() = 0;
33 : virtual void SAL_CALL setValue( const ::com::sun::star::uno::Any& Value ) = 0;
34 : virtual ::rtl::OUString SAL_CALL getLinkSource() = 0;
35 : virtual void SAL_CALL setLinkSource( const ::rtl::OUString& LinkSource ) = 0;
36 :
37 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
38 :
39 : protected:
40 0 : ~XDocumentProperty() 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::XDocumentProperty const *);
45 : } }
46 :
47 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::XDocumentProperty > *) SAL_THROW(());
48 :
49 : #endif
|