LibreOffice Module sw (master)  1
swuicnttab.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 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_SWUICNTTAB_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_SWUICNTTAB_HXX
21 
22 #include <sfx2/tabdlg.hxx>
23 #include <svx/langbox.hxx>
24 #include <vcl/weld.hxx>
25 #include <vcl/customweld.hxx>
26 
27 #include <tox.hxx>
28 #include "toxmgr.hxx"
29 #include "cnttab.hxx"
30 #include <vector>
31 
32 class IndexEntryResource;
34 class SwTOXWidget;
35 class SwTOXEdit;
36 class SwTOXButton;
37 class SwTOXEntryTabPage;
38 class SwOneExampleFrame;
39 class SwWrtShell;
40 
41 namespace com{namespace sun{namespace star{
42  namespace text{
43  class XTextSection;
44  class XDocumentIndex;
45  }
46 }}}
47 
49 {
50  css::uno::Reference< css::text::XTextSection > xContainerSection;
51  css::uno::Reference< css::text::XDocumentIndex > xDocumentIndex;
52 };
53 
55 {
56  std::unique_ptr<SwTOXMgr> m_pMgr;
58 
59  struct TypeData
60  {
61  std::unique_ptr<SwForm> m_pForm;
62  std::unique_ptr<SwTOXDescription> m_pDescription;
63  std::unique_ptr<SwIndexSections_Impl> m_pxIndexSections;
64  };
65  std::vector<TypeData> m_vTypeData;
66 
68 
70 
71  OUString const m_sUserDefinedIndex;
72  sal_uInt16 const m_nInitialTOXType;
73 
74  bool m_bEditTOX;
76  bool const m_bGlobalFlag;
77 
78  std::unique_ptr<SwOneExampleFrame> m_xExampleFrame;
79  std::unique_ptr<weld::CheckButton> m_xShowExampleCB;
80  std::unique_ptr<weld::CustomWeld> m_xExampleFrameWin;
81 
82  virtual short Ok() override;
83  std::unique_ptr<SwTOXDescription> CreateTOXDescFromTOXBase(const SwTOXBase*pCurTOX);
84 
85  DECL_LINK(CreateExample_Hdl, SwOneExampleFrame&, void);
86  DECL_LINK(ShowPreviewHdl, weld::ToggleButton&, void);
87 
88 public:
89  SwMultiTOXTabDialog(weld::Window* pParent, const SfxItemSet& rSet,
90  SwWrtShell &rShell,
91  SwTOXBase* pCurTOX, sal_uInt16 nToxType,
92  bool bGlobal);
93  virtual ~SwMultiTOXTabDialog() override;
94 
95  virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
96 
97  SwForm* GetForm(CurTOXType eType);
98 
100  void SetCurrentTOXType(const CurTOXType& eSet)
101  {
102  m_eCurrentTOXType = eSet;
103  }
104 
105  bool IsTOXEditMode() const { return m_bEditTOX;}
106 
108 
111  TOXTypes nTOXIndex, sal_uInt16 nPage = 0, sal_uInt16 nCurLevel = USHRT_MAX);
112 
113  static bool IsNoNum(SwWrtShell& rSh, const OUString& rName);
114 };
115 
117 {
118  std::unique_ptr<IndexEntryResource> pIndexRes;
119 
120  OUString aStyleArr[MAXLEVEL];
121  OUString sAutoMarkURL;
122  OUString const sAutoMarkType;
123  OUString sAddStyleUser;
125 
126  std::unique_ptr<const IndexEntrySupplierWrapper> pIndexEntryWrapper;
127 
129 
130  std::unique_ptr<weld::Entry> m_xTitleED;
131  std::unique_ptr<weld::Label> m_xTypeFT;
132  std::unique_ptr<weld::ComboBox> m_xTypeLB;
133  std::unique_ptr<weld::CheckButton> m_xReadOnlyCB;
134 
135  std::unique_ptr<weld::Widget> m_xAreaFrame;
136  std::unique_ptr<weld::ComboBox> m_xAreaLB;
137  std::unique_ptr<weld::Widget> m_xLevelFT; //content, user
138  std::unique_ptr<weld::SpinButton> m_xLevelNF; //content, user
139 
140  //content
141  std::unique_ptr<weld::Widget> m_xCreateFrame; // content, user, illustration
142  std::unique_ptr<weld::CheckButton> m_xFromHeadingsCB;
143  std::unique_ptr<weld::CheckButton> m_xStylesCB;
144  std::unique_ptr<weld::CheckButton> m_xAddStylesCB;
145  std::unique_ptr<weld::Button> m_xAddStylesPB;
146  //user
147  std::unique_ptr<weld::CheckButton> m_xFromTablesCB;
148  std::unique_ptr<weld::CheckButton> m_xFromFramesCB;
149  std::unique_ptr<weld::CheckButton> m_xFromGraphicsCB;
150  std::unique_ptr<weld::CheckButton> m_xFromOLECB;
151  std::unique_ptr<weld::CheckButton> m_xLevelFromChapterCB;
152 
153  //illustration + table
154  std::unique_ptr<weld::RadioButton> m_xFromCaptionsRB;
155  std::unique_ptr<weld::RadioButton> m_xFromObjectNamesRB;
156 
157  //illustration and tables
158  std::unique_ptr<weld::Label> m_xCaptionSequenceFT;
159  std::unique_ptr<weld::ComboBox> m_xCaptionSequenceLB;
160  std::unique_ptr<weld::Label> m_xDisplayTypeFT;
161  std::unique_ptr<weld::ComboBox> m_xDisplayTypeLB;
162 
163  //all but illustration and table
164  std::unique_ptr<weld::CheckButton> m_xTOXMarksCB;
165 
166  //index only
167  std::unique_ptr<weld::Widget> m_xIdxOptionsFrame;
168  std::unique_ptr<weld::CheckButton> m_xCollectSameCB;
169  std::unique_ptr<weld::CheckButton> m_xUseFFCB;
170  std::unique_ptr<weld::CheckButton> m_xUseDashCB;
171  std::unique_ptr<weld::CheckButton> m_xCaseSensitiveCB;
172  std::unique_ptr<weld::CheckButton> m_xInitialCapsCB;
173  std::unique_ptr<weld::CheckButton> m_xKeyAsEntryCB;
174  std::unique_ptr<weld::CheckButton> m_xFromFileCB;
175  std::unique_ptr<weld::MenuButton> m_xAutoMarkPB;
176 
177  // object only
178  std::unique_ptr<weld::TreeView> m_xFromObjCLB;
179  std::unique_ptr<weld::Widget> m_xFromObjFrame;
180 
181  std::unique_ptr<weld::CheckButton> m_xSequenceCB;
182  std::unique_ptr<weld::ComboBox> m_xBracketLB;
183  std::unique_ptr<weld::Widget> m_xAuthorityFrame;
184 
185  //all
186  std::unique_ptr<weld::Widget> m_xSortFrame;
187  std::unique_ptr<SvxLanguageBox> m_xLanguageLB;
188  std::unique_ptr<weld::ComboBox> m_xSortAlgorithmLB;
189 
190  DECL_LINK(TOXTypeHdl, weld::ComboBox&, void );
191  DECL_LINK(AddStylesHdl, weld::Button&, void );
192  DECL_LINK(MenuEnableHdl, weld::ToggleButton&, void);
193  DECL_LINK(MenuExecuteHdl, const OString&, void);
194  DECL_LINK(LanguageListBoxHdl, weld::ComboBox&, void);
195  void LanguageHdl(const weld::ComboBox*);
196  DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void );
197  DECL_LINK(RadioButtonHdl, weld::ToggleButton&, void);
198  DECL_LINK(ModifyEntryHdl, weld::Entry&, void);
199  DECL_LINK(ModifySpinHdl, weld::SpinButton&, void);
200  DECL_LINK(ModifyListBoxHdl, weld::ComboBox&, void);
201 
202  void ModifyHdl();
203  void ApplyTOXDescription();
204  void FillTOXDescription();
205 
206 public:
207  SwTOXSelectTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
208  virtual ~SwTOXSelectTabPage() override;
209 
210  virtual bool FillItemSet( SfxItemSet* ) override;
211  virtual void Reset( const SfxItemSet* ) override;
212 
213  virtual void ActivatePage( const SfxItemSet& ) override;
214  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
215 
216  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
217  const SfxItemSet* rAttrSet);
218 
219  void SelectType(TOXTypes eSet); //preset TOXType, GlobalDoc
220  void SetWrtShell(SwWrtShell const & rSh);
221 };
222 
224 {
226  sal_uInt16 m_nLevel;
227  bool m_bValid;
228  OUString m_aButtonTexts[TOKEN_END]; // Text of the buttons
229  OUString m_aButtonHelpTexts[TOKEN_END]; // QuickHelpText of the buttons
230  OUString const m_sCharStyle;
238 
240 
242  std::unique_ptr<weld::Container> m_xParentWidget;
243  std::unique_ptr<weld::Builder> m_xBuilder;
244  std::unique_ptr<weld::Container> m_xContainer;
245  std::unique_ptr<weld::Button> m_xLeftScrollWin;
246  std::unique_ptr<weld::Container> m_xCtrlParentWin;
247  std::unique_ptr<weld::ScrolledWindow> m_xScrollWin;
248  std::unique_ptr<weld::Button> m_xRightScrollWin;
249  std::vector<std::unique_ptr<SwTOXWidget>> m_aControlList;
250 
251  DECL_LINK(EditResize, SwTOXEdit&, void);
252  DECL_LINK(NextItemHdl, SwTOXEdit&, void);
253  DECL_LINK(TbxFocusHdl, SwTOXWidget&, void);
254  DECL_LINK(NextItemBtnHdl, SwTOXButton&, void);
255  DECL_LINK(TbxFocusBtnHdl, SwTOXWidget&, void);
256  DECL_LINK(ScrollBtnHdl, weld::Button&, void);
257  DECL_LINK(ScrollHdl, weld::ScrolledWindow&, void);
258  DECL_LINK(AdjustPositionsHdl, const Size&, void);
259 
260  void SetActiveControl(SwTOXWidget* pSet);
261 
262  SwTOXWidget* InsertItem(const OUString& rText, const SwFormToken& aToken);
263  void AdjustPositions();
264  void AdjustScrolling();
265  void MoveControls(long nOffset);
266 
267 public:
268  SwTokenWindow(std::unique_ptr<weld::Container> xParent);
269  weld::Container* get_child_container() { return m_xCtrlParentWin.get(); }
270  ~SwTokenWindow();
271 
272  void SetTabPage(SwTOXEntryTabPage *pParent) { m_pParent = pParent; }
273 
274  void SetForm(SwForm& rForm, sal_uInt16 nLevel);
275  sal_uInt16 GetLastLevel()const {return m_nLevel;};
276 
277  bool IsValid() const {return m_bValid;}
278 
279  void SetInvalid() {m_bValid = false;}
280 
281  OUString GetPattern() const;
282 
284  { m_aButtonSelectedHdl = rLink;}
285 
286  void SetModifyHdl(const Link<LinkParamNone*,void>& rLink){m_aModifyHdl = rLink;}
287 
289 
290  void InsertAtSelection(const SwFormToken& aToken);
291  void RemoveControl(const SwTOXButton* pDel, bool bInternalCall = false);
292 
293  bool Contains(FormTokenType) const;
294 
295  //helper for pattern buttons and edits
296  OUString CreateQuickHelp(const SwFormToken& rToken);
297 
298  void SetFocus2theAllBtn();
299 private:
300  sal_uInt32 GetControlIndex(FormTokenType eType) const;
301 };
302 
304 {
305  OUString const sDelimStr;
306  OUString sLevelStr;
307  OUString sAuthTypeStr;
308 
309  OUString const sNoCharStyle;
311 
314 
315  std::unique_ptr<weld::Label> m_xTypeFT;
316  std::unique_ptr<weld::Label> m_xLevelFT;
317  std::unique_ptr<weld::TreeView> m_xLevelLB;
318  std::unique_ptr<weld::Button> m_xAllLevelsPB;
319  std::unique_ptr<weld::Button> m_xEntryNoPB;
320  std::unique_ptr<weld::Button> m_xEntryPB;
321  std::unique_ptr<weld::Button> m_xTabPB;
322  std::unique_ptr<weld::Button> m_xChapterInfoPB;
323  std::unique_ptr<weld::Button> m_xPageNoPB;
324  std::unique_ptr<weld::Button> m_xHyperLinkPB;
325  std::unique_ptr<weld::ComboBox> m_xAuthFieldsLB;
326  std::unique_ptr<weld::Button> m_xAuthInsertPB;
327  std::unique_ptr<weld::Button> m_xAuthRemovePB;
328  std::unique_ptr<weld::ComboBox> m_xCharStyleLB; // character style of the current token
329  std::unique_ptr<weld::Button> m_xEditStylePB;
330  std::unique_ptr<weld::Label> m_xChapterEntryFT;
331  std::unique_ptr<weld::ComboBox> m_xChapterEntryLB; // type of chapter info
332  std::unique_ptr<weld::Label> m_xNumberFormatFT;
333  std::unique_ptr<weld::ComboBox> m_xNumberFormatLB;
334  std::unique_ptr<weld::Label> m_xEntryOutlineLevelFT;
335  std::unique_ptr<weld::SpinButton> m_xEntryOutlineLevelNF;
336  std::unique_ptr<weld::Label> m_xFillCharFT;
337  std::unique_ptr<weld::ComboBox> m_xFillCharCB; // fill char for tab stop
338  std::unique_ptr<weld::Label> m_xTabPosFT;
339  std::unique_ptr<weld::MetricSpinButton> m_xTabPosMF; // tab stop position
340  std::unique_ptr<weld::CheckButton> m_xAutoRightCB;
341  std::unique_ptr<weld::Widget> m_xFormatFrame;
342  std::unique_ptr<weld::Label> m_xMainEntryStyleFT;
343  std::unique_ptr<weld::ComboBox> m_xMainEntryStyleLB; // character style of main entries in indexes
344  std::unique_ptr<weld::CheckButton> m_xAlphaDelimCB;
345  std::unique_ptr<weld::CheckButton> m_xCommaSeparatedCB;
346  std::unique_ptr<weld::CheckButton> m_xRelToStyleCB; // position relative to the right margin of the para style
347  std::unique_ptr<weld::Widget> m_xSortingFrame;
348  std::unique_ptr<weld::RadioButton> m_xSortDocPosRB;
349  std::unique_ptr<weld::RadioButton> m_xSortContentRB;
350  std::unique_ptr<weld::Widget> m_xSortKeyFrame;
351  std::unique_ptr<weld::ComboBox> m_xFirstKeyLB;
352  std::unique_ptr<weld::RadioButton> m_xFirstSortUpRB;
353  std::unique_ptr<weld::RadioButton> m_xFirstSortDownRB;
354  std::unique_ptr<weld::ComboBox> m_xSecondKeyLB;
355  std::unique_ptr<weld::RadioButton> m_xSecondSortUpRB;
356  std::unique_ptr<weld::RadioButton> m_xSecondSortDownRB;
357  std::unique_ptr<weld::ComboBox> m_xThirdKeyLB;
358  std::unique_ptr<weld::RadioButton> m_xThirdSortUpRB;
359  std::unique_ptr<weld::RadioButton> m_xThirdSortDownRB;
360  std::unique_ptr<SwTokenWindow> m_xTokenWIN;
361 
362  DECL_LINK(StyleSelectHdl, weld::ComboBox&, void);
363  DECL_LINK(EditStyleHdl, weld::Button&, void);
364  DECL_LINK(InsertTokenHdl, weld::Button&, void);
365  DECL_LINK(LevelHdl, weld::TreeView&, void);
366  DECL_LINK(AutoRightHdl, weld::ToggleButton&, void);
367  DECL_LINK(TokenSelectedHdl, SwFormToken&, void);
368  DECL_LINK(TabPosHdl, weld::MetricSpinButton&, void);
369  DECL_LINK(FillCharHdl, weld::ComboBox&, void);
370  DECL_LINK(RemoveInsertAuthHdl, weld::Button&, void);
371  DECL_LINK(SortKeyHdl, weld::ToggleButton&, void);
372  DECL_LINK(ChapterInfoHdl, weld::ComboBox&, void);
373  DECL_LINK(ChapterInfoOutlineHdl, weld::SpinButton&, void);
374  DECL_LINK(NumberFormatHdl, weld::ComboBox&, void);
375 
376  DECL_LINK(AllLevelsHdl, weld::Button&, void);
377 
378  void WriteBackLevel();
379  void UpdateDescriptor();
380  DECL_LINK(ModifyHdl, LinkParamNone*, void);
381  void OnModify(bool bAllLevels);
382  DECL_LINK(ModifyClickHdl, weld::ToggleButton&, void);
383 
384 public:
385  SwTOXEntryTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
386  virtual ~SwTOXEntryTabPage() override;
387 
388  virtual bool FillItemSet( SfxItemSet* ) override;
389  virtual void Reset( const SfxItemSet* ) override;
390  virtual void ActivatePage( const SfxItemSet& ) override;
391  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
392 
393  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
394  const SfxItemSet* rAttrSet);
395  void SetWrtShell(SwWrtShell& rSh);
396 
397  void PreTokenButtonRemoved(const SwFormToken& rToken);
398  void SetFocus2theAllBtn();
399 };
400 
402 {
403  std::unique_ptr<SwForm> m_pCurrentForm;
404 
405  std::unique_ptr<weld::TreeView> m_xLevelLB;
406  std::unique_ptr<weld::Button> m_xAssignBT;
407  std::unique_ptr<weld::TreeView> m_xParaLayLB;
408  std::unique_ptr<weld::Button> m_xStdBT;
409  std::unique_ptr<weld::Button> m_xEditStyleBT;
410 
411  DECL_LINK(EditStyleHdl, weld::Button&, void);
412  DECL_LINK(StdHdl, weld::Button&, void);
413  DECL_LINK(EnableSelectHdl, weld::TreeView&, void);
414  DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
415  DECL_LINK(AssignHdl, weld::Button&, void);
416  void Modify();
417 
419  {
421  return *pDlg->GetForm(pDlg->GetCurrentTOXType());
422  }
423 
424 public:
425  SwTOXStylesTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
426  virtual ~SwTOXStylesTabPage() override;
427 
428  virtual bool FillItemSet( SfxItemSet* ) override;
429  virtual void Reset( const SfxItemSet* ) override;
430 
431  virtual void ActivatePage( const SfxItemSet& ) override;
432  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
433 
434  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
435  const SfxItemSet* rAttrSet);
436 
437 };
438 
439 #endif // INCLUDED_SW_SOURCE_UIBASE_INC_SWUICNTTAB_HXX
440 
441 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Widget > m_xSortFrame
Definition: swuicnttab.hxx:186
std::unique_ptr< weld::MenuButton > m_xAutoMarkPB
Definition: swuicnttab.hxx:175
OUString m_aButtonHelpTexts[TOKEN_END]
Definition: swuicnttab.hxx:229
DECL_LINK(CreateExample_Hdl, SwOneExampleFrame &, void)
std::unique_ptr< weld::ComboBox > m_xAuthFieldsLB
Definition: swuicnttab.hxx:325
std::unique_ptr< weld::ScrolledWindow > m_xScrollWin
Definition: swuicnttab.hxx:247
std::unique_ptr< weld::Label > m_xChapterEntryFT
Definition: swuicnttab.hxx:330
TOXTypes
Definition: toxe.hxx:39
void OnModify(bool bAllLevels)
Definition: cnttab.cxx:1934
void MoveControls(long nOffset)
Definition: cnttab.cxx:3029
std::vector< TypeData > m_vTypeData
Definition: swuicnttab.hxx:65
std::unique_ptr< weld::ComboBox > m_xNumberFormatLB
format for numbering (E#)
Definition: swuicnttab.hxx:333
std::unique_ptr< weld::RadioButton > m_xSecondSortUpRB
Definition: swuicnttab.hxx:355
std::unique_ptr< weld::TreeView > m_xParaLayLB
Definition: swuicnttab.hxx:407
OUString m_sAdditionalAccnameString2
Definition: swuicnttab.hxx:236
void PreTokenButtonRemoved(const SwFormToken &rToken)
Definition: cnttab.cxx:2169
std::unique_ptr< weld::Button > m_xRightScrollWin
Definition: swuicnttab.hxx:248
std::unique_ptr< SvxLanguageBox > m_xLanguageLB
Definition: swuicnttab.hxx:187
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:1172
sal_uInt16 m_nLevel
Definition: swuicnttab.hxx:226
std::unique_ptr< weld::Label > m_xEntryOutlineLevelFT
Fixed text, for i53420.
Definition: swuicnttab.hxx:334
std::unique_ptr< weld::Button > m_xAddStylesPB
Definition: swuicnttab.hxx:145
std::unique_ptr< weld::Button > m_xEntryPB
Definition: swuicnttab.hxx:320
std::unique_ptr< weld::ComboBox > m_xTypeLB
Definition: swuicnttab.hxx:132
std::unique_ptr< weld::ComboBox > m_xFirstKeyLB
Definition: swuicnttab.hxx:351
DECL_LINK(EditStyleHdl, weld::Button &, void)
const SfxItemSet * pSet
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:3386
std::unique_ptr< weld::Button > m_xHyperLinkPB
Definition: swuicnttab.hxx:324
std::unique_ptr< weld::Button > m_xStdBT
Definition: swuicnttab.hxx:408
Idle m_aAdjustPositionsIdle
Definition: swuicnttab.hxx:239
Definition: tox.hxx:276
OUString aStyleArr[MAXLEVEL]
Definition: swuicnttab.hxx:120
std::unique_ptr< weld::CustomWeld > m_xExampleFrameWin
Definition: swuicnttab.hxx:80
SwTOXDescription & GetTOXDescription(CurTOXType eTOXTypes)
Definition: cnttab.cxx:364
void SelectType(TOXTypes eSet)
Definition: cnttab.cxx:871
std::unique_ptr< weld::SpinButton > m_xEntryOutlineLevelNF
level to evaluate outline level to, for i53420
Definition: swuicnttab.hxx:335
std::unique_ptr< weld::Button > m_xEditStyleBT
Definition: swuicnttab.hxx:409
std::unique_ptr< weld::Label > m_xDisplayTypeFT
Definition: swuicnttab.hxx:160
sal_uInt16 GetLastLevel() const
Definition: swuicnttab.hxx:275
std::unique_ptr< weld::ComboBox > m_xCaptionSequenceLB
Definition: swuicnttab.hxx:159
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:1978
SwForm * GetForm(CurTOXType eType)
Definition: cnttab.cxx:356
std::unique_ptr< weld::RadioButton > m_xSortDocPosRB
Definition: swuicnttab.hxx:348
void CreateOrUpdateExample(TOXTypes nTOXIndex, sal_uInt16 nPage=0, sal_uInt16 nCurLevel=USHRT_MAX)
Definition: cntex.cxx:137
OUString const m_sCharStyle
Definition: swuicnttab.hxx:230
DECL_LINK(StyleSelectHdl, weld::ComboBox &, void)
std::unique_ptr< weld::TreeView > m_xLevelLB
Definition: swuicnttab.hxx:405
std::unique_ptr< weld::CheckButton > m_xRelToStyleCB
Definition: swuicnttab.hxx:346
static bool IsNoNum(SwWrtShell &rSh, const OUString &rName)
Definition: cnttab.cxx:474
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:3396
SwForm * m_pCurrentForm
Definition: swuicnttab.hxx:310
std::unique_ptr< weld::RadioButton > m_xThirdSortDownRB
Definition: swuicnttab.hxx:359
void SetFocus2theAllBtn()
Definition: cnttab.cxx:2176
std::unique_ptr< weld::CheckButton > m_xFromFramesCB
Definition: swuicnttab.hxx:148
std::unique_ptr< weld::Widget > m_xLevelFT
Definition: swuicnttab.hxx:137
void SetWrtShell(SwWrtShell &rSh)
Definition: cnttab.cxx:2529
std::unique_ptr< weld::Container > m_xContainer
Definition: swuicnttab.hxx:244
std::unique_ptr< weld::RadioButton > m_xFirstSortUpRB
Definition: swuicnttab.hxx:352
std::unique_ptr< weld::CheckButton > m_xFromTablesCB
Definition: swuicnttab.hxx:147
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:3391
std::unique_ptr< weld::Label > m_xTabPosFT
Definition: swuicnttab.hxx:338
std::unique_ptr< weld::Widget > m_xSortKeyFrame
Definition: swuicnttab.hxx:350
std::unique_ptr< weld::Button > m_xAuthInsertPB
Definition: swuicnttab.hxx:326
SwTOXWidget * m_pActiveCtrl
Definition: swuicnttab.hxx:232
std::unique_ptr< weld::Entry > m_xTitleED
Definition: swuicnttab.hxx:130
Used by the UI to modify the document model.
Definition: wrtsh.hxx:90
OUString const sAutoMarkType
Definition: swuicnttab.hxx:122
std::unique_ptr< weld::RadioButton > m_xSecondSortDownRB
Definition: swuicnttab.hxx:356
CurTOXType aLastTOXType
Definition: swuicnttab.hxx:312
OUString m_sAdditionalAccnameString1
Definition: swuicnttab.hxx:235
std::unique_ptr< weld::RadioButton > m_xSortContentRB
Definition: swuicnttab.hxx:349
OUString m_sAccessibleName
Definition: swuicnttab.hxx:234
std::unique_ptr< weld::CheckButton > m_xFromHeadingsCB
Definition: swuicnttab.hxx:142
std::unique_ptr< weld::Label > m_xNumberFormatFT
Definition: swuicnttab.hxx:332
void SetModifyHdl(const Link< LinkParamNone *, void > &rLink)
Definition: swuicnttab.hxx:286
virtual ~SwTOXSelectTabPage() override
Definition: cnttab.cxx:818
std::unique_ptr< weld::Button > m_xAuthRemovePB
Definition: swuicnttab.hxx:327
void LanguageHdl(const weld::ComboBox *)
Definition: cnttab.cxx:1323
std::unique_ptr< weld::ComboBox > m_xMainEntryStyleLB
Definition: swuicnttab.hxx:343
std::unique_ptr< weld::ComboBox > m_xFillCharCB
Definition: swuicnttab.hxx:337
std::unique_ptr< weld::ComboBox > m_xAreaLB
Definition: swuicnttab.hxx:136
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:1949
const sal_uInt8 MAXLEVEL
Definition: swtypes.hxx:95
void UpdateDescriptor()
Definition: cnttab.cxx:2083
std::unique_ptr< weld::Button > m_xLeftScrollWin
Definition: swuicnttab.hxx:245
DECL_LINK(TOXTypeHdl, weld::ComboBox &, void)
virtual short Ok() override
Definition: cnttab.cxx:330
OUString sAddStyleContent
Definition: swuicnttab.hxx:124
std::vector< std::unique_ptr< SwTOXWidget > > m_aControlList
Definition: swuicnttab.hxx:249
std::unique_ptr< weld::Label > m_xCaptionSequenceFT
Definition: swuicnttab.hxx:158
std::unique_ptr< weld::RadioButton > m_xFirstSortDownRB
Definition: swuicnttab.hxx:353
std::unique_ptr< weld::CheckButton > m_xStylesCB
Definition: swuicnttab.hxx:143
std::unique_ptr< weld::Label > m_xFillCharFT
Definition: swuicnttab.hxx:336
OUString sAuthTypeStr
Definition: swuicnttab.hxx:307
OUString sAddStyleUser
Definition: swuicnttab.hxx:123
std::unique_ptr< weld::CheckButton > m_xAddStylesCB
Definition: swuicnttab.hxx:144
std::unique_ptr< weld::CheckButton > m_xCommaSeparatedCB
Definition: swuicnttab.hxx:345
void RemoveControl(const SwTOXButton *pDel, bool bInternalCall=false)
Definition: cnttab.cxx:2975
OUString m_aButtonTexts[TOKEN_END]
Definition: swuicnttab.hxx:228
std::unique_ptr< weld::RadioButton > m_xFromCaptionsRB
Definition: swuicnttab.hxx:154
std::unique_ptr< weld::CheckButton > m_xUseFFCB
Definition: swuicnttab.hxx:169
SwTOXWidget * InsertItem(const OUString &rText, const SwFormToken &aToken)
Definition: cnttab.cxx:2710
std::unique_ptr< weld::ComboBox > m_xThirdKeyLB
Definition: swuicnttab.hxx:357
OUString GetPattern() const
Definition: cnttab.cxx:3156
Link< SwFormToken &, void > m_aButtonSelectedHdl
Definition: swuicnttab.hxx:231
sal_uInt16 const m_nInitialTOXType
Definition: swuicnttab.hxx:72
std::unique_ptr< weld::Label > m_xLevelFT
Definition: swuicnttab.hxx:316
sal_uInt32 GetControlIndex(FormTokenType eType) const
Definition: cnttab.cxx:3332
bool Contains(FormTokenType) const
Definition: cnttab.cxx:3176
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:1955
std::unique_ptr< SwTOXDescription > m_pDescription
Definition: swuicnttab.hxx:62
bool m_bWaitingInitialSettings
Definition: swuicnttab.hxx:128
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:1133
bool const m_bGlobalFlag
Definition: swuicnttab.hxx:76
std::unique_ptr< SwTokenWindow > m_xTokenWIN
Definition: swuicnttab.hxx:360
std::unique_ptr< weld::TreeView > m_xLevelLB
Definition: swuicnttab.hxx:317
bool IsValid() const
Definition: swuicnttab.hxx:277
SwTOXWidget * GetActiveControl()
Definition: swuicnttab.hxx:288
std::unique_ptr< weld::CheckButton > m_xAlphaDelimCB
Definition: swuicnttab.hxx:344
std::unique_ptr< IndexEntryResource > pIndexRes
Definition: swuicnttab.hxx:118
void FillTOXDescription()
Definition: cnttab.cxx:1022
SwWrtShell & GetWrtShell()
Definition: swuicnttab.hxx:107
std::unique_ptr< weld::Widget > m_xCreateFrame
Definition: swuicnttab.hxx:141
std::unique_ptr< weld::SpinButton > m_xLevelNF
Definition: swuicnttab.hxx:138
std::unique_ptr< weld::Builder > m_xBuilder
Definition: swuicnttab.hxx:243
virtual void PageCreated(const OString &rId, SfxTabPage &rPage) override
Definition: cnttab.cxx:306
std::unique_ptr< weld::ComboBox > m_xBracketLB
Definition: swuicnttab.hxx:182
std::unique_ptr< SwTOXDescription > CreateTOXDescFromTOXBase(const SwTOXBase *pCurTOX)
Definition: cnttab.cxx:403
std::unique_ptr< SwForm > m_pCurrentForm
Definition: swuicnttab.hxx:403
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:1185
void ApplyTOXDescription()
Definition: cnttab.cxx:906
std::unique_ptr< weld::CheckButton > m_xUseDashCB
Definition: swuicnttab.hxx:170
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:2117
SwForm * m_pForm
Definition: swuicnttab.hxx:225
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:843
SwForm & GetForm()
Definition: swuicnttab.hxx:418
std::unique_ptr< weld::CheckButton > m_xFromOLECB
Definition: swuicnttab.hxx:150
Link< LinkParamNone *, void > m_aModifyHdl
Definition: swuicnttab.hxx:233
virtual ~SwTOXEntryTabPage() override
Definition: cnttab.cxx:1918
OUString m_sAdditionalAccnameString3
Definition: swuicnttab.hxx:237
void AdjustPositions()
Definition: cnttab.cxx:3022
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:3470
std::unique_ptr< weld::Widget > m_xAreaFrame
Definition: swuicnttab.hxx:135
void SetCurrentTOXType(const CurTOXType &eSet)
Definition: swuicnttab.hxx:100
SwTOXStylesTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rAttrSet)
Definition: cnttab.cxx:3359
void SetForm(SwForm &rForm, sal_uInt16 nLevel)
Definition: cnttab.cxx:2617
SwTOXEntryTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rAttrSet)
Definition: cnttab.cxx:1781
OUString const sDelimStr
Definition: swuicnttab.hxx:305
std::unique_ptr< weld::Label > m_xTypeFT
Definition: swuicnttab.hxx:315
void SetButtonSelectedHdl(const Link< SwFormToken &, void > &rLink)
Definition: swuicnttab.hxx:283
std::unique_ptr< weld::Button > m_xPageNoPB
Definition: swuicnttab.hxx:323
std::unique_ptr< weld::CheckButton > m_xCollectSameCB
Definition: swuicnttab.hxx:168
std::unique_ptr< weld::Label > m_xTypeFT
Definition: swuicnttab.hxx:131
std::unique_ptr< weld::CheckButton > m_xTOXMarksCB
Definition: swuicnttab.hxx:164
std::unique_ptr< weld::CheckButton > m_xFromFileCB
Definition: swuicnttab.hxx:174
css::uno::Reference< css::text::XDocumentIndex > xDocumentIndex
Definition: swuicnttab.hxx:51
std::unique_ptr< weld::ComboBox > m_xChapterEntryLB
Definition: swuicnttab.hxx:331
std::unique_ptr< weld::CheckButton > m_xCaseSensitiveCB
Definition: swuicnttab.hxx:171
std::unique_ptr< weld::CheckButton > m_xKeyAsEntryCB
Definition: swuicnttab.hxx:173
const CurTOXType & GetCurrentTOXType() const
Definition: swuicnttab.hxx:99
void WriteBackLevel()
Definition: cnttab.cxx:2251
SwTokenWindow(std::unique_ptr< weld::Container > xParent)
Definition: cnttab.cxx:2574
std::unique_ptr< weld::Widget > m_xAuthorityFrame
Definition: swuicnttab.hxx:183
std::unique_ptr< SwOneExampleFrame > m_xExampleFrame
Definition: swuicnttab.hxx:78
std::unique_ptr< weld::CheckButton > m_xFromGraphicsCB
Definition: swuicnttab.hxx:149
std::unique_ptr< weld::Widget > m_xFormatFrame
Definition: swuicnttab.hxx:341
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:3464
void InsertAtSelection(const SwFormToken &aToken)
Definition: cnttab.cxx:2776
std::unique_ptr< weld::Button > m_xAllLevelsPB
Definition: swuicnttab.hxx:318
std::unique_ptr< weld::ComboBox > m_xSortAlgorithmLB
Definition: swuicnttab.hxx:188
std::unique_ptr< const IndexEntrySupplierWrapper > pIndexEntryWrapper
Definition: swuicnttab.hxx:126
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
Definition: unosett.cxx:254
OUString const m_sUserDefinedIndex
Definition: swuicnttab.hxx:71
std::unique_ptr< weld::CheckButton > m_xShowExampleCB
Definition: swuicnttab.hxx:79
std::unique_ptr< weld::Button > m_xTabPB
Definition: swuicnttab.hxx:321
std::unique_ptr< weld::Button > m_xEditStylePB
Definition: swuicnttab.hxx:329
std::unique_ptr< weld::RadioButton > m_xThirdSortUpRB
Definition: swuicnttab.hxx:358
std::unique_ptr< weld::CheckButton > m_xSequenceCB
Definition: swuicnttab.hxx:181
OUString const sNoCharStyle
Definition: swuicnttab.hxx:309
std::unique_ptr< weld::Button > m_xAssignBT
Definition: swuicnttab.hxx:406
SfxOkDialogController * GetDialogController() const
void AdjustScrolling()
Definition: cnttab.cxx:3039
SwTOXBase * m_pParamTOXBase
Definition: swuicnttab.hxx:67
OUString CreateQuickHelp(const SwFormToken &rToken)
Definition: cnttab.cxx:3197
SwTOXEntryTabPage * m_pParent
Definition: swuicnttab.hxx:241
CurTOXType m_eCurrentTOXType
Definition: swuicnttab.hxx:69
SwTOXSelectTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rAttrSet)
Definition: cnttab.cxx:711
SwMultiTOXTabDialog(weld::Window *pParent, const SfxItemSet &rSet, SwWrtShell &rShell, SwTOXBase *pCurTOX, sal_uInt16 nToxType, bool bGlobal)
Definition: cnttab.cxx:217
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:1177
std::unique_ptr< weld::Container > m_xParentWidget
Definition: swuicnttab.hxx:242
std::unique_ptr< SwTOXMgr > m_pMgr
Definition: swuicnttab.hxx:56
std::unique_ptr< weld::Widget > m_xSortingFrame
Definition: swuicnttab.hxx:347
std::unique_ptr< weld::ComboBox > m_xDisplayTypeLB
Definition: swuicnttab.hxx:161
DeactivateRC
void SetFocus2theAllBtn()
Definition: cnttab.cxx:3324
std::unique_ptr< weld::Button > m_xEntryNoPB
Definition: swuicnttab.hxx:319
def text(shape, st)
void SetWrtShell(SwWrtShell const &rSh)
Definition: cnttab.cxx:825
css::uno::Reference< css::text::XTextSection > xContainerSection
Definition: swuicnttab.hxx:50
std::unique_ptr< SwIndexSections_Impl > m_pxIndexSections
Definition: swuicnttab.hxx:63
std::unique_ptr< weld::CheckButton > m_xReadOnlyCB
Definition: swuicnttab.hxx:133
void SetActiveControl(SwTOXWidget *pSet)
Definition: cnttab.cxx:2689
weld::Container * get_child_container()
Definition: swuicnttab.hxx:269
void SetInvalid()
Definition: swuicnttab.hxx:279
std::unique_ptr< weld::Button > m_xChapterInfoPB
Definition: swuicnttab.hxx:322
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:2123
DECL_LINK(EditResize, SwTOXEdit &, void)
std::unique_ptr< weld::CheckButton > m_xInitialCapsCB
Definition: swuicnttab.hxx:172
std::unique_ptr< weld::CheckButton > m_xLevelFromChapterCB
Definition: swuicnttab.hxx:151
std::unique_ptr< weld::Widget > m_xFromObjFrame
Definition: swuicnttab.hxx:179
std::unique_ptr< weld::CheckButton > m_xAutoRightCB
Definition: swuicnttab.hxx:340
bool IsTOXEditMode() const
Definition: swuicnttab.hxx:105
std::unique_ptr< SwForm > m_pForm
Definition: swuicnttab.hxx:61
std::unique_ptr< weld::Label > m_xMainEntryStyleFT
Definition: swuicnttab.hxx:342
FormTokenType
Definition: tox.hxx:191
virtual ~SwTOXStylesTabPage() override
Definition: cnttab.cxx:3382
std::unique_ptr< weld::ComboBox > m_xSecondKeyLB
Definition: swuicnttab.hxx:354
std::unique_ptr< weld::TreeView > m_xFromObjCLB
Definition: swuicnttab.hxx:178
std::unique_ptr< weld::MetricSpinButton > m_xTabPosMF
Definition: swuicnttab.hxx:339
SwWrtShell & m_rWrtShell
Definition: swuicnttab.hxx:57
std::unique_ptr< weld::ComboBox > m_xCharStyleLB
Definition: swuicnttab.hxx:328
std::unique_ptr< weld::Widget > m_xIdxOptionsFrame
Definition: swuicnttab.hxx:167
std::unique_ptr< weld::Container > m_xCtrlParentWin
Definition: swuicnttab.hxx:246
void SetTabPage(SwTOXEntryTabPage *pParent)
Definition: swuicnttab.hxx:272
std::unique_ptr< weld::RadioButton > m_xFromObjectNamesRB
Definition: swuicnttab.hxx:155
virtual ~SwMultiTOXTabDialog() override
Definition: cnttab.cxx:301