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