Line data Source code
1 : #ifndef INCLUDED_OOO_VBA_WORD_XFIND_HDL
2 : #define INCLUDED_OOO_VBA_WORD_XFIND_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/RuntimeException.hdl"
7 : #include "ooo/vba/XHelperInterface.hdl"
8 : #include "com/sun/star/uno/Any.h"
9 : #include "com/sun/star/uno/Reference.h"
10 : #include "cppu/macros.hxx"
11 : #include "rtl/ustring.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 XFind : public ::ooo::vba::XHelperInterface
19 : {
20 : public:
21 :
22 : // Attributes
23 : virtual ::rtl::OUString SAL_CALL getText() = 0;
24 : virtual void SAL_CALL setText( const ::rtl::OUString& _text ) = 0;
25 : virtual ::com::sun::star::uno::Any SAL_CALL getReplacement() = 0;
26 : virtual void SAL_CALL setReplacement( const ::com::sun::star::uno::Any& _replacement ) = 0;
27 : virtual ::sal_Bool SAL_CALL getForward() = 0;
28 : virtual void SAL_CALL setForward( ::sal_Bool _forward ) = 0;
29 : virtual ::sal_Int32 SAL_CALL getWrap() = 0;
30 : virtual void SAL_CALL setWrap( ::sal_Int32 _wrap ) = 0;
31 : virtual ::sal_Bool SAL_CALL getFormat() = 0;
32 : virtual void SAL_CALL setFormat( ::sal_Bool _format ) = 0;
33 : virtual ::sal_Bool SAL_CALL getMatchCase() = 0;
34 : virtual void SAL_CALL setMatchCase( ::sal_Bool _matchcase ) = 0;
35 : virtual ::sal_Bool SAL_CALL getMatchWholeWord() = 0;
36 : virtual void SAL_CALL setMatchWholeWord( ::sal_Bool _matchwholeword ) = 0;
37 : virtual ::sal_Bool SAL_CALL getMatchWildcards() = 0;
38 : virtual void SAL_CALL setMatchWildcards( ::sal_Bool _matchwildcards ) = 0;
39 : virtual ::sal_Bool SAL_CALL getMatchSoundsLike() = 0;
40 : virtual void SAL_CALL setMatchSoundsLike( ::sal_Bool _matchsoundslike ) = 0;
41 : virtual ::sal_Bool SAL_CALL getMatchAllWordForms() = 0;
42 : virtual void SAL_CALL setMatchAllWordForms( ::sal_Bool _matchallwordforms ) = 0;
43 : virtual ::com::sun::star::uno::Any SAL_CALL getStyle() = 0;
44 : virtual void SAL_CALL setStyle( const ::com::sun::star::uno::Any& _style ) = 0;
45 :
46 : // Methods
47 : virtual ::sal_Bool SAL_CALL Execute( const ::com::sun::star::uno::Any& FindText, const ::com::sun::star::uno::Any& MatchCase, const ::com::sun::star::uno::Any& MatchWholeWord, const ::com::sun::star::uno::Any& MatchWildcards, const ::com::sun::star::uno::Any& MatchSoundsLike, const ::com::sun::star::uno::Any& MatchAllWordForms, const ::com::sun::star::uno::Any& Forward, const ::com::sun::star::uno::Any& Wrap, const ::com::sun::star::uno::Any& Format, const ::com::sun::star::uno::Any& ReplaceWith, const ::com::sun::star::uno::Any& Replace, const ::com::sun::star::uno::Any& MatchKashida, const ::com::sun::star::uno::Any& MatchDiacritics, const ::com::sun::star::uno::Any& MatchAlefHamza, const ::com::sun::star::uno::Any& MatchControl, const ::com::sun::star::uno::Any& MatchPrefix, const ::com::sun::star::uno::Any& MatchSuffix, const ::com::sun::star::uno::Any& MatchPhrase, const ::com::sun::star::uno::Any& IgnoreSpace, const ::com::sun::star::uno::Any& IgnorePunct ) = 0;
48 : virtual void SAL_CALL ClearFormatting() = 0;
49 :
50 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
51 :
52 : protected:
53 0 : ~XFind() throw () {} // avoid warnings about virtual members and non-virtual dtor
54 : };
55 :
56 :
57 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::word::XFind const *);
58 : } } }
59 :
60 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::word::XFind > *) SAL_THROW(());
61 :
62 : #endif
|