Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_LINGUISTIC2_XCONVERSIONDICTIONARYLIST_HDL
2 : : #define INCLUDED_COM_SUN_STAR_LINGUISTIC2_XCONVERSIONDICTIONARYLIST_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
8 : : #include "com/sun/star/linguistic2/ConversionDirection.hdl"
9 : : #include "com/sun/star/lang/Locale.hdl"
10 : : #include "com/sun/star/lang/NoSupportException.hdl"
11 : : namespace com { namespace sun { namespace star { namespace container { class XNameContainer; } } } }
12 : : #include "com/sun/star/uno/XInterface.hdl"
13 : : namespace com { namespace sun { namespace star { namespace linguistic2 { class XConversionDictionary; } } } }
14 : : #include "com/sun/star/container/ElementExistException.hdl"
15 : : #include "com/sun/star/uno/Reference.h"
16 : : #include "com/sun/star/uno/Sequence.h"
17 : : #include "cppu/macros.hxx"
18 : : #include "rtl/ustring.hxx"
19 : : #include "sal/types.h"
20 : :
21 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
22 : :
23 : : namespace com { namespace sun { namespace star { namespace linguistic2 {
24 : :
25 : 0 : class SAL_NO_VTABLE XConversionDictionaryList : public ::com::sun::star::uno::XInterface
26 : : {
27 : : public:
28 : :
29 : : // Methods
30 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > SAL_CALL getDictionaryContainer( ) throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XConversionDictionary > SAL_CALL addNewDictionary( const ::rtl::OUString& aName, const ::com::sun::star::lang::Locale& aLocale, ::sal_Int16 nConversionDictionaryType ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL queryConversions( const ::rtl::OUString& aText, ::sal_Int32 nStartPos, ::sal_Int32 nLength, const ::com::sun::star::lang::Locale& aLocale, ::sal_Int16 nConversionDictionaryType, ::com::sun::star::linguistic2::ConversionDirection eDirection, ::sal_Int32 nTextConversionOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::sal_Int16 SAL_CALL queryMaxCharCount( const ::com::sun::star::lang::Locale& aLocale, ::sal_Int16 nConversionDictionaryType, ::com::sun::star::linguistic2::ConversionDirection eDirection ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : :
35 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
36 : :
37 : : protected:
38 : 0 : ~XConversionDictionaryList() throw () {} // avoid warnings about virtual members and non-virtual dtor
39 : : };
40 : :
41 : :
42 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::linguistic2::XConversionDictionaryList const *);
43 : : } } } }
44 : :
45 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XConversionDictionaryList > *) SAL_THROW(());
46 : :
47 : : #endif
|