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 51673 : 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 1239641 : bool UseCharAttribs() const
45 1239641 : { return ( ( nControlBits & EE_CNTRL_USECHARATTRIBS ) != 0 ); }
46 :
47 0 : bool NotifyCursorMovements() const
48 0 : { return ( ( nControlBits & EE_CNTRL_CRSRLEFTPARA ) != 0 ); }
49 :
50 0 : bool UseIdleFormatter() const
51 0 : { return ( ( nControlBits & EE_CNTRL_DOIDLEFORMAT) != 0 ); }
52 :
53 0 : bool AllowPasteSpecial() const
54 0 : { return ( ( nControlBits & EE_CNTRL_PASTESPECIAL ) != 0 ); }
55 :
56 0 : bool DoAutoIndenting() const
57 0 : { return ( ( nControlBits & EE_CNTRL_AUTOINDENTING ) != 0 ); }
58 :
59 48279 : bool DoUndoAttribs() const
60 48279 : { return ( ( nControlBits & EE_CNTRL_UNDOATTRIBS ) != 0 ); }
61 :
62 592481 : bool OneCharPerLine() const
63 592481 : { return ( ( nControlBits & EE_CNTRL_ONECHARPERLINE ) != 0 ); }
64 :
65 2217049 : bool IsOutliner() const
66 2217049 : { return ( ( nControlBits & EE_CNTRL_OUTLINER ) != 0 ); }
67 :
68 0 : bool IsOutliner2() const
69 0 : { return ( ( nControlBits & EE_CNTRL_OUTLINER2 ) != 0 ); }
70 :
71 0 : bool IsAnyOutliner() const
72 0 : { return IsOutliner() || IsOutliner2(); }
73 :
74 655675 : bool DoNotUseColors() const
75 655675 : { return ( ( nControlBits & EE_CNTRL_NOCOLORS ) != 0 ); }
76 :
77 120264 : bool AllowBigObjects() const
78 120264 : { return ( ( nControlBits & EE_CNTRL_ALLOWBIGOBJS ) != 0 ); }
79 :
80 1150055 : bool DoOnlineSpelling() const
81 1150055 : { return ( ( nControlBits & EE_CNTRL_ONLINESPELLING ) != 0 ); }
82 :
83 2283339 : bool DoStretch() const
84 2283339 : { return ( ( nControlBits & EE_CNTRL_STRETCHING ) != 0 ); }
85 :
86 788298 : bool AutoPageSize() const
87 788298 : { return ( ( nControlBits & EE_CNTRL_AUTOPAGESIZE ) != 0 ); }
88 1350846 : bool AutoPageWidth() const
89 1350846 : { return ( ( nControlBits & EE_CNTRL_AUTOPAGESIZEX ) != 0 ); }
90 963222 : bool AutoPageHeight() const
91 963222 : { return ( ( nControlBits & EE_CNTRL_AUTOPAGESIZEY ) != 0 ); }
92 :
93 36396 : bool MarkFields() const
94 36396 : { return ( ( nControlBits & EE_CNTRL_MARKFIELDS ) != 0 ); }
95 :
96 363704 : bool DoRestoreFont() const
97 363704 : { return ( ( nControlBits & EE_CNTRL_RESTOREFONT ) != 0 ); }
98 :
99 0 : bool DoImportRTFStyleSheets() const
100 0 : { return ( ( nControlBits & EE_CNTRL_RTFSTYLESHEETS ) != 0 ); }
101 :
102 0 : bool DoAutoCorrect() const
103 0 : { return ( ( nControlBits & EE_CNTRL_AUTOCORRECT ) != 0 ); }
104 :
105 0 : bool DoAutoComplete() const
106 0 : { return ( ( nControlBits & EE_CNTRL_AUTOCOMPLETE ) != 0 ); }
107 :
108 0 : bool DoTabIndenting() const
109 0 : { return ( ( nControlBits & EE_CNTRL_TABINDENTING ) != 0 ); }
110 :
111 466144 : bool DoFormat100() const
112 466144 : { return ( ( nControlBits & EE_CNTRL_FORMAT100 ) != 0 ); }
113 :
114 16032 : bool ULSpaceSummation() const
115 16032 : { return ( ( nControlBits & EE_CNTRL_ULSPACESUMMATION ) != 0 ); }
116 :
117 322040 : bool ULSpaceFirstParagraph() const
118 322040 : { return ( ( nControlBits & EE_CNTRL_ULSPACEFIRSTPARA ) != 0 ); }
119 : };
120 :
121 : #endif // INCLUDED_EDITENG_SOURCE_EDITENG_EDITSTT2_HXX
122 :
123 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|