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 INCLUDED_EDITENG_SOURCE_EDITENG_EDITSTT2_HXX
21 : #define INCLUDED_EDITENG_SOURCE_EDITENG_EDITSTT2_HXX
22 :
23 : #include <editeng/editstat.hxx>
24 :
25 : class InternalEditStatus : public EditStatus
26 : {
27 :
28 : public:
29 42102 : InternalEditStatus() { ; }
30 :
31 0 : void TurnOnFlags( EEControlBits nFlags )
32 0 : { nControlBits |= nFlags; }
33 :
34 0 : void TurnOffFlags( EEControlBits nFlags )
35 0 : { nControlBits &= ~nFlags; }
36 :
37 : void TurnOnStatusBits( EditStatusFlags nBits )
38 : { nStatusBits |= nBits; }
39 :
40 : void TurnOffStatusBits( EditStatusFlags nBits )
41 : { nStatusBits &= ~nBits; }
42 :
43 :
44 1364861 : bool UseCharAttribs() const
45 1364861 : { return bool( nControlBits & EEControlBits::USECHARATTRIBS ); }
46 :
47 2 : bool NotifyCursorMovements() const
48 2 : { return bool( nControlBits & EEControlBits::CRSRLEFTPARA ); }
49 :
50 3 : bool UseIdleFormatter() const
51 3 : { return bool( nControlBits & EEControlBits::DOIDLEFORMAT); }
52 :
53 0 : bool AllowPasteSpecial() const
54 0 : { return bool( nControlBits & EEControlBits::PASTESPECIAL ); }
55 :
56 0 : bool DoAutoIndenting() const
57 0 : { return bool( nControlBits & EEControlBits::AUTOINDENTING ); }
58 :
59 50539 : bool DoUndoAttribs() const
60 50539 : { return bool( nControlBits & EEControlBits::UNDOATTRIBS ); }
61 :
62 680778 : bool OneCharPerLine() const
63 680778 : { return bool( nControlBits & EEControlBits::ONECHARPERLINE ); }
64 :
65 2588577 : bool IsOutliner() const
66 2588577 : { return bool( nControlBits & EEControlBits::OUTLINER ); }
67 :
68 0 : bool IsOutliner2() const
69 0 : { return bool( nControlBits & EEControlBits::OUTLINER2 ); }
70 :
71 0 : bool IsAnyOutliner() const
72 0 : { return IsOutliner() || IsOutliner2(); }
73 :
74 734493 : bool DoNotUseColors() const
75 734493 : { return bool( nControlBits & EEControlBits::NOCOLORS ); }
76 :
77 126335 : bool AllowBigObjects() const
78 126335 : { return bool( nControlBits & EEControlBits::ALLOWBIGOBJS ); }
79 :
80 1283882 : bool DoOnlineSpelling() const
81 1283882 : { return bool( nControlBits & EEControlBits::ONLINESPELLING ); }
82 :
83 2623860 : bool DoStretch() const
84 2623860 : { return bool( nControlBits & EEControlBits::STRETCHING ); }
85 :
86 999352 : bool AutoPageSize() const
87 999352 : { return bool( nControlBits & EEControlBits::AUTOPAGESIZE ); }
88 1749938 : bool AutoPageWidth() const
89 1749938 : { return bool( nControlBits & EEControlBits::AUTOPAGESIZEX ); }
90 1300578 : bool AutoPageHeight() const
91 1300578 : { return bool( nControlBits & EEControlBits::AUTOPAGESIZEY ); }
92 :
93 35750 : bool MarkFields() const
94 35750 : { return bool( nControlBits & EEControlBits::MARKFIELDS ); }
95 :
96 422629 : bool DoRestoreFont() const
97 422629 : { return bool( nControlBits & EEControlBits::RESTOREFONT ); }
98 :
99 0 : bool DoImportRTFStyleSheets() const
100 0 : { return bool( nControlBits & EEControlBits::RTFSTYLESHEETS ); }
101 :
102 3 : bool DoAutoCorrect() const
103 3 : { return bool( nControlBits & EEControlBits::AUTOCORRECT ); }
104 :
105 3 : bool DoAutoComplete() const
106 3 : { return bool( nControlBits & EEControlBits::AUTOCOMPLETE ); }
107 :
108 0 : bool DoTabIndenting() const
109 0 : { return bool( nControlBits & EEControlBits::TABINDENTING ); }
110 :
111 545074 : bool DoFormat100() const
112 545074 : { return bool( nControlBits & EEControlBits::FORMAT100 ); }
113 :
114 12047 : bool ULSpaceSummation() const
115 12047 : { return bool( nControlBits & EEControlBits::ULSPACESUMMATION ); }
116 :
117 376369 : bool ULSpaceFirstParagraph() const
118 376369 : { return bool( nControlBits & EEControlBits::ULSPACEFIRSTPARA ); }
119 : };
120 :
121 : #endif // INCLUDED_EDITENG_SOURCE_EDITENG_EDITSTT2_HXX
122 :
123 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|