Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_LINGUISTIC2_XCONVERSIONDICTIONARY_HDL
2 : : #define INCLUDED_COM_SUN_STAR_LINGUISTIC2_XCONVERSIONDICTIONARY_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/container/NoSuchElementException.hdl"
8 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
9 : : #include "com/sun/star/linguistic2/ConversionDirection.hdl"
10 : : #include "com/sun/star/lang/Locale.hdl"
11 : : #include "com/sun/star/uno/XInterface.hdl"
12 : : #include "com/sun/star/container/ElementExistException.hdl"
13 : : #include "com/sun/star/uno/Reference.h"
14 : : #include "com/sun/star/uno/Sequence.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 com { namespace sun { namespace star { namespace linguistic2 {
22 : :
23 : 0 : class SAL_NO_VTABLE XConversionDictionary : public ::com::sun::star::uno::XInterface
24 : : {
25 : : public:
26 : :
27 : : // Methods
28 : : virtual ::rtl::OUString SAL_CALL getName( ) throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::sal_Int16 SAL_CALL getConversionType( ) throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual void SAL_CALL setActive( ::sal_Bool bActivate ) throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::sal_Bool SAL_CALL isActive( ) throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual void SAL_CALL clear( ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getConversions( const ::rtl::OUString& aText, ::sal_Int32 nStartPos, ::sal_Int32 nLength, ::com::sun::star::linguistic2::ConversionDirection eDirection, ::sal_Int32 nTextConversionOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual void SAL_CALL addEntry( const ::rtl::OUString& aLeftText, const ::rtl::OUString& aRightText ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual void SAL_CALL removeEntry( const ::rtl::OUString& aLeftText, const ::rtl::OUString& aRightText ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::sal_Int16 SAL_CALL getMaxCharCount( ::com::sun::star::linguistic2::ConversionDirection eDirection ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getConversionEntries( ::com::sun::star::linguistic2::ConversionDirection eDirection ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : :
40 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
41 : :
42 : : protected:
43 : 0 : ~XConversionDictionary() throw () {} // avoid warnings about virtual members and non-virtual dtor
44 : : };
45 : :
46 : :
47 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::linguistic2::XConversionDictionary const *);
48 : : } } } }
49 : :
50 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XConversionDictionary > *) SAL_THROW(());
51 : :
52 : : #endif
|