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
35class SwTOXWidget;
36class SwTOXEdit;
37class SwTOXButton;
40class SwWrtShell;
41
42namespace 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::optional<SwIndexSections_Impl> m_oIndexSections;
65 };
66 std::vector<TypeData> m_vTypeData;
67
69
71
74
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
90public:
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 OUString& rId, SfxTabPage &rPage) override;
98
100
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
118class SwTOXSelectTabPage final : public SfxTabPage
119{
120 std::unique_ptr<IndexEntryResource> m_pIndexRes;
121
127
128 std::unique_ptr<const IndexEntrySupplierWrapper> m_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 std::unique_ptr<weld::CheckButton> m_xParaStyleCB;
165 std::unique_ptr<weld::ComboBox> m_xParaStyleLB;
166
167 //all but illustration and table
168 std::unique_ptr<weld::CheckButton> m_xTOXMarksCB;
169
170 //index only
171 std::unique_ptr<weld::Widget> m_xIdxOptionsFrame;
172 std::unique_ptr<weld::CheckButton> m_xCollectSameCB;
173 std::unique_ptr<weld::CheckButton> m_xUseFFCB;
174 std::unique_ptr<weld::CheckButton> m_xUseDashCB;
175 std::unique_ptr<weld::CheckButton> m_xCaseSensitiveCB;
176 std::unique_ptr<weld::CheckButton> m_xInitialCapsCB;
177 std::unique_ptr<weld::CheckButton> m_xKeyAsEntryCB;
178 std::unique_ptr<weld::CheckButton> m_xFromFileCB;
179 std::unique_ptr<weld::MenuButton> m_xAutoMarkPB;
180
181 // object only
182 std::unique_ptr<weld::TreeView> m_xFromObjCLB;
183 std::unique_ptr<weld::Widget> m_xFromObjFrame;
184
185 std::unique_ptr<weld::CheckButton> m_xSequenceCB;
186 std::unique_ptr<weld::ComboBox> m_xBracketLB;
187 std::unique_ptr<weld::Widget> m_xAuthorityFrame;
188
189 //all
190 std::unique_ptr<weld::Widget> m_xSortFrame;
191 std::unique_ptr<SvxLanguageBox> m_xLanguageLB;
192 std::unique_ptr<weld::ComboBox> m_xSortAlgorithmLB;
193
194 DECL_LINK(TOXTypeHdl, weld::ComboBox&, void );
195 DECL_LINK(AddStylesHdl, weld::Button&, void );
196 DECL_LINK(MenuEnableHdl, weld::Toggleable&, void);
197 DECL_LINK(MenuExecuteHdl, const OUString&, void);
198 DECL_LINK(LanguageListBoxHdl, weld::ComboBox&, void);
199 void LanguageHdl(const weld::ComboBox*);
200 DECL_LINK(CheckBoxHdl, weld::Toggleable&, void );
201 DECL_LINK(RadioButtonHdl, weld::Toggleable&, void);
202 DECL_LINK(ModifyEntryHdl, weld::Entry&, void);
203 DECL_LINK(ModifySpinHdl, weld::SpinButton&, void);
204 DECL_LINK(ModifyListBoxHdl, weld::ComboBox&, void);
205
206 void ModifyHdl();
207 void ApplyTOXDescription();
208 void FillTOXDescription();
209
210public:
211 SwTOXSelectTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
212 virtual ~SwTOXSelectTabPage() 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 std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
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;
232 OUString m_aButtonTexts[TOKEN_END]; // Text of the buttons
233 OUString m_aButtonHelpTexts[TOKEN_END]; // QuickHelpText of the buttons
234 OUString 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(tools::Long nOffset);
270
271public:
272 SwTokenWindow(std::unique_ptr<weld::Container> xParent);
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
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();
303private:
304 sal_uInt32 GetControlIndex(FormTokenType eType) const;
305};
306
307class SwTOXEntryTabPage final : public SfxTabPage
308{
309 OUString m_sDelimStr;
310 OUString m_sLevelStr;
312
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::Widget> m_xFieldBox;
330 std::unique_ptr<weld::ComboBox> m_xAuthFieldsLB;
331 std::unique_ptr<weld::Button> m_xAuthInsertPB;
332 std::unique_ptr<weld::Button> m_xAuthRemovePB;
333 std::unique_ptr<weld::ComboBox> m_xCharStyleLB; // character style of the current token
334 std::unique_ptr<weld::Button> m_xEditStylePB;
335 std::unique_ptr<weld::Label> m_xChapterEntryFT;
336 std::unique_ptr<weld::ComboBox> m_xChapterEntryLB; // type of chapter info
337 std::unique_ptr<weld::Label> m_xNumberFormatFT;
338 std::unique_ptr<weld::ComboBox> m_xNumberFormatLB;
339 std::unique_ptr<weld::Label> m_xEntryOutlineLevelFT;
340 std::unique_ptr<weld::SpinButton> m_xEntryOutlineLevelNF;
341 std::unique_ptr<weld::Label> m_xFillCharFT;
342 std::unique_ptr<weld::ComboBox> m_xFillCharCB; // fill char for tab stop
343 std::unique_ptr<weld::Label> m_xTabPosFT;
344 std::unique_ptr<weld::MetricSpinButton> m_xTabPosMF; // tab stop position
345 std::unique_ptr<weld::CheckButton> m_xAutoRightCB;
346 std::unique_ptr<weld::Widget> m_xFormatFrame;
347 std::unique_ptr<weld::Label> m_xMainEntryStyleFT;
348 std::unique_ptr<weld::ComboBox> m_xMainEntryStyleLB; // character style of main entries in indexes
349 std::unique_ptr<weld::CheckButton> m_xAlphaDelimCB;
350 std::unique_ptr<weld::CheckButton> m_xCommaSeparatedCB;
351 std::unique_ptr<weld::CheckButton> m_xRelToStyleCB; // position relative to the right margin of the para style
352 std::unique_ptr<weld::Widget> m_xSortingFrame;
353 std::unique_ptr<weld::RadioButton> m_xSortDocPosRB;
354 std::unique_ptr<weld::RadioButton> m_xSortContentRB;
355 std::unique_ptr<weld::Widget> m_xSortKeyFrame;
356 std::unique_ptr<weld::ComboBox> m_xFirstKeyLB;
357 std::unique_ptr<weld::ToggleButton> m_xFirstSortUpRB;
358 std::unique_ptr<weld::ToggleButton> m_xFirstSortDownRB;
359 std::unique_ptr<weld::ComboBox> m_xSecondKeyLB;
360 std::unique_ptr<weld::ToggleButton> m_xSecondSortUpRB;
361 std::unique_ptr<weld::ToggleButton> m_xSecondSortDownRB;
362 std::unique_ptr<weld::ComboBox> m_xThirdKeyLB;
363 std::unique_ptr<weld::ToggleButton> m_xThirdSortUpRB;
364 std::unique_ptr<weld::ToggleButton> m_xThirdSortDownRB;
365 std::unique_ptr<SwTokenWindow> m_xTokenWIN;
366
367 DECL_LINK(StyleSelectHdl, weld::ComboBox&, void);
368 DECL_LINK(EditStyleHdl, weld::Button&, void);
369 DECL_LINK(InsertTokenHdl, weld::Button&, void);
370 DECL_LINK(LevelHdl, weld::TreeView&, void);
371 DECL_LINK(AutoRightHdl, weld::Toggleable&, void);
372 DECL_LINK(TokenSelectedHdl, SwFormToken&, void);
374 DECL_LINK(FillCharHdl, weld::ComboBox&, void);
375 DECL_LINK(RemoveInsertAuthHdl, weld::Button&, void);
376 DECL_LINK(SortKeyHdl, weld::Toggleable&, void);
377 DECL_LINK(ChapterInfoHdl, weld::ComboBox&, void);
378 DECL_LINK(ChapterInfoOutlineHdl, weld::SpinButton&, void);
379 DECL_LINK(NumberFormatHdl, weld::ComboBox&, void);
380 DECL_LINK(ToggleHdl, weld::Toggleable&, void);
381
382 DECL_LINK(AllLevelsHdl, weld::Button&, void);
383
384 void WriteBackLevel();
385 void UpdateDescriptor();
386 DECL_LINK(ModifyHdl, LinkParamNone*, void);
387 void OnModify(bool bAllLevels);
388 DECL_LINK(ModifyClickHdl, weld::Toggleable&, void);
389
390 void ShowHideControls(int eType);
391
392public:
393 SwTOXEntryTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
394 virtual ~SwTOXEntryTabPage() 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 std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
402 const SfxItemSet* rAttrSet);
403 void SetWrtShell(SwWrtShell& rSh);
404
405 void PreTokenButtonRemoved(const SwFormToken& rToken);
406 void SetFocus2theAllBtn();
407};
408
409class SwTOXStylesTabPage final : public SfxTabPage
410{
411 std::unique_ptr<SwForm> m_pCurrentForm;
412
413 std::unique_ptr<weld::TreeView> m_xLevelLB;
414 std::unique_ptr<weld::Button> m_xAssignBT;
415 std::unique_ptr<weld::TreeView> m_xParaLayLB;
416 std::unique_ptr<weld::Button> m_xStdBT;
417 std::unique_ptr<weld::Button> m_xEditStyleBT;
418
419 DECL_LINK(EditStyleHdl, weld::Button&, void);
420 DECL_LINK(StdHdl, weld::Button&, void);
421 DECL_LINK(EnableSelectHdl, weld::TreeView&, void);
422 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
423 DECL_LINK(AssignHdl, weld::Button&, void);
424 void Modify();
425
427 {
429 return *pDlg->GetForm(pDlg->GetCurrentTOXType());
430 }
431
432public:
433 SwTOXStylesTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
434 virtual ~SwTOXStylesTabPage() override;
435
436 virtual bool FillItemSet( SfxItemSet* ) override;
437 virtual void Reset( const SfxItemSet* ) override;
438
439 virtual void ActivatePage( const SfxItemSet& ) override;
440 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
441
442 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
443 const SfxItemSet* rAttrSet);
444
445};
446
447#endif // INCLUDED_SW_SOURCE_UIBASE_INC_SWUICNTTAB_HXX
448
449/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SfxOkDialogController * GetDialogController() const
Definition: tox.hxx:314
const CurTOXType & GetCurrentTOXType() const
Definition: swuicnttab.hxx:101
std::vector< TypeData > m_vTypeData
Definition: swuicnttab.hxx:66
void CreateOrUpdateExample(TOXTypes nTOXIndex, sal_uInt16 nPage=0, sal_uInt16 nCurLevel=USHRT_MAX)
Definition: cntex.cxx:127
static bool IsNoNum(SwWrtShell &rSh, const OUString &rName)
Definition: cnttab.cxx:467
sal_uInt16 m_nInitialTOXType
Definition: swuicnttab.hxx:73
std::unique_ptr< SwTOXDescription > CreateTOXDescFromTOXBase(const SwTOXBase *pCurTOX)
Definition: cnttab.cxx:392
virtual short Ok() override
Definition: cnttab.cxx:319
std::unique_ptr< SwTOXMgr > m_pMgr
Definition: swuicnttab.hxx:57
DECL_LINK(ShowPreviewHdl, weld::Toggleable &, void)
void SetCurrentTOXType(const CurTOXType &eSet)
Definition: swuicnttab.hxx:102
std::unique_ptr< SwOneExampleFrame > m_xExampleFrame
Definition: swuicnttab.hxx:79
virtual ~SwMultiTOXTabDialog() override
Definition: cnttab.cxx:290
OUString m_sUserDefinedIndex
Definition: swuicnttab.hxx:72
SwWrtShell & m_rWrtShell
Definition: swuicnttab.hxx:58
std::unique_ptr< weld::CheckButton > m_xShowExampleCB
Definition: swuicnttab.hxx:80
SwTOXBase * m_pParamTOXBase
Definition: swuicnttab.hxx:68
bool IsTOXEditMode() const
Definition: swuicnttab.hxx:107
std::unique_ptr< weld::CustomWeld > m_xExampleFrameWin
Definition: swuicnttab.hxx:81
DECL_LINK(CreateExample_Hdl, SwOneExampleFrame &, void)
SwWrtShell & GetWrtShell()
Definition: swuicnttab.hxx:109
virtual void PageCreated(const OUString &rId, SfxTabPage &rPage) override
Definition: cnttab.cxx:295
SwTOXDescription & GetTOXDescription(CurTOXType eTOXTypes)
Definition: cnttab.cxx:353
CurTOXType m_eCurrentTOXType
Definition: swuicnttab.hxx:70
SwForm * GetForm(CurTOXType eType)
Definition: cnttab.cxx:345
SwMultiTOXTabDialog(weld::Widget *pParent, const SfxItemSet &rSet, SwWrtShell &rShell, SwTOXBase *pCurTOX, sal_uInt16 nToxType, bool bGlobal)
Definition: cnttab.cxx:206
void ShowHideControls(int eType)
Definition: cnttab.cxx:2141
DECL_LINK(NumberFormatHdl, weld::ComboBox &, void)
void WriteBackLevel()
Definition: cnttab.cxx:2415
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:2174
DECL_LINK(ToggleHdl, weld::Toggleable &, void)
std::unique_ptr< weld::ComboBox > m_xFillCharCB
Definition: swuicnttab.hxx:342
std::unique_ptr< weld::ToggleButton > m_xFirstSortDownRB
Definition: swuicnttab.hxx:358
std::unique_ptr< weld::ComboBox > m_xFirstKeyLB
Definition: swuicnttab.hxx:356
std::unique_ptr< weld::Button > m_xTabPB
Definition: swuicnttab.hxx:325
std::unique_ptr< weld::ToggleButton > m_xSecondSortDownRB
Definition: swuicnttab.hxx:361
std::unique_ptr< SwTokenWindow > m_xTokenWIN
Definition: swuicnttab.hxx:365
std::unique_ptr< weld::Button > m_xPageNoPB
Definition: swuicnttab.hxx:327
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:2118
std::unique_ptr< weld::CheckButton > m_xAlphaDelimCB
Definition: swuicnttab.hxx:349
DECL_LINK(ChapterInfoHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xThirdKeyLB
Definition: swuicnttab.hxx:362
DECL_LINK(LevelHdl, weld::TreeView &, void)
DECL_LINK(FillCharHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xNumberFormatLB
format for numbering (E#)
Definition: swuicnttab.hxx:338
std::unique_ptr< weld::Label > m_xLevelFT
Definition: swuicnttab.hxx:320
DECL_LINK(ModifyClickHdl, weld::Toggleable &, void)
DECL_LINK(StyleSelectHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xSecondKeyLB
Definition: swuicnttab.hxx:359
std::unique_ptr< weld::Button > m_xEntryNoPB
Definition: swuicnttab.hxx:323
std::unique_ptr< weld::ComboBox > m_xAuthFieldsLB
Definition: swuicnttab.hxx:330
std::unique_ptr< weld::Button > m_xChapterInfoPB
Definition: swuicnttab.hxx:326
std::unique_ptr< weld::Label > m_xEntryOutlineLevelFT
Fixed text, for i53420.
Definition: swuicnttab.hxx:339
std::unique_ptr< weld::Label > m_xNumberFormatFT
Definition: swuicnttab.hxx:337
CurTOXType m_aLastTOXType
Definition: swuicnttab.hxx:316
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:2289
DECL_LINK(AutoRightHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xCommaSeparatedCB
Definition: swuicnttab.hxx:350
std::unique_ptr< weld::Label > m_xChapterEntryFT
Definition: swuicnttab.hxx:335
std::unique_ptr< weld::Label > m_xTabPosFT
Definition: swuicnttab.hxx:343
OUString m_sLevelStr
Definition: swuicnttab.hxx:310
OUString m_sNoCharStyle
Definition: swuicnttab.hxx:313
void SetFocus2theAllBtn()
Definition: cnttab.cxx:2348
std::unique_ptr< weld::ToggleButton > m_xThirdSortDownRB
Definition: swuicnttab.hxx:364
DECL_LINK(EditStyleHdl, weld::Button &, void)
DECL_LINK(InsertTokenHdl, weld::Button &, void)
void SetWrtShell(SwWrtShell &rSh)
Definition: cnttab.cxx:2693
std::unique_ptr< weld::SpinButton > m_xEntryOutlineLevelNF
level to evaluate outline level to, for i53420
Definition: swuicnttab.hxx:340
DECL_LINK(ChapterInfoOutlineHdl, weld::SpinButton &, void)
std::unique_ptr< weld::TreeView > m_xLevelLB
Definition: swuicnttab.hxx:321
DECL_LINK(RemoveInsertAuthHdl, weld::Button &, void)
std::unique_ptr< weld::ComboBox > m_xCharStyleLB
Definition: swuicnttab.hxx:333
std::unique_ptr< weld::ToggleButton > m_xSecondSortUpRB
Definition: swuicnttab.hxx:360
void PreTokenButtonRemoved(const SwFormToken &rToken)
Definition: cnttab.cxx:2341
void UpdateDescriptor()
Definition: cnttab.cxx:2255
std::unique_ptr< weld::Widget > m_xSortingFrame
Definition: swuicnttab.hxx:352
DECL_LINK(TokenSelectedHdl, SwFormToken &, void)
std::unique_ptr< weld::CheckButton > m_xAutoRightCB
Definition: swuicnttab.hxx:345
std::unique_ptr< weld::Button > m_xEntryPB
Definition: swuicnttab.hxx:324
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:2112
DECL_LINK(SortKeyHdl, weld::Toggleable &, void)
DECL_LINK(AllLevelsHdl, weld::Button &, void)
std::unique_ptr< weld::RadioButton > m_xSortContentRB
Definition: swuicnttab.hxx:354
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:2295
SwForm * m_pCurrentForm
Definition: swuicnttab.hxx:314
std::unique_ptr< weld::Widget > m_xSortKeyFrame
Definition: swuicnttab.hxx:355
std::unique_ptr< weld::Button > m_xAllLevelsPB
Definition: swuicnttab.hxx:322
std::unique_ptr< weld::ToggleButton > m_xFirstSortUpRB
Definition: swuicnttab.hxx:357
std::unique_ptr< weld::Button > m_xEditStylePB
Definition: swuicnttab.hxx:334
DECL_LINK(ModifyHdl, LinkParamNone *, void)
void OnModify(bool bAllLevels)
Definition: cnttab.cxx:2097
std::unique_ptr< weld::Label > m_xMainEntryStyleFT
Definition: swuicnttab.hxx:347
SwTOXEntryTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rAttrSet)
Definition: cnttab.cxx:1907
std::unique_ptr< weld::ComboBox > m_xMainEntryStyleLB
Definition: swuicnttab.hxx:348
std::unique_ptr< weld::RadioButton > m_xSortDocPosRB
Definition: swuicnttab.hxx:353
std::unique_ptr< weld::Label > m_xTypeFT
Definition: swuicnttab.hxx:319
std::unique_ptr< weld::Button > m_xHyperLinkPB
Definition: swuicnttab.hxx:328
std::unique_ptr< weld::Widget > m_xFormatFrame
Definition: swuicnttab.hxx:346
std::unique_ptr< weld::MetricSpinButton > m_xTabPosMF
Definition: swuicnttab.hxx:344
virtual ~SwTOXEntryTabPage() override
Definition: cnttab.cxx:2065
std::unique_ptr< weld::Label > m_xFillCharFT
Definition: swuicnttab.hxx:341
std::unique_ptr< weld::ToggleButton > m_xThirdSortUpRB
Definition: swuicnttab.hxx:363
OUString m_sAuthTypeStr
Definition: swuicnttab.hxx:311
std::unique_ptr< weld::Widget > m_xFieldBox
Definition: swuicnttab.hxx:329
std::unique_ptr< weld::Button > m_xAuthInsertPB
Definition: swuicnttab.hxx:331
std::unique_ptr< weld::Button > m_xAuthRemovePB
Definition: swuicnttab.hxx:332
OUString m_sDelimStr
Definition: swuicnttab.hxx:309
DECL_LINK(TabPosHdl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::ComboBox > m_xChapterEntryLB
Definition: swuicnttab.hxx:336
std::unique_ptr< weld::CheckButton > m_xRelToStyleCB
Definition: swuicnttab.hxx:351
std::unique_ptr< weld::CheckButton > m_xFromHeadingsCB
Definition: swuicnttab.hxx:144
DECL_LINK(ModifyEntryHdl, weld::Entry &, void)
void LanguageHdl(const weld::ComboBox *)
Definition: cnttab.cxx:1436
std::unique_ptr< weld::RadioButton > m_xFromCaptionsRB
Definition: swuicnttab.hxx:156
std::unique_ptr< weld::ComboBox > m_xCaptionSequenceLB
Definition: swuicnttab.hxx:161
std::unique_ptr< weld::CheckButton > m_xCaseSensitiveCB
Definition: swuicnttab.hxx:175
std::unique_ptr< weld::ComboBox > m_xDisplayTypeLB
Definition: swuicnttab.hxx:163
std::unique_ptr< weld::Widget > m_xFromObjFrame
Definition: swuicnttab.hxx:183
OUString m_aStyleArr[MAXLEVEL]
Definition: swuicnttab.hxx:122
bool m_bWaitingInitialSettings
Definition: swuicnttab.hxx:130
OUString m_sAutoMarkURL
Definition: swuicnttab.hxx:123
std::unique_ptr< weld::RadioButton > m_xFromObjectNamesRB
Definition: swuicnttab.hxx:157
std::unique_ptr< weld::CheckButton > m_xInitialCapsCB
Definition: swuicnttab.hxx:176
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:1281
std::unique_ptr< weld::Button > m_xAddStylesPB
Definition: swuicnttab.hxx:147
std::unique_ptr< weld::CheckButton > m_xFromTablesCB
Definition: swuicnttab.hxx:149
std::unique_ptr< weld::CheckButton > m_xParaStyleCB
Definition: swuicnttab.hxx:164
std::unique_ptr< const IndexEntrySupplierWrapper > m_pIndexEntryWrapper
Definition: swuicnttab.hxx:128
std::unique_ptr< weld::Widget > m_xIdxOptionsFrame
Definition: swuicnttab.hxx:171
std::unique_ptr< SvxLanguageBox > m_xLanguageLB
Definition: swuicnttab.hxx:191
OUString m_sAddStyleContent
Definition: swuicnttab.hxx:126
std::unique_ptr< weld::Label > m_xCaptionSequenceFT
Definition: swuicnttab.hxx:160
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:1289
DECL_LINK(ModifySpinHdl, weld::SpinButton &, void)
std::unique_ptr< weld::CheckButton > m_xFromFileCB
Definition: swuicnttab.hxx:178
std::unique_ptr< weld::Entry > m_xTitleED
Definition: swuicnttab.hxx:132
std::unique_ptr< weld::Label > m_xDisplayTypeFT
Definition: swuicnttab.hxx:162
std::unique_ptr< weld::Widget > m_xAreaFrame
Definition: swuicnttab.hxx:137
DECL_LINK(MenuExecuteHdl, const OUString &, void)
std::unique_ptr< weld::Label > m_xTypeFT
Definition: swuicnttab.hxx:133
DECL_LINK(RadioButtonHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xAddStylesCB
Definition: swuicnttab.hxx:146
DECL_LINK(TOXTypeHdl, weld::ComboBox &, void)
virtual ~SwTOXSelectTabPage() override
Definition: cnttab.cxx:867
std::unique_ptr< weld::ComboBox > m_xSortAlgorithmLB
Definition: swuicnttab.hxx:192
std::unique_ptr< weld::CheckButton > m_xFromFramesCB
Definition: swuicnttab.hxx:150
std::unique_ptr< weld::CheckButton > m_xUseDashCB
Definition: swuicnttab.hxx:174
std::unique_ptr< weld::CheckButton > m_xSequenceCB
Definition: swuicnttab.hxx:185
std::unique_ptr< weld::ComboBox > m_xBracketLB
Definition: swuicnttab.hxx:186
std::unique_ptr< IndexEntryResource > m_pIndexRes
Definition: swuicnttab.hxx:120
std::unique_ptr< weld::CheckButton > m_xTOXMarksCB
Definition: swuicnttab.hxx:168
std::unique_ptr< weld::CheckButton > m_xFromOLECB
Definition: swuicnttab.hxx:152
DECL_LINK(MenuEnableHdl, weld::Toggleable &, void)
OUString m_sAddStyleUser
Definition: swuicnttab.hxx:125
void ApplyTOXDescription()
Definition: cnttab.cxx:955
std::unique_ptr< weld::CheckButton > m_xCollectSameCB
Definition: swuicnttab.hxx:172
void FillTOXDescription()
Definition: cnttab.cxx:1107
OUString m_sAutoMarkType
Definition: swuicnttab.hxx:124
DECL_LINK(CheckBoxHdl, weld::Toggleable &, void)
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:1237
std::unique_ptr< weld::CheckButton > m_xLevelFromChapterCB
Definition: swuicnttab.hxx:153
SwTOXSelectTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rAttrSet)
Definition: cnttab.cxx:756
std::unique_ptr< weld::CheckButton > m_xKeyAsEntryCB
Definition: swuicnttab.hxx:177
std::unique_ptr< weld::CheckButton > m_xStylesCB
Definition: swuicnttab.hxx:145
std::unique_ptr< weld::TreeView > m_xFromObjCLB
Definition: swuicnttab.hxx:182
void SetWrtShell(SwWrtShell const &rSh)
Definition: cnttab.cxx:874
std::unique_ptr< weld::ComboBox > m_xTypeLB
Definition: swuicnttab.hxx:134
std::unique_ptr< weld::ComboBox > m_xAreaLB
Definition: swuicnttab.hxx:138
std::unique_ptr< weld::Widget > m_xAuthorityFrame
Definition: swuicnttab.hxx:187
DECL_LINK(LanguageListBoxHdl, weld::ComboBox &, void)
std::unique_ptr< weld::MenuButton > m_xAutoMarkPB
Definition: swuicnttab.hxx:179
std::unique_ptr< weld::CheckButton > m_xReadOnlyCB
Definition: swuicnttab.hxx:135
void SelectType(TOXTypes eSet)
Definition: cnttab.cxx:920
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:1276
std::unique_ptr< weld::ComboBox > m_xParaStyleLB
Definition: swuicnttab.hxx:165
std::unique_ptr< weld::SpinButton > m_xLevelNF
Definition: swuicnttab.hxx:140
std::unique_ptr< weld::Widget > m_xSortFrame
Definition: swuicnttab.hxx:190
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:892
std::unique_ptr< weld::Widget > m_xLevelFT
Definition: swuicnttab.hxx:139
std::unique_ptr< weld::CheckButton > m_xFromGraphicsCB
Definition: swuicnttab.hxx:151
std::unique_ptr< weld::Widget > m_xCreateFrame
Definition: swuicnttab.hxx:143
std::unique_ptr< weld::CheckButton > m_xUseFFCB
Definition: swuicnttab.hxx:173
DECL_LINK(ModifyListBoxHdl, weld::ComboBox &, void)
DECL_LINK(AddStylesHdl, weld::Button &, void)
SwTOXStylesTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rAttrSet)
Definition: cnttab.cxx:3523
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:3628
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
SwForm & GetForm()
Definition: swuicnttab.hxx:426
std::unique_ptr< weld::Button > m_xAssignBT
Definition: swuicnttab.hxx:414
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:3555
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:3634
std::unique_ptr< SwForm > m_pCurrentForm
Definition: swuicnttab.hxx:411
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:3550
std::unique_ptr< weld::Button > m_xEditStyleBT
Definition: swuicnttab.hxx:417
virtual ~SwTOXStylesTabPage() override
Definition: cnttab.cxx:3546
DECL_LINK(EnableSelectHdl, weld::TreeView &, void)
DECL_LINK(AssignHdl, weld::Button &, void)
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:3560
std::unique_ptr< weld::TreeView > m_xLevelLB
Definition: swuicnttab.hxx:413
std::unique_ptr< weld::Button > m_xStdBT
Definition: swuicnttab.hxx:416
DECL_LINK(StdHdl, weld::Button &, void)
DECL_LINK(EditStyleHdl, weld::Button &, void)
std::unique_ptr< weld::TreeView > m_xParaLayLB
Definition: swuicnttab.hxx:415
std::unique_ptr< weld::Container > m_xCtrlParentWin
Definition: swuicnttab.hxx:250
OUString m_sAdditionalAccnameString3
Definition: swuicnttab.hxx:241
std::unique_ptr< weld::ScrolledWindow > m_xScrollWin
Definition: swuicnttab.hxx:251
std::vector< std::unique_ptr< SwTOXWidget > > m_aControlList
Definition: swuicnttab.hxx:253
DECL_LINK(NextItemHdl, SwTOXEdit &, void)
void RemoveControl(const SwTOXButton *pDel, bool bInternalCall=false)
Definition: cnttab.cxx:3139
Link< SwFormToken &, void > m_aButtonSelectedHdl
Definition: swuicnttab.hxx:235
sal_uInt16 m_nLevel
Definition: swuicnttab.hxx:230
void AdjustPositions()
Definition: cnttab.cxx:3186
OUString m_sAdditionalAccnameString1
Definition: swuicnttab.hxx:239
weld::Container * get_child_container()
Definition: swuicnttab.hxx:273
void SetButtonSelectedHdl(const Link< SwFormToken &, void > &rLink)
Definition: swuicnttab.hxx:287
void AdjustScrolling()
Definition: cnttab.cxx:3203
void SetForm(SwForm &rForm, sal_uInt16 nLevel)
Definition: cnttab.cxx:2781
DECL_LINK(EditResize, SwTOXEdit &, void)
void SetModifyHdl(const Link< LinkParamNone *, void > &rLink)
Definition: swuicnttab.hxx:290
DECL_LINK(TbxFocusBtnHdl, SwTOXWidget &, void)
OUString GetPattern() const
Definition: cnttab.cxx:3320
SwTOXWidget * GetActiveControl()
Definition: swuicnttab.hxx:292
OUString m_aButtonHelpTexts[TOKEN_END]
Definition: swuicnttab.hxx:233
sal_uInt32 GetControlIndex(FormTokenType eType) const
Definition: cnttab.cxx:3496
OUString m_sAccessibleName
Definition: swuicnttab.hxx:238
void SetFocus2theAllBtn()
Definition: cnttab.cxx:3488
SwTokenWindow(std::unique_ptr< weld::Container > xParent)
Definition: cnttab.cxx:2738
SwTOXWidget * InsertItem(const OUString &rText, const SwFormToken &aToken)
Definition: cnttab.cxx:2874
std::unique_ptr< weld::Container > m_xContainer
Definition: swuicnttab.hxx:248
void SetTabPage(SwTOXEntryTabPage *pParent)
Definition: swuicnttab.hxx:276
OUString CreateQuickHelp(const SwFormToken &rToken)
Definition: cnttab.cxx:3361
bool IsValid() const
Definition: swuicnttab.hxx:281
std::unique_ptr< weld::Button > m_xLeftScrollWin
Definition: swuicnttab.hxx:249
void SetActiveControl(SwTOXWidget *pSet)
Definition: cnttab.cxx:2853
void InsertAtSelection(const SwFormToken &aToken)
Definition: cnttab.cxx:2940
SwForm * m_pForm
Definition: swuicnttab.hxx:229
std::unique_ptr< weld::Builder > m_xBuilder
Definition: swuicnttab.hxx:247
void SetInvalid()
Definition: swuicnttab.hxx:283
bool Contains(FormTokenType) const
Definition: cnttab.cxx:3340
void MoveControls(tools::Long nOffset)
Definition: cnttab.cxx:3193
SwTOXEntryTabPage * m_pParent
Definition: swuicnttab.hxx:245
OUString m_aButtonTexts[TOKEN_END]
Definition: swuicnttab.hxx:232
Idle m_aAdjustPositionsIdle
Definition: swuicnttab.hxx:243
OUString m_sAdditionalAccnameString2
Definition: swuicnttab.hxx:240
std::unique_ptr< weld::Container > m_xParentWidget
Definition: swuicnttab.hxx:246
Link< LinkParamNone *, void > m_aModifyHdl
Definition: swuicnttab.hxx:237
DECL_LINK(AdjustPositionsHdl, const Size &, void)
DECL_LINK(TbxFocusHdl, SwTOXWidget &, void)
std::unique_ptr< weld::Button > m_xRightScrollWin
Definition: swuicnttab.hxx:252
SwTOXWidget * m_pActiveCtrl
Definition: swuicnttab.hxx:236
DECL_LINK(NextItemBtnHdl, SwTOXButton &, void)
OUString m_sCharStyle
Definition: swuicnttab.hxx:234
DECL_LINK(ScrollBtnHdl, weld::Button &, void)
sal_uInt16 GetLastLevel() const
Definition: swuicnttab.hxx:279
DECL_LINK(ScrollHdl, weld::ScrolledWindow &, void)
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97
def text(shape, orig_st)
long Long
css::uno::Reference< css::text::XDocumentIndex > xDocumentIndex
Definition: swuicnttab.hxx:52
css::uno::Reference< css::text::XTextSection > xContainerSection
Definition: swuicnttab.hxx:51
std::unique_ptr< SwForm > m_pForm
Definition: swuicnttab.hxx:62
std::unique_ptr< SwTOXDescription > m_pDescription
Definition: swuicnttab.hxx:63
std::optional< SwIndexSections_Impl > m_oIndexSections
Definition: swuicnttab.hxx:64
constexpr sal_uInt8 MAXLEVEL
Definition: swtypes.hxx:92
DeactivateRC
FormTokenType
Definition: tox.hxx:229
@ TOKEN_END
Definition: tox.hxx:240
TOXTypes
Definition: toxe.hxx:40