Branch data Line data Source code
1 : : #ifndef INCLUDED_OOO_VBA_WORD_XDOCUMENT_HDL
2 : : #define INCLUDED_OOO_VBA_WORD_XDOCUMENT_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/script/XInvocation.hdl"
7 : : #include "com/sun/star/uno/RuntimeException.hdl"
8 : : namespace ooo { namespace vba { namespace word { class XRange; } } }
9 : : #include "com/sun/star/uno/Any.h"
10 : : #include "com/sun/star/uno/Reference.h"
11 : : #include "cppu/macros.hxx"
12 : : #include "sal/types.h"
13 : :
14 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
15 : :
16 : : namespace ooo { namespace vba { namespace word {
17 : :
18 : 0 : class SAL_NO_VTABLE XDocument : public ::com::sun::star::script::XInvocation
19 : : {
20 : : public:
21 : :
22 : : // Attributes
23 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XRange > SAL_CALL getContent() throw (::com::sun::star::uno::RuntimeException) = 0;
24 : : virtual ::com::sun::star::uno::Any SAL_CALL getAttachedTemplate() throw (::com::sun::star::uno::RuntimeException) = 0;
25 : : virtual void SAL_CALL setAttachedTemplate( const ::com::sun::star::uno::Any& _attachedtemplate ) throw (::com::sun::star::uno::RuntimeException) = 0;
26 : : virtual ::sal_Int32 SAL_CALL getProtectionType() throw (::com::sun::star::uno::RuntimeException) = 0;
27 : : virtual void SAL_CALL setProtectionType( ::sal_Int32 _protectiontype ) throw (::com::sun::star::uno::RuntimeException) = 0;
28 : : virtual ::sal_Bool SAL_CALL getUpdateStylesOnOpen() throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual void SAL_CALL setUpdateStylesOnOpen( ::sal_Bool _updatestylesonopen ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::sal_Bool SAL_CALL getAutoHyphenation() throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual void SAL_CALL setAutoHyphenation( ::sal_Bool _autohyphenation ) throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::sal_Int32 SAL_CALL getHyphenationZone() throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual void SAL_CALL setHyphenationZone( ::sal_Int32 _hyphenationzone ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::sal_Int32 SAL_CALL getConsecutiveHyphensLimit() throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual void SAL_CALL setConsecutiveHyphensLimit( ::sal_Int32 _consecutivehyphenslimit ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : :
37 : : // Methods
38 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XRange > SAL_CALL Range( const ::com::sun::star::uno::Any& Start, const ::com::sun::star::uno::Any& End ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::com::sun::star::uno::Any SAL_CALL BuiltInDocumentProperties( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::com::sun::star::uno::Any SAL_CALL CustomDocumentProperties( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::com::sun::star::uno::Any SAL_CALL Bookmarks( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::com::sun::star::uno::Any SAL_CALL Variables( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Any SAL_CALL Paragraphs( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::uno::Any SAL_CALL Styles( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::com::sun::star::uno::Any SAL_CALL Tables( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::com::sun::star::uno::Any SAL_CALL Fields( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::com::sun::star::uno::Any SAL_CALL Shapes( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual ::com::sun::star::uno::Any SAL_CALL Sections( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual void SAL_CALL Activate( ) throw (::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual ::com::sun::star::uno::Any SAL_CALL PageSetup( ) throw (::com::sun::star::uno::RuntimeException) = 0;
51 : : virtual ::com::sun::star::uno::Any SAL_CALL TablesOfContents( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
52 : : virtual ::com::sun::star::uno::Any SAL_CALL FormFields( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
53 : : virtual void SAL_CALL Protect( ::sal_Int32 Type, const ::com::sun::star::uno::Any& NOReset, const ::com::sun::star::uno::Any& Password, const ::com::sun::star::uno::Any& UseIRM, const ::com::sun::star::uno::Any& EnforceStyleLock ) throw (::com::sun::star::uno::RuntimeException) = 0;
54 : : virtual void SAL_CALL PrintOut( const ::com::sun::star::uno::Any& Background, const ::com::sun::star::uno::Any& Append, const ::com::sun::star::uno::Any& Range, const ::com::sun::star::uno::Any& OutputFileName, const ::com::sun::star::uno::Any& From, const ::com::sun::star::uno::Any& To, const ::com::sun::star::uno::Any& Item, const ::com::sun::star::uno::Any& Copies, const ::com::sun::star::uno::Any& Pages, const ::com::sun::star::uno::Any& PageType, const ::com::sun::star::uno::Any& PrintToFile, const ::com::sun::star::uno::Any& Collate, const ::com::sun::star::uno::Any& FileName, const ::com::sun::star::uno::Any& ActivePrinterMacGX, const ::com::sun::star::uno::Any& ManualDuplexPrint, const ::com::sun::star::uno::Any& PrintZoomColumn, const ::com::sun::star::uno::Any& PrintZoomRow, const ::com::sun::star::uno::Any& PrintZoomPaperWidth, const ::com::sun::star::uno::Any& PrintZoomPaperHeight ) throw (::com::sun::star::uno::RuntimeException) = 0;
55 : : virtual void SAL_CALL PrintPreview( ) throw (::com::sun::star::uno::RuntimeException) = 0;
56 : : virtual void SAL_CALL ClosePrintPreview( ) throw (::com::sun::star::uno::RuntimeException) = 0;
57 : : virtual ::com::sun::star::uno::Any SAL_CALL Revisions( const ::com::sun::star::uno::Any& index ) throw (::com::sun::star::uno::RuntimeException) = 0;
58 : : virtual ::com::sun::star::uno::Any SAL_CALL Frames( const ::com::sun::star::uno::Any& index ) throw (::com::sun::star::uno::RuntimeException) = 0;
59 : :
60 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
61 : :
62 : : protected:
63 : 0 : ~XDocument() throw () {} // avoid warnings about virtual members and non-virtual dtor
64 : : };
65 : :
66 : :
67 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::word::XDocument const *);
68 : : } } }
69 : :
70 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::word::XDocument > *) SAL_THROW(());
71 : :
72 : : #endif
|