LibreOffice Module editeng (master) 1
editstt2.hxx
Go to the documentation of this file.
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
25{
26
27public:
29 { nControlBits |= nFlags; }
30
32 { nControlBits &= ~nFlags; }
33
34 bool UseCharAttribs() const
36
37 bool UseIdleFormatter() const
38 { return bool( nControlBits & EEControlBits::DOIDLEFORMAT); }
39
40 bool AllowPasteSpecial() const
41 { return bool( nControlBits & EEControlBits::PASTESPECIAL ); }
42
43 bool DoAutoIndenting() const
44 { return bool( nControlBits & EEControlBits::AUTOINDENTING ); }
45
46 bool DoUndoAttribs() const
47 { return bool( nControlBits & EEControlBits::UNDOATTRIBS ); }
48
49 bool OneCharPerLine() const
51
52 bool IsOutliner() const
53 { return bool( nControlBits & EEControlBits::OUTLINER ); }
54
55 bool DoNotUseColors() const
56 { return bool( nControlBits & EEControlBits::NOCOLORS ); }
57
58 bool AllowBigObjects() const
59 { return bool( nControlBits & EEControlBits::ALLOWBIGOBJS ); }
60
61 bool DoOnlineSpelling() const
63
64 bool DoStretch() const
65 { return bool( nControlBits & EEControlBits::STRETCHING ); }
66
67 bool AutoPageSize() const
68 { return bool( nControlBits & EEControlBits::AUTOPAGESIZE ); }
69 bool AutoPageWidth() const
70 { return bool( nControlBits & EEControlBits::AUTOPAGESIZEX ); }
71 bool AutoPageHeight() const
72 { return bool( nControlBits & EEControlBits::AUTOPAGESIZEY ); }
73
74 bool MarkNonUrlFields() const
76
77 bool MarkUrlFields() const
78 { return bool( nControlBits & EEControlBits::MARKURLFIELDS ); }
79
82
83 bool DoAutoCorrect() const
84 { return bool( nControlBits & EEControlBits::AUTOCORRECT ); }
85
86 bool DoAutoComplete() const
87 { return bool( nControlBits & EEControlBits::AUTOCOMPLETE ); }
88
89 bool DoFormat100() const
90 { return bool( nControlBits & EEControlBits::FORMAT100 ); }
91
92 bool ULSpaceSummation() const
94
95 bool IsSingleLine() const
96 { return bool( nControlBits & EEControlBits::SINGLELINE ); }
97};
98
99/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
EEControlBits nControlBits
Definition: editstat.hxx:103
void TurnOnFlags(EEControlBits nFlags)
Definition: editstt2.hxx:28
bool DoAutoComplete() const
Definition: editstt2.hxx:86
bool AllowBigObjects() const
Definition: editstt2.hxx:58
bool DoNotUseColors() const
Definition: editstt2.hxx:55
bool DoUndoAttribs() const
Definition: editstt2.hxx:46
bool DoAutoIndenting() const
Definition: editstt2.hxx:43
bool IsSingleLine() const
Definition: editstt2.hxx:95
bool DoStretch() const
Definition: editstt2.hxx:64
bool MarkUrlFields() const
Definition: editstt2.hxx:77
bool UseCharAttribs() const
Definition: editstt2.hxx:34
bool ULSpaceSummation() const
Definition: editstt2.hxx:92
bool DoOnlineSpelling() const
Definition: editstt2.hxx:61
bool AutoPageHeight() const
Definition: editstt2.hxx:71
bool MarkNonUrlFields() const
Definition: editstt2.hxx:74
bool AutoPageSize() const
Definition: editstt2.hxx:67
void TurnOffFlags(EEControlBits nFlags)
Definition: editstt2.hxx:31
bool DoImportRTFStyleSheets() const
Definition: editstt2.hxx:80
bool DoAutoCorrect() const
Definition: editstt2.hxx:83
bool AllowPasteSpecial() const
Definition: editstt2.hxx:40
bool IsOutliner() const
Definition: editstt2.hxx:52
bool AutoPageWidth() const
Definition: editstt2.hxx:69
bool OneCharPerLine() const
Definition: editstt2.hxx:49
bool UseIdleFormatter() const
Definition: editstt2.hxx:37
bool DoFormat100() const
Definition: editstt2.hxx:89
EEControlBits
Definition: editstat.hxx:28