Branch data Line data Source code
1 : : #ifndef INCLUDED_OOO_VBA_WORD_XRANGE_HDL
2 : : #define INCLUDED_OOO_VBA_WORD_XRANGE_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : namespace ooo { namespace vba { namespace word { class XRange; } } }
8 : : namespace ooo { namespace vba { namespace word { class XListFormat; } } }
9 : : namespace ooo { namespace vba { namespace word { class XFont; } } }
10 : : namespace com { namespace sun { namespace star { namespace text { class XTextRange; } } } }
11 : : namespace ooo { namespace vba { namespace word { class XParagraphFormat; } } }
12 : : #include "ooo/vba/XHelperInterface.hdl"
13 : : #include "com/sun/star/uno/Any.h"
14 : : #include "com/sun/star/uno/Reference.h"
15 : : #include "cppu/macros.hxx"
16 : : #include "rtl/ustring.hxx"
17 : : #include "sal/types.h"
18 : :
19 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
20 : :
21 : : namespace ooo { namespace vba { namespace word {
22 : :
23 : 0 : class SAL_NO_VTABLE XRange : public ::ooo::vba::XHelperInterface
24 : : {
25 : : public:
26 : :
27 : : // Attributes
28 : : virtual ::rtl::OUString SAL_CALL getText() throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual void SAL_CALL setText( const ::rtl::OUString& _text ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XParagraphFormat > SAL_CALL getParagraphFormat() throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual void SAL_CALL setParagraphFormat( const ::com::sun::star::uno::Reference< ::ooo::vba::word::XParagraphFormat >& _paragraphformat ) throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::uno::Any SAL_CALL getStyle() throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual void SAL_CALL setStyle( const ::com::sun::star::uno::Any& _style ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getXTextRange() throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XFont > SAL_CALL getFont() throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::sal_Int32 SAL_CALL getLanguageID() throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual void SAL_CALL setLanguageID( ::sal_Int32 _languageid ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::sal_Int32 SAL_CALL getStart() throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual void SAL_CALL setStart( ::sal_Int32 _start ) throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::sal_Int32 SAL_CALL getEnd() throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual void SAL_CALL setEnd( ::sal_Int32 _end ) throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XListFormat > SAL_CALL getListFormat() throw (::com::sun::star::uno::RuntimeException) = 0;
43 : :
44 : : // Methods
45 : : virtual void SAL_CALL InsertBreak( const ::com::sun::star::uno::Any& Type ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual void SAL_CALL Select( ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual void SAL_CALL InsertParagraph( ) throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual void SAL_CALL InsertParagraphBefore( ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual void SAL_CALL InsertParagraphAfter( ) 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 ::sal_Bool SAL_CALL InRange( const ::com::sun::star::uno::Reference< ::ooo::vba::word::XRange >& Range ) throw (::com::sun::star::uno::RuntimeException) = 0;
52 : : virtual ::com::sun::star::uno::Any SAL_CALL Revisions( const ::com::sun::star::uno::Any& index ) throw (::com::sun::star::uno::RuntimeException) = 0;
53 : : virtual ::com::sun::star::uno::Any SAL_CALL Sections( const ::com::sun::star::uno::Any& index ) throw (::com::sun::star::uno::RuntimeException) = 0;
54 : : virtual ::com::sun::star::uno::Any SAL_CALL Fields( const ::com::sun::star::uno::Any& index ) throw (::com::sun::star::uno::RuntimeException) = 0;
55 : :
56 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
57 : :
58 : : protected:
59 : 0 : ~XRange() throw () {} // avoid warnings about virtual members and non-virtual dtor
60 : : };
61 : :
62 : :
63 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::word::XRange const *);
64 : : } } }
65 : :
66 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::word::XRange > *) SAL_THROW(());
67 : :
68 : : #endif
|