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>
23 
24 #include <map>
25 #include <set>
26 
27 class CharClass;
28 class CollatorWrapper;
29 class SmartTagMgr;
30 
31 namespace editeng { class SortedAutoCompleteStrings; }
32 
33 // class OfaAutoCorrDlg --------------------------------------------------
34 
36 {
37  std::unique_ptr<weld::Widget> m_xLanguageBox;
38  std::unique_ptr<SvxLanguageBox> m_xLanguageLB;
39 
40  DECL_LINK(SelectLanguageHdl, weld::ComboBox&, void);
41 public:
42 
43  OfaAutoCorrDlg(weld::Window* pParent, const SfxItemSet *pSet);
44  virtual ~OfaAutoCorrDlg() override;
45 
46  void EnableLanguage(bool bEnable);
47 };
48 
49 // class OfaAutocorrOptionsPage ------------------------------------------
50 
52 {
53 private:
54  OUString m_sInput;
55  OUString m_sDoubleCaps;
56  OUString m_sStartCap;
57  OUString m_sBoldUnderline;
58  OUString m_sURL;
59  OUString m_sNoDblSpaces;
60  OUString m_sDash;
62 
63  std::unique_ptr<weld::TreeView> m_xCheckLB;
64 
65  void InsertEntry(const OUString& rTxt);
66 
67 public:
69  virtual ~OfaAutocorrOptionsPage() override;
70 
71  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
72  const SfxItemSet* rAttrSet);
73 
74  virtual bool FillItemSet( SfxItemSet* rSet ) override;
75  virtual void Reset( const SfxItemSet* rSet ) override;
76  virtual void ActivatePage( const SfxItemSet& ) override;
77 
78 };
79 
80 // class OfaSwAutoFmtOptionsPage ----------------------------------------------------
81 
83 {
84  OUString sDeleteEmptyPara;
85  OUString sUseReplaceTbl;
88  OUString sUserStyle;
89  OUString sBullet;
90  OUString sBoldUnder;
91  OUString sNoDblSpaces;
92  OUString sCorrectCapsLock;
93  OUString sDetectURL;
94  OUString sDash;
95  OUString sRightMargin;
96  OUString sNum;
97  OUString sBorder;
98  OUString sTable;
102 
103  OUString sMargin;
104  OUString sBulletChar;
106 
109  sal_uInt16 nPercent;
110 
111  std::unique_ptr<weld::TreeView> m_xCheckLB;
112  std::unique_ptr<weld::Button> m_xEditPB;
113 
114  DECL_LINK(SelectHdl, weld::TreeView&, void);
115  DECL_LINK(EditHdl, weld::Button&, void);
116  DECL_LINK(DoubleClickEditHdl, weld::TreeView&, bool);
117 
118  void CreateEntry(const OUString& rTxt, sal_uInt16 nCol);
119 
120 public:
122  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
123  const SfxItemSet* rAttrSet);
124  virtual ~OfaSwAutoFmtOptionsPage() override;
125 
126  virtual bool FillItemSet( SfxItemSet* rSet ) override;
127  virtual void Reset( const SfxItemSet* rSet ) override;
128  virtual void ActivatePage( const SfxItemSet& ) override;
129 };
130 
131 // class OfaAutocorrReplacePage ------------------------------------------
132 
134 {
135  OUString sShort;
136  OUString sLong;
137  void* pUserData;
138  DoubleString(const OUString& rShort, const OUString& rLong)
139  : sShort(rShort)
140  , sLong(rLong)
141  , pUserData(nullptr)
142  {
143  }
144 };
145 
146 typedef std::vector<DoubleString> DoubleStringArray;
147 
149 {
152 };
153 
154 typedef std::map<LanguageType, StringChangeList> StringChangeTable;
155 
157 {
158 private:
159 
161 
162  OUString sModify;
163  OUString sNew;
164 
165  std::set<OUString> aFormatText;
166  std::map<LanguageType, DoubleStringArray>
168  std::unique_ptr<CollatorWrapper> pCompareClass;
169  std::unique_ptr<CharClass> pCharClass;
171 
173  bool bFirstSelect:1;
175  bool bSWriter:1;
176 
177  std::vector<int> m_aReplaceFixedWidths;
178  std::unique_ptr<weld::CheckButton> m_xTextOnlyCB;
179  std::unique_ptr<weld::Entry> m_xShortED;
180  std::unique_ptr<weld::Entry> m_xReplaceED;
181  std::unique_ptr<weld::TreeView> m_xReplaceTLB;
182  std::unique_ptr<weld::Button> m_xNewReplacePB;
183  std::unique_ptr<weld::Button> m_xReplacePB;
184  std::unique_ptr<weld::Button> m_xDeleteReplacePB;
185  std::unique_ptr<weld::Container> m_xButtonBox;
186 
187  DECL_LINK(SelectHdl, weld::TreeView&, void);
188  DECL_LINK(NewDelButtonHdl, weld::Button&, void);
189  DECL_LINK(NewDelActionHdl, weld::Entry&, bool);
190  DECL_LINK(EntrySizeAllocHdl, const Size&, void);
191  DECL_LINK(ModifyHdl, weld::Entry&, void);
192  bool NewDelHdl(const weld::Widget*);
193 
194  void RefillReplaceBox( bool bFromReset,
195  LanguageType eOldLanguage,
196  LanguageType eNewLanguage);
197 
198 public:
199  OfaAutocorrReplacePage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
200  virtual ~OfaAutocorrReplacePage() override;
201 
202  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
203 
204  virtual bool FillItemSet( SfxItemSet* rSet ) override;
205  virtual void Reset( const SfxItemSet* rSet ) override;
206  virtual void ActivatePage( const SfxItemSet& ) override;
207  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
208 
209  void SetLanguage(LanguageType eSet);
210  void DeleteEntry(const OUString& sShort, const OUString& sLong);
211  void NewEntry(const OUString& sShort, const OUString& sLong, bool bKeepSourceFormatting);
212 };
213 
214 // class OfaAutocorrExceptPage ---------------------------------------------
215 
217 {
218  std::vector<OUString> aAbbrevStrings;
219  std::vector<OUString> aDoubleCapsStrings;
220 
222 };
223 typedef std::map<LanguageType, StringsArrays> StringsTable;
224 
226 {
227 private:
229  std::unique_ptr<CollatorWrapper> pCompareClass;
231 
232  std::unique_ptr<weld::Entry> m_xAbbrevED;
233  std::unique_ptr<weld::TreeView> m_xAbbrevLB;
234  std::unique_ptr<weld::Button> m_xNewAbbrevPB;
235  std::unique_ptr<weld::Button> m_xDelAbbrevPB;
236  std::unique_ptr<weld::CheckButton> m_xAutoAbbrevCB;
237 
238  std::unique_ptr<weld::Entry> m_xDoubleCapsED;
239  std::unique_ptr<weld::TreeView> m_xDoubleCapsLB;
240  std::unique_ptr<weld::Button> m_xNewDoublePB;
241  std::unique_ptr<weld::Button> m_xDelDoublePB;
242  std::unique_ptr<weld::CheckButton> m_xAutoCapsCB;
243 
244  DECL_LINK(NewDelButtonHdl, weld::Button&, void);
245  DECL_LINK(NewDelActionHdl, weld::Entry&, bool);
246  DECL_LINK(SelectHdl, weld::TreeView&, void);
247  DECL_LINK(ModifyHdl, weld::Entry&, void);
248  bool NewDelHdl(const weld::Widget*);
250  void RefillReplaceBoxes(bool bFromReset,
251  LanguageType eOldLanguage,
252  LanguageType eNewLanguage);
253 public:
254  OfaAutocorrExceptPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
255  virtual ~OfaAutocorrExceptPage() override;
256 
257  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
258  const SfxItemSet* rAttrSet);
259 
260  virtual bool FillItemSet( SfxItemSet* rSet ) override;
261  virtual void Reset( const SfxItemSet* rSet ) override;
262  virtual void ActivatePage( const SfxItemSet& ) override;
263  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
264  void SetLanguage(LanguageType eSet);
265 
266 };
267 
268 // class OfaQuoteTabPage -------------------------------------------------
269 
271 {
272 private:
273  OUString sNonBrkSpace;
274  OUString sOrdinal;
276  OUString sAngleQuotes;
277 
280 
283 
284  std::unique_ptr<weld::CheckButton> m_xSingleTypoCB;
285  std::unique_ptr<weld::Button> m_xSglStartQuotePB;
286  std::unique_ptr<weld::Label> m_xSglStartExFT;
287  std::unique_ptr<weld::Button> m_xSglEndQuotePB;
288  std::unique_ptr<weld::Label> m_xSglEndExFT;
289  std::unique_ptr<weld::Button> m_xSglStandardPB;
290  std::unique_ptr<weld::CheckButton> m_xDoubleTypoCB;
291  std::unique_ptr<weld::Button> m_xDblStartQuotePB;
292  std::unique_ptr<weld::Label> m_xDblStartExFT;
293  std::unique_ptr<weld::Button> m_xDblEndQuotePB;
294  std::unique_ptr<weld::Label> m_xDblEndExFT;
295  std::unique_ptr<weld::Button> m_xDblStandardPB;
296  OUString m_sStandard;
298  std::unique_ptr<weld::TreeView> m_xCheckLB;
300  std::unique_ptr<weld::TreeView> m_xSwCheckLB;
301 
302 
303  DECL_LINK(QuoteHdl, weld::Button&, void);
304  DECL_LINK(StdQuoteHdl, weld::Button&, void);
305 
306  OUString ChangeStringExt_Impl( sal_UCS4 );
307 
308  static void CreateEntry(weld::TreeView& rLstBox, const OUString& rTxt,
309  sal_uInt16 nCol, sal_uInt16 nTextCol);
310 
311 public:
312  OfaQuoteTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
313  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController,
314  const SfxItemSet* rAttrSet);
315  virtual ~OfaQuoteTabPage() override;
316 
317  virtual bool FillItemSet( SfxItemSet* rSet ) override;
318  virtual void Reset( const SfxItemSet* rSet ) override;
319  virtual void ActivatePage( const SfxItemSet& ) override;
320 };
321 
322 // class OfaAutoCompleteTabPage ---------------------------------------------
323 
325 {
326 private:
329 
330  std::unique_ptr<weld::CheckButton> m_xCBActiv;
331  std::unique_ptr<weld::CheckButton> m_xCBAppendSpace;
332  std::unique_ptr<weld::CheckButton> m_xCBAsTip;
333 
334  std::unique_ptr<weld::CheckButton> m_xCBCollect;
335  std::unique_ptr<weld::CheckButton> m_xCBRemoveList;
336 
337  std::unique_ptr<weld::ComboBox> m_xDCBExpandKey;
338  std::unique_ptr<weld::SpinButton> m_xNFMinWordlen;
339  std::unique_ptr<weld::SpinButton> m_xNFMaxEntries;
340  std::unique_ptr<weld::TreeView> m_xLBEntries;
341  std::unique_ptr<weld::Button> m_xPBEntries;
342 
343  DECL_LINK(CheckHdl, weld::Toggleable&, void);
344  DECL_LINK(KeyReleaseHdl, const KeyEvent&, bool);
345 
346 public:
347  OfaAutoCompleteTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
348  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController,
349  const SfxItemSet* rAttrSet);
350  virtual ~OfaAutoCompleteTabPage() override;
351 
352  virtual bool FillItemSet( SfxItemSet* rSet ) override;
353  virtual void Reset( const SfxItemSet* rSet ) override;
354  virtual void ActivatePage( const SfxItemSet& ) override;
355 
356  void CopyToClipboard() const;
357  DECL_LINK(DeleteHdl, weld::Button&, void);
358 };
359 
360 // class OfaSmartTagOptionsTabPage ---------------------------------------------
361 
367 {
368 private:
369 
370  // controls
371  std::unique_ptr<weld::CheckButton> m_xMainCB;
372  std::unique_ptr<weld::TreeView> m_xSmartTagTypesLB;
373  std::unique_ptr<weld::Button> m_xPropertiesPB;
374 
380  void FillListBox( const SmartTagMgr& rSmartTagMgr );
381 
384  void ClearListBox();
385 
391  DECL_LINK(CheckHdl, weld::Toggleable&, void);
392 
398  DECL_LINK(ClickHdl, weld::Button&, void);
399 
405  DECL_LINK(SelectHdl, weld::TreeView&, void);
406 
407 public:
410  virtual ~OfaSmartTagOptionsTabPage() override;
411 
412  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
413 
414  virtual bool FillItemSet( SfxItemSet* rSet ) override;
415  virtual void Reset( const SfxItemSet* rSet ) override;
416  virtual void ActivatePage( const SfxItemSet& ) override;
417 };
418 
419 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:1434
std::unique_ptr< weld::TreeView > m_xDoubleCapsLB
Definition: autocdlg.hxx:239
OUString sReplaceTemplates
Definition: autocdlg.hxx:99
bool NewDelHdl(const weld::Widget *)
Definition: autocdlg.cxx:1019
std::unique_ptr< weld::CheckButton > m_xCBAppendSpace
Append space.
Definition: autocdlg.hxx:331
std::unique_ptr< weld::CheckButton > m_xAutoCapsCB
Definition: autocdlg.hxx:242
virtual ~OfaSwAutoFmtOptionsPage() override
Definition: autocdlg.cxx:399
DECL_LINK(CheckHdl, weld::Toggleable &, void)
Handler for the check box.
std::unique_ptr< weld::Button > m_xDeleteReplacePB
Definition: autocdlg.hxx:184
LanguageType eLang
Definition: autocdlg.hxx:170
sal_uInt32 sal_UCS4
virtual bool FillItemSet(SfxItemSet *rSet) override
Propagates the current settings to the smart tag manager.
Definition: autocdlg.cxx:2295
std::unique_ptr< weld::CheckButton > m_xMainCB
Definition: autocdlg.hxx:371
std::unique_ptr< weld::Entry > m_xShortED
Definition: autocdlg.hxx:179
std::unique_ptr< weld::CheckButton > m_xSingleTypoCB
Definition: autocdlg.hxx:284
void ClearListBox()
Clears the m_aSmartTagTypesLB.
Definition: autocdlg.cxx:2195
const SfxItemSet * pSet
void NewEntry(const OUString &sShort, const OUString &sLong, bool bKeepSourceFormatting)
Definition: autocdlg.cxx:943
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:1238
void CreateEntry(const OUString &rTxt, sal_uInt16 nCol)
Definition: autocdlg.cxx:388
std::unique_ptr< weld::SpinButton > m_xNFMaxEntries
Definition: autocdlg.hxx:339
std::unique_ptr< weld::Button > m_xNewAbbrevPB
Definition: autocdlg.hxx:234
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:2013
virtual ~OfaAutoCompleteTabPage() override
Definition: autocdlg.cxx:1950
std::unique_ptr< weld::Label > m_xDblStartExFT
Definition: autocdlg.hxx:292
std::unique_ptr< weld::ComboBox > m_xDCBExpandKey
Definition: autocdlg.hxx:337
virtual ~OfaAutocorrReplacePage() override
Definition: autocdlg.cxx:717
std::vector< OUString > aAbbrevStrings
Definition: autocdlg.hxx:218
OUString sCapitalStartSentence
Definition: autocdlg.hxx:87
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:726
DoubleString(const OUString &rShort, const OUString &rLong)
Definition: autocdlg.hxx:138
std::unique_ptr< CollatorWrapper > pCompareClass
Definition: autocdlg.hxx:168
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:2353
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:1232
std::unique_ptr< weld::Button > m_xReplacePB
Definition: autocdlg.hxx:183
std::unique_ptr< weld::CheckButton > m_xDoubleTypoCB
Definition: autocdlg.hxx:290
void InsertEntry(const OUString &rTxt)
Definition: autocdlg.cxx:243
std::unique_ptr< weld::Widget > m_xLanguageBox
Definition: autocdlg.hxx:37
void RefillReplaceBox(bool bFromReset, LanguageType eOldLanguage, LanguageType eNewLanguage)
Definition: autocdlg.cxx:783
std::unique_ptr< weld::Button > m_xSglStandardPB
Definition: autocdlg.hxx:289
std::unique_ptr< weld::TreeView > m_xLBEntries
Definition: autocdlg.hxx:340
OUString sShort
Definition: autocdlg.hxx:135
std::unique_ptr< weld::Label > m_xDblEndExFT
Definition: autocdlg.hxx:294
static void CreateEntry(weld::TreeView &rLstBox, const OUString &rTxt, sal_uInt16 nCol, sal_uInt16 nTextCol)
Definition: autocdlg.cxx:1538
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:743
OfaAutocorrOptionsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:183
DECL_LINK(SelectLanguageHdl, weld::ComboBox &, void)
DECL_LINK(SelectHdl, weld::TreeView &, void)
OfaSwAutoFmtOptionsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:351
std::unique_ptr< SvxLanguageBox > m_xLanguageLB
Definition: autocdlg.hxx:38
std::unique_ptr< weld::Entry > m_xReplaceED
Definition: autocdlg.hxx:180
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:213
void SetLanguage(LanguageType eSet)
Definition: autocdlg.cxx:894
sal_uInt16 m_nAutoCmpltListCnt
Definition: autocdlg.hxx:328
std::unique_ptr< weld::Label > m_xSglEndExFT
Definition: autocdlg.hxx:288
bool NewDelHdl(const weld::Widget *)
Definition: autocdlg.cxx:1454
std::unique_ptr< weld::TreeView > m_xCheckLB
Definition: autocdlg.hxx:63
OUString m_sAccidentalCaps
Definition: autocdlg.hxx:61
std::unique_ptr< weld::TreeView > m_xCheckLB
For anything but writer.
Definition: autocdlg.hxx:298
std::unique_ptr< weld::Button > m_xNewReplacePB
Definition: autocdlg.hxx:182
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:2064
OUString sTransliterateRTL
Definition: autocdlg.hxx:275
virtual ~OfaSmartTagOptionsTabPage() override
Definition: autocdlg.cxx:2164
OUString sAngleQuotes
Definition: autocdlg.hxx:276
StringChangeTable aChangesTable
Definition: autocdlg.hxx:160
OfaAutocorrReplacePage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:664
std::unique_ptr< weld::Entry > m_xAbbrevED
Definition: autocdlg.hxx:232
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:888
OfaQuoteTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:1549
DoubleStringArray aNewEntries
Definition: autocdlg.hxx:150
std::unique_ptr< weld::CheckButton > m_xCBActiv
Enable word completion.
Definition: autocdlg.hxx:330
std::unique_ptr< weld::Button > m_xPropertiesPB
Definition: autocdlg.hxx:373
OUString sOrdinal
Definition: autocdlg.hxx:274
virtual ~OfaQuoteTabPage() override
Definition: autocdlg.cxx:1607
std::vector< OUString > aDoubleCapsStrings
Definition: autocdlg.hxx:219
std::unique_ptr< weld::Button > m_xDelDoublePB
Definition: autocdlg.hxx:241
editeng::SortedAutoCompleteStrings * m_pAutoCompleteList
Definition: autocdlg.hxx:327
OfaAutoCorrDlg(weld::Window *pParent, const SfxItemSet *pSet)
Definition: autocdlg.cxx:58
OUString m_sStandard
Definition: autocdlg.hxx:296
OUString m_sBoldUnderline
Definition: autocdlg.hxx:57
LanguageType eLang
Definition: autocdlg.hxx:230
void DeleteEntry(const OUString &sShort, const OUString &sLong)
Definition: autocdlg.cxx:971
std::unique_ptr< weld::Button > m_xSglStartQuotePB
Definition: autocdlg.hxx:285
sal_UCS4 cEndQuote
Definition: autocdlg.hxx:282
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:1699
std::unique_ptr< weld::TreeView > m_xSwCheckLB
Just for writer.
Definition: autocdlg.hxx:300
std::vector< int > m_aReplaceFixedWidths
Definition: autocdlg.hxx:177
void * pUserData
CheckBox -> form. Text Bool -> selection text.
Definition: autocdlg.hxx:137
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:406
OfaSmartTagOptionsTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
construction via Create()
Definition: autocdlg.cxx:2146
OfaAutocorrExceptPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:1188
sal_UCS4 cSglEndQuote
Definition: autocdlg.hxx:279
DECL_LINK(NewDelButtonHdl, weld::Button &, void)
std::unique_ptr< weld::Label > m_xSglStartExFT
Definition: autocdlg.hxx:286
std::map< LanguageType, StringsArrays > StringsTable
Definition: autocdlg.hxx:223
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: autocdlg.cxx:738
virtual void Reset(const SfxItemSet *rSet) override
Sets the controls based on the current settings at SmartTagMgr.
Definition: autocdlg.cxx:2337
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:1954
OUString sNonBrkSpace
Definition: autocdlg.hxx:273
void CopyToClipboard() const
Definition: autocdlg.cxx:2098
std::unique_ptr< weld::Button > m_xDelAbbrevPB
Definition: autocdlg.hxx:235
std::unique_ptr< weld::Button > m_xEditPB
Definition: autocdlg.hxx:112
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:533
std::unique_ptr< weld::CheckButton > m_xCBAsTip
Show as tip.
Definition: autocdlg.hxx:332
std::unique_ptr< weld::Button > m_xDblStartQuotePB
Definition: autocdlg.hxx:291
std::unique_ptr< weld::CheckButton > m_xCBCollect
Collect words.
Definition: autocdlg.hxx:334
DECL_LINK(SelectHdl, weld::TreeView &, void)
OUString sLong
Definition: autocdlg.hxx:136
virtual ~OfaAutoCorrDlg() override
Definition: autocdlg.cxx:134
DECL_LINK(CheckHdl, weld::Toggleable &, void)
std::unique_ptr< weld::TreeView > m_xAbbrevLB
Definition: autocdlg.hxx:233
void RefillReplaceBoxes(bool bFromReset, LanguageType eOldLanguage, LanguageType eNewLanguage)
Box filled with new language.
Definition: autocdlg.cxx:1371
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:2168
void EnableLanguage(bool bEnable)
Definition: autocdlg.cxx:138
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:251
std::vector< DoubleString > DoubleStringArray
Definition: autocdlg.hxx:146
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:1611
std::unique_ptr< CharClass > pCharClass
Definition: autocdlg.hxx:169
virtual ~OfaAutocorrOptionsPage() override
Definition: autocdlg.cxx:199
void FillListBox(const SmartTagMgr &rSmartTagMgr)
Inserts items into m_aSmartTagTypesLB.
Definition: autocdlg.cxx:2209
virtual ~OfaAutocorrExceptPage() override
Definition: autocdlg.cxx:1226
DECL_LINK(QuoteHdl, weld::Button &, void)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: autocdlg.cxx:203
std::unique_ptr< weld::SpinButton > m_xNFMinWordlen
Definition: autocdlg.hxx:338
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:1250
DoubleStringArray aDeletedEntries
Definition: autocdlg.hxx:151
virtual void Reset(const SfxItemSet *rSet) override
Definition: autocdlg.cxx:1704
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:731
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:1617
std::unique_ptr< CollatorWrapper > pCompareClass
Definition: autocdlg.hxx:229
std::unique_ptr< weld::TreeView > m_xSmartTagTypesLB
Definition: autocdlg.hxx:372
void SetLanguage(LanguageType eSet)
Definition: autocdlg.cxx:1357
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:412
OUString sCapitalStartWord
Definition: autocdlg.hxx:86
std::unique_ptr< weld::Button > m_xNewDoublePB
Definition: autocdlg.hxx:240
std::unique_ptr< weld::TreeView > m_xReplaceTLB
Definition: autocdlg.hxx:181
std::unique_ptr< weld::Button > m_xDblEndQuotePB
Definition: autocdlg.hxx:293
DeactivateRC
OfaAutoCompleteTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: autocdlg.cxx:1896
StringsTable aStringsTable
Definition: autocdlg.hxx:228
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: autocdlg.cxx:1245
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:528
std::unique_ptr< weld::Button > m_xSglEndQuotePB
Definition: autocdlg.hxx:287
vcl::Font aByInputBulletFont
Definition: autocdlg.hxx:108
sal_UCS4 cSglStartQuote
Definition: autocdlg.hxx:278
std::unique_ptr< weld::Button > m_xDblStandardPB
Definition: autocdlg.hxx:295
Smart tag options tab page.
Definition: autocdlg.hxx:366
std::unique_ptr< weld::Entry > m_xDoubleCapsED
Definition: autocdlg.hxx:238
std::map< LanguageType, DoubleStringArray > aDoubleStringTable
Definition: autocdlg.hxx:167
sal_UCS4 cStartQuote
Definition: autocdlg.hxx:281
std::set< OUString > aFormatText
Definition: autocdlg.hxx:165
OUString sDelSpaceBetweenLines
Definition: autocdlg.hxx:101
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: autocdlg.cxx:1960
virtual void ActivatePage(const SfxItemSet &) override
Definition: autocdlg.cxx:238
std::unique_ptr< weld::CheckButton > m_xCBRemoveList
...save the list for later use...
Definition: autocdlg.hxx:335
std::unique_ptr< weld::CheckButton > m_xAutoAbbrevCB
Definition: autocdlg.hxx:236
std::unique_ptr< weld::Button > m_xPBEntries
Definition: autocdlg.hxx:341
std::unique_ptr< weld::Container > m_xButtonBox
Definition: autocdlg.hxx:185
std::unique_ptr< weld::TreeView > m_xCheckLB
Definition: autocdlg.hxx:111
OUString ChangeStringExt_Impl(sal_UCS4)
Definition: autocdlg.cxx:1871
std::map< LanguageType, StringChangeList > StringChangeTable
Definition: autocdlg.hxx:154
std::unique_ptr< weld::CheckButton > m_xTextOnlyCB
Definition: autocdlg.hxx:178