Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
5 : : * This Source Code Form is subject to the terms of the Mozilla Public
6 : : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
11 : : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : : * contributor license agreements. See the NOTICE file distributed
13 : : * with this work for additional information regarding copyright
14 : : * ownership. The ASF licenses this file to you under the Apache
15 : : * License, Version 2.0 (the "License"); you may not use this file
16 : : * except in compliance with the License. You may obtain a copy of
17 : : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : : */
19 : :
20 : : #ifndef _EDITSTT2_HXX
21 : : #define _EDITSTT2_HXX
22 : :
23 : : #include <editeng/editstat.hxx>
24 : :
25 : : class InternalEditStatus : public EditStatus
26 : : {
27 : :
28 : : public:
29 : 30636 : InternalEditStatus() { ; }
30 : :
31 : 0 : void TurnOnFlags( sal_uLong nFlags )
32 : 0 : { nControlBits |= nFlags; }
33 : :
34 : 0 : void TurnOffFlags( sal_uLong nFlags )
35 : 0 : { nControlBits &= ~nFlags; }
36 : :
37 : : void TurnOnStatusBits( sal_uLong nBits )
38 : : { nStatusBits |= nBits; }
39 : :
40 : : void TurnOffStatusBits( sal_uLong nBits )
41 : : { nStatusBits &= ~nBits; }
42 : :
43 : :
44 : 1030688 : sal_Bool UseCharAttribs() const
45 : 1030688 : { return ( ( nControlBits & EE_CNTRL_USECHARATTRIBS ) != 0 ); }
46 : :
47 : 0 : sal_Bool NotifyCursorMovements() const
48 : 0 : { return ( ( nControlBits & EE_CNTRL_CRSRLEFTPARA ) != 0 ); }
49 : :
50 : 0 : sal_Bool UseIdleFormatter() const
51 : 0 : { return ( ( nControlBits & EE_CNTRL_DOIDLEFORMAT) != 0 ); }
52 : :
53 : 0 : sal_Bool AllowPasteSpecial() const
54 : 0 : { return ( ( nControlBits & EE_CNTRL_PASTESPECIAL ) != 0 ); }
55 : :
56 : 0 : sal_Bool DoAutoIndenting() const
57 : 0 : { return ( ( nControlBits & EE_CNTRL_AUTOINDENTING ) != 0 ); }
58 : :
59 : 184956 : sal_Bool DoUndoAttribs() const
60 : 184956 : { return ( ( nControlBits & EE_CNTRL_UNDOATTRIBS ) != 0 ); }
61 : :
62 : 627347 : sal_Bool OneCharPerLine() const
63 : 627347 : { return ( ( nControlBits & EE_CNTRL_ONECHARPERLINE ) != 0 ); }
64 : :
65 : 2238139 : sal_Bool IsOutliner() const
66 : 2238139 : { return ( ( nControlBits & EE_CNTRL_OUTLINER ) != 0 ); }
67 : :
68 : 0 : sal_Bool IsOutliner2() const
69 : 0 : { return ( ( nControlBits & EE_CNTRL_OUTLINER2 ) != 0 ); }
70 : :
71 : 0 : sal_Bool IsAnyOutliner() const
72 [ # # ][ # # ]: 0 : { return IsOutliner() || IsOutliner2(); }
73 : :
74 : 653796 : sal_Bool DoNotUseColors() const
75 : 653796 : { return ( ( nControlBits & EE_CNTRL_NOCOLORS ) != 0 ); }
76 : :
77 : 63193 : sal_Bool AllowBigObjects() const
78 : 63193 : { return ( ( nControlBits & EE_CNTRL_ALLOWBIGOBJS ) != 0 ); }
79 : :
80 : 908372 : sal_Bool DoOnlineSpelling() const
81 : 908372 : { return ( ( nControlBits & EE_CNTRL_ONLINESPELLING ) != 0 ); }
82 : :
83 : 2300128 : sal_Bool DoStretch() const
84 : 2300128 : { return ( ( nControlBits & EE_CNTRL_STRETCHING ) != 0 ); }
85 : :
86 : 835874 : sal_Bool AutoPageSize() const
87 : 835874 : { return ( ( nControlBits & EE_CNTRL_AUTOPAGESIZE ) != 0 ); }
88 : 1506268 : sal_Bool AutoPageWidth() const
89 : 1506268 : { return ( ( nControlBits & EE_CNTRL_AUTOPAGESIZEX ) != 0 ); }
90 : 1089160 : sal_Bool AutoPageHeight() const
91 : 1089160 : { return ( ( nControlBits & EE_CNTRL_AUTOPAGESIZEY ) != 0 ); }
92 : :
93 : 23911 : sal_Bool MarkFields() const
94 : 23911 : { return ( ( nControlBits & EE_CNTRL_MARKFIELDS ) != 0 ); }
95 : :
96 : 349138 : sal_Bool DoRestoreFont() const
97 : 349138 : { return ( ( nControlBits & EE_CNTRL_RESTOREFONT ) != 0 ); }
98 : :
99 : 0 : sal_Bool DoImportRTFStyleSheets() const
100 : 0 : { return ( ( nControlBits & EE_CNTRL_RTFSTYLESHEETS ) != 0 ); }
101 : :
102 : 0 : sal_Bool DoAutoCorrect() const
103 : 0 : { return ( ( nControlBits & EE_CNTRL_AUTOCORRECT ) != 0 ); }
104 : :
105 : 0 : sal_Bool DoAutoComplete() const
106 : 0 : { return ( ( nControlBits & EE_CNTRL_AUTOCOMPLETE ) != 0 ); }
107 : :
108 : 0 : sal_Bool DoTabIndenting() const
109 : 0 : { return ( ( nControlBits & EE_CNTRL_TABINDENTING ) != 0 ); }
110 : :
111 : 446376 : sal_Bool DoFormat100() const
112 : 446376 : { return ( ( nControlBits & EE_CNTRL_FORMAT100 ) != 0 ); }
113 : :
114 : 9748 : sal_Bool ULSpaceSummation() const
115 : 9748 : { return ( ( nControlBits & EE_CNTRL_ULSPACESUMMATION ) != 0 ); }
116 : :
117 : 315441 : sal_Bool ULSpaceFirstParagraph() const
118 : 315441 : { return ( ( nControlBits & EE_CNTRL_ULSPACEFIRSTPARA ) != 0 ); }
119 : : };
120 : :
121 : : #endif // _EDITSTT2_HXX
122 : :
123 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|