sync master with lastest vba changes
[ooovba.git] / lingucomponent / source / thesaurus / libnth / nthesdta.cxx
blob43c73b3c630ba7caf54ac78cf8784bc262649176
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: nthesdta.cxx,v $
10 * $Revision: 1.6 $
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"
44 using namespace utl;
45 using namespace osl;
46 using namespace rtl;
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;
53 namespace linguistic
56 ///////////////////////////////////////////////////////////////////////////
58 Meaning::Meaning(
59 #if 0
60 const OUString &rTerm, INT16 nLang,
61 const PropertyHelper_Thes &rHelper ) :
62 #else
63 const OUString &rTerm, INT16 nLang) :
64 #endif
66 aSyn ( Sequence< OUString >(1) ),
67 aTerm (rTerm),
68 nLanguage (nLang)
71 #if 0
72 // this is for future use by a german thesaurus when one exists
73 bIsGermanPreReform = rHelper.IsGermanPreReform;
74 #endif
78 Meaning::~Meaning()
83 OUString SAL_CALL Meaning::getMeaning()
84 throw(RuntimeException)
86 MutexGuard aGuard( GetLinguMutex() );
87 return aTerm;
91 Sequence< OUString > SAL_CALL Meaning::querySynonyms()
92 throw(RuntimeException)
94 MutexGuard aGuard( GetLinguMutex() );
95 return aSyn;
99 void Meaning::SetSynonyms( const Sequence< OUString > &rSyn )
101 MutexGuard aGuard( GetLinguMutex() );
102 aSyn = rSyn;
105 void Meaning::SetMeaning( const OUString &rTerm )
107 MutexGuard aGuard( GetLinguMutex() );
108 aTerm = rTerm;
111 ///////////////////////////////////////////////////////////////////////////
113 } // namespace linguistic