merge the formfield patch from ooo-build
[ooovba.git] / svx / inc / forbiddencharacterstable.hxx
blobf6b80e1401449870e0ff296acf731f2490f9f1c0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: forbiddencharacterstable.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _FORBIDDENCHARACTERSTABLE_HXX
32 #define _FORBIDDENCHARACTERSTABLE_HXX
34 #ifndef _TABLE_HXX //autogen
35 #include <tools/table.hxx>
36 #endif
38 #include <vos/refernce.hxx>
39 #include <com/sun/star/uno/Reference.hxx>
40 #include <com/sun/star/i18n/ForbiddenCharacters.hpp>
41 #include "svx/svxdllapi.h"
43 namespace com {
44 namespace sun {
45 namespace star {
46 namespace lang {
47 class XMultiServiceFactory;
48 }}}}
50 struct ForbiddenCharactersInfo
52 com::sun::star::i18n::ForbiddenCharacters aForbiddenChars;
53 BOOL bTemporary;
56 DECLARE_TABLE( SvxForbiddenCharactersTableImpl, ForbiddenCharactersInfo* )
58 class SVX_DLLPUBLIC SvxForbiddenCharactersTable : public SvxForbiddenCharactersTableImpl, public vos::OReference
60 private:
61 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxMSF;
63 public:
64 SvxForbiddenCharactersTable( ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xMSF, USHORT nISize = 4, USHORT nGrow = 4 );
65 ~SvxForbiddenCharactersTable();
67 const com::sun::star::i18n::ForbiddenCharacters* GetForbiddenCharacters( USHORT nLanuage, BOOL bGetDefault ) const;
68 void SetForbiddenCharacters( USHORT nLanuage , const com::sun::star::i18n::ForbiddenCharacters& );
69 void ClearForbiddenCharacters( USHORT nLanuage );
72 #endif // _FORBIDDENCHARACTERSTABLE_HXX