1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef _LINGUISTIC_THESDTA_HXX_
29 #define _LINGUISTIC_THESDTA_HXX_
32 #include <com/sun/star/linguistic2/XMeaning.hpp>
34 #include <tools/solar.h>
36 #include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type
37 #include <cppuhelper/implbase1.hxx> // helper for implementations
44 public cppu::WeakImplHelper1
46 ::com::sun::star::linguistic2::XMeaning
49 ::com::sun::star::uno::Sequence
< ::rtl::OUString
> aSyn
; // list of synonyms, may be empty.
50 ::rtl::OUString aTerm
;
54 // this is for future use by a German thesaurus
55 sal_Bool bIsGermanPreReform
;
58 // disallow copy-constructor and assignment-operator for now
59 Meaning(const Meaning
&);
60 Meaning
& operator = (const Meaning
&);
64 Meaning(const ::rtl::OUString
&rTerm
, sal_Int16 nLang
, const PropertyHelper_Thes
&rHelper
);
66 Meaning(const ::rtl::OUString
&rTerm
, sal_Int16 nLang
);
71 virtual ::rtl::OUString SAL_CALL
getMeaning() throw(::com::sun::star::uno::RuntimeException
);
72 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
querySynonyms() throw(::com::sun::star::uno::RuntimeException
);
74 // non-interface specific functions
75 void SetSynonyms( const ::com::sun::star::uno::Sequence
< ::rtl::OUString
> &rSyn
);
76 void SetMeaning( const ::rtl::OUString
&rTerm
);
80 ///////////////////////////////////////////////////////////////////////////
82 } // namespace linguistic