1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: nthesdta.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_lingucomponent.hxx"
33 #include <com/sun/star/uno/Reference.h>
34 #include <tools/debug.hxx>
35 #include <unotools/processfactory.hxx>
36 #include <osl/mutex.hxx>
38 #include "nthesdta.hxx"
39 #include <linguistic/misc.hxx>
41 // #include "lngsvcmgr.hxx"
47 using namespace com::sun::star
;
48 using namespace com::sun::star::beans
;
49 using namespace com::sun::star::lang
;
50 using namespace com::sun::star::uno
;
51 using namespace com::sun::star::linguistic2
;
56 ///////////////////////////////////////////////////////////////////////////
60 const OUString
&rTerm
, INT16 nLang
,
61 const PropertyHelper_Thes
&rHelper
) :
63 const OUString
&rTerm
, INT16 nLang
) :
66 aSyn ( Sequence
< OUString
>(1) ),
72 // this is for future use by a german thesaurus when one exists
73 bIsGermanPreReform
= rHelper
.IsGermanPreReform
;
83 OUString SAL_CALL
Meaning::getMeaning()
84 throw(RuntimeException
)
86 MutexGuard
aGuard( GetLinguMutex() );
91 Sequence
< OUString
> SAL_CALL
Meaning::querySynonyms()
92 throw(RuntimeException
)
94 MutexGuard
aGuard( GetLinguMutex() );
99 void Meaning::SetSynonyms( const Sequence
< OUString
> &rSyn
)
101 MutexGuard
aGuard( GetLinguMutex() );
105 void Meaning::SetMeaning( const OUString
&rTerm
)
107 MutexGuard
aGuard( GetLinguMutex() );
111 ///////////////////////////////////////////////////////////////////////////
113 } // namespace linguistic