1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SVX_UNOFORBIDDENCHARSTABLE_HXX_
25 #define _SVX_UNOFORBIDDENCHARSTABLE_HXX_
26 
27 #include <com/sun/star/i18n/XForbiddenCharacters.hpp>
28 #include <com/sun/star/linguistic2/XSupportedLocales.hpp>
29 #include <vos/ref.hxx>
30 
31 #include <cppuhelper/implbase2.hxx>
32 #include "editeng/editengdllapi.h"
33 
34 class SvxForbiddenCharactersTable;
35 
36 class EDITENG_DLLPUBLIC SvxUnoForbiddenCharsTable : public cppu::WeakImplHelper2<
37 										com::sun::star::i18n::XForbiddenCharacters,
38 										com::sun::star::linguistic2::XSupportedLocales>
39 {
40 protected:
41 	/** this virtual function is called if the forbidden characters are changed */
42 	virtual void onChange();
43 
44 	vos::ORef<SvxForbiddenCharactersTable> mxForbiddenChars;
45 
46 public:
47 	SvxUnoForbiddenCharsTable(vos::ORef<SvxForbiddenCharactersTable> xForbiddenChars);
48 	~SvxUnoForbiddenCharsTable();
49 
50 	// XForbiddenCharacters
51     virtual com::sun::star::i18n::ForbiddenCharacters SAL_CALL getForbiddenCharacters( const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::container::NoSuchElementException, com::sun::star::uno::RuntimeException);
52     virtual sal_Bool SAL_CALL hasForbiddenCharacters( const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException);
53     virtual void SAL_CALL setForbiddenCharacters( const com::sun::star::lang::Locale& rLocale, const com::sun::star::i18n::ForbiddenCharacters& rForbiddenCharacters ) throw(com::sun::star::uno::RuntimeException);
54     virtual void SAL_CALL removeForbiddenCharacters( const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException);
55 
56     // XSupportedLocales
57     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > SAL_CALL getLocales(  ) throw (::com::sun::star::uno::RuntimeException);
58     virtual sal_Bool SAL_CALL hasLocale( const ::com::sun::star::lang::Locale& aLocale ) throw (::com::sun::star::uno::RuntimeException);
59 };
60 
61 #endif // _SVX_UNOFORBIDDENCHARSTABLE_HXX_
62