Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_LINGUISTIC2_XDICTIONARY_HDL
2 : #define INCLUDED_COM_SUN_STAR_LINGUISTIC2_XDICTIONARY_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/container/XNamed.hdl"
7 : #include "com/sun/star/lang/Locale.hdl"
8 : #include "com/sun/star/linguistic2/DictionaryType.hdl"
9 : namespace com { namespace sun { namespace star { namespace linguistic2 { class XDictionaryEntry; } } } }
10 : namespace com { namespace sun { namespace star { namespace linguistic2 { class XDictionaryEventListener; } } } }
11 : #include "com/sun/star/uno/RuntimeException.hdl"
12 : #include "com/sun/star/uno/Reference.h"
13 : #include "com/sun/star/uno/Sequence.h"
14 : #include "cppu/macros.hxx"
15 : #include "rtl/ustring.hxx"
16 : #include "sal/types.h"
17 :
18 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
19 :
20 : namespace com { namespace sun { namespace star { namespace linguistic2 {
21 :
22 91 : class SAL_NO_VTABLE XDictionary : public css::container::XNamed
23 : {
24 : public:
25 :
26 : // Methods
27 : virtual css::linguistic2::DictionaryType SAL_CALL getDictionaryType() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
28 : virtual void SAL_CALL setActive( ::sal_Bool bActivate ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
29 : virtual ::sal_Bool SAL_CALL isActive() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual ::sal_Int32 SAL_CALL getCount() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual css::lang::Locale SAL_CALL getLocale() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual void SAL_CALL setLocale( const css::lang::Locale& aLocale ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual ::com::sun::star::uno::Reference< css::linguistic2::XDictionaryEntry > SAL_CALL getEntry( const ::rtl::OUString& aWord ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual ::sal_Bool SAL_CALL addEntry( const ::com::sun::star::uno::Reference< css::linguistic2::XDictionaryEntry >& xDicEntry ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual ::sal_Bool SAL_CALL add( const ::rtl::OUString& aWord, ::sal_Bool bIsNegative, const ::rtl::OUString& aRplcText ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual ::sal_Bool SAL_CALL remove( const ::rtl::OUString& aWord ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual ::sal_Bool SAL_CALL isFull() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::linguistic2::XDictionaryEntry > > SAL_CALL getEntries() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual void SAL_CALL clear() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual ::sal_Bool SAL_CALL addDictionaryEventListener( const ::com::sun::star::uno::Reference< css::linguistic2::XDictionaryEventListener >& xListener ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual ::sal_Bool SAL_CALL removeDictionaryEventListener( const ::com::sun::star::uno::Reference< css::linguistic2::XDictionaryEventListener >& xListener ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
42 :
43 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
44 :
45 : protected:
46 91 : ~XDictionary() throw () {} // avoid warnings about virtual members and non-virtual dtor
47 : };
48 :
49 :
50 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::linguistic2::XDictionary const *);
51 : } } } }
52 :
53 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::linguistic2::XDictionary > *) SAL_THROW(());
54 :
55 : #endif
|