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<LanguageBox> 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 
208 
209 public:
210  SwTOXSelectTabPage(TabPageParent pParent, const SfxItemSet& rAttrSet);
211  virtual ~SwTOXSelectTabPage() override;
212  virtual void dispose() override;
213 
214  virtual bool FillItemSet( SfxItemSet* ) override;
215  virtual void Reset( const SfxItemSet* ) override;
216 
217  virtual void ActivatePage( const SfxItemSet& ) override;
218  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
219 
220  static VclPtr<SfxTabPage> Create( TabPageParent pParent,
221  const SfxItemSet* rAttrSet);
222 
223  void SelectType(TOXTypes eSet); //preset TOXType, GlobalDoc
224  void SetWrtShell(SwWrtShell const & rSh);
225 };
226 
228 {
230  sal_uInt16 m_nLevel;
231  bool m_bValid;
232  OUString m_aButtonTexts[TOKEN_END]; // Text of the buttons
233  OUString m_aButtonHelpTexts[TOKEN_END]; // QuickHelpText of the buttons
234  OUString const m_sCharStyle;
242 
244 
246  std::unique_ptr<weld::Container> m_xParentWidget;
247  std::unique_ptr<weld::Builder> m_xBuilder;
248  std::unique_ptr<weld::Container> m_xContainer;
249  std::unique_ptr<weld::Button> m_xLeftScrollWin;
250  std::unique_ptr<weld::Container> m_xCtrlParentWin;
251  std::unique_ptr<weld::ScrolledWindow> m_xScrollWin;
252  std::unique_ptr<weld::Button> m_xRightScrollWin;
253  std::vector<std::unique_ptr<SwTOXWidget>> m_aControlList;
254 
255  DECL_LINK(EditResize, SwTOXEdit&, void);
256  DECL_LINK(NextItemHdl, SwTOXEdit&, void);
257  DECL_LINK(TbxFocusHdl, SwTOXWidget&, void);
258  DECL_LINK(NextItemBtnHdl, SwTOXButton&, void);
259  DECL_LINK(TbxFocusBtnHdl, SwTOXWidget&, void);
260  DECL_LINK(ScrollBtnHdl, weld::Button&, void);
261  DECL_LINK(ScrollHdl, weld::ScrolledWindow&, void);
262  DECL_LINK(AdjustPositionsHdl, const Size&, void);
263 
264  void SetActiveControl(SwTOXWidget* pSet);
265 
266  SwTOXWidget* InsertItem(const OUString& rText, const SwFormToken& aToken);
267  void AdjustPositions();
268  void AdjustScrolling();
269  void MoveControls(long nOffset);
270 
271 public:
272  SwTokenWindow(std::unique_ptr<weld::Container> xParent);
273  weld::Container* get_child_container() { return m_xCtrlParentWin.get(); }
274  ~SwTokenWindow();
275 
276  void SetTabPage(SwTOXEntryTabPage *pParent) { m_pParent = pParent; }
277 
278  void SetForm(SwForm& rForm, sal_uInt16 nLevel);
279  sal_uInt16 GetLastLevel()const {return m_nLevel;};
280 
281  bool IsValid() const {return m_bValid;}
282 
283  void SetInvalid() {m_bValid = false;}
284 
285  OUString GetPattern() const;
286 
288  { m_aButtonSelectedHdl = rLink;}
289 
290  void SetModifyHdl(const Link<LinkParamNone*,void>& rLink){m_aModifyHdl = rLink;}
291 
293 
294  void InsertAtSelection(const SwFormToken& aToken);
295  void RemoveControl(const SwTOXButton* pDel, bool bInternalCall = false);
296 
297  bool Contains(FormTokenType) const;
298 
299  //helper for pattern buttons and edits
300  OUString CreateQuickHelp(const SwFormToken& rToken);
301 
302  void SetFocus2theAllBtn();
303 private:
304  sal_uInt32 GetControlIndex(FormTokenType eType) const;
305 };
306 
308 {
309  OUString const sDelimStr;
310  OUString sLevelStr;
311  OUString sAuthTypeStr;
312 
313  OUString const sNoCharStyle;
315 
318 
319  std::unique_ptr<weld::Label> m_xTypeFT;
320  std::unique_ptr<weld::Label> m_xLevelFT;
321  std::unique_ptr<weld::TreeView> m_xLevelLB;
322  std::unique_ptr<weld::Button> m_xAllLevelsPB;
323  std::unique_ptr<weld::Button> m_xEntryNoPB;
324  std::unique_ptr<weld::Button> m_xEntryPB;
325  std::unique_ptr<weld::Button> m_xTabPB;
326  std::unique_ptr<weld::Button> m_xChapterInfoPB;
327  std::unique_ptr<weld::Button> m_xPageNoPB;
328  std::unique_ptr<weld::Button> m_xHyperLinkPB;
329  std::unique_ptr<weld::ComboBox> m_xAuthFieldsLB;
330  std::unique_ptr<weld::Button> m_xAuthInsertPB;
331  std::unique_ptr<weld::Button> m_xAuthRemovePB;
332  std::unique_ptr<weld::ComboBox> m_xCharStyleLB; // character style of the current token
333  std::unique_ptr<weld::Button> m_xEditStylePB;
334  std::unique_ptr<weld::Label> m_xChapterEntryFT;
335  std::unique_ptr<weld::ComboBox> m_xChapterEntryLB; // type of chapter info
336  std::unique_ptr<weld::Label> m_xNumberFormatFT;
337  std::unique_ptr<weld::ComboBox> m_xNumberFormatLB;
338  std::unique_ptr<weld::Label> m_xEntryOutlineLevelFT;
339  std::unique_ptr<weld::SpinButton> m_xEntryOutlineLevelNF;
340  std::unique_ptr<weld::Label> m_xFillCharFT;
341  std::unique_ptr<weld::ComboBox> m_xFillCharCB; // fill char for tab stop
342  std::unique_ptr<weld::Label> m_xTabPosFT;
343  std::unique_ptr<weld::MetricSpinButton> m_xTabPosMF; // tab stop position
344  std::unique_ptr<weld::CheckButton> m_xAutoRightCB;
345  std::unique_ptr<weld::Widget> m_xFormatFrame;
346  std::unique_ptr<weld::Label> m_xMainEntryStyleFT;
347  std::unique_ptr<weld::ComboBox> m_xMainEntryStyleLB; // character style of main entries in indexes
348  std::unique_ptr<weld::CheckButton> m_xAlphaDelimCB;
349  std::unique_ptr<weld::CheckButton> m_xCommaSeparatedCB;
350  std::unique_ptr<weld::CheckButton> m_xRelToStyleCB; // position relative to the right margin of the para style
351  std::unique_ptr<weld::Widget> m_xSortingFrame;
352  std::unique_ptr<weld::RadioButton> m_xSortDocPosRB;
353  std::unique_ptr<weld::RadioButton> m_xSortContentRB;
354  std::unique_ptr<weld::Widget> m_xSortKeyFrame;
355  std::unique_ptr<weld::ComboBox> m_xFirstKeyLB;
356  std::unique_ptr<weld::RadioButton> m_xFirstSortUpRB;
357  std::unique_ptr<weld::RadioButton> m_xFirstSortDownRB;
358  std::unique_ptr<weld::ComboBox> m_xSecondKeyLB;
359  std::unique_ptr<weld::RadioButton> m_xSecondSortUpRB;
360  std::unique_ptr<weld::RadioButton> m_xSecondSortDownRB;
361  std::unique_ptr<weld::ComboBox> m_xThirdKeyLB;
362  std::unique_ptr<weld::RadioButton> m_xThirdSortUpRB;
363  std::unique_ptr<weld::RadioButton> m_xThirdSortDownRB;
364  std::unique_ptr<SwTokenWindow> m_xTokenWIN;
365 
366  DECL_LINK(StyleSelectHdl, weld::ComboBox&, void);
367  DECL_LINK(EditStyleHdl, weld::Button&, void);
368  DECL_LINK(InsertTokenHdl, weld::Button&, void);
369  DECL_LINK(LevelHdl, weld::TreeView&, void);
370  DECL_LINK(AutoRightHdl, weld::ToggleButton&, void);
371  DECL_LINK(TokenSelectedHdl, SwFormToken&, void);
372  DECL_LINK(TabPosHdl, weld::MetricSpinButton&, void);
373  DECL_LINK(FillCharHdl, weld::ComboBox&, void);
374  DECL_LINK(RemoveInsertAuthHdl, weld::Button&, void);
375  DECL_LINK(SortKeyHdl, weld::ToggleButton&, void);
376  DECL_LINK(ChapterInfoHdl, weld::ComboBox&, void);
377  DECL_LINK(ChapterInfoOutlineHdl, weld::SpinButton&, void);
378  DECL_LINK(NumberFormatHdl, weld::ComboBox&, void);
379 
380  DECL_LINK(AllLevelsHdl, weld::Button&, void);
381 
382  void WriteBackLevel();
383  void UpdateDescriptor();
384  DECL_LINK(ModifyHdl, LinkParamNone*, void);
385  void OnModify(bool bAllLevels);
386  DECL_LINK(ModifyClickHdl, weld::ToggleButton&, void);
387 
390 
391 public:
392  SwTOXEntryTabPage(TabPageParent pParent, const SfxItemSet& rAttrSet);
393  virtual ~SwTOXEntryTabPage() override;
394  virtual void dispose() override;
395 
396  virtual bool FillItemSet( SfxItemSet* ) override;
397  virtual void Reset( const SfxItemSet* ) override;
398  virtual void ActivatePage( const SfxItemSet& ) override;
399  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
400 
401  static VclPtr<SfxTabPage> Create( TabPageParent pParent,
402  const SfxItemSet* rAttrSet);
403  void SetWrtShell(SwWrtShell& rSh);
404 
405  void PreTokenButtonRemoved(const SwFormToken& rToken);
406  void SetFocus2theAllBtn();
407  virtual bool EventNotify( NotifyEvent& rNEvt ) override;
408 };
409 
411 {
412  std::unique_ptr<SwForm> m_pCurrentForm;
413 
414  std::unique_ptr<weld::TreeView> m_xLevelLB;
415  std::unique_ptr<weld::Button> m_xAssignBT;
416  std::unique_ptr<weld::TreeView> m_xParaLayLB;
417  std::unique_ptr<weld::Button> m_xStdBT;
418  std::unique_ptr<weld::Button> m_xEditStyleBT;
419 
420  DECL_LINK(EditStyleHdl, weld::Button&, void);
421  DECL_LINK(StdHdl, weld::Button&, void);
422  DECL_LINK(EnableSelectHdl, weld::TreeView&, void);
423  DECL_LINK(DoubleClickHdl, weld::TreeView&, void);
424  DECL_LINK(AssignHdl, weld::Button&, void);
425  void Modify();
426 
428  {
430  return *pDlg->GetForm(pDlg->GetCurrentTOXType());
431  }
432 
435 
436 public:
437  SwTOXStylesTabPage(TabPageParent pParent, const SfxItemSet& rAttrSet);
438  virtual ~SwTOXStylesTabPage() override;
439 
440  virtual bool FillItemSet( SfxItemSet* ) override;
441  virtual void Reset( const SfxItemSet* ) override;
442 
443  virtual void ActivatePage( const SfxItemSet& ) override;
444  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
445 
446  static VclPtr<SfxTabPage> Create( TabPageParent pParent,
447  const SfxItemSet* rAttrSet);
448 
449 };
450 
451 #endif // INCLUDED_SW_SOURCE_UIBASE_INC_SWUICNTTAB_HXX
452 
453 /* 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:233
DECL_LINK(CreateExample_Hdl, SwOneExampleFrame &, void)
std::unique_ptr< weld::ComboBox > m_xAuthFieldsLB
Definition: swuicnttab.hxx:329
std::unique_ptr< weld::ScrolledWindow > m_xScrollWin
Definition: swuicnttab.hxx:251
std::unique_ptr< weld::Label > m_xChapterEntryFT
Definition: swuicnttab.hxx:334
TOXTypes
Definition: toxe.hxx:39
void OnModify(bool bAllLevels)
Definition: cnttab.cxx:1938
void MoveControls(long nOffset)
Definition: cnttab.cxx:3052
std::vector< TypeData > m_vTypeData
Definition: swuicnttab.hxx:65
std::unique_ptr< weld::ComboBox > m_xNumberFormatLB
format for numbering (E#)
Definition: swuicnttab.hxx:337
std::unique_ptr< weld::RadioButton > m_xSecondSortUpRB
Definition: swuicnttab.hxx:359
std::unique_ptr< weld::TreeView > m_xParaLayLB
Definition: swuicnttab.hxx:416
OUString m_sAdditionalAccnameString2
Definition: swuicnttab.hxx:240
void PreTokenButtonRemoved(const SwFormToken &rToken)
Definition: cnttab.cxx:2173
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:2127
std::unique_ptr< weld::Button > m_xRightScrollWin
Definition: swuicnttab.hxx:252
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:1169
sal_uInt16 m_nLevel
Definition: swuicnttab.hxx:230
std::unique_ptr< weld::Label > m_xEntryOutlineLevelFT
Fixed text, for i53420.
Definition: swuicnttab.hxx:338
std::unique_ptr< weld::Button > m_xAddStylesPB
Definition: swuicnttab.hxx:145
virtual void dispose() override
Definition: cnttab.cxx:814
std::unique_ptr< weld::Button > m_xEntryPB
Definition: swuicnttab.hxx:324
std::unique_ptr< weld::ComboBox > m_xTypeLB
Definition: swuicnttab.hxx:132
std::unique_ptr< weld::ComboBox > m_xFirstKeyLB
Definition: swuicnttab.hxx:355
DECL_LINK(EditStyleHdl, weld::Button &, void)
const SfxItemSet * pSet
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:3409
std::unique_ptr< weld::Button > m_xHyperLinkPB
Definition: swuicnttab.hxx:328
std::unique_ptr< weld::Button > m_xStdBT
Definition: swuicnttab.hxx:417
Idle m_aAdjustPositionsIdle
Definition: swuicnttab.hxx:243
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:359
void SelectType(TOXTypes eSet)
Definition: cnttab.cxx:868
std::unique_ptr< weld::SpinButton > m_xEntryOutlineLevelNF
level to evaluate outline level to, for i53420
Definition: swuicnttab.hxx:339
std::unique_ptr< weld::Button > m_xEditStyleBT
Definition: swuicnttab.hxx:418
std::unique_ptr< weld::Label > m_xDisplayTypeFT
Definition: swuicnttab.hxx:160
sal_uInt16 GetLastLevel() const
Definition: swuicnttab.hxx:279
std::unique_ptr< weld::ComboBox > m_xCaptionSequenceLB
Definition: swuicnttab.hxx:159
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:1982
SwForm * GetForm(CurTOXType eType)
Definition: cnttab.cxx:351
virtual void ActivatePage(const SfxItemSet &)
std::unique_ptr< weld::RadioButton > m_xSortDocPosRB
Definition: swuicnttab.hxx:352
void CreateOrUpdateExample(TOXTypes nTOXIndex, sal_uInt16 nPage=0, sal_uInt16 nCurLevel=USHRT_MAX)
Definition: cntex.cxx:138
OUString const m_sCharStyle
Definition: swuicnttab.hxx:234
DECL_LINK(StyleSelectHdl, weld::ComboBox &, void)
std::unique_ptr< weld::TreeView > m_xLevelLB
Definition: swuicnttab.hxx:414
std::unique_ptr< weld::CheckButton > m_xRelToStyleCB
Definition: swuicnttab.hxx:350
static bool IsNoNum(SwWrtShell &rSh, const OUString &rName)
Definition: cnttab.cxx:469
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:3419
SwForm * m_pCurrentForm
Definition: swuicnttab.hxx:314
std::unique_ptr< weld::RadioButton > m_xThirdSortDownRB
Definition: swuicnttab.hxx:363
void SetFocus2theAllBtn()
Definition: cnttab.cxx:2180
std::unique_ptr< weld::CheckButton > m_xFromFramesCB
Definition: swuicnttab.hxx:148
SwTOXEntryTabPage(TabPageParent pParent, const SfxItemSet &rAttrSet)
Definition: cnttab.cxx:1779
std::unique_ptr< weld::Widget > m_xLevelFT
Definition: swuicnttab.hxx:137
void SetWrtShell(SwWrtShell &rSh)
Definition: cnttab.cxx:2552
std::unique_ptr< weld::Container > m_xContainer
Definition: swuicnttab.hxx:248
std::unique_ptr< weld::RadioButton > m_xFirstSortUpRB
Definition: swuicnttab.hxx:356
std::unique_ptr< weld::CheckButton > m_xFromTablesCB
Definition: swuicnttab.hxx:147
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:3414
std::unique_ptr< weld::Label > m_xTabPosFT
Definition: swuicnttab.hxx:342
std::unique_ptr< weld::Widget > m_xSortKeyFrame
Definition: swuicnttab.hxx:354
std::unique_ptr< weld::Button > m_xAuthInsertPB
Definition: swuicnttab.hxx:330
SwTOXWidget * m_pActiveCtrl
Definition: swuicnttab.hxx:236
std::unique_ptr< weld::Entry > m_xTitleED
Definition: swuicnttab.hxx:130
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet)
Used by the UI to modify the document model.
Definition: wrtsh.hxx:88
OUString const sAutoMarkType
Definition: swuicnttab.hxx:122
std::unique_ptr< weld::RadioButton > m_xSecondSortDownRB
Definition: swuicnttab.hxx:360
CurTOXType aLastTOXType
Definition: swuicnttab.hxx:316
std::unique_ptr< LanguageBox > m_xLanguageLB
Definition: swuicnttab.hxx:187
OUString m_sAdditionalAccnameString1
Definition: swuicnttab.hxx:239
std::unique_ptr< weld::RadioButton > m_xSortContentRB
Definition: swuicnttab.hxx:353
OUString m_sAccessibleName
Definition: swuicnttab.hxx:238
std::unique_ptr< weld::CheckButton > m_xFromHeadingsCB
Definition: swuicnttab.hxx:142
std::unique_ptr< weld::Label > m_xNumberFormatFT
Definition: swuicnttab.hxx:336
void SetModifyHdl(const Link< LinkParamNone *, void > &rLink)
Definition: swuicnttab.hxx:290
virtual ~SwTOXSelectTabPage() override
Definition: cnttab.cxx:809
std::unique_ptr< weld::Button > m_xAuthRemovePB
Definition: swuicnttab.hxx:331
void LanguageHdl(const weld::ComboBox *)
Definition: cnttab.cxx:1320
std::unique_ptr< weld::ComboBox > m_xMainEntryStyleLB
Definition: swuicnttab.hxx:347
std::unique_ptr< weld::ComboBox > m_xFillCharCB
Definition: swuicnttab.hxx:341
std::unique_ptr< weld::ComboBox > m_xAreaLB
Definition: swuicnttab.hxx:136
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:1953
const sal_uInt8 MAXLEVEL
Definition: swtypes.hxx:95
void UpdateDescriptor()
Definition: cnttab.cxx:2087
std::unique_ptr< weld::Button > m_xLeftScrollWin
Definition: swuicnttab.hxx:249
DECL_LINK(TOXTypeHdl, weld::ComboBox &, void)
virtual short Ok() override
Definition: cnttab.cxx:325
OUString sAddStyleContent
Definition: swuicnttab.hxx:124
virtual void dispose() override
Definition: cnttab.cxx:1921
std::vector< std::unique_ptr< SwTOXWidget > > m_aControlList
Definition: swuicnttab.hxx:253
virtual bool EventNotify(NotifyEvent &rNEvt) override
Definition: cnttab.cxx:2185
std::unique_ptr< weld::Label > m_xCaptionSequenceFT
Definition: swuicnttab.hxx:158
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:3493
std::unique_ptr< weld::RadioButton > m_xFirstSortDownRB
Definition: swuicnttab.hxx:357
std::unique_ptr< weld::CheckButton > m_xStylesCB
Definition: swuicnttab.hxx:143
std::unique_ptr< weld::Label > m_xFillCharFT
Definition: swuicnttab.hxx:340
OUString sAuthTypeStr
Definition: swuicnttab.hxx:311
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:349
void RemoveControl(const SwTOXButton *pDel, bool bInternalCall=false)
Definition: cnttab.cxx:2998
OUString m_aButtonTexts[TOKEN_END]
Definition: swuicnttab.hxx:232
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:2733
std::unique_ptr< weld::ComboBox > m_xThirdKeyLB
Definition: swuicnttab.hxx:361
OUString GetPattern() const
Definition: cnttab.cxx:3179
Link< SwFormToken &, void > m_aButtonSelectedHdl
Definition: swuicnttab.hxx:235
sal_uInt16 const m_nInitialTOXType
Definition: swuicnttab.hxx:72
std::unique_ptr< weld::Label > m_xLevelFT
Definition: swuicnttab.hxx:320
sal_uInt32 GetControlIndex(FormTokenType eType) const
Definition: cnttab.cxx:3355
bool Contains(FormTokenType) const
Definition: cnttab.cxx:3199
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:1959
std::unique_ptr< SwTOXDescription > m_pDescription
Definition: swuicnttab.hxx:62
bool m_bWaitingInitialSettings
Definition: swuicnttab.hxx:128
SwTOXStylesTabPage(TabPageParent pParent, const SfxItemSet &rAttrSet)
Definition: cnttab.cxx:3382
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:1130
bool const m_bGlobalFlag
Definition: swuicnttab.hxx:76
std::unique_ptr< SwTokenWindow > m_xTokenWIN
Definition: swuicnttab.hxx:364
std::unique_ptr< weld::TreeView > m_xLevelLB
Definition: swuicnttab.hxx:321
bool IsValid() const
Definition: swuicnttab.hxx:281
SwTOXWidget * GetActiveControl()
Definition: swuicnttab.hxx:292
std::unique_ptr< weld::CheckButton > m_xAlphaDelimCB
Definition: swuicnttab.hxx:348
std::unique_ptr< IndexEntryResource > pIndexRes
Definition: swuicnttab.hxx:118
void FillTOXDescription()
Definition: cnttab.cxx:1019
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:247
virtual void PageCreated(const OString &rId, SfxTabPage &rPage) override
Definition: cnttab.cxx:301
std::unique_ptr< weld::ComboBox > m_xBracketLB
Definition: swuicnttab.hxx:182
std::unique_ptr< SwTOXDescription > CreateTOXDescFromTOXBase(const SwTOXBase *pCurTOX)
Definition: cnttab.cxx:398
std::unique_ptr< SwForm > m_pCurrentForm
Definition: swuicnttab.hxx:412
void ApplyTOXDescription()
Definition: cnttab.cxx:903
std::unique_ptr< weld::CheckButton > m_xUseDashCB
Definition: swuicnttab.hxx:170
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:2121
SwForm * m_pForm
Definition: swuicnttab.hxx:229
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:840
SwForm & GetForm()
Definition: swuicnttab.hxx:427
std::unique_ptr< weld::CheckButton > m_xFromOLECB
Definition: swuicnttab.hxx:150
Link< LinkParamNone *, void > m_aModifyHdl
Definition: swuicnttab.hxx:237
virtual ~SwTOXEntryTabPage() override
Definition: cnttab.cxx:1916
OUString m_sAdditionalAccnameString3
Definition: swuicnttab.hxx:241
void AdjustPositions()
Definition: cnttab.cxx:3045
std::unique_ptr< weld::Widget > m_xAreaFrame
Definition: swuicnttab.hxx:135
void SetCurrentTOXType(const CurTOXType &eSet)
Definition: swuicnttab.hxx:100
void SetForm(SwForm &rForm, sal_uInt16 nLevel)
Definition: cnttab.cxx:2640
OUString const sDelimStr
Definition: swuicnttab.hxx:309
std::unique_ptr< weld::Label > m_xTypeFT
Definition: swuicnttab.hxx:319
void SetButtonSelectedHdl(const Link< SwFormToken &, void > &rLink)
Definition: swuicnttab.hxx:287
std::unique_ptr< weld::Button > m_xPageNoPB
Definition: swuicnttab.hxx:327
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:335
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:2274
SwTokenWindow(std::unique_ptr< weld::Container > xParent)
Definition: cnttab.cxx:2597
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:345
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:1182
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:3487
void InsertAtSelection(const SwFormToken &aToken)
Definition: cnttab.cxx:2799
std::unique_ptr< weld::Button > m_xAllLevelsPB
Definition: swuicnttab.hxx:322
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:261
SwTOXSelectTabPage(TabPageParent pParent, const SfxItemSet &rAttrSet)
Definition: cnttab.cxx:702
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:325
std::unique_ptr< weld::Button > m_xEditStylePB
Definition: swuicnttab.hxx:333
std::unique_ptr< weld::RadioButton > m_xThirdSortUpRB
Definition: swuicnttab.hxx:362
std::unique_ptr< weld::CheckButton > m_xSequenceCB
Definition: swuicnttab.hxx:181
OUString const sNoCharStyle
Definition: swuicnttab.hxx:313
std::unique_ptr< weld::Button > m_xAssignBT
Definition: swuicnttab.hxx:415
SfxOkDialogController * GetDialogController() const
void AdjustScrolling()
Definition: cnttab.cxx:3062
SwTOXBase * m_pParamTOXBase
Definition: swuicnttab.hxx:67
OUString CreateQuickHelp(const SwFormToken &rToken)
Definition: cnttab.cxx:3220
CurTOXType m_eCurrentTOXType
Definition: swuicnttab.hxx:69
SwMultiTOXTabDialog(weld::Window *pParent, const SfxItemSet &rSet, SwWrtShell &rShell, SwTOXBase *pCurTOX, sal_uInt16 nToxType, bool bGlobal)
Definition: cnttab.cxx:212
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:1174
std::unique_ptr< weld::Container > m_xParentWidget
Definition: swuicnttab.hxx:246
std::unique_ptr< SwTOXMgr > m_pMgr
Definition: swuicnttab.hxx:56
std::unique_ptr< weld::Widget > m_xSortingFrame
Definition: swuicnttab.hxx:351
std::unique_ptr< weld::ComboBox > m_xDisplayTypeLB
Definition: swuicnttab.hxx:161
DeactivateRC
void SetFocus2theAllBtn()
Definition: cnttab.cxx:3347
std::unique_ptr< weld::Button > m_xEntryNoPB
Definition: swuicnttab.hxx:323
def text(shape, st)
void SetWrtShell(SwWrtShell const &rSh)
Definition: cnttab.cxx:822
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:2712
weld::Container * get_child_container()
Definition: swuicnttab.hxx:273
VclPtr< SwTOXEntryTabPage > m_pParent
Definition: swuicnttab.hxx:245
void SetInvalid()
Definition: swuicnttab.hxx:283
std::unique_ptr< weld::Button > m_xChapterInfoPB
Definition: swuicnttab.hxx:326
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:344
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:346
FormTokenType
Definition: tox.hxx:191
virtual ~SwTOXStylesTabPage() override
Definition: cnttab.cxx:3405
std::unique_ptr< weld::ComboBox > m_xSecondKeyLB
Definition: swuicnttab.hxx:358
std::unique_ptr< weld::TreeView > m_xFromObjCLB
Definition: swuicnttab.hxx:178
std::unique_ptr< weld::MetricSpinButton > m_xTabPosMF
Definition: swuicnttab.hxx:343
SwWrtShell & m_rWrtShell
Definition: swuicnttab.hxx:57
std::unique_ptr< weld::ComboBox > m_xCharStyleLB
Definition: swuicnttab.hxx:332
std::unique_ptr< weld::Widget > m_xIdxOptionsFrame
Definition: swuicnttab.hxx:167
std::unique_ptr< weld::Container > m_xCtrlParentWin
Definition: swuicnttab.hxx:250
void SetTabPage(SwTOXEntryTabPage *pParent)
Definition: swuicnttab.hxx:276
std::unique_ptr< weld::RadioButton > m_xFromObjectNamesRB
Definition: swuicnttab.hxx:155
virtual ~SwMultiTOXTabDialog() override
Definition: cnttab.cxx:296