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() = 0;
29 : virtual void SAL_CALL setText( const ::rtl::OUString& _text ) = 0;
30 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XParagraphFormat > SAL_CALL getParagraphFormat() = 0;
31 : virtual void SAL_CALL setParagraphFormat( const ::com::sun::star::uno::Reference< ::ooo::vba::word::XParagraphFormat >& _paragraphformat ) = 0;
32 : virtual ::com::sun::star::uno::Any SAL_CALL getStyle() = 0;
33 : virtual void SAL_CALL setStyle( const ::com::sun::star::uno::Any& _style ) = 0;
34 : virtual ::com::sun::star::uno::Reference< css::text::XTextRange > SAL_CALL getXTextRange() = 0;
35 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XFont > SAL_CALL getFont() = 0;
36 : virtual ::sal_Int32 SAL_CALL getLanguageID() = 0;
37 : virtual void SAL_CALL setLanguageID( ::sal_Int32 _languageid ) = 0;
38 : virtual ::sal_Int32 SAL_CALL getStart() = 0;
39 : virtual void SAL_CALL setStart( ::sal_Int32 _start ) = 0;
40 : virtual ::sal_Int32 SAL_CALL getEnd() = 0;
41 : virtual void SAL_CALL setEnd( ::sal_Int32 _end ) = 0;
42 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XListFormat > SAL_CALL getListFormat() = 0;
43 :
44 : // Methods
45 : virtual void SAL_CALL InsertBreak( const ::com::sun::star::uno::Any& Type ) = 0;
46 : virtual void SAL_CALL Select() = 0;
47 : virtual void SAL_CALL InsertParagraph() = 0;
48 : virtual void SAL_CALL InsertParagraphBefore() = 0;
49 : virtual void SAL_CALL InsertParagraphAfter() = 0;
50 : virtual ::com::sun::star::uno::Any SAL_CALL PageSetup() = 0;
51 : virtual ::sal_Bool SAL_CALL InRange( const ::com::sun::star::uno::Reference< ::ooo::vba::word::XRange >& Range ) = 0;
52 : virtual ::com::sun::star::uno::Any SAL_CALL Revisions( const ::com::sun::star::uno::Any& index ) = 0;
53 : virtual ::com::sun::star::uno::Any SAL_CALL Sections( const ::com::sun::star::uno::Any& index ) = 0;
54 : virtual ::com::sun::star::uno::Any SAL_CALL Fields( const ::com::sun::star::uno::Any& index ) = 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
|