Line data Source code
1 : #ifndef INCLUDED_OOO_VBA_XDOCUMENTBASE_HDL
2 : #define INCLUDED_OOO_VBA_XDOCUMENTBASE_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/RuntimeException.hdl"
7 : #include "ooo/vba/XHelperInterface.hdl"
8 : #include "com/sun/star/uno/Any.h"
9 : #include "com/sun/star/uno/Reference.h"
10 : #include "cppu/macros.hxx"
11 : #include "rtl/ustring.hxx"
12 : #include "sal/types.h"
13 :
14 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
15 :
16 : namespace ooo { namespace vba {
17 :
18 0 : class SAL_NO_VTABLE XDocumentBase : public ::ooo::vba::XHelperInterface
19 : {
20 : public:
21 :
22 : // Attributes
23 : virtual ::rtl::OUString SAL_CALL getName() = 0;
24 : virtual ::rtl::OUString SAL_CALL getPath() = 0;
25 : virtual ::rtl::OUString SAL_CALL getFullName() = 0;
26 : virtual ::sal_Bool SAL_CALL getSaved() = 0;
27 : virtual void SAL_CALL setSaved( ::sal_Bool _saved ) = 0;
28 : virtual ::com::sun::star::uno::Any SAL_CALL getVBProject() = 0;
29 :
30 : // Methods
31 : virtual void SAL_CALL Close( const ::com::sun::star::uno::Any& SaveChanges, const ::com::sun::star::uno::Any& FileName, const ::com::sun::star::uno::Any& RouteWorkBook ) = 0;
32 : virtual void SAL_CALL Save() = 0;
33 : virtual void SAL_CALL Activate() = 0;
34 : virtual void SAL_CALL Unprotect( const ::com::sun::star::uno::Any& Password ) = 0;
35 :
36 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
37 :
38 : protected:
39 0 : ~XDocumentBase() throw () {} // avoid warnings about virtual members and non-virtual dtor
40 : };
41 :
42 :
43 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::XDocumentBase const *);
44 : } }
45 :
46 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::XDocumentBase > *) SAL_THROW(());
47 :
48 : #endif
|