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 _FORBIDDENCHARACTERSTABLE_HXX
25 #define _FORBIDDENCHARACTERSTABLE_HXX
26 
27 #ifndef _TABLE_HXX //autogen
28 #include <tools/table.hxx>
29 #endif
30 
31 #include <vos/refernce.hxx>
32 #include <com/sun/star/uno/Reference.hxx>
33 #include <com/sun/star/i18n/ForbiddenCharacters.hpp>
34 #include "editeng/editengdllapi.h"
35 
36 namespace com {
37 namespace sun {
38 namespace star {
39 namespace lang {
40 	class XMultiServiceFactory;
41 }}}}
42 
43 struct ForbiddenCharactersInfo
44 {
45 	com::sun::star::i18n::ForbiddenCharacters aForbiddenChars;
46 	sal_Bool bTemporary;
47 };
48 
49 DECLARE_TABLE( SvxForbiddenCharactersTableImpl, ForbiddenCharactersInfo* )
50 
51 class EDITENG_DLLPUBLIC SvxForbiddenCharactersTable : public SvxForbiddenCharactersTableImpl, public vos::OReference
52 {
53 private:
54 	::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxMSF;
55 
56 public:
57 			SvxForbiddenCharactersTable( ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xMSF, sal_uInt16 nISize = 4, sal_uInt16 nGrow = 4 );
58 			~SvxForbiddenCharactersTable();
59 
60 	const com::sun::star::i18n::ForbiddenCharacters* GetForbiddenCharacters( sal_uInt16 nLanuage, sal_Bool bGetDefault ) const;
61 	void 	SetForbiddenCharacters(  sal_uInt16 nLanuage , const com::sun::star::i18n::ForbiddenCharacters& );
62 	void 	ClearForbiddenCharacters( sal_uInt16 nLanuage );
63 };
64 
65 #endif // _FORBIDDENCHARACTERSTABLE_HXX
66 
67