merge the formfield patch from ooo-build
[ooovba.git] / svx / inc / asiancfg.hxx
blobb9cc3abd3140e43893ac4e3177b2f3082cc59525
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: asiancfg.hxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
30 #ifndef _SVX_ASIANCFG_HXX
31 #define _SVX_ASIANCFG_HXX
33 #include <unotools/configitem.hxx>
34 #include <com/sun/star/uno/Sequence.h>
35 #include "svx/svxdllapi.h"
37 namespace com{namespace sun{namespace star{
38 namespace lang{
39 struct Locale;
40 }}}}
41 //-----------------------------------------------------------------------------
42 struct SvxAsianConfig_Impl;
43 class SVX_DLLPUBLIC SvxAsianConfig : public utl::ConfigItem
45 SvxAsianConfig_Impl* pImpl;
47 public:
48 SvxAsianConfig(sal_Bool bEnableNotify = sal_True);
49 virtual ~SvxAsianConfig();
51 void Load();
52 virtual void Commit();
53 virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
55 sal_Bool IsKerningWesternTextOnly() const;
56 void SetKerningWesternTextOnly(sal_Bool bSet);
58 sal_Int16 GetCharDistanceCompression() const;
59 void SetCharDistanceCompression(sal_Int16 nSet);
61 com::sun::star::uno::Sequence<com::sun::star::lang::Locale>
62 GetStartEndCharLocales();
64 sal_Bool GetStartEndChars( const com::sun::star::lang::Locale& rLocale,
65 rtl::OUString& rStartChars,
66 rtl::OUString& rEndChars );
67 void SetStartEndChars( const com::sun::star::lang::Locale& rLocale,
68 const rtl::OUString* pStartChars,
69 const rtl::OUString* pEndChars );
72 #endif