Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_DOCUMENT_XDOCUMENTPROPERTIES_HDL
2 : : #define INCLUDED_COM_SUN_STAR_DOCUMENT_XDOCUMENTPROPERTIES_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/lang/WrappedTargetException.hdl"
8 : : #include "com/sun/star/io/WrongFormatException.hdl"
9 : : #include "com/sun/star/uno/XInterface.hdl"
10 : : #include "com/sun/star/beans/PropertyValue.hdl"
11 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
12 : : #include "com/sun/star/lang/Locale.hdl"
13 : : #include "com/sun/star/io/IOException.hdl"
14 : : #include "com/sun/star/beans/NamedValue.hdl"
15 : : namespace com { namespace sun { namespace star { namespace beans { class XPropertyContainer; } } } }
16 : : #include "com/sun/star/util/DateTime.hdl"
17 : : namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } }
18 : : #include "com/sun/star/uno/Reference.h"
19 : : #include "com/sun/star/uno/Sequence.h"
20 : : #include "cppu/macros.hxx"
21 : : #include "rtl/ustring.hxx"
22 : : #include "sal/types.h"
23 : :
24 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
25 : :
26 : : namespace com { namespace sun { namespace star { namespace document {
27 : :
28 : 2632 : class SAL_NO_VTABLE XDocumentProperties : public ::com::sun::star::uno::XInterface
29 : : {
30 : : public:
31 : :
32 : : // Attributes
33 : : virtual ::rtl::OUString SAL_CALL getAuthor() throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual void SAL_CALL setAuthor( const ::rtl::OUString& _author ) throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::rtl::OUString SAL_CALL getGenerator() throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual void SAL_CALL setGenerator( const ::rtl::OUString& _generator ) throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::com::sun::star::util::DateTime SAL_CALL getCreationDate() throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual void SAL_CALL setCreationDate( const ::com::sun::star::util::DateTime& _creationdate ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::rtl::OUString SAL_CALL getTitle() throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual void SAL_CALL setTitle( const ::rtl::OUString& _title ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::rtl::OUString SAL_CALL getSubject() throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual void SAL_CALL setSubject( const ::rtl::OUString& _subject ) throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::rtl::OUString SAL_CALL getDescription() throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual void SAL_CALL setDescription( const ::rtl::OUString& _description ) throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getKeywords() throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual void SAL_CALL setKeywords( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _keywords ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::com::sun::star::lang::Locale SAL_CALL getLanguage() throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual void SAL_CALL setLanguage( const ::com::sun::star::lang::Locale& _language ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual ::rtl::OUString SAL_CALL getModifiedBy() throw (::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual void SAL_CALL setModifiedBy( const ::rtl::OUString& _modifiedby ) throw (::com::sun::star::uno::RuntimeException) = 0;
51 : : virtual ::com::sun::star::util::DateTime SAL_CALL getModificationDate() throw (::com::sun::star::uno::RuntimeException) = 0;
52 : : virtual void SAL_CALL setModificationDate( const ::com::sun::star::util::DateTime& _modificationdate ) throw (::com::sun::star::uno::RuntimeException) = 0;
53 : : virtual ::rtl::OUString SAL_CALL getPrintedBy() throw (::com::sun::star::uno::RuntimeException) = 0;
54 : : virtual void SAL_CALL setPrintedBy( const ::rtl::OUString& _printedby ) throw (::com::sun::star::uno::RuntimeException) = 0;
55 : : virtual ::com::sun::star::util::DateTime SAL_CALL getPrintDate() throw (::com::sun::star::uno::RuntimeException) = 0;
56 : : virtual void SAL_CALL setPrintDate( const ::com::sun::star::util::DateTime& _printdate ) throw (::com::sun::star::uno::RuntimeException) = 0;
57 : : virtual ::rtl::OUString SAL_CALL getTemplateName() throw (::com::sun::star::uno::RuntimeException) = 0;
58 : : virtual void SAL_CALL setTemplateName( const ::rtl::OUString& _templatename ) throw (::com::sun::star::uno::RuntimeException) = 0;
59 : : virtual ::rtl::OUString SAL_CALL getTemplateURL() throw (::com::sun::star::uno::RuntimeException) = 0;
60 : : virtual void SAL_CALL setTemplateURL( const ::rtl::OUString& _templateurl ) throw (::com::sun::star::uno::RuntimeException) = 0;
61 : : virtual ::com::sun::star::util::DateTime SAL_CALL getTemplateDate() throw (::com::sun::star::uno::RuntimeException) = 0;
62 : : virtual void SAL_CALL setTemplateDate( const ::com::sun::star::util::DateTime& _templatedate ) throw (::com::sun::star::uno::RuntimeException) = 0;
63 : : virtual ::rtl::OUString SAL_CALL getAutoloadURL() throw (::com::sun::star::uno::RuntimeException) = 0;
64 : : virtual void SAL_CALL setAutoloadURL( const ::rtl::OUString& _autoloadurl ) throw (::com::sun::star::uno::RuntimeException) = 0;
65 : : virtual ::sal_Int32 SAL_CALL getAutoloadSecs() throw (::com::sun::star::uno::RuntimeException) = 0;
66 : : virtual void SAL_CALL setAutoloadSecs( ::sal_Int32 _autoloadsecs ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
67 : : virtual ::rtl::OUString SAL_CALL getDefaultTarget() throw (::com::sun::star::uno::RuntimeException) = 0;
68 : : virtual void SAL_CALL setDefaultTarget( const ::rtl::OUString& _defaulttarget ) throw (::com::sun::star::uno::RuntimeException) = 0;
69 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > SAL_CALL getDocumentStatistics() throw (::com::sun::star::uno::RuntimeException) = 0;
70 : : virtual void SAL_CALL setDocumentStatistics( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& _documentstatistics ) throw (::com::sun::star::uno::RuntimeException) = 0;
71 : : virtual ::sal_Int16 SAL_CALL getEditingCycles() throw (::com::sun::star::uno::RuntimeException) = 0;
72 : : virtual void SAL_CALL setEditingCycles( ::sal_Int16 _editingcycles ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
73 : : virtual ::sal_Int32 SAL_CALL getEditingDuration() throw (::com::sun::star::uno::RuntimeException) = 0;
74 : : virtual void SAL_CALL setEditingDuration( ::sal_Int32 _editingduration ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
75 : :
76 : : // Methods
77 : : virtual void SAL_CALL resetUserData( const ::rtl::OUString& Author ) throw (::com::sun::star::uno::RuntimeException) = 0;
78 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyContainer > SAL_CALL getUserDefinedProperties( ) throw (::com::sun::star::uno::RuntimeException) = 0;
79 : : virtual void SAL_CALL loadFromStorage( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Medium ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::WrongFormatException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) = 0;
80 : : virtual void SAL_CALL loadFromMedium( const ::rtl::OUString& URL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Medium ) throw (::com::sun::star::io::WrongFormatException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) = 0;
81 : : virtual void SAL_CALL storeToStorage( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Medium ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) = 0;
82 : : virtual void SAL_CALL storeToMedium( const ::rtl::OUString& URL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Medium ) throw (::com::sun::star::lang::WrappedTargetException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) = 0;
83 : :
84 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
85 : :
86 : : protected:
87 : 2470 : ~XDocumentProperties() throw () {} // avoid warnings about virtual members and non-virtual dtor
88 : : };
89 : :
90 : :
91 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::document::XDocumentProperties const *);
92 : : } } } }
93 : :
94 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentProperties > *) SAL_THROW(());
95 : :
96 : : #endif
|