1 | #ifndef INCLUDED_COM_SUN_STAR_LINGUISTIC2_XHYPHENATOR_HDL |
2 | #define INCLUDED_COM_SUN_STAR_LINGUISTIC2_XHYPHENATOR_HDL |
3 | |
4 | #include "sal/config.h" |
5 | |
6 | #include <exception> |
7 | |
8 | #include "com/sun/star/beans/PropertyValues.hdl" |
9 | #include "com/sun/star/lang/IllegalArgumentException.hdl" |
10 | #include "com/sun/star/lang/Locale.hdl" |
11 | namespace com { namespace sun { namespace star { namespace linguistic2 { class XHyphenatedWord; } } } } |
12 | namespace com { namespace sun { namespace star { namespace linguistic2 { class XPossibleHyphens; } } } } |
13 | #include "com/sun/star/linguistic2/XSupportedLocales.hdl" |
14 | #include "com/sun/star/uno/RuntimeException.hdl" |
15 | #include "com/sun/star/uno/Reference.h" |
16 | #include "cppu/macros.hxx" |
17 | #include "rtl/ustring.hxx" |
18 | #include "sal/types.h" |
19 | |
20 | namespace com { namespace sun { namespace star { namespace uno { class Type; } } } } |
21 | |
22 | namespace com { namespace sun { namespace star { namespace linguistic2 { |
23 | |
24 | class SAL_NO_VTABLE XHyphenator : public ::css::linguistic2::XSupportedLocales |
25 | { |
26 | public: |
27 | |
28 | // Methods |
29 | virtual ::css::uno::Reference< ::css::linguistic2::XHyphenatedWord > SAL_CALL hyphenate( const ::rtl::OUString& aWord, const ::css::lang::Locale& aLocale, ::sal_Int16 nMaxLeading, const ::css::uno::Sequence< ::css::beans::PropertyValue >& aProperties ) /* throw (::css::lang::IllegalArgumentException, ::css::uno::RuntimeException, ::std::exception) */ = 0; |
30 | virtual ::css::uno::Reference< ::css::linguistic2::XHyphenatedWord > SAL_CALL queryAlternativeSpelling( const ::rtl::OUString& aWord, const ::css::lang::Locale& aLocale, ::sal_Int16 nIndex, const ::css::uno::Sequence< ::css::beans::PropertyValue >& aProperties ) /* throw (::css::lang::IllegalArgumentException, ::css::uno::RuntimeException, ::std::exception) */ = 0; |
31 | virtual ::css::uno::Reference< ::css::linguistic2::XPossibleHyphens > SAL_CALL createPossibleHyphens( const ::rtl::OUString& aWord, const ::css::lang::Locale& aLocale, const ::css::uno::Sequence< ::css::beans::PropertyValue >& aProperties ) /* throw (::css::lang::IllegalArgumentException, ::css::uno::RuntimeException, ::std::exception) */ = 0; |
32 | |
33 | static inline ::css::uno::Type const & SAL_CALL static_type(void * = 0); |
34 | |
35 | protected: |
36 | ~XHyphenator() throw () {} // avoid warnings about virtual members and non-virtual dtor |
37 | }; |
38 | |
39 | |
40 | inline ::css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::css::linguistic2::XHyphenator const *); |
41 | } } } } |
42 | |
43 | inline ::css::uno::Type const & SAL_CALL getCppuType(const ::css::uno::Reference< ::css::linguistic2::XHyphenator > *) SAL_THROW(()); |
44 | |
45 | #endif |
46 | |