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"
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
;
53 ///////////////////////////////////////////////////////////////////////////
57 const OUString
&rTerm
, INT16 nLang
,
58 const PropertyHelper_Thes
&rHelper
) :
60 const OUString
&rTerm
, INT16 nLang
) :
63 aSyn ( Sequence
< OUString
>(1) ),
69 // this is for future use by a german thesaurus when one exists
70 bIsGermanPreReform
= rHelper
.IsGermanPreReform
;
80 OUString SAL_CALL
Meaning::getMeaning()
81 throw(RuntimeException
)
83 MutexGuard
aGuard( GetLinguMutex() );
88 Sequence
< OUString
> SAL_CALL
Meaning::querySynonyms()
89 throw(RuntimeException
)
91 MutexGuard
aGuard( GetLinguMutex() );
96 void Meaning::SetSynonyms( const Sequence
< OUString
> &rSyn
)
98 MutexGuard
aGuard( GetLinguMutex() );
102 void Meaning::SetMeaning( const OUString
&rTerm
)
104 MutexGuard
aGuard( GetLinguMutex() );
108 ///////////////////////////////////////////////////////////////////////////
110 } // namespace linguistic