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