1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27 28 #ifndef _LINGUISTIC_THESDTA_HXX_ 29 #define _LINGUISTIC_THESDTA_HXX_ 30 31 32 #include <com/sun/star/linguistic2/XMeaning.hpp> 33 34 #include <tools/solar.h> 35 36 #include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type 37 #include <cppuhelper/implbase1.hxx> // helper for implementations 38 39 40 namespace linguistic 41 { 42 43 class Meaning : 44 public cppu::WeakImplHelper1 45 < 46 ::com::sun::star::linguistic2::XMeaning 47 > 48 { 49 ::com::sun::star::uno::Sequence< ::rtl::OUString > aSyn; // list of synonyms, may be empty. 50 ::rtl::OUString aTerm; 51 sal_Int16 nLanguage; 52 53 #if 0 54 // this is for future use by a German thesaurus 55 sal_Bool bIsGermanPreReform; 56 #endif 57 58 // disallow copy-constructor and assignment-operator for now 59 Meaning(const Meaning &); 60 Meaning & operator = (const Meaning &); 61 62 public: 63 #if 0 64 Meaning(const ::rtl::OUString &rTerm, sal_Int16 nLang, const PropertyHelper_Thes &rHelper); 65 #else 66 Meaning(const ::rtl::OUString &rTerm, sal_Int16 nLang); 67 #endif 68 virtual ~Meaning(); 69 70 // XMeaning 71 virtual ::rtl::OUString SAL_CALL getMeaning() throw(::com::sun::star::uno::RuntimeException); 72 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL querySynonyms() throw(::com::sun::star::uno::RuntimeException); 73 74 // non-interface specific functions 75 void SetSynonyms( const ::com::sun::star::uno::Sequence< ::rtl::OUString > &rSyn ); 76 void SetMeaning( const ::rtl::OUString &rTerm ); 77 }; 78 79 80 /////////////////////////////////////////////////////////////////////////// 81 82 } // namespace linguistic 83 84 #endif 85 86 87