merged tag ooo/DEV300_m83
[LibreOffice.git] / lingucomponent / source / thesaurus / libnth / nthesdta.cxx
blob0c071a4eeb1f0d29a0c0391f881febec99889be1
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 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_lingucomponent.hxx"
30 #include <com/sun/star/uno/Reference.h>
31 #include <tools/debug.hxx>
32 #include <unotools/processfactory.hxx>
33 #include <osl/mutex.hxx>
35 #include "nthesdta.hxx"
36 #include <linguistic/misc.hxx>
38 // #include "lngsvcmgr.hxx"
41 using namespace utl;
42 using namespace osl;
43 using namespace rtl;
44 using namespace com::sun::star;
45 using namespace com::sun::star::beans;
46 using namespace com::sun::star::lang;
47 using namespace com::sun::star::uno;
48 using namespace com::sun::star::linguistic2;
50 namespace linguistic
53 ///////////////////////////////////////////////////////////////////////////
55 Meaning::Meaning(
56 #if 0
57 const OUString &rTerm, INT16 nLang,
58 const PropertyHelper_Thes &rHelper ) :
59 #else
60 const OUString &rTerm, INT16 nLang) :
61 #endif
63 aSyn ( Sequence< OUString >(1) ),
64 aTerm (rTerm),
65 nLanguage (nLang)
68 #if 0
69 // this is for future use by a german thesaurus when one exists
70 bIsGermanPreReform = rHelper.IsGermanPreReform;
71 #endif
75 Meaning::~Meaning()
80 OUString SAL_CALL Meaning::getMeaning()
81 throw(RuntimeException)
83 MutexGuard aGuard( GetLinguMutex() );
84 return aTerm;
88 Sequence< OUString > SAL_CALL Meaning::querySynonyms()
89 throw(RuntimeException)
91 MutexGuard aGuard( GetLinguMutex() );
92 return aSyn;
96 void Meaning::SetSynonyms( const Sequence< OUString > &rSyn )
98 MutexGuard aGuard( GetLinguMutex() );
99 aSyn = rSyn;
102 void Meaning::SetMeaning( const OUString &rTerm )
104 MutexGuard aGuard( GetLinguMutex() );
105 aTerm = rTerm;
108 ///////////////////////////////////////////////////////////////////////////
110 } // namespace linguistic