1*63ce064aSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*63ce064aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*63ce064aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*63ce064aSAndrew Rist * distributed with this work for additional information 6*63ce064aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*63ce064aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*63ce064aSAndrew Rist * "License"); you may not use this file except in compliance 9*63ce064aSAndrew Rist * with the License. You may obtain a copy of the License at 10*63ce064aSAndrew Rist * 11*63ce064aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*63ce064aSAndrew Rist * 13*63ce064aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*63ce064aSAndrew Rist * software distributed under the License is distributed on an 15*63ce064aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*63ce064aSAndrew Rist * KIND, either express or implied. See the License for the 17*63ce064aSAndrew Rist * specific language governing permissions and limitations 18*63ce064aSAndrew Rist * under the License. 19*63ce064aSAndrew Rist * 20*63ce064aSAndrew Rist *************************************************************/ 21*63ce064aSAndrew Rist 22*63ce064aSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _LINGUISTIC_HHConvDic_HXX_ 25cdf0e10cSrcweir #define _LINGUISTIC_HHConvDic_HXX_ 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <com/sun/star/linguistic2/XConversionDictionary.hpp> 28cdf0e10cSrcweir #include <com/sun/star/util/XFlushable.hpp> 29cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 30cdf0e10cSrcweir #include <cppuhelper/implbase3.hxx> 31cdf0e10cSrcweir #include <cppuhelper/interfacecontainer.h> 32cdf0e10cSrcweir #include <tools/string.hxx> 33cdf0e10cSrcweir 34cdf0e10cSrcweir #include "linguistic/misc.hxx" 35cdf0e10cSrcweir #include "defs.hxx" 36cdf0e10cSrcweir #include "convdic.hxx" 37cdf0e10cSrcweir 38cdf0e10cSrcweir /////////////////////////////////////////////////////////////////////////// 39cdf0e10cSrcweir 40cdf0e10cSrcweir class HHConvDic : 41cdf0e10cSrcweir public ConvDic 42cdf0e10cSrcweir { 43cdf0e10cSrcweir // disallow copy-constructor and assignment-operator for now 44cdf0e10cSrcweir HHConvDic(const HHConvDic &); 45cdf0e10cSrcweir HHConvDic & operator = (const HHConvDic &); 46cdf0e10cSrcweir 47cdf0e10cSrcweir public: 48cdf0e10cSrcweir HHConvDic( const String &rName, const String &rMainURL ); 49cdf0e10cSrcweir virtual ~HHConvDic(); 50cdf0e10cSrcweir 51cdf0e10cSrcweir // XConversionDictionary 52cdf0e10cSrcweir virtual void SAL_CALL addEntry( const ::rtl::OUString& aLeftText, const ::rtl::OUString& aRightText ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException); 53cdf0e10cSrcweir 54cdf0e10cSrcweir // XServiceInfo 55cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException); 56cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); 57cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); 58cdf0e10cSrcweir 59cdf0e10cSrcweir 60cdf0e10cSrcweir static inline ::rtl::OUString 61cdf0e10cSrcweir getImplementationName_Static() throw(); 62cdf0e10cSrcweir static com::sun::star::uno::Sequence< ::rtl::OUString > 63cdf0e10cSrcweir getSupportedServiceNames_Static() throw(); 64cdf0e10cSrcweir }; 65cdf0e10cSrcweir getImplementationName_Static()66cdf0e10cSrcweirinline ::rtl::OUString HHConvDic::getImplementationName_Static() throw() 67cdf0e10cSrcweir { 68cdf0e10cSrcweir return A2OU( "com.sun.star.lingu2.HHConvDic" ); 69cdf0e10cSrcweir } 70cdf0e10cSrcweir 71cdf0e10cSrcweir /////////////////////////////////////////////////////////////////////////// 72cdf0e10cSrcweir 73cdf0e10cSrcweir #endif 74cdf0e10cSrcweir 75