Branch data Line data Source code
1 : : #ifndef INCLUDED_OOO_VBA_WORD_XSELECTION_HDL
2 : : #define INCLUDED_OOO_VBA_WORD_XSELECTION_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : namespace ooo { namespace vba { namespace word { class XFont; } } }
8 : : namespace ooo { namespace vba { namespace word { class XFind; } } }
9 : : namespace ooo { namespace vba { namespace word { class XParagraphFormat; } } }
10 : : namespace ooo { namespace vba { namespace word { class XRange; } } }
11 : : namespace ooo { namespace vba { namespace word { class XHeaderFooter; } } }
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 XSelection : 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::XRange > SAL_CALL getRange() throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XParagraphFormat > SAL_CALL getParagraphFormat() throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual void SAL_CALL setParagraphFormat( const ::com::sun::star::uno::Reference< ::ooo::vba::word::XParagraphFormat >& _paragraphformat ) throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XFind > SAL_CALL getFind() throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::com::sun::star::uno::Any SAL_CALL getStyle() throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual void SAL_CALL setStyle( const ::com::sun::star::uno::Any& _style ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XFont > SAL_CALL getFont() throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XHeaderFooter > SAL_CALL getHeaderFooter() throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::sal_Int32 SAL_CALL getLanguageID() throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual void SAL_CALL setLanguageID( ::sal_Int32 _languageid ) throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::sal_Int32 SAL_CALL getStart() throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual void SAL_CALL setStart( ::sal_Int32 _start ) throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::sal_Int32 SAL_CALL getEnd() throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual void SAL_CALL setEnd( ::sal_Int32 _end ) throw (::com::sun::star::uno::RuntimeException) = 0;
44 : :
45 : : // Methods
46 : : virtual ::com::sun::star::uno::Any SAL_CALL Tables( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::com::sun::star::uno::Any SAL_CALL Fields( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual void SAL_CALL TypeText( const ::rtl::OUString& Text ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual void SAL_CALL HomeKey( const ::com::sun::star::uno::Any& Unit, const ::com::sun::star::uno::Any& Extend ) throw (::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual void SAL_CALL EndKey( const ::com::sun::star::uno::Any& Unit, const ::com::sun::star::uno::Any& Extend ) throw (::com::sun::star::uno::RuntimeException) = 0;
51 : : virtual void SAL_CALL Delete( const ::com::sun::star::uno::Any& Unit, const ::com::sun::star::uno::Any& Count ) throw (::com::sun::star::uno::RuntimeException) = 0;
52 : : virtual void SAL_CALL MoveRight( const ::com::sun::star::uno::Any& Unit, const ::com::sun::star::uno::Any& Count, const ::com::sun::star::uno::Any& Extend ) throw (::com::sun::star::uno::RuntimeException) = 0;
53 : : virtual void SAL_CALL MoveLeft( const ::com::sun::star::uno::Any& Unit, const ::com::sun::star::uno::Any& Count, const ::com::sun::star::uno::Any& Extend ) throw (::com::sun::star::uno::RuntimeException) = 0;
54 : : virtual void SAL_CALL MoveDown( const ::com::sun::star::uno::Any& Unit, const ::com::sun::star::uno::Any& Count, const ::com::sun::star::uno::Any& Extend ) throw (::com::sun::star::uno::RuntimeException) = 0;
55 : : virtual void SAL_CALL MoveUp( const ::com::sun::star::uno::Any& Unit, const ::com::sun::star::uno::Any& Count, const ::com::sun::star::uno::Any& Extend ) throw (::com::sun::star::uno::RuntimeException) = 0;
56 : : virtual void SAL_CALL TypeParagraph( ) throw (::com::sun::star::uno::RuntimeException) = 0;
57 : : virtual void SAL_CALL InsertParagraph( ) throw (::com::sun::star::uno::RuntimeException) = 0;
58 : : virtual void SAL_CALL InsertParagraphBefore( ) throw (::com::sun::star::uno::RuntimeException) = 0;
59 : : virtual void SAL_CALL InsertParagraphAfter( ) throw (::com::sun::star::uno::RuntimeException) = 0;
60 : : virtual void SAL_CALL TypeBackspace( ) throw (::com::sun::star::uno::RuntimeException) = 0;
61 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XRange > SAL_CALL GoTo( const ::com::sun::star::uno::Any& What, const ::com::sun::star::uno::Any& Which, const ::com::sun::star::uno::Any& Count, const ::com::sun::star::uno::Any& Name ) throw (::com::sun::star::uno::RuntimeException) = 0;
62 : : virtual ::com::sun::star::uno::Any SAL_CALL Information( ::sal_Int32 Type ) throw (::com::sun::star::uno::RuntimeException) = 0;
63 : : virtual void SAL_CALL InsertBreak( const ::com::sun::star::uno::Any& Type ) throw (::com::sun::star::uno::RuntimeException) = 0;
64 : : virtual ::com::sun::star::uno::Any SAL_CALL ShapeRange( ) throw (::com::sun::star::uno::RuntimeException) = 0;
65 : : virtual void SAL_CALL SelectColumn( ) throw (::com::sun::star::uno::RuntimeException) = 0;
66 : : virtual void SAL_CALL SelectRow( ) throw (::com::sun::star::uno::RuntimeException) = 0;
67 : : virtual ::com::sun::star::uno::Any SAL_CALL Rows( const ::com::sun::star::uno::Any& aIndex ) throw (::com::sun::star::uno::RuntimeException) = 0;
68 : : virtual ::com::sun::star::uno::Any SAL_CALL Columns( const ::com::sun::star::uno::Any& aIndex ) throw (::com::sun::star::uno::RuntimeException) = 0;
69 : : virtual ::com::sun::star::uno::Any SAL_CALL Cells( const ::com::sun::star::uno::Any& aIndex ) throw (::com::sun::star::uno::RuntimeException) = 0;
70 : : virtual void SAL_CALL Copy( ) throw (::com::sun::star::uno::RuntimeException) = 0;
71 : : virtual void SAL_CALL CopyAsPicture( ) throw (::com::sun::star::uno::RuntimeException) = 0;
72 : : virtual void SAL_CALL Paste( ) throw (::com::sun::star::uno::RuntimeException) = 0;
73 : : virtual void SAL_CALL Collapse( const ::com::sun::star::uno::Any& Direction ) throw (::com::sun::star::uno::RuntimeException) = 0;
74 : : virtual void SAL_CALL WholeStory( ) throw (::com::sun::star::uno::RuntimeException) = 0;
75 : : virtual ::sal_Bool SAL_CALL InRange( const ::com::sun::star::uno::Reference< ::ooo::vba::word::XRange >& Range ) throw (::com::sun::star::uno::RuntimeException) = 0;
76 : : virtual void SAL_CALL SplitTable( ) throw (::com::sun::star::uno::RuntimeException) = 0;
77 : : virtual ::com::sun::star::uno::Any SAL_CALL Paragraphs( const ::com::sun::star::uno::Any& aIndex ) throw (::com::sun::star::uno::RuntimeException) = 0;
78 : :
79 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
80 : :
81 : : protected:
82 : 0 : ~XSelection() throw () {} // avoid warnings about virtual members and non-virtual dtor
83 : : };
84 : :
85 : :
86 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::word::XSelection const *);
87 : : } } }
88 : :
89 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::word::XSelection > *) SAL_THROW(());
90 : :
91 : : #endif
|