xref: /AOO41X/main/svl/inc/svl/ctloptions.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SVTOOLS_CTLOPTIONS_HXX
28 #define _SVTOOLS_CTLOPTIONS_HXX
29 
30 #include "svl/svldllapi.h"
31 #include <sal/types.h>
32 #include <svl/brdcst.hxx>
33 #include <svl/lstner.hxx>
34 #include <unotools/options.hxx>
35 
36 class SvtCTLOptions_Impl;
37 
38 // class SvtCTLOptions --------------------------------------------------------
39 
40 class SVL_DLLPUBLIC SvtCTLOptions : public utl::detail::Options
41 {
42 private:
43     SvtCTLOptions_Impl*    m_pImp;
44 
45 public:
46 
47     // bDontLoad is for referencing purposes only
48     SvtCTLOptions( sal_Bool bDontLoad = sal_False );
49     virtual ~SvtCTLOptions();
50 
51     void            SetCTLFontEnabled( sal_Bool _bEnabled );
52     sal_Bool		IsCTLFontEnabled() const;
53 
54     void			SetCTLSequenceChecking( sal_Bool _bEnabled );
55     sal_Bool		IsCTLSequenceChecking() const;
56 
57 	void			SetCTLSequenceCheckingRestricted( sal_Bool _bEnable );
58 	sal_Bool		IsCTLSequenceCheckingRestricted( void ) const;
59 
60     void            SetCTLSequenceCheckingTypeAndReplace( sal_Bool _bEnable );
61     sal_Bool        IsCTLSequenceCheckingTypeAndReplace() const;
62 
63     enum CursorMovement
64 	{
65 		MOVEMENT_LOGICAL = 0,
66 		MOVEMENT_VISUAL
67 	};
68     void        	SetCTLCursorMovement( CursorMovement _eMovement );
69     CursorMovement	GetCTLCursorMovement() const;
70 
71 	enum TextNumerals
72 	{
73 		NUMERALS_ARABIC = 0,
74 		NUMERALS_HINDI,
75         NUMERALS_SYSTEM,
76         NUMERALS_CONTEXT
77 	};
78     void        	SetCTLTextNumerals( TextNumerals _eNumerals );
79     TextNumerals	GetCTLTextNumerals() const;
80 
81     enum EOption
82     {
83         E_CTLFONT,
84         E_CTLSEQUENCECHECKING,
85         E_CTLCURSORMOVEMENT,
86         E_CTLTEXTNUMERALS,
87         E_CTLSEQUENCECHECKINGRESTRICTED,
88         E_CTLSEQUENCECHECKINGTYPEANDREPLACE
89     };
90     sal_Bool IsReadOnly(EOption eOption) const;
91 };
92 
93 #endif // _SVTOOLS_CTLOPTIONS_HXX
94 
95