1*e7675e54SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*e7675e54SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*e7675e54SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*e7675e54SAndrew Rist * distributed with this work for additional information 6*e7675e54SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*e7675e54SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*e7675e54SAndrew Rist * "License"); you may not use this file except in compliance 9*e7675e54SAndrew Rist * with the License. You may obtain a copy of the License at 10*e7675e54SAndrew Rist * 11*e7675e54SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*e7675e54SAndrew Rist * 13*e7675e54SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*e7675e54SAndrew Rist * software distributed under the License is distributed on an 15*e7675e54SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*e7675e54SAndrew Rist * KIND, either express or implied. See the License for the 17*e7675e54SAndrew Rist * specific language governing permissions and limitations 18*e7675e54SAndrew Rist * under the License. 19*e7675e54SAndrew Rist * 20*e7675e54SAndrew Rist *************************************************************/ 21*e7675e54SAndrew Rist 22*e7675e54SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _LINGUISTIC_THESDTA_HXX_ 25cdf0e10cSrcweir #define _LINGUISTIC_THESDTA_HXX_ 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <com/sun/star/linguistic2/XMeaning.hpp> 29cdf0e10cSrcweir 30cdf0e10cSrcweir #include <tools/solar.h> 31cdf0e10cSrcweir 32cdf0e10cSrcweir #include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type 33cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx> // helper for implementations 34cdf0e10cSrcweir 35cdf0e10cSrcweir 36cdf0e10cSrcweir namespace linguistic 37cdf0e10cSrcweir { 38cdf0e10cSrcweir 39cdf0e10cSrcweir class Meaning : 40cdf0e10cSrcweir public cppu::WeakImplHelper1 41cdf0e10cSrcweir < 42cdf0e10cSrcweir ::com::sun::star::linguistic2::XMeaning 43cdf0e10cSrcweir > 44cdf0e10cSrcweir { 45cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::rtl::OUString > aSyn; // list of synonyms, may be empty. 46cdf0e10cSrcweir ::rtl::OUString aTerm; 47cdf0e10cSrcweir sal_Int16 nLanguage; 48cdf0e10cSrcweir 49cdf0e10cSrcweir #if 0 50cdf0e10cSrcweir // this is for future use by a German thesaurus 51cdf0e10cSrcweir sal_Bool bIsGermanPreReform; 52cdf0e10cSrcweir #endif 53cdf0e10cSrcweir 54cdf0e10cSrcweir // disallow copy-constructor and assignment-operator for now 55cdf0e10cSrcweir Meaning(const Meaning &); 56cdf0e10cSrcweir Meaning & operator = (const Meaning &); 57cdf0e10cSrcweir 58cdf0e10cSrcweir public: 59cdf0e10cSrcweir #if 0 60cdf0e10cSrcweir Meaning(const ::rtl::OUString &rTerm, sal_Int16 nLang, const PropertyHelper_Thes &rHelper); 61cdf0e10cSrcweir #else 62cdf0e10cSrcweir Meaning(const ::rtl::OUString &rTerm, sal_Int16 nLang); 63cdf0e10cSrcweir #endif 64cdf0e10cSrcweir virtual ~Meaning(); 65cdf0e10cSrcweir 66cdf0e10cSrcweir // XMeaning 67cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getMeaning() throw(::com::sun::star::uno::RuntimeException); 68cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL querySynonyms() throw(::com::sun::star::uno::RuntimeException); 69cdf0e10cSrcweir 70cdf0e10cSrcweir // non-interface specific functions 71cdf0e10cSrcweir void SetSynonyms( const ::com::sun::star::uno::Sequence< ::rtl::OUString > &rSyn ); 72cdf0e10cSrcweir void SetMeaning( const ::rtl::OUString &rTerm ); 73cdf0e10cSrcweir }; 74cdf0e10cSrcweir 75cdf0e10cSrcweir 76cdf0e10cSrcweir /////////////////////////////////////////////////////////////////////////// 77cdf0e10cSrcweir 78cdf0e10cSrcweir } // namespace linguistic 79cdf0e10cSrcweir 80cdf0e10cSrcweir #endif 81cdf0e10cSrcweir 82cdf0e10cSrcweir 83