xref: /trunk/main/svl/inc/svl/asiancfg.hxx (revision 39a19a47)
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 #ifndef _SVX_ASIANCFG_HXX
24 #define _SVX_ASIANCFG_HXX
25 
26 #include <unotools/configitem.hxx>
27 #include <com/sun/star/uno/Sequence.h>
28 #include <svl/svldllapi.h>
29 
30 namespace com{namespace sun{namespace star{
31 namespace lang{
32     struct Locale;
33 }}}}
34 //-----------------------------------------------------------------------------
35 struct SvxAsianConfig_Impl;
36 class SVL_DLLPUBLIC SvxAsianConfig : public utl::ConfigItem
37 {
38     SvxAsianConfig_Impl* pImpl;
39 
40 public:
41     SvxAsianConfig(sal_Bool bEnableNotify = sal_True);
42     virtual ~SvxAsianConfig();
43 
44     void            Load();
45     virtual void    Commit();
46     virtual void    Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
47 
48     sal_Bool    IsKerningWesternTextOnly() const;
49     void        SetKerningWesternTextOnly(sal_Bool bSet);
50 
51     sal_Int16   GetCharDistanceCompression() const;
52     void        SetCharDistanceCompression(sal_Int16 nSet);
53 
54     com::sun::star::uno::Sequence<com::sun::star::lang::Locale>
55                 GetStartEndCharLocales();
56 
57     sal_Bool    GetStartEndChars( const com::sun::star::lang::Locale& rLocale,
58                                     rtl::OUString& rStartChars,
59                                     rtl::OUString& rEndChars );
60     void        SetStartEndChars( const com::sun::star::lang::Locale& rLocale,
61                                     const rtl::OUString* pStartChars,
62                                     const rtl::OUString* pEndChars );
63 };
64 
65 #endif
66