LibreOffice Module cui (master) 1
autocdlg.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#pragma once
20
21#include <sfx2/tabdlg.hxx>
22#include <svx/langbox.hxx>
24
25#include <map>
26#include <set>
27#include <utility>
28
29class CharClass;
30class SmartTagMgr;
31
32namespace editeng { class SortedAutoCompleteStrings; }
33
34// class OfaAutoCorrDlg --------------------------------------------------
35
37{
38 std::unique_ptr<weld::Widget> m_xLanguageBox;
39 std::unique_ptr<SvxLanguageBox> m_xLanguageLB;
40
41 DECL_LINK(SelectLanguageHdl, weld::ComboBox&, void);
42public:
43
44 OfaAutoCorrDlg(weld::Window* pParent, const SfxItemSet *pSet);
45 virtual ~OfaAutoCorrDlg() override;
46
47 void EnableLanguage(bool bEnable);
48};
49
50// class OfaAutocorrOptionsPage ------------------------------------------
51
53{
54private:
55 OUString m_sInput;
56 OUString m_sDoubleCaps;
57 OUString m_sStartCap;
59 OUString m_sURL;
60 OUString m_sDOI;
62 OUString m_sDash;
64
65 std::unique_ptr<weld::TreeView> m_xCheckLB;
66
67 void InsertEntry(const OUString& rTxt);
68
69public:
71 virtual ~OfaAutocorrOptionsPage() override;
72
73 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
74 const SfxItemSet* rAttrSet);
75
76 virtual bool FillItemSet( SfxItemSet* rSet ) override;
77 virtual void Reset( const SfxItemSet* rSet ) override;
78 virtual void ActivatePage( const SfxItemSet& ) override;
79
80};
81
82// class OfaSwAutoFmtOptionsPage ----------------------------------------------------
83
85{
90 OUString sUserStyle;
91 OUString sBullet;
92 OUString sBoldUnder;
93 OUString sNoDblSpaces;
95 OUString sDetectURL;
96 OUString sDetectDOI;
97 OUString sDash;
98 OUString sRightMargin;
99 OUString sNum;
100 OUString sBorder;
101 OUString sTable;
105
106 OUString sMargin;
107 OUString sBulletChar;
109
112 sal_uInt16 nPercent;
113
114 std::unique_ptr<weld::TreeView> m_xCheckLB;
115 std::unique_ptr<weld::Button> m_xEditPB;
116
117 DECL_LINK(SelectHdl, weld::TreeView&, void);
118 DECL_LINK(EditHdl, weld::Button&, void);
119 DECL_LINK(DoubleClickEditHdl, weld::TreeView&, bool);
120
121 void CreateEntry(const OUString& rTxt, sal_uInt16 nCol);
122
123public:
125 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
126 const SfxItemSet* rAttrSet);
127 virtual ~OfaSwAutoFmtOptionsPage() override;
128
129 virtual bool FillItemSet( SfxItemSet* rSet ) override;
130 virtual void Reset( const SfxItemSet* rSet ) override;
131 virtual void ActivatePage( const SfxItemSet& ) override;
132};
133
134// class OfaAutocorrReplacePage ------------------------------------------
135
137{
138 OUString sShort;
139 OUString sLong;
140 void* pUserData;
141 DoubleString(OUString aShort, OUString aLong)
142 : sShort(std::move(aShort))
143 , sLong(std::move(aLong))
144 , pUserData(nullptr)
145 {
146 }
147};
148
149typedef std::vector<DoubleString> DoubleStringArray;
150
152{
155};
156
157typedef std::map<LanguageType, StringChangeList> StringChangeTable;
158
160{
161private:
162
164
165 OUString sModify;
166 OUString sNew;
167
168 std::set<OUString> aFormatText;
169 std::map<LanguageType, DoubleStringArray>
172 std::unique_ptr<CharClass> pCharClass;
174
178 bool bSWriter:1;
179
180 std::vector<int> m_aReplaceFixedWidths;
181 std::unique_ptr<weld::CheckButton> m_xTextOnlyCB;
182 std::unique_ptr<weld::Entry> m_xShortED;
183 std::unique_ptr<weld::Entry> m_xReplaceED;
184 std::unique_ptr<weld::TreeView> m_xReplaceTLB;
185 std::unique_ptr<weld::Button> m_xNewReplacePB;
186 std::unique_ptr<weld::Button> m_xReplacePB;
187 std::unique_ptr<weld::Button> m_xDeleteReplacePB;
188 std::unique_ptr<weld::Container> m_xButtonBox;
189
190 DECL_LINK(SelectHdl, weld::TreeView&, void);
191 DECL_LINK(NewDelButtonHdl, weld::Button&, void);
192 DECL_LINK(NewDelActionHdl, weld::Entry&, bool);
193 DECL_LINK(EntrySizeAllocHdl, const Size&, void);
194 DECL_LINK(ModifyHdl, weld::Entry&, void);
195 bool NewDelHdl(const weld::Widget*);
196
197 void RefillReplaceBox( bool bFromReset,
198 LanguageType eOldLanguage,
199 LanguageType eNewLanguage);
200
201public:
203 virtual ~OfaAutocorrReplacePage() override;
204
205 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
206
207 virtual bool FillItemSet( SfxItemSet* rSet ) override;
208 virtual void Reset( const SfxItemSet* rSet ) override;
209 virtual void ActivatePage( const SfxItemSet& ) override;
210 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
211
212 void SetLanguage(LanguageType eSet);
213 void DeleteEntry(const OUString& sShort, const OUString& sLong);
214 void NewEntry(const OUString& sShort, const OUString& sLong, bool bKeepSourceFormatting);
215};
216
217// class OfaAutocorrExceptPage ---------------------------------------------
218
220{
221 std::vector<OUString> aAbbrevStrings;
222 std::vector<OUString> aDoubleCapsStrings;
223
225};
226typedef std::map<LanguageType, StringsArrays> StringsTable;
227
229{
230private:
234
235 std::unique_ptr<weld::Entry> m_xAbbrevED;
236 std::unique_ptr<weld::TreeView> m_xAbbrevLB;
237 std::unique_ptr<weld::Button> m_xNewAbbrevPB;
238 std::unique_ptr<weld::Button> m_xDelAbbrevPB;
239 std::unique_ptr<weld::CheckButton> m_xAutoAbbrevCB;
240
241 std::unique_ptr<weld::Entry> m_xDoubleCapsED;
242 std::unique_ptr<weld::TreeView> m_xDoubleCapsLB;
243 std::unique_ptr<weld::Button> m_xNewDoublePB;
244 std::unique_ptr<weld::Button> m_xDelDoublePB;
245 std::unique_ptr<weld::CheckButton> m_xAutoCapsCB;
246
247 DECL_LINK(NewDelButtonHdl, weld::Button&, void);
248 DECL_LINK(NewDelActionHdl, weld::Entry&, bool);
249 DECL_LINK(SelectHdl, weld::TreeView&, void);
250 DECL_LINK(ModifyHdl, weld::Entry&, void);
251 bool NewDelHdl(const weld::Widget*);
253 void RefillReplaceBoxes(bool bFromReset,
254 LanguageType eOldLanguage,
255 LanguageType eNewLanguage);
256public:
258 virtual ~OfaAutocorrExceptPage() override;
259
260 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
261 const SfxItemSet* rAttrSet);
262
263 virtual bool FillItemSet( SfxItemSet* rSet ) override;
264 virtual void Reset( const SfxItemSet* rSet ) override;
265 virtual void ActivatePage( const SfxItemSet& ) override;
266 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
267 void SetLanguage(LanguageType eSet);
268
269};
270
271// class OfaQuoteTabPage -------------------------------------------------
272
274{
275private:
276 OUString sNonBrkSpace;
277 OUString sOrdinal;
279 OUString sAngleQuotes;
280
283
286
287 std::unique_ptr<weld::CheckButton> m_xSingleTypoCB;
288 std::unique_ptr<weld::Button> m_xSglStartQuotePB;
289 std::unique_ptr<weld::Label> m_xSglStartExFT;
290 std::unique_ptr<weld::Button> m_xSglEndQuotePB;
291 std::unique_ptr<weld::Label> m_xSglEndExFT;
292 std::unique_ptr<weld::Button> m_xSglStandardPB;
293 std::unique_ptr<weld::CheckButton> m_xDoubleTypoCB;
294 std::unique_ptr<weld::Button> m_xDblStartQuotePB;
295 std::unique_ptr<weld::Label> m_xDblStartExFT;
296 std::unique_ptr<weld::Button> m_xDblEndQuotePB;
297 std::unique_ptr<weld::Label> m_xDblEndExFT;
298 std::unique_ptr<weld::Button> m_xDblStandardPB;
299 OUString m_sStandard;
301 std::unique_ptr<weld::TreeView> m_xCheckLB;
303 std::unique_ptr<weld::TreeView> m_xSwCheckLB;
304
305
306 DECL_LINK(QuoteHdl, weld::Button&, void);
307 DECL_LINK(StdQuoteHdl, weld::Button&, void);
308
309 OUString ChangeStringExt_Impl( sal_UCS4 );
310
311 static void CreateEntry(weld::TreeView& rLstBox, const OUString& rTxt,
312 sal_uInt16 nCol, sal_uInt16 nTextCol);
313
314public:
315 OfaQuoteTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
316 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController,
317 const SfxItemSet* rAttrSet);
318 virtual ~OfaQuoteTabPage() override;
319
320 virtual bool FillItemSet( SfxItemSet* rSet ) override;
321 virtual void Reset( const SfxItemSet* rSet ) override;
322 virtual void ActivatePage( const SfxItemSet& ) override;
323};
324
325// class OfaAutoCompleteTabPage ---------------------------------------------
326
328{
329private:
332
333 std::unique_ptr<weld::CheckButton> m_xCBActiv;
334 std::unique_ptr<weld::CheckButton> m_xCBAppendSpace;
335 std::unique_ptr<weld::CheckButton> m_xCBAsTip;
336
337 std::unique_ptr<weld::CheckButton> m_xCBCollect;
338 std::unique_ptr<weld::CheckButton> m_xCBRemoveList;
339
340 std::unique_ptr<weld::ComboBox> m_xDCBExpandKey;
341 std::unique_ptr<weld::SpinButton> m_xNFMinWordlen;
342 std::unique_ptr<weld::SpinButton> m_xNFMaxEntries;
343 std::unique_ptr<weld::TreeView> m_xLBEntries;
344 std::unique_ptr<weld::Button> m_xPBEntries;
345
346 DECL_LINK(CheckHdl, weld::Toggleable&, void);
347 DECL_LINK(KeyReleaseHdl, const KeyEvent&, bool);
348
349public:
351 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController,
352 const SfxItemSet* rAttrSet);
353 virtual ~OfaAutoCompleteTabPage() override;
354
355 virtual bool FillItemSet( SfxItemSet* rSet ) override;
356 virtual void Reset( const SfxItemSet* rSet ) override;
357 virtual void ActivatePage( const SfxItemSet& ) override;
358
359 void CopyToClipboard() const;
360 DECL_LINK(DeleteHdl, weld::Button&, void);
361};
362
363// class OfaSmartTagOptionsTabPage ---------------------------------------------
364
370{
371private:
372
373 // controls
374 std::unique_ptr<weld::CheckButton> m_xMainCB;
375 std::unique_ptr<weld::TreeView> m_xSmartTagTypesLB;
376 std::unique_ptr<weld::Button> m_xPropertiesPB;
377
383 void FillListBox( const SmartTagMgr& rSmartTagMgr );
384
387 void ClearListBox();
388
394 DECL_LINK(CheckHdl, weld::Toggleable&, void);
395
401 DECL_LINK(ClickHdl, weld::Button&, void);
402
408 DECL_LINK(SelectHdl, weld::TreeView&, void);
409
410public:
413 virtual ~OfaSmartTagOptionsTabPage() override;
414
415 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
416
417 virtual bool FillItemSet( SfxItemSet* rSet ) override;
418 virtual void Reset( const SfxItemSet* rSet ) override;
419 virtual void ActivatePage( const SfxItemSet& ) override;
420};
421
422/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< DoubleString > DoubleStringArray
Definition: autocdlg.hxx:149
std::map< LanguageType, StringsArrays > StringsTable
Definition: autocdlg.hxx:226
std::map< LanguageType, StringChangeList > StringChangeTable
Definition: autocdlg.hxx:157
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:1979
std::unique_ptr< weld::SpinButton > m_xNFMinWordlen
Definition: autocdlg.hxx:341
DECL_LINK(KeyReleaseHdl, const KeyEvent &, bool)
std::unique_ptr< weld::CheckButton > m_xCBAsTip
Show as tip.
Definition: autocdlg.hxx:335
DECL_LINK(CheckHdl, weld::Toggleable &, void)
void CopyToClipboard() const
Definition: autocdlg.cxx:2116
virtual ~OfaAutoCompleteTabPage() override
Definition: autocdlg.cxx:1969
std::unique_ptr< weld::ComboBox > m_xDCBExpandKey
Definition: autocdlg.hxx:340
std::unique_ptr< weld::Button > m_xPBEntries
Definition: autocdlg.hxx:344
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:2031
sal_uInt16 m_nAutoCmpltListCnt
Definition: autocdlg.hxx:331
std::unique_ptr< weld::CheckButton > m_xCBAppendSpace
Append space.
Definition: autocdlg.hxx:334
std::unique_ptr< weld::CheckButton > m_xCBRemoveList
...save the list for later use...
Definition: autocdlg.hxx:338
std::unique_ptr< weld::SpinButton > m_xNFMaxEntries
Definition: autocdlg.hxx:342
DECL_LINK(DeleteHdl, weld::Button &, void)
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:2082
std::unique_ptr< weld::CheckButton > m_xCBActiv
Enable word completion.
Definition: autocdlg.hxx:333
std::unique_ptr< weld::CheckButton > m_xCBCollect
Collect words.
Definition: autocdlg.hxx:337
std::unique_ptr< weld::TreeView > m_xLBEntries
Definition: autocdlg.hxx:343
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:1973
OfaAutoCompleteTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:1914
editeng::SortedAutoCompleteStrings * m_pAutoCompleteList
Definition: autocdlg.hxx:330
std::unique_ptr< weld::Widget > m_xLanguageBox
Definition: autocdlg.hxx:38
void EnableLanguage(bool bEnable)
Definition: autocdlg.cxx:140
OfaAutoCorrDlg(weld::Window *pParent, const SfxItemSet *pSet)
Definition: autocdlg.cxx:60
DECL_LINK(SelectLanguageHdl, weld::ComboBox &, void)
std::unique_ptr< SvxLanguageBox > m_xLanguageLB
Definition: autocdlg.hxx:39
virtual ~OfaAutoCorrDlg() override
Definition: autocdlg.cxx:136
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:1451
std::unique_ptr< weld::Button > m_xNewDoublePB
Definition: autocdlg.hxx:243
LanguageType eLang
Definition: autocdlg.hxx:233
std::unique_ptr< weld::TreeView > m_xAbbrevLB
Definition: autocdlg.hxx:236
void SetLanguage(LanguageType eSet)
Definition: autocdlg.cxx:1374
StringsTable aStringsTable
Definition: autocdlg.hxx:231
std::unique_ptr< weld::TreeView > m_xDoubleCapsLB
Definition: autocdlg.hxx:242
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:1267
DECL_LINK(NewDelActionHdl, weld::Entry &, bool)
OfaAutocorrExceptPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:1206
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:1249
DECL_LINK(SelectHdl, weld::TreeView &, void)
bool NewDelHdl(const weld::Widget *)
Definition: autocdlg.cxx:1471
std::unique_ptr< weld::Entry > m_xDoubleCapsED
Definition: autocdlg.hxx:241
std::unique_ptr< weld::Button > m_xDelDoublePB
Definition: autocdlg.hxx:244
std::unique_ptr< weld::Button > m_xNewAbbrevPB
Definition: autocdlg.hxx:237
std::unique_ptr< weld::CheckButton > m_xAutoCapsCB
Definition: autocdlg.hxx:245
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:1255
std::unique_ptr< weld::Entry > m_xAbbrevED
Definition: autocdlg.hxx:235
virtual ~OfaAutocorrExceptPage() override
Definition: autocdlg.cxx:1244
CollatorWrapper maCompareClass
Definition: autocdlg.hxx:232
std::unique_ptr< weld::Button > m_xDelAbbrevPB
Definition: autocdlg.hxx:238
std::unique_ptr< weld::CheckButton > m_xAutoAbbrevCB
Definition: autocdlg.hxx:239
void RefillReplaceBoxes(bool bFromReset, LanguageType eOldLanguage, LanguageType eNewLanguage)
Box filled with new language.
Definition: autocdlg.cxx:1388
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: autocdlg.cxx:1262
DECL_LINK(ModifyHdl, weld::Entry &, void)
DECL_LINK(NewDelButtonHdl, weld::Button &, void)
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:216
OfaAutocorrOptionsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:185
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:255
OUString m_sBoldUnderline
Definition: autocdlg.hxx:58
std::unique_ptr< weld::TreeView > m_xCheckLB
Definition: autocdlg.hxx:65
void InsertEntry(const OUString &rTxt)
Definition: autocdlg.cxx:247
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:242
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:206
OUString m_sAccidentalCaps
Definition: autocdlg.hxx:63
virtual ~OfaAutocorrOptionsPage() override
Definition: autocdlg.cxx:202
DECL_LINK(NewDelActionHdl, weld::Entry &, bool)
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: autocdlg.cxx:755
std::unique_ptr< weld::CheckButton > m_xTextOnlyCB
Definition: autocdlg.hxx:181
CollatorWrapper maCompareClass
Definition: autocdlg.hxx:171
std::unique_ptr< weld::TreeView > m_xReplaceTLB
Definition: autocdlg.hxx:184
std::vector< int > m_aReplaceFixedWidths
Definition: autocdlg.hxx:180
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:743
void SetLanguage(LanguageType eSet)
Definition: autocdlg.cxx:912
StringChangeTable aChangesTable
Definition: autocdlg.hxx:163
std::set< OUString > aFormatText
Definition: autocdlg.hxx:168
void RefillReplaceBox(bool bFromReset, LanguageType eOldLanguage, LanguageType eNewLanguage)
Definition: autocdlg.cxx:801
bool NewDelHdl(const weld::Widget *)
Definition: autocdlg.cxx:1037
std::unique_ptr< weld::Entry > m_xReplaceED
Definition: autocdlg.hxx:183
virtual ~OfaAutocorrReplacePage() override
Definition: autocdlg.cxx:735
std::unique_ptr< weld::Button > m_xNewReplacePB
Definition: autocdlg.hxx:185
DECL_LINK(ModifyHdl, weld::Entry &, void)
DECL_LINK(SelectHdl, weld::TreeView &, void)
std::unique_ptr< weld::Container > m_xButtonBox
Definition: autocdlg.hxx:188
DECL_LINK(NewDelButtonHdl, weld::Button &, void)
void DeleteEntry(const OUString &sShort, const OUString &sLong)
Definition: autocdlg.cxx:989
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:760
std::unique_ptr< weld::Button > m_xReplacePB
Definition: autocdlg.hxx:186
DECL_LINK(EntrySizeAllocHdl, const Size &, void)
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:748
std::unique_ptr< weld::Button > m_xDeleteReplacePB
Definition: autocdlg.hxx:187
std::unique_ptr< weld::Entry > m_xShortED
Definition: autocdlg.hxx:182
LanguageType eLang
Definition: autocdlg.hxx:173
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:906
void NewEntry(const OUString &sShort, const OUString &sLong, bool bKeepSourceFormatting)
Definition: autocdlg.cxx:961
std::unique_ptr< CharClass > pCharClass
Definition: autocdlg.hxx:172
OfaAutocorrReplacePage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:682
std::map< LanguageType, DoubleStringArray > aDoubleStringTable
Definition: autocdlg.hxx:170
OfaQuoteTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:1566
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:1722
virtual ~OfaQuoteTabPage() override
Definition: autocdlg.cxx:1625
sal_UCS4 cEndQuote
Definition: autocdlg.hxx:285
std::unique_ptr< weld::Label > m_xDblStartExFT
Definition: autocdlg.hxx:295
OUString m_sStandard
Definition: autocdlg.hxx:299
DECL_LINK(StdQuoteHdl, weld::Button &, void)
static void CreateEntry(weld::TreeView &rLstBox, const OUString &rTxt, sal_uInt16 nCol, sal_uInt16 nTextCol)
Definition: autocdlg.cxx:1555
std::unique_ptr< weld::Label > m_xDblEndExFT
Definition: autocdlg.hxx:297
std::unique_ptr< weld::TreeView > m_xSwCheckLB
Just for writer.
Definition: autocdlg.hxx:303
sal_UCS4 cSglStartQuote
Definition: autocdlg.hxx:281
std::unique_ptr< weld::TreeView > m_xCheckLB
For anything but writer.
Definition: autocdlg.hxx:301
std::unique_ptr< weld::Label > m_xSglStartExFT
Definition: autocdlg.hxx:289
OUString sOrdinal
Definition: autocdlg.hxx:277
OUString sAngleQuotes
Definition: autocdlg.hxx:279
std::unique_ptr< weld::CheckButton > m_xDoubleTypoCB
Definition: autocdlg.hxx:293
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:1629
OUString sNonBrkSpace
Definition: autocdlg.hxx:276
OUString ChangeStringExt_Impl(sal_UCS4)
Definition: autocdlg.cxx:1889
OUString sTransliterateRTL
Definition: autocdlg.hxx:278
std::unique_ptr< weld::Label > m_xSglEndExFT
Definition: autocdlg.hxx:291
sal_UCS4 cSglEndQuote
Definition: autocdlg.hxx:282
std::unique_ptr< weld::Button > m_xDblStandardPB
Definition: autocdlg.hxx:298
std::unique_ptr< weld::Button > m_xSglEndQuotePB
Definition: autocdlg.hxx:290
std::unique_ptr< weld::Button > m_xSglStartQuotePB
Definition: autocdlg.hxx:288
std::unique_ptr< weld::CheckButton > m_xSingleTypoCB
Definition: autocdlg.hxx:287
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:1635
DECL_LINK(QuoteHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xDblEndQuotePB
Definition: autocdlg.hxx:296
std::unique_ptr< weld::Button > m_xDblStartQuotePB
Definition: autocdlg.hxx:294
std::unique_ptr< weld::Button > m_xSglStandardPB
Definition: autocdlg.hxx:292
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:1717
sal_UCS4 cStartQuote
Definition: autocdlg.hxx:284
Smart tag options tab page.
Definition: autocdlg.hxx:370
DECL_LINK(CheckHdl, weld::Toggleable &, void)
Handler for the check box.
std::unique_ptr< weld::TreeView > m_xSmartTagTypesLB
Definition: autocdlg.hxx:375
DECL_LINK(SelectHdl, weld::TreeView &, void)
Handler for the list box.
virtual bool FillItemSet(SfxItemSet *rSet) override
Propagates the current settings to the smart tag manager.
Definition: autocdlg.cxx:2308
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:2366
void ClearListBox()
Clears the m_aSmartTagTypesLB.
Definition: autocdlg.cxx:2208
DECL_LINK(ClickHdl, weld::Button &, void)
Handler for the push button.
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:2181
void FillListBox(const SmartTagMgr &rSmartTagMgr)
Inserts items into m_aSmartTagTypesLB.
Definition: autocdlg.cxx:2222
virtual void Reset(const SfxItemSet *rSet) override
Sets the controls based on the current settings at SmartTagMgr.
Definition: autocdlg.cxx:2350
virtual ~OfaSmartTagOptionsTabPage() override
Definition: autocdlg.cxx:2177
std::unique_ptr< weld::CheckButton > m_xMainCB
Definition: autocdlg.hxx:374
OfaSmartTagOptionsTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
construction via Create()
Definition: autocdlg.cxx:2159
std::unique_ptr< weld::Button > m_xPropertiesPB
Definition: autocdlg.hxx:376
vcl::Font aByInputBulletFont
Definition: autocdlg.hxx:111
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:415
OfaSwAutoFmtOptionsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:358
virtual ~OfaSwAutoFmtOptionsPage() override
Definition: autocdlg.cxx:408
void CreateEntry(const OUString &rTxt, sal_uInt16 nCol)
Definition: autocdlg.cxx:397
OUString sCapitalStartWord
Definition: autocdlg.hxx:88
DECL_LINK(SelectHdl, weld::TreeView &, void)
DECL_LINK(EditHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xEditPB
Definition: autocdlg.hxx:115
DECL_LINK(DoubleClickEditHdl, weld::TreeView &, bool)
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:543
OUString sDelSpaceBetweenLines
Definition: autocdlg.hxx:104
std::unique_ptr< weld::TreeView > m_xCheckLB
Definition: autocdlg.hxx:114
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:421
OUString sCapitalStartSentence
Definition: autocdlg.hxx:89
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:548
DoubleString(OUString aShort, OUString aLong)
Definition: autocdlg.hxx:141
OUString sShort
Definition: autocdlg.hxx:138
void * pUserData
CheckBox -> form. Text Bool -> selection text.
Definition: autocdlg.hxx:140
OUString sLong
Definition: autocdlg.hxx:139
DoubleStringArray aNewEntries
Definition: autocdlg.hxx:153
DoubleStringArray aDeletedEntries
Definition: autocdlg.hxx:154
std::vector< OUString > aAbbrevStrings
Definition: autocdlg.hxx:221
std::vector< OUString > aDoubleCapsStrings
Definition: autocdlg.hxx:222
DeactivateRC
sal_uInt32 sal_UCS4