Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include <com/sun/star/uno/Reference.h>
30 : : #include <osl/mutex.hxx>
31 : :
32 : : #include "nthesdta.hxx"
33 : : #include <linguistic/misc.hxx>
34 : :
35 : : using namespace utl;
36 : : using namespace osl;
37 : : using namespace com::sun::star;
38 : : using namespace com::sun::star::beans;
39 : : using namespace com::sun::star::lang;
40 : : using namespace com::sun::star::uno;
41 : : using namespace com::sun::star::linguistic2;
42 : :
43 : : using ::rtl::OUString;
44 : :
45 : : namespace linguistic
46 : : {
47 : :
48 : : ///////////////////////////////////////////////////////////////////////////
49 : :
50 : 0 : Meaning::Meaning(
51 : : #if 0
52 : : const OUString &rTerm, sal_Int16 nLang,
53 : : const PropertyHelper_Thes &rHelper ) :
54 : : #else
55 : : const OUString &rTerm, sal_Int16 nLang) :
56 : : #endif
57 : :
58 : : aSyn ( Sequence< OUString >(1) ),
59 : : aTerm (rTerm),
60 [ # # ]: 0 : nLanguage (nLang)
61 : :
62 : : {
63 : : #if 0
64 : : // this is for future use by a german thesaurus when one exists
65 : : bIsGermanPreReform = rHelper.IsGermanPreReform;
66 : : #endif
67 : 0 : }
68 : :
69 : :
70 [ # # ]: 0 : Meaning::~Meaning()
71 : : {
72 [ # # ]: 0 : }
73 : :
74 : :
75 : 0 : OUString SAL_CALL Meaning::getMeaning()
76 : : throw(RuntimeException)
77 : : {
78 [ # # ][ # # ]: 0 : MutexGuard aGuard( GetLinguMutex() );
79 [ # # ]: 0 : return aTerm;
80 : : }
81 : :
82 : :
83 : 0 : Sequence< OUString > SAL_CALL Meaning::querySynonyms()
84 : : throw(RuntimeException)
85 : : {
86 [ # # ][ # # ]: 0 : MutexGuard aGuard( GetLinguMutex() );
87 [ # # ][ # # ]: 0 : return aSyn;
88 : : }
89 : :
90 : :
91 : 0 : void Meaning::SetSynonyms( const Sequence< OUString > &rSyn )
92 : : {
93 [ # # ][ # # ]: 0 : MutexGuard aGuard( GetLinguMutex() );
94 [ # # ][ # # ]: 0 : aSyn = rSyn;
95 : 0 : }
96 : :
97 : 0 : void Meaning::SetMeaning( const OUString &rTerm )
98 : : {
99 [ # # ][ # # ]: 0 : MutexGuard aGuard( GetLinguMutex() );
100 [ # # ]: 0 : aTerm = rTerm;
101 : 0 : }
102 : :
103 : : ///////////////////////////////////////////////////////////////////////////
104 : :
105 : : } // namespace linguistic
106 : :
107 : :
108 : :
109 : :
110 : :
111 : :
112 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|