/src/libreoffice/editeng/source/editeng/editstt2.hxx
Line | Count | Source |
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 | | #pragma once |
21 | | |
22 | | #include <editeng/editstat.hxx> |
23 | | |
24 | | class InternalEditStatus : public EditStatus |
25 | | { |
26 | | |
27 | | public: |
28 | | void TurnOnFlags( EEControlBits nFlags ) |
29 | 1.07k | { nControlBits |= nFlags; } |
30 | | |
31 | | void TurnOffFlags( EEControlBits nFlags ) |
32 | 1.61M | { nControlBits &= ~nFlags; } |
33 | | |
34 | | bool UseCharAttribs() const |
35 | 28.9M | { return bool( nControlBits & EEControlBits::USECHARATTRIBS ); } |
36 | | |
37 | | bool UseIdleFormatter() const |
38 | 0 | { return bool( nControlBits & EEControlBits::DOIDLEFORMAT); } |
39 | | |
40 | | bool AllowPasteSpecial() const |
41 | 0 | { return bool( nControlBits & EEControlBits::PASTESPECIAL ); } |
42 | | |
43 | | bool DoAutoIndenting() const |
44 | 0 | { return bool( nControlBits & EEControlBits::AUTOINDENTING ); } |
45 | | |
46 | | bool DoUndoAttribs() const |
47 | 1.15M | { return bool( nControlBits & EEControlBits::UNDOATTRIBS ); } |
48 | | |
49 | | bool OneCharPerLine() const |
50 | 10.9M | { |
51 | 10.9M | return bool(nControlBits & (EEControlBits::ONECHARPERLINE | EEControlBits::STACKED)); |
52 | 10.9M | } |
53 | | |
54 | | bool IsOutliner() const |
55 | 61.1M | { return bool( nControlBits & EEControlBits::OUTLINER ); } |
56 | | |
57 | | bool DoNotUseColors() const |
58 | 16.1M | { return bool( nControlBits & EEControlBits::NOCOLORS ); } |
59 | | |
60 | | bool AllowBigObjects() const |
61 | 2.39M | { return bool( nControlBits & EEControlBits::ALLOWBIGOBJS ); } |
62 | | |
63 | | bool DoOnlineSpelling() const |
64 | 22.3M | { return bool( nControlBits & EEControlBits::ONLINESPELLING ); } |
65 | | |
66 | | bool DoStretch() const |
67 | 62.1M | { return bool( nControlBits & EEControlBits::STRETCHING ); } |
68 | | |
69 | | bool AutoPageSize() const |
70 | 4.82M | { return bool( nControlBits & EEControlBits::AUTOPAGESIZE ); } |
71 | | bool AutoPageWidth() const |
72 | 10.5M | { return bool( nControlBits & EEControlBits::AUTOPAGESIZEX ); } |
73 | | bool AutoPageHeight() const |
74 | 5.77M | { return bool( nControlBits & EEControlBits::AUTOPAGESIZEY ); } |
75 | | |
76 | | bool MarkNonUrlFields() const |
77 | 5.39M | { return bool( nControlBits & EEControlBits::MARKNONURLFIELDS ); } |
78 | | |
79 | | bool MarkUrlFields() const |
80 | 3.94M | { return bool( nControlBits & EEControlBits::MARKURLFIELDS ); } |
81 | | |
82 | | bool DoImportRTFStyleSheets() const |
83 | 12.0k | { return bool( nControlBits & EEControlBits::RTFSTYLESHEETS ); } |
84 | | |
85 | | bool DoAutoCorrect() const |
86 | 0 | { return bool( nControlBits & EEControlBits::AUTOCORRECT ); } |
87 | | |
88 | | bool DoAutoComplete() const |
89 | 0 | { return bool( nControlBits & EEControlBits::AUTOCOMPLETE ); } |
90 | | |
91 | | bool ULSpaceSummation() const |
92 | 2.35M | { return bool( nControlBits & EEControlBits::ULSPACESUMMATION ); } |
93 | | |
94 | | bool IsSingleLine() const |
95 | 6.68M | { return bool( nControlBits & EEControlBits::SINGLELINE ); } |
96 | | }; |
97 | | |
98 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |