diff options
Diffstat (limited to 'linguistic/inc/linguistic/spelldta.hxx')
-rw-r--r-- | linguistic/inc/linguistic/spelldta.hxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/linguistic/inc/linguistic/spelldta.hxx b/linguistic/inc/linguistic/spelldta.hxx index afc8fab96564..827dad15a3f4 100644 --- a/linguistic/inc/linguistic/spelldta.hxx +++ b/linguistic/inc/linguistic/spelldta.hxx @@ -35,10 +35,12 @@ #include <tools/solar.h> -#include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type +#include <uno/lbnames.h> #include <cppuhelper/implbase2.hxx> #include <linguistic/lngdllapi.h> +#include <boost/noncopyable.hpp> + namespace com { namespace sun { namespace star { namespace linguistic2 { class XDictionaryList; @@ -75,27 +77,22 @@ void SearchSimilarText( const rtl::OUString &rText, sal_Int16 nLanguage, /////////////////////////////////////////////////////////////////////////// -class SpellAlternatives : - public cppu::WeakImplHelper2 +class SpellAlternatives + : public cppu::WeakImplHelper2 < ::com::sun::star::linguistic2::XSpellAlternatives, ::com::sun::star::linguistic2::XSetSpellAlternatives > + , private ::boost::noncopyable { ::com::sun::star::uno::Sequence< ::rtl::OUString > aAlt; // list of alternatives, may be empty. ::rtl::OUString aWord; sal_Int16 nType; // type of failure sal_Int16 nLanguage; - // disallow copy-constructor and assignment-operator for now - SpellAlternatives(const SpellAlternatives &); - SpellAlternatives & operator = (const SpellAlternatives &); - public: SpellAlternatives(); SpellAlternatives(const ::rtl::OUString &rWord, sal_Int16 nLang, sal_Int16 nFailureType, - const ::rtl::OUString &rRplcWord ); - SpellAlternatives(const ::rtl::OUString &rWord, sal_Int16 nLang, sal_Int16 nFailureType, const ::com::sun::star::uno::Sequence< ::rtl::OUString > &rAlternatives ); virtual ~SpellAlternatives(); |