LibreOffice Module editeng (master) 1
swafopt.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#ifndef INCLUDED_EDITENG_SWAFOPT_HXX
21#define INCLUDED_EDITENG_SWAFOPT_HXX
22
23#include <sal/config.h>
24
27#include <rtl/ustring.hxx>
28#include <utility>
29#include <vcl/font.hxx>
30#include <vcl/vclenum.hxx>
31
32class SmartTagMgr;
33
34namespace editeng {
35
37{
38private:
39 OUString m_String;
40public:
41 explicit IAutoCompleteString(OUString aString) : m_String(std::move(aString)) {}
43 OUString const& GetAutoCompleteString() const { return m_String; }
44};
45
47{
49 IAutoCompleteString *const& rhs) const
50 {
51 return lhs->GetAutoCompleteString().compareToIgnoreAsciiCase(
52 rhs->GetAutoCompleteString()) < 0;
53 }
54};
55
57 : public o3tl::sorted_vector<IAutoCompleteString*, CompareAutoCompleteString>
58{
59 bool owning_;
60
62
63 // For createNonOwningCopy only:
65 sorted_vector(other), owning_(false) {}
66
67public:
69
71
73};
74
75} // namespace editeng
76
77// Class of options for AutoFormat
79{
85
88
92
94
95 bool bAutoCorrect : 1;
98
99 bool bChgUserColl : 1;
100 bool bChgEnumNum : 1;
101
104 bool bSetNumRule : 1;
105
112 bool bSetINetAttr : 1;
113 bool bSetDOIAttr : 1;
114
115 bool bSetBorder : 1;
116 bool bCreateTable : 1;
118
120
121 bool bRightMargin : 1;
122
126// -- under NT here starts a new long
129
134
136
138};
139
140#endif
141
142/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
IAutoCompleteString(OUString aString)
Definition: swafopt.hxx:41
OUString const & GetAutoCompleteString() const
Definition: swafopt.hxx:43
SortedAutoCompleteStrings(SortedAutoCompleteStrings const &other)
Definition: swafopt.hxx:64
SortedAutoCompleteStrings & operator=(SortedAutoCompleteStrings const &)=delete
SortedAutoCompleteStrings createNonOwningCopy() const
Definition: swafopt.hxx:72
#define EDITENG_DLLPUBLIC
Definition: editengdllapi.h:28
vcl::Font aBulletFont
Definition: swafopt.hxx:80
bool bAFormatDelSpacesBetweenLines
Definition: swafopt.hxx:131
bool bCapitalStartSentence
Definition: swafopt.hxx:96
sal_uInt32 nAutoCmpltListLen
Definition: swafopt.hxx:89
sal_UCS4 cByInputBullet
Definition: swafopt.hxx:87
vcl::Font aByInputBulletFont
Definition: swafopt.hxx:81
bool bAFormatDelSpacesAtSttEnd
Definition: swafopt.hxx:130
sal_uInt8 nRightMargin
Definition: swafopt.hxx:93
sal_uInt16 nAutoCmpltWordLen
Definition: swafopt.hxx:90
bool bAFormatByInpDelSpacesBetweenLines
Definition: swafopt.hxx:133
sal_uInt16 nAutoCmpltExpandKey
Definition: swafopt.hxx:91
SmartTagMgr * pSmartTagMgr
Definition: swafopt.hxx:84
bool bAFormatByInpDelSpacesAtSttEnd
Definition: swafopt.hxx:132
const editeng::SortedAutoCompleteStrings * m_pAutoCompleteList
only valid inside the Dialog!!!
Definition: swafopt.hxx:83
bool operator()(IAutoCompleteString *const &lhs, IAutoCompleteString *const &rhs) const
Definition: swafopt.hxx:48
unsigned char sal_uInt8
sal_uInt32 sal_UCS4