1*b0844812SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*b0844812SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*b0844812SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*b0844812SAndrew Rist  * distributed with this work for additional information
6*b0844812SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*b0844812SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*b0844812SAndrew Rist  * "License"); you may not use this file except in compliance
9*b0844812SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*b0844812SAndrew Rist  *
11*b0844812SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*b0844812SAndrew Rist  *
13*b0844812SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*b0844812SAndrew Rist  * software distributed under the License is distributed on an
15*b0844812SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b0844812SAndrew Rist  * KIND, either express or implied.  See the License for the
17*b0844812SAndrew Rist  * specific language governing permissions and limitations
18*b0844812SAndrew Rist  * under the License.
19*b0844812SAndrew Rist  *
20*b0844812SAndrew Rist  *************************************************************/
21*b0844812SAndrew Rist 
22*b0844812SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_lingucomponent.hxx"
26cdf0e10cSrcweir #include <com/sun/star/uno/Reference.h>
27cdf0e10cSrcweir #include <tools/debug.hxx>
28cdf0e10cSrcweir #include <unotools/processfactory.hxx>
29cdf0e10cSrcweir #include <osl/mutex.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir #include "nthesdta.hxx"
32cdf0e10cSrcweir #include <linguistic/misc.hxx>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir // #include "lngsvcmgr.hxx"
35cdf0e10cSrcweir 
36cdf0e10cSrcweir 
37cdf0e10cSrcweir using namespace utl;
38cdf0e10cSrcweir using namespace osl;
39cdf0e10cSrcweir using namespace rtl;
40cdf0e10cSrcweir using namespace com::sun::star;
41cdf0e10cSrcweir using namespace com::sun::star::beans;
42cdf0e10cSrcweir using namespace com::sun::star::lang;
43cdf0e10cSrcweir using namespace com::sun::star::uno;
44cdf0e10cSrcweir using namespace com::sun::star::linguistic2;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir namespace linguistic
47cdf0e10cSrcweir {
48cdf0e10cSrcweir 
49cdf0e10cSrcweir ///////////////////////////////////////////////////////////////////////////
50cdf0e10cSrcweir 
Meaning(const OUString & rTerm,sal_Int16 nLang)51cdf0e10cSrcweir Meaning::Meaning(
52cdf0e10cSrcweir #if 0
53cdf0e10cSrcweir 			const OUString &rTerm, sal_Int16 nLang,
54cdf0e10cSrcweir 			const PropertyHelper_Thes &rHelper ) :
55cdf0e10cSrcweir #else
56cdf0e10cSrcweir 			const OUString &rTerm, sal_Int16 nLang) :
57cdf0e10cSrcweir #endif
58cdf0e10cSrcweir 
59cdf0e10cSrcweir     aSyn        ( Sequence< OUString >(1) ),
60cdf0e10cSrcweir     aTerm       (rTerm),
61cdf0e10cSrcweir     nLanguage   (nLang)
62cdf0e10cSrcweir 
63cdf0e10cSrcweir {
64cdf0e10cSrcweir #if 0
65cdf0e10cSrcweir     // this is for future use by a german thesaurus when one exists
66cdf0e10cSrcweir     bIsGermanPreReform = rHelper.IsGermanPreReform;
67cdf0e10cSrcweir #endif
68cdf0e10cSrcweir }
69cdf0e10cSrcweir 
70cdf0e10cSrcweir 
~Meaning()71cdf0e10cSrcweir Meaning::~Meaning()
72cdf0e10cSrcweir {
73cdf0e10cSrcweir }
74cdf0e10cSrcweir 
75cdf0e10cSrcweir 
getMeaning()76cdf0e10cSrcweir OUString SAL_CALL Meaning::getMeaning()
77cdf0e10cSrcweir 		throw(RuntimeException)
78cdf0e10cSrcweir {
79cdf0e10cSrcweir 	MutexGuard	aGuard( GetLinguMutex() );
80cdf0e10cSrcweir 	return aTerm;
81cdf0e10cSrcweir }
82cdf0e10cSrcweir 
83cdf0e10cSrcweir 
querySynonyms()84cdf0e10cSrcweir Sequence< OUString > SAL_CALL Meaning::querySynonyms()
85cdf0e10cSrcweir 		throw(RuntimeException)
86cdf0e10cSrcweir {
87cdf0e10cSrcweir 	MutexGuard	aGuard( GetLinguMutex() );
88cdf0e10cSrcweir         return aSyn;
89cdf0e10cSrcweir }
90cdf0e10cSrcweir 
91cdf0e10cSrcweir 
SetSynonyms(const Sequence<OUString> & rSyn)92cdf0e10cSrcweir void Meaning::SetSynonyms( const Sequence< OUString > &rSyn )
93cdf0e10cSrcweir {
94cdf0e10cSrcweir         MutexGuard      aGuard( GetLinguMutex() );
95cdf0e10cSrcweir         aSyn = rSyn;
96cdf0e10cSrcweir }
97cdf0e10cSrcweir 
SetMeaning(const OUString & rTerm)98cdf0e10cSrcweir void Meaning::SetMeaning( const OUString &rTerm )
99cdf0e10cSrcweir {
100cdf0e10cSrcweir         MutexGuard      aGuard( GetLinguMutex() );
101cdf0e10cSrcweir         aTerm = rTerm;
102cdf0e10cSrcweir }
103cdf0e10cSrcweir 
104cdf0e10cSrcweir ///////////////////////////////////////////////////////////////////////////
105cdf0e10cSrcweir 
106cdf0e10cSrcweir }	// namespace linguistic
107cdf0e10cSrcweir 
108cdf0e10cSrcweir 
109cdf0e10cSrcweir 
110cdf0e10cSrcweir 
111cdf0e10cSrcweir 
112cdf0e10cSrcweir 
113