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::unique_ptr<SwIndexSections_Impl> m_pxIndexSections;
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 OString& 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
165 //all but illustration and table
166 std::unique_ptr<weld::CheckButton> m_xTOXMarksCB;
167
168 //index only
169 std::unique_ptr<weld::Widget> m_xIdxOptionsFrame;
170 std::unique_ptr<weld::CheckButton> m_xCollectSameCB;
171 std::unique_ptr<weld::CheckButton> m_xUseFFCB;
172 std::unique_ptr<weld::CheckButton> m_xUseDashCB;
173 std::unique_ptr<weld::CheckButton> m_xCaseSensitiveCB;
174 std::unique_ptr<weld::CheckButton> m_xInitialCapsCB;
175 std::unique_ptr<weld::CheckButton> m_xKeyAsEntryCB;
176 std::unique_ptr<weld::CheckButton> m_xFromFileCB;
177 std::unique_ptr<weld::MenuButton> m_xAutoMarkPB;
178
179 // object only
180 std::unique_ptr<weld::TreeView> m_xFromObjCLB;
181 std::unique_ptr<weld::Widget> m_xFromObjFrame;
182
183 std::unique_ptr<weld::CheckButton> m_xSequenceCB;
184 std::unique_ptr<weld::ComboBox> m_xBracketLB;
185 std::unique_ptr<weld::Widget> m_xAuthorityFrame;
186
187 //all
188 std::unique_ptr<weld::Widget> m_xSortFrame;
189 std::unique_ptr<SvxLanguageBox> m_xLanguageLB;
190 std::unique_ptr<weld::ComboBox> m_xSortAlgorithmLB;
191
192 DECL_LINK(TOXTypeHdl, weld::ComboBox&, void );
193 DECL_LINK(AddStylesHdl, weld::Button&, void );
194 DECL_LINK(MenuEnableHdl, weld::Toggleable&, void);
195 DECL_LINK(MenuExecuteHdl, const OString&, void);
196 DECL_LINK(LanguageListBoxHdl, weld::ComboBox&, void);
197 void LanguageHdl(const weld::ComboBox*);
198 DECL_LINK(CheckBoxHdl, weld::Toggleable&, void );
199 DECL_LINK(RadioButtonHdl, weld::Toggleable&, void);
200 DECL_LINK(ModifyEntryHdl, weld::Entry&, void);
201 DECL_LINK(ModifySpinHdl, weld::SpinButton&, void);
202 DECL_LINK(ModifyListBoxHdl, weld::ComboBox&, void);
203
204 void ModifyHdl();
205 void ApplyTOXDescription();
206 void FillTOXDescription();
207
208public:
209 SwTOXSelectTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
210 virtual ~SwTOXSelectTabPage() override;
211
212 virtual bool FillItemSet( SfxItemSet* ) override;
213 virtual void Reset( const SfxItemSet* ) override;
214
215 virtual void ActivatePage( const SfxItemSet& ) override;
216 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
217
218 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
219 const SfxItemSet* rAttrSet);
220
221 void SelectType(TOXTypes eSet); //preset TOXType, GlobalDoc
222 void SetWrtShell(SwWrtShell const & rSh);
223};
224
226{
228 sal_uInt16 m_nLevel;
230 OUString m_aButtonTexts[TOKEN_END]; // Text of the buttons
231 OUString m_aButtonHelpTexts[TOKEN_END]; // QuickHelpText of the buttons
232 OUString m_sCharStyle;
240
242
244 std::unique_ptr<weld::Container> m_xParentWidget;
245 std::unique_ptr<weld::Builder> m_xBuilder;
246 std::unique_ptr<weld::Container> m_xContainer;
247 std::unique_ptr<weld::Button> m_xLeftScrollWin;
248 std::unique_ptr<weld::Container> m_xCtrlParentWin;
249 std::unique_ptr<weld::ScrolledWindow> m_xScrollWin;
250 std::unique_ptr<weld::Button> m_xRightScrollWin;
251 std::vector<std::unique_ptr<SwTOXWidget>> m_aControlList;
252
253 DECL_LINK(EditResize, SwTOXEdit&, void);
254 DECL_LINK(NextItemHdl, SwTOXEdit&, void);
255 DECL_LINK(TbxFocusHdl, SwTOXWidget&, void);
256 DECL_LINK(NextItemBtnHdl, SwTOXButton&, void);
257 DECL_LINK(TbxFocusBtnHdl, SwTOXWidget&, void);
258 DECL_LINK(ScrollBtnHdl, weld::Button&, void);
259 DECL_LINK(ScrollHdl, weld::ScrolledWindow&, void);
260 DECL_LINK(AdjustPositionsHdl, const Size&, void);
261
262 void SetActiveControl(SwTOXWidget* pSet);
263
264 SwTOXWidget* InsertItem(const OUString& rText, const SwFormToken& aToken);
265 void AdjustPositions();
266 void AdjustScrolling();
267 void MoveControls(tools::Long nOffset);
268
269public:
270 SwTokenWindow(std::unique_ptr<weld::Container> xParent);
273
274 void SetTabPage(SwTOXEntryTabPage *pParent) { m_pParent = pParent; }
275
276 void SetForm(SwForm& rForm, sal_uInt16 nLevel);
277 sal_uInt16 GetLastLevel()const {return m_nLevel;};
278
279 bool IsValid() const {return m_bValid;}
280
281 void SetInvalid() {m_bValid = false;}
282
283 OUString GetPattern() const;
284
286 { m_aButtonSelectedHdl = rLink;}
287
289
291
292 void InsertAtSelection(const SwFormToken& aToken);
293 void RemoveControl(const SwTOXButton* pDel, bool bInternalCall = false);
294
295 bool Contains(FormTokenType) const;
296
297 //helper for pattern buttons and edits
298 OUString CreateQuickHelp(const SwFormToken& rToken);
299
300 void SetFocus2theAllBtn();
301private:
302 sal_uInt32 GetControlIndex(FormTokenType eType) const;
303};
304
305class SwTOXEntryTabPage final : public SfxTabPage
306{
307 OUString m_sDelimStr;
308 OUString m_sLevelStr;
310
313
316
317 std::unique_ptr<weld::Label> m_xTypeFT;
318 std::unique_ptr<weld::Label> m_xLevelFT;
319 std::unique_ptr<weld::TreeView> m_xLevelLB;
320 std::unique_ptr<weld::Button> m_xAllLevelsPB;
321 std::unique_ptr<weld::Button> m_xEntryNoPB;
322 std::unique_ptr<weld::Button> m_xEntryPB;
323 std::unique_ptr<weld::Button> m_xTabPB;
324 std::unique_ptr<weld::Button> m_xChapterInfoPB;
325 std::unique_ptr<weld::Button> m_xPageNoPB;
326 std::unique_ptr<weld::Button> m_xHyperLinkPB;
327 std::unique_ptr<weld::Widget> m_xFieldBox;
328 std::unique_ptr<weld::ComboBox> m_xAuthFieldsLB;
329 std::unique_ptr<weld::Button> m_xAuthInsertPB;
330 std::unique_ptr<weld::Button> m_xAuthRemovePB;
331 std::unique_ptr<weld::ComboBox> m_xCharStyleLB; // character style of the current token
332 std::unique_ptr<weld::Button> m_xEditStylePB;
333 std::unique_ptr<weld::Label> m_xChapterEntryFT;
334 std::unique_ptr<weld::ComboBox> m_xChapterEntryLB; // type of chapter info
335 std::unique_ptr<weld::Label> m_xNumberFormatFT;
336 std::unique_ptr<weld::ComboBox> m_xNumberFormatLB;
337 std::unique_ptr<weld::Label> m_xEntryOutlineLevelFT;
338 std::unique_ptr<weld::SpinButton> m_xEntryOutlineLevelNF;
339 std::unique_ptr<weld::Label> m_xFillCharFT;
340 std::unique_ptr<weld::ComboBox> m_xFillCharCB; // fill char for tab stop
341 std::unique_ptr<weld::Label> m_xTabPosFT;
342 std::unique_ptr<weld::MetricSpinButton> m_xTabPosMF; // tab stop position
343 std::unique_ptr<weld::CheckButton> m_xAutoRightCB;
344 std::unique_ptr<weld::Widget> m_xFormatFrame;
345 std::unique_ptr<weld::Label> m_xMainEntryStyleFT;
346 std::unique_ptr<weld::ComboBox> m_xMainEntryStyleLB; // character style of main entries in indexes
347 std::unique_ptr<weld::CheckButton> m_xAlphaDelimCB;
348 std::unique_ptr<weld::CheckButton> m_xCommaSeparatedCB;
349 std::unique_ptr<weld::CheckButton> m_xRelToStyleCB; // position relative to the right margin of the para style
350 std::unique_ptr<weld::Widget> m_xSortingFrame;
351 std::unique_ptr<weld::RadioButton> m_xSortDocPosRB;
352 std::unique_ptr<weld::RadioButton> m_xSortContentRB;
353 std::unique_ptr<weld::Widget> m_xSortKeyFrame;
354 std::unique_ptr<weld::ComboBox> m_xFirstKeyLB;
355 std::unique_ptr<weld::ToggleButton> m_xFirstSortUpRB;
356 std::unique_ptr<weld::ToggleButton> m_xFirstSortDownRB;
357 std::unique_ptr<weld::ComboBox> m_xSecondKeyLB;
358 std::unique_ptr<weld::ToggleButton> m_xSecondSortUpRB;
359 std::unique_ptr<weld::ToggleButton> m_xSecondSortDownRB;
360 std::unique_ptr<weld::ComboBox> m_xThirdKeyLB;
361 std::unique_ptr<weld::ToggleButton> m_xThirdSortUpRB;
362 std::unique_ptr<weld::ToggleButton> m_xThirdSortDownRB;
363 std::unique_ptr<SwTokenWindow> m_xTokenWIN;
364
365 DECL_LINK(StyleSelectHdl, weld::ComboBox&, void);
366 DECL_LINK(EditStyleHdl, weld::Button&, void);
367 DECL_LINK(InsertTokenHdl, weld::Button&, void);
368 DECL_LINK(LevelHdl, weld::TreeView&, void);
369 DECL_LINK(AutoRightHdl, weld::Toggleable&, void);
370 DECL_LINK(TokenSelectedHdl, SwFormToken&, void);
372 DECL_LINK(FillCharHdl, weld::ComboBox&, void);
373 DECL_LINK(RemoveInsertAuthHdl, weld::Button&, void);
374 DECL_LINK(SortKeyHdl, weld::Toggleable&, void);
375 DECL_LINK(ChapterInfoHdl, weld::ComboBox&, void);
376 DECL_LINK(ChapterInfoOutlineHdl, weld::SpinButton&, void);
377 DECL_LINK(NumberFormatHdl, weld::ComboBox&, void);
378 DECL_LINK(ToggleHdl, weld::Toggleable&, 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::Toggleable&, void);
387
388 void ShowHideControls(int eType);
389
390public:
391 SwTOXEntryTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
392 virtual ~SwTOXEntryTabPage() override;
393
394 virtual bool FillItemSet( SfxItemSet* ) override;
395 virtual void Reset( const SfxItemSet* ) override;
396 virtual void ActivatePage( const SfxItemSet& ) override;
397 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
398
399 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
400 const SfxItemSet* rAttrSet);
401 void SetWrtShell(SwWrtShell& rSh);
402
403 void PreTokenButtonRemoved(const SwFormToken& rToken);
404 void SetFocus2theAllBtn();
405};
406
407class SwTOXStylesTabPage final : public SfxTabPage
408{
409 std::unique_ptr<SwForm> m_pCurrentForm;
410
411 std::unique_ptr<weld::TreeView> m_xLevelLB;
412 std::unique_ptr<weld::Button> m_xAssignBT;
413 std::unique_ptr<weld::TreeView> m_xParaLayLB;
414 std::unique_ptr<weld::Button> m_xStdBT;
415 std::unique_ptr<weld::Button> m_xEditStyleBT;
416
417 DECL_LINK(EditStyleHdl, weld::Button&, void);
418 DECL_LINK(StdHdl, weld::Button&, void);
419 DECL_LINK(EnableSelectHdl, weld::TreeView&, void);
420 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
421 DECL_LINK(AssignHdl, weld::Button&, void);
422 void Modify();
423
425 {
427 return *pDlg->GetForm(pDlg->GetCurrentTOXType());
428 }
429
430public:
431 SwTOXStylesTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rAttrSet);
432 virtual ~SwTOXStylesTabPage() override;
433
434 virtual bool FillItemSet( SfxItemSet* ) override;
435 virtual void Reset( const SfxItemSet* ) override;
436
437 virtual void ActivatePage( const SfxItemSet& ) override;
438 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
439
440 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
441 const SfxItemSet* rAttrSet);
442
443};
444
445#endif // INCLUDED_SW_SOURCE_UIBASE_INC_SWUICNTTAB_HXX
446
447/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SfxOkDialogController * GetDialogController() const
const SfxItemSet * pSet
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
SwTOXDescription & GetTOXDescription(CurTOXType eTOXTypes)
Definition: cnttab.cxx:353
virtual void PageCreated(const OString &rId, SfxTabPage &rPage) override
Definition: cnttab.cxx:295
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:2071
DECL_LINK(NumberFormatHdl, weld::ComboBox &, void)
void WriteBackLevel()
Definition: cnttab.cxx:2345
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:2104
DECL_LINK(ToggleHdl, weld::Toggleable &, void)
std::unique_ptr< weld::ComboBox > m_xFillCharCB
Definition: swuicnttab.hxx:340
std::unique_ptr< weld::ToggleButton > m_xFirstSortDownRB
Definition: swuicnttab.hxx:356
std::unique_ptr< weld::ComboBox > m_xFirstKeyLB
Definition: swuicnttab.hxx:354
std::unique_ptr< weld::Button > m_xTabPB
Definition: swuicnttab.hxx:323
std::unique_ptr< weld::ToggleButton > m_xSecondSortDownRB
Definition: swuicnttab.hxx:359
std::unique_ptr< SwTokenWindow > m_xTokenWIN
Definition: swuicnttab.hxx:363
std::unique_ptr< weld::Button > m_xPageNoPB
Definition: swuicnttab.hxx:325
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:2048
std::unique_ptr< weld::CheckButton > m_xAlphaDelimCB
Definition: swuicnttab.hxx:347
DECL_LINK(ChapterInfoHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xThirdKeyLB
Definition: swuicnttab.hxx:360
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:336
std::unique_ptr< weld::Label > m_xLevelFT
Definition: swuicnttab.hxx:318
DECL_LINK(ModifyClickHdl, weld::Toggleable &, void)
DECL_LINK(StyleSelectHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xSecondKeyLB
Definition: swuicnttab.hxx:357
std::unique_ptr< weld::Button > m_xEntryNoPB
Definition: swuicnttab.hxx:321
std::unique_ptr< weld::ComboBox > m_xAuthFieldsLB
Definition: swuicnttab.hxx:328
std::unique_ptr< weld::Button > m_xChapterInfoPB
Definition: swuicnttab.hxx:324
std::unique_ptr< weld::Label > m_xEntryOutlineLevelFT
Fixed text, for i53420.
Definition: swuicnttab.hxx:337
std::unique_ptr< weld::Label > m_xNumberFormatFT
Definition: swuicnttab.hxx:335
CurTOXType m_aLastTOXType
Definition: swuicnttab.hxx:314
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:2219
DECL_LINK(AutoRightHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xCommaSeparatedCB
Definition: swuicnttab.hxx:348
std::unique_ptr< weld::Label > m_xChapterEntryFT
Definition: swuicnttab.hxx:333
std::unique_ptr< weld::Label > m_xTabPosFT
Definition: swuicnttab.hxx:341
OUString m_sLevelStr
Definition: swuicnttab.hxx:308
OUString m_sNoCharStyle
Definition: swuicnttab.hxx:311
void SetFocus2theAllBtn()
Definition: cnttab.cxx:2278
std::unique_ptr< weld::ToggleButton > m_xThirdSortDownRB
Definition: swuicnttab.hxx:362
DECL_LINK(EditStyleHdl, weld::Button &, void)
DECL_LINK(InsertTokenHdl, weld::Button &, void)
void SetWrtShell(SwWrtShell &rSh)
Definition: cnttab.cxx:2623
std::unique_ptr< weld::SpinButton > m_xEntryOutlineLevelNF
level to evaluate outline level to, for i53420
Definition: swuicnttab.hxx:338
DECL_LINK(ChapterInfoOutlineHdl, weld::SpinButton &, void)
std::unique_ptr< weld::TreeView > m_xLevelLB
Definition: swuicnttab.hxx:319
DECL_LINK(RemoveInsertAuthHdl, weld::Button &, void)
std::unique_ptr< weld::ComboBox > m_xCharStyleLB
Definition: swuicnttab.hxx:331
std::unique_ptr< weld::ToggleButton > m_xSecondSortUpRB
Definition: swuicnttab.hxx:358
void PreTokenButtonRemoved(const SwFormToken &rToken)
Definition: cnttab.cxx:2271
void UpdateDescriptor()
Definition: cnttab.cxx:2185
std::unique_ptr< weld::Widget > m_xSortingFrame
Definition: swuicnttab.hxx:350
DECL_LINK(TokenSelectedHdl, SwFormToken &, void)
std::unique_ptr< weld::CheckButton > m_xAutoRightCB
Definition: swuicnttab.hxx:343
std::unique_ptr< weld::Button > m_xEntryPB
Definition: swuicnttab.hxx:322
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:2042
DECL_LINK(SortKeyHdl, weld::Toggleable &, void)
DECL_LINK(AllLevelsHdl, weld::Button &, void)
std::unique_ptr< weld::RadioButton > m_xSortContentRB
Definition: swuicnttab.hxx:352
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:2225
SwForm * m_pCurrentForm
Definition: swuicnttab.hxx:312
std::unique_ptr< weld::Widget > m_xSortKeyFrame
Definition: swuicnttab.hxx:353
std::unique_ptr< weld::Button > m_xAllLevelsPB
Definition: swuicnttab.hxx:320
std::unique_ptr< weld::ToggleButton > m_xFirstSortUpRB
Definition: swuicnttab.hxx:355
std::unique_ptr< weld::Button > m_xEditStylePB
Definition: swuicnttab.hxx:332
DECL_LINK(ModifyHdl, LinkParamNone *, void)
void OnModify(bool bAllLevels)
Definition: cnttab.cxx:2027
std::unique_ptr< weld::Label > m_xMainEntryStyleFT
Definition: swuicnttab.hxx:345
SwTOXEntryTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rAttrSet)
Definition: cnttab.cxx:1837
std::unique_ptr< weld::ComboBox > m_xMainEntryStyleLB
Definition: swuicnttab.hxx:346
std::unique_ptr< weld::RadioButton > m_xSortDocPosRB
Definition: swuicnttab.hxx:351
std::unique_ptr< weld::Label > m_xTypeFT
Definition: swuicnttab.hxx:317
std::unique_ptr< weld::Button > m_xHyperLinkPB
Definition: swuicnttab.hxx:326
std::unique_ptr< weld::Widget > m_xFormatFrame
Definition: swuicnttab.hxx:344
std::unique_ptr< weld::MetricSpinButton > m_xTabPosMF
Definition: swuicnttab.hxx:342
virtual ~SwTOXEntryTabPage() override
Definition: cnttab.cxx:1995
std::unique_ptr< weld::Label > m_xFillCharFT
Definition: swuicnttab.hxx:339
std::unique_ptr< weld::ToggleButton > m_xThirdSortUpRB
Definition: swuicnttab.hxx:361
OUString m_sAuthTypeStr
Definition: swuicnttab.hxx:309
std::unique_ptr< weld::Widget > m_xFieldBox
Definition: swuicnttab.hxx:327
std::unique_ptr< weld::Button > m_xAuthInsertPB
Definition: swuicnttab.hxx:329
std::unique_ptr< weld::Button > m_xAuthRemovePB
Definition: swuicnttab.hxx:330
OUString m_sDelimStr
Definition: swuicnttab.hxx:307
DECL_LINK(TabPosHdl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::ComboBox > m_xChapterEntryLB
Definition: swuicnttab.hxx:334
std::unique_ptr< weld::CheckButton > m_xRelToStyleCB
Definition: swuicnttab.hxx:349
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:1368
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:173
std::unique_ptr< weld::ComboBox > m_xDisplayTypeLB
Definition: swuicnttab.hxx:163
std::unique_ptr< weld::Widget > m_xFromObjFrame
Definition: swuicnttab.hxx:181
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:174
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:1222
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< const IndexEntrySupplierWrapper > m_pIndexEntryWrapper
Definition: swuicnttab.hxx:128
std::unique_ptr< weld::Widget > m_xIdxOptionsFrame
Definition: swuicnttab.hxx:169
std::unique_ptr< SvxLanguageBox > m_xLanguageLB
Definition: swuicnttab.hxx:189
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:1230
DECL_LINK(ModifySpinHdl, weld::SpinButton &, void)
std::unique_ptr< weld::CheckButton > m_xFromFileCB
Definition: swuicnttab.hxx:176
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
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:863
std::unique_ptr< weld::ComboBox > m_xSortAlgorithmLB
Definition: swuicnttab.hxx:190
std::unique_ptr< weld::CheckButton > m_xFromFramesCB
Definition: swuicnttab.hxx:150
std::unique_ptr< weld::CheckButton > m_xUseDashCB
Definition: swuicnttab.hxx:172
std::unique_ptr< weld::CheckButton > m_xSequenceCB
Definition: swuicnttab.hxx:183
std::unique_ptr< weld::ComboBox > m_xBracketLB
Definition: swuicnttab.hxx:184
std::unique_ptr< IndexEntryResource > m_pIndexRes
Definition: swuicnttab.hxx:120
std::unique_ptr< weld::CheckButton > m_xTOXMarksCB
Definition: swuicnttab.hxx:166
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:951
std::unique_ptr< weld::CheckButton > m_xCollectSameCB
Definition: swuicnttab.hxx:170
void FillTOXDescription()
Definition: cnttab.cxx:1067
OUString m_sAutoMarkType
Definition: swuicnttab.hxx:124
DECL_LINK(CheckBoxHdl, weld::Toggleable &, void)
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:1178
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:175
std::unique_ptr< weld::CheckButton > m_xStylesCB
Definition: swuicnttab.hxx:145
std::unique_ptr< weld::TreeView > m_xFromObjCLB
Definition: swuicnttab.hxx:180
void SetWrtShell(SwWrtShell const &rSh)
Definition: cnttab.cxx:870
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:185
DECL_LINK(LanguageListBoxHdl, weld::ComboBox &, void)
std::unique_ptr< weld::MenuButton > m_xAutoMarkPB
Definition: swuicnttab.hxx:177
std::unique_ptr< weld::CheckButton > m_xReadOnlyCB
Definition: swuicnttab.hxx:135
void SelectType(TOXTypes eSet)
Definition: cnttab.cxx:916
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:1217
std::unique_ptr< weld::SpinButton > m_xLevelNF
Definition: swuicnttab.hxx:140
std::unique_ptr< weld::Widget > m_xSortFrame
Definition: swuicnttab.hxx:188
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:888
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
DECL_LINK(MenuExecuteHdl, const OString &, void)
std::unique_ptr< weld::CheckButton > m_xUseFFCB
Definition: swuicnttab.hxx:171
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:3453
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: cnttab.cxx:3558
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
SwForm & GetForm()
Definition: swuicnttab.hxx:424
std::unique_ptr< weld::Button > m_xAssignBT
Definition: swuicnttab.hxx:412
virtual void Reset(const SfxItemSet *) override
Definition: cnttab.cxx:3485
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: cnttab.cxx:3564
std::unique_ptr< SwForm > m_pCurrentForm
Definition: swuicnttab.hxx:409
virtual bool FillItemSet(SfxItemSet *) override
Definition: cnttab.cxx:3480
std::unique_ptr< weld::Button > m_xEditStyleBT
Definition: swuicnttab.hxx:415
virtual ~SwTOXStylesTabPage() override
Definition: cnttab.cxx:3476
DECL_LINK(EnableSelectHdl, weld::TreeView &, void)
DECL_LINK(AssignHdl, weld::Button &, void)
virtual void ActivatePage(const SfxItemSet &) override
Definition: cnttab.cxx:3490
std::unique_ptr< weld::TreeView > m_xLevelLB
Definition: swuicnttab.hxx:411
std::unique_ptr< weld::Button > m_xStdBT
Definition: swuicnttab.hxx:414
DECL_LINK(StdHdl, weld::Button &, void)
DECL_LINK(EditStyleHdl, weld::Button &, void)
std::unique_ptr< weld::TreeView > m_xParaLayLB
Definition: swuicnttab.hxx:413
std::unique_ptr< weld::Container > m_xCtrlParentWin
Definition: swuicnttab.hxx:248
OUString m_sAdditionalAccnameString3
Definition: swuicnttab.hxx:239
std::unique_ptr< weld::ScrolledWindow > m_xScrollWin
Definition: swuicnttab.hxx:249
std::vector< std::unique_ptr< SwTOXWidget > > m_aControlList
Definition: swuicnttab.hxx:251
DECL_LINK(NextItemHdl, SwTOXEdit &, void)
void RemoveControl(const SwTOXButton *pDel, bool bInternalCall=false)
Definition: cnttab.cxx:3069
Link< SwFormToken &, void > m_aButtonSelectedHdl
Definition: swuicnttab.hxx:233
sal_uInt16 m_nLevel
Definition: swuicnttab.hxx:228
void AdjustPositions()
Definition: cnttab.cxx:3116
OUString m_sAdditionalAccnameString1
Definition: swuicnttab.hxx:237
weld::Container * get_child_container()
Definition: swuicnttab.hxx:271
void SetButtonSelectedHdl(const Link< SwFormToken &, void > &rLink)
Definition: swuicnttab.hxx:285
void AdjustScrolling()
Definition: cnttab.cxx:3133
void SetForm(SwForm &rForm, sal_uInt16 nLevel)
Definition: cnttab.cxx:2711
DECL_LINK(EditResize, SwTOXEdit &, void)
void SetModifyHdl(const Link< LinkParamNone *, void > &rLink)
Definition: swuicnttab.hxx:288
DECL_LINK(TbxFocusBtnHdl, SwTOXWidget &, void)
OUString GetPattern() const
Definition: cnttab.cxx:3250
SwTOXWidget * GetActiveControl()
Definition: swuicnttab.hxx:290
OUString m_aButtonHelpTexts[TOKEN_END]
Definition: swuicnttab.hxx:231
sal_uInt32 GetControlIndex(FormTokenType eType) const
Definition: cnttab.cxx:3426
OUString m_sAccessibleName
Definition: swuicnttab.hxx:236
void SetFocus2theAllBtn()
Definition: cnttab.cxx:3418
SwTokenWindow(std::unique_ptr< weld::Container > xParent)
Definition: cnttab.cxx:2668
SwTOXWidget * InsertItem(const OUString &rText, const SwFormToken &aToken)
Definition: cnttab.cxx:2804
std::unique_ptr< weld::Container > m_xContainer
Definition: swuicnttab.hxx:246
void SetTabPage(SwTOXEntryTabPage *pParent)
Definition: swuicnttab.hxx:274
OUString CreateQuickHelp(const SwFormToken &rToken)
Definition: cnttab.cxx:3291
bool IsValid() const
Definition: swuicnttab.hxx:279
std::unique_ptr< weld::Button > m_xLeftScrollWin
Definition: swuicnttab.hxx:247
void SetActiveControl(SwTOXWidget *pSet)
Definition: cnttab.cxx:2783
void InsertAtSelection(const SwFormToken &aToken)
Definition: cnttab.cxx:2870
SwForm * m_pForm
Definition: swuicnttab.hxx:227
std::unique_ptr< weld::Builder > m_xBuilder
Definition: swuicnttab.hxx:245
void SetInvalid()
Definition: swuicnttab.hxx:281
bool Contains(FormTokenType) const
Definition: cnttab.cxx:3270
void MoveControls(tools::Long nOffset)
Definition: cnttab.cxx:3123
SwTOXEntryTabPage * m_pParent
Definition: swuicnttab.hxx:243
OUString m_aButtonTexts[TOKEN_END]
Definition: swuicnttab.hxx:230
Idle m_aAdjustPositionsIdle
Definition: swuicnttab.hxx:241
OUString m_sAdditionalAccnameString2
Definition: swuicnttab.hxx:238
std::unique_ptr< weld::Container > m_xParentWidget
Definition: swuicnttab.hxx:244
Link< LinkParamNone *, void > m_aModifyHdl
Definition: swuicnttab.hxx:235
DECL_LINK(AdjustPositionsHdl, const Size &, void)
DECL_LINK(TbxFocusHdl, SwTOXWidget &, void)
std::unique_ptr< weld::Button > m_xRightScrollWin
Definition: swuicnttab.hxx:250
SwTOXWidget * m_pActiveCtrl
Definition: swuicnttab.hxx:234
DECL_LINK(NextItemBtnHdl, SwTOXButton &, void)
OUString m_sCharStyle
Definition: swuicnttab.hxx:232
DECL_LINK(ScrollBtnHdl, weld::Button &, void)
sal_uInt16 GetLastLevel() const
Definition: swuicnttab.hxx:277
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::unique_ptr< SwIndexSections_Impl > m_pxIndexSections
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