xref: /aoo4110/main/svl/inc/svl/ctloptions.hxx (revision b1cdbd2c)
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 _SVTOOLS_CTLOPTIONS_HXX
24 #define _SVTOOLS_CTLOPTIONS_HXX
25 
26 #include "svl/svldllapi.h"
27 #include <sal/types.h>
28 #include <svl/brdcst.hxx>
29 #include <svl/lstner.hxx>
30 #include <unotools/options.hxx>
31 
32 class SvtCTLOptions_Impl;
33 
34 // class SvtCTLOptions --------------------------------------------------------
35 
36 class SVL_DLLPUBLIC SvtCTLOptions : public utl::detail::Options
37 {
38 private:
39     SvtCTLOptions_Impl*    m_pImp;
40 
41 public:
42 
43     // bDontLoad is for referencing purposes only
44     SvtCTLOptions( sal_Bool bDontLoad = sal_False );
45     virtual ~SvtCTLOptions();
46 
47     void            SetCTLFontEnabled( sal_Bool _bEnabled );
48     sal_Bool		IsCTLFontEnabled() const;
49 
50     void			SetCTLSequenceChecking( sal_Bool _bEnabled );
51     sal_Bool		IsCTLSequenceChecking() const;
52 
53 	void			SetCTLSequenceCheckingRestricted( sal_Bool _bEnable );
54 	sal_Bool		IsCTLSequenceCheckingRestricted( void ) const;
55 
56     void            SetCTLSequenceCheckingTypeAndReplace( sal_Bool _bEnable );
57     sal_Bool        IsCTLSequenceCheckingTypeAndReplace() const;
58 
59     enum CursorMovement
60 	{
61 		MOVEMENT_LOGICAL = 0,
62 		MOVEMENT_VISUAL
63 	};
64     void        	SetCTLCursorMovement( CursorMovement _eMovement );
65     CursorMovement	GetCTLCursorMovement() const;
66 
67 	enum TextNumerals
68 	{
69 		NUMERALS_ARABIC = 0,
70 		NUMERALS_HINDI,
71         NUMERALS_SYSTEM,
72         NUMERALS_CONTEXT
73 	};
74     void        	SetCTLTextNumerals( TextNumerals _eNumerals );
75     TextNumerals	GetCTLTextNumerals() const;
76 
77     enum EOption
78     {
79         E_CTLFONT,
80         E_CTLSEQUENCECHECKING,
81         E_CTLCURSORMOVEMENT,
82         E_CTLTEXTNUMERALS,
83         E_CTLSEQUENCECHECKINGRESTRICTED,
84         E_CTLSEQUENCECHECKINGTYPEANDREPLACE
85     };
86     sal_Bool IsReadOnly(EOption eOption) const;
87 };
88 
89 #endif // _SVTOOLS_CTLOPTIONS_HXX
90 
91