xref: /AOO41X/main/linguistic/source/hhconvdic.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
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_HHConvDic_HXX_
29 #define _LINGUISTIC_HHConvDic_HXX_
30 
31 #include <com/sun/star/linguistic2/XConversionDictionary.hpp>
32 #include <com/sun/star/util/XFlushable.hpp>
33 #include <com/sun/star/lang/XServiceInfo.hpp>
34 #include <cppuhelper/implbase3.hxx>
35 #include <cppuhelper/interfacecontainer.h>
36 #include <tools/string.hxx>
37 
38 #include "linguistic/misc.hxx"
39 #include "defs.hxx"
40 #include "convdic.hxx"
41 
42 ///////////////////////////////////////////////////////////////////////////
43 
44 class HHConvDic :
45     public ConvDic
46 {
47 	// disallow copy-constructor and assignment-operator for now
48     HHConvDic(const HHConvDic &);
49     HHConvDic & operator = (const HHConvDic &);
50 
51 public:
52     HHConvDic( const String &rName, const String &rMainURL );
53     virtual ~HHConvDic();
54 
55     // XConversionDictionary
56     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);
57 
58     // XServiceInfo
59     virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
60     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
61     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
62 
63 
64     static inline ::rtl::OUString
65         getImplementationName_Static() throw();
66     static com::sun::star::uno::Sequence< ::rtl::OUString >
67         getSupportedServiceNames_Static() throw();
68 };
69 
70 inline ::rtl::OUString HHConvDic::getImplementationName_Static() throw()
71 {
72     return A2OU( "com.sun.star.lingu2.HHConvDic" );
73 }
74 
75 ///////////////////////////////////////////////////////////////////////////
76 
77 #endif
78 
79