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