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 4318 : 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 86420 : sal_Bool UseCharAttribs() const
45 86420 : { 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 22214 : sal_Bool DoUndoAttribs() const
60 22214 : { return ( ( nControlBits & EE_CNTRL_UNDOATTRIBS ) != 0 ); }
61 :
62 32568 : sal_Bool OneCharPerLine() const
63 32568 : { return ( ( nControlBits & EE_CNTRL_ONECHARPERLINE ) != 0 ); }
64 :
65 155385 : sal_Bool IsOutliner() const
66 155385 : { 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 41237 : sal_Bool DoNotUseColors() const
75 41237 : { return ( ( nControlBits & EE_CNTRL_NOCOLORS ) != 0 ); }
76 :
77 11195 : sal_Bool AllowBigObjects() const
78 11195 : { return ( ( nControlBits & EE_CNTRL_ALLOWBIGOBJS ) != 0 ); }
79 :
80 85491 : sal_Bool DoOnlineSpelling() const
81 85491 : { return ( ( nControlBits & EE_CNTRL_ONLINESPELLING ) != 0 ); }
82 :
83 141121 : sal_Bool DoStretch() const
84 141121 : { return ( ( nControlBits & EE_CNTRL_STRETCHING ) != 0 ); }
85 :
86 61849 : sal_Bool AutoPageSize() const
87 61849 : { return ( ( nControlBits & EE_CNTRL_AUTOPAGESIZE ) != 0 ); }
88 91228 : sal_Bool AutoPageWidth() const
89 91228 : { return ( ( nControlBits & EE_CNTRL_AUTOPAGESIZEX ) != 0 ); }
90 70086 : sal_Bool AutoPageHeight() const
91 70086 : { return ( ( nControlBits & EE_CNTRL_AUTOPAGESIZEY ) != 0 ); }
92 :
93 853 : sal_Bool MarkFields() const
94 853 : { return ( ( nControlBits & EE_CNTRL_MARKFIELDS ) != 0 ); }
95 :
96 27285 : sal_Bool DoRestoreFont() const
97 27285 : { 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 34159 : sal_Bool DoFormat100() const
112 34159 : { return ( ( nControlBits & EE_CNTRL_FORMAT100 ) != 0 ); }
113 :
114 607 : sal_Bool ULSpaceSummation() const
115 607 : { return ( ( nControlBits & EE_CNTRL_ULSPACESUMMATION ) != 0 ); }
116 :
117 24487 : sal_Bool ULSpaceFirstParagraph() const
118 24487 : { return ( ( nControlBits & EE_CNTRL_ULSPACEFIRSTPARA ) != 0 ); }
119 : };
120 :
121 : #endif // _EDITSTT2_HXX
122 :
123 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|