1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SW_SOURCE_UI_DIALOG_SWDLGFACT_HXX
20 #define INCLUDED_SW_SOURCE_UI_DIALOG_SWDLGFACT_HXX
22 #include <swabstdlg.hxx>
24 #include <abstract.hxx>
25 #include <ascfldlg.hxx>
28 #include <contentcontrollistitemdlg.hxx>
29 #include <convert.hxx>
30 #include <DateFormFieldDialog.hxx>
31 #include <dbinsdlg.hxx>
32 #include <DropDownFieldDialog.hxx>
33 #include <DropDownFormFieldDialog.hxx>
34 #include <fldtdlg.hxx>
35 #include <glossary.hxx>
37 #include <insfnote.hxx>
38 #include <javaedit.hxx>
40 #include <mailmergewizard.hxx>
41 #include <mailmrge.hxx>
42 #include <mergetbl.hxx>
43 #include <multmrk.hxx>
44 #include <regionsw.hxx>
46 #include <selglos.hxx>
47 #include <splittbl.hxx>
49 #include <swmodalredlineacceptdlg.hxx>
50 #include <swrenamexnameddlg.hxx>
51 #include <swuicnttab.hxx>
52 #include <swuiidxmrk.hxx>
53 #include <tautofmt.hxx>
55 #include <wordcountdialog.hxx>
56 #include <itabenum.hxx>
58 #include <o3tl/deleter.hxx>
59 #include <pagenumberdlg.hxx>
62 class SwInsertAbstractDlg
;
63 class SwAsciiFilterDlg
;
65 class SwMultiTOXMarkDlg
;
67 class SwTableHeightDlg
;
68 class SwTableWidthDlg
;
69 class SwMergeTableDlg
;
71 class SwConvertTableDlg
;
72 class SwInsertDBColAutoPilot
;
74 class SwSelGlossaryDlg
;
75 class SwAutoFormatDlg
;
77 class SwRenameXNamedDlg
;
78 class SwModalRedlineAcceptDlg
;
80 class SwSplitTableDlg
;
83 class DropDownFieldDialog
;
84 class DropDownFormFieldDialog
;
85 class DateFormFieldDialog
;
87 class SwWordCountFloatDlg
;
90 class AbstractSwWordCountFloatDlg_Impl
: public AbstractSwWordCountFloatDlg
92 std::shared_ptr
<SwWordCountFloatDlg
> m_xDlg
;
94 explicit AbstractSwWordCountFloatDlg_Impl(std::shared_ptr
<SwWordCountFloatDlg
> p
)
95 : m_xDlg(std::move(p
))
98 virtual short Execute() override
;
99 virtual void UpdateCounts() override
;
100 virtual void SetCounts(const SwDocStat
&rCurrCnt
, const SwDocStat
&rDocStat
) override
;
101 virtual std::shared_ptr
<SfxDialogController
> GetController() override
;
104 class AbstractSwInsertAbstractDlg_Impl
: public AbstractSwInsertAbstractDlg
106 std::unique_ptr
<SwInsertAbstractDlg
> m_xDlg
;
108 explicit AbstractSwInsertAbstractDlg_Impl(std::unique_ptr
<SwInsertAbstractDlg
> p
)
109 : m_xDlg(std::move(p
))
112 virtual short Execute() override
;
113 virtual sal_uInt8
GetLevel() const override
;
114 virtual sal_uInt8
GetPara() const override
;
117 class SwAbstractSfxController_Impl
: public SfxAbstractDialog
119 std::unique_ptr
<SfxSingleTabDialogController
> m_xDlg
;
121 explicit SwAbstractSfxController_Impl(std::unique_ptr
<SfxSingleTabDialogController
> p
)
122 : m_xDlg(std::move(p
))
125 virtual short Execute() override
;
126 virtual const SfxItemSet
* GetOutputItemSet() const override
;
127 virtual void SetText(const OUString
& rStr
) override
;
130 class AbstractNumFormatDlg_Impl
: public SfxAbstractDialog
132 std::shared_ptr
<SfxSingleTabDialogController
> m_xDlg
;
134 explicit AbstractNumFormatDlg_Impl(std::shared_ptr
<SfxSingleTabDialogController
> p
)
135 : m_xDlg(std::move(p
))
138 virtual short Execute() override
;
139 virtual bool StartExecuteAsync(AsyncContext
&rCtx
) override
;
140 virtual const SfxItemSet
* GetOutputItemSet() const override
;
141 virtual void SetText(const OUString
& rStr
) override
;
144 class AbstractSwAsciiFilterDlg_Impl
: public AbstractSwAsciiFilterDlg
146 std::unique_ptr
<SwAsciiFilterDlg
> m_xDlg
;
148 explicit AbstractSwAsciiFilterDlg_Impl(std::unique_ptr
<SwAsciiFilterDlg
> p
)
149 : m_xDlg(std::move(p
))
152 virtual short Execute() override
;
153 virtual void FillOptions( SwAsciiOptions
& rOptions
) override
;
156 /// Interface implementation for the insert -> fields -> page number wizard dialog
157 class AbstractSwPageNumberDlg_Impl
: public AbstractSwPageNumberDlg
159 std::shared_ptr
<SwPageNumberDlg
> m_xDlg
;
161 explicit AbstractSwPageNumberDlg_Impl(std::shared_ptr
<SwPageNumberDlg
> p
)
162 : m_xDlg(std::move(p
))
165 virtual short Execute() override
;
166 virtual bool StartExecuteAsync(AsyncContext
&rCtx
) override
;
167 virtual int GetPageNumberPosition() const override
;
168 virtual int GetPageNumberAlignment() const override
;
169 bool GetMirrorOnEvenPages() const override
;
170 bool GetIncludePageTotal() const override
;
171 SvxNumType
GetPageNumberType() const override
;
172 void SetPageNumberType(SvxNumType nSet
) override
;
175 class AbstractGenericDialog_Impl
: public VclAbstractDialog
177 std::shared_ptr
<weld::GenericDialogController
> m_xDlg
;
179 explicit AbstractGenericDialog_Impl(std::shared_ptr
<weld::GenericDialogController
> p
)
180 : m_xDlg(std::move(p
))
183 virtual short Execute() override
;
184 virtual bool StartExecuteAsync(AsyncContext
&rCtx
) override
;
187 class AbstractSwSortDlg_Impl
: public VclAbstractDialog
189 std::unique_ptr
<SwSortDlg
> m_xDlg
;
191 explicit AbstractSwSortDlg_Impl(std::unique_ptr
<SwSortDlg
> p
)
192 : m_xDlg(std::move(p
))
195 virtual short Execute() override
;
198 class AbstractMultiTOXMarkDlg_Impl
: public VclAbstractDialog
200 std::unique_ptr
<SwMultiTOXMarkDlg
> m_xDlg
;
202 explicit AbstractMultiTOXMarkDlg_Impl(std::unique_ptr
<SwMultiTOXMarkDlg
> p
)
203 : m_xDlg(std::move(p
))
206 virtual short Execute() override
;
209 class AbstractSwBreakDlg_Impl
: public AbstractSwBreakDlg
211 std::shared_ptr
<weld::DialogController
> m_xDlg
;
213 explicit AbstractSwBreakDlg_Impl(std::shared_ptr
<weld::DialogController
> p
)
214 : m_xDlg(std::move(p
))
217 virtual OUString
GetTemplateName() override
;
218 virtual sal_uInt16
GetKind() override
;
219 virtual ::std::optional
<sal_uInt16
> GetPageNumber() override
;
220 std::optional
<SwLineBreakClear
> GetClear() override
;
222 virtual std::shared_ptr
<weld::DialogController
> getDialogController() override
{ return m_xDlg
; }
225 class AbstractSwTranslateLangSelectDlg_Impl
: public AbstractSwTranslateLangSelectDlg
227 std::shared_ptr
<weld::DialogController
> m_xDlg
;
229 explicit AbstractSwTranslateLangSelectDlg_Impl(std::shared_ptr
<weld::DialogController
> p
)
230 : m_xDlg(std::move(p
))
234 virtual std::shared_ptr
<weld::DialogController
> getDialogController() override
{ return m_xDlg
; }
235 virtual std::optional
<SwLanguageListItem
> GetSelectedLanguage() override
;
238 class AbstractSwTableWidthDlg_Impl
: public VclAbstractDialog
240 std::unique_ptr
<SwTableWidthDlg
> m_xDlg
;
242 explicit AbstractSwTableWidthDlg_Impl(std::unique_ptr
<SwTableWidthDlg
> p
)
243 : m_xDlg(std::move(p
))
246 virtual short Execute() override
;
249 class AbstractSwTableHeightDlg_Impl
: public VclAbstractDialog
251 std::unique_ptr
<SwTableHeightDlg
> m_xDlg
;
253 explicit AbstractSwTableHeightDlg_Impl(std::unique_ptr
<SwTableHeightDlg
> p
)
254 : m_xDlg(std::move(p
))
257 virtual short Execute() override
;
260 class AbstractSwMergeTableDlg_Impl
: public VclAbstractDialog
262 std::unique_ptr
<SwMergeTableDlg
> m_xDlg
;
264 explicit AbstractSwMergeTableDlg_Impl(std::unique_ptr
<SwMergeTableDlg
> p
)
265 : m_xDlg(std::move(p
))
268 virtual short Execute() override
;
271 class AbstractSplitTableDialog_Impl
: public AbstractSplitTableDialog
// add for
273 std::shared_ptr
<SwSplitTableDlg
> m_xDlg
;
275 explicit AbstractSplitTableDialog_Impl(std::shared_ptr
<SwSplitTableDlg
> p
)
276 : m_xDlg(std::move(p
))
279 virtual short Execute() override
;
280 virtual bool StartExecuteAsync(AsyncContext
&rCtx
) override
;
281 virtual SplitTable_HeadlineOption
GetSplitMode() override
;
284 class AbstractTabController_Impl
: virtual public SfxAbstractTabDialog
287 std::shared_ptr
<SfxTabDialogController
> m_xDlg
;
289 explicit AbstractTabController_Impl(std::shared_ptr
<SfxTabDialogController
> p
)
290 : m_xDlg(std::move(p
))
293 virtual short Execute() override
;
294 virtual bool StartExecuteAsync(AsyncContext
&rCtx
) override
;
295 virtual void SetCurPageId( const OUString
&rName
) override
;
296 virtual const SfxItemSet
* GetOutputItemSet() const override
;
297 virtual WhichRangesContainer
GetInputRanges( const SfxItemPool
& pItem
) override
;
298 virtual void SetInputSet( const SfxItemSet
* pInSet
) override
;
300 virtual void SetText( const OUString
& rStr
) override
;
303 class AbstractApplyTabController_Impl
: public AbstractTabController_Impl
, virtual public SfxAbstractApplyTabDialog
306 explicit AbstractApplyTabController_Impl(std::shared_ptr
<SfxTabDialogController
> p
)
307 : AbstractTabController_Impl(std::move(p
))
310 DECL_LINK(ApplyHdl
, weld::Button
&, void);
312 Link
<LinkParamNone
*,void> m_aHandler
;
313 virtual void SetApplyHdl( const Link
<LinkParamNone
*,void>& rLink
) override
;
316 class AbstractSwConvertTableDlg_Impl
: public AbstractSwConvertTableDlg
318 std::unique_ptr
<SwConvertTableDlg
> m_xDlg
;
320 explicit AbstractSwConvertTableDlg_Impl(std::unique_ptr
<SwConvertTableDlg
> p
)
321 : m_xDlg(std::move(p
))
324 virtual short Execute() override
;
325 virtual void GetValues( sal_Unicode
& rDelim
,SwInsertTableOptions
& rInsTableFlags
,
326 SwTableAutoFormat
const*& prTAFormat
) override
;
329 class AbstractSwInsertDBColAutoPilot_Impl
: public AbstractSwInsertDBColAutoPilot
331 std::unique_ptr
<SwInsertDBColAutoPilot
> m_xDlg
;
333 explicit AbstractSwInsertDBColAutoPilot_Impl(std::unique_ptr
<SwInsertDBColAutoPilot
> p
)
334 : m_xDlg(std::move(p
))
337 virtual short Execute() override
;
338 virtual void DataToDoc( const css::uno::Sequence
< css::uno::Any
>& rSelection
,
339 css::uno::Reference
< css::sdbc::XDataSource
> rxSource
,
340 css::uno::Reference
< css::sdbc::XConnection
> xConnection
,
341 css::uno::Reference
< css::sdbc::XResultSet
> xResultSet
) override
;
344 class AbstractDropDownFieldDialog_Impl
: public AbstractDropDownFieldDialog
346 std::unique_ptr
<sw::DropDownFieldDialog
> m_xDlg
;
348 explicit AbstractDropDownFieldDialog_Impl(std::unique_ptr
<sw::DropDownFieldDialog
> p
)
349 : m_xDlg(std::move(p
))
352 virtual short Execute() override
;
353 virtual bool PrevButtonPressed() const override
;
354 virtual bool NextButtonPressed() const override
;
357 class AbstractDropDownFormFieldDialog_Impl
: public VclAbstractDialog
359 std::unique_ptr
<sw::DropDownFormFieldDialog
> m_xDlg
;
361 explicit AbstractDropDownFormFieldDialog_Impl(std::unique_ptr
<sw::DropDownFormFieldDialog
> p
)
362 : m_xDlg(std::move(p
))
365 virtual short Execute() override
;
368 class AbstractDateFormFieldDialog_Impl
: public VclAbstractDialog
370 std::unique_ptr
<sw::DateFormFieldDialog
> m_xDlg
;
372 explicit AbstractDateFormFieldDialog_Impl(std::unique_ptr
<sw::DateFormFieldDialog
> p
)
373 : m_xDlg(std::move(p
))
376 virtual short Execute() override
;
379 class AbstractSwLabDlg_Impl
: public AbstractSwLabDlg
381 std::unique_ptr
<SwLabDlg
> m_xDlg
;
383 explicit AbstractSwLabDlg_Impl(std::unique_ptr
<SwLabDlg
> p
)
384 : m_xDlg(std::move(p
))
387 virtual short Execute() override
;
388 virtual void SetCurPageId( const OUString
&rName
) override
;
389 virtual const SfxItemSet
* GetOutputItemSet() const override
;
390 virtual WhichRangesContainer
GetInputRanges( const SfxItemPool
& pItem
) override
;
391 virtual void SetInputSet( const SfxItemSet
* pInSet
) override
;
393 virtual void SetText( const OUString
& rStr
) override
;
394 virtual const OUString
& GetBusinessCardStr() const override
;
395 virtual Printer
*GetPrt() override
;
398 class AbstractSwSelGlossaryDlg_Impl
: public AbstractSwSelGlossaryDlg
400 std::unique_ptr
<SwSelGlossaryDlg
> m_xDlg
;
402 explicit AbstractSwSelGlossaryDlg_Impl(std::unique_ptr
<SwSelGlossaryDlg
> p
)
403 : m_xDlg(std::move(p
))
406 virtual short Execute() override
;
407 virtual void InsertGlos(const OUString
&rRegion
, const OUString
&rGlosName
) override
; // inline
408 virtual sal_Int32
GetSelectedIdx() const override
; // inline
409 virtual void SelectEntryPos(sal_Int32 nIdx
) override
; // inline
412 class AbstractSwAutoFormatDlg_Impl
: public AbstractSwAutoFormatDlg
414 std::unique_ptr
<SwAutoFormatDlg
, o3tl::default_delete
<SwAutoFormatDlg
>> m_xDlg
;
416 explicit AbstractSwAutoFormatDlg_Impl(std::unique_ptr
<SwAutoFormatDlg
, o3tl::default_delete
<SwAutoFormatDlg
>> p
)
417 : m_xDlg(std::move(p
))
420 virtual short Execute() override
;
421 virtual std::unique_ptr
<SwTableAutoFormat
> FillAutoFormatOfIndex() const override
;
424 class AbstractSwFieldDlg_Impl
: public AbstractSwFieldDlg
426 std::shared_ptr
<SwFieldDlg
> m_xDlg
;
428 explicit AbstractSwFieldDlg_Impl(std::shared_ptr
<SwFieldDlg
> p
)
429 : m_xDlg(std::move(p
))
432 virtual short Execute() override
;
433 virtual bool StartExecuteAsync(AsyncContext
&rCtx
) override
;
434 virtual void SetCurPageId( const OUString
&rName
) override
;
435 virtual const SfxItemSet
* GetOutputItemSet() const override
;
436 virtual WhichRangesContainer
GetInputRanges( const SfxItemPool
& pItem
) override
;
437 virtual void SetInputSet( const SfxItemSet
* pInSet
) override
;
439 virtual void SetText( const OUString
& rStr
) override
;
440 virtual void ShowReferencePage() override
;
441 virtual void Initialize(SfxChildWinInfo
*pInfo
) override
;
442 virtual void ReInitDlg() override
;
443 virtual void ActivateDatabasePage() override
;
444 virtual std::shared_ptr
<SfxDialogController
> GetController() override
;
447 class AbstractSwRenameXNamedDlg_Impl
: public AbstractSwRenameXNamedDlg
449 std::unique_ptr
<SwRenameXNamedDlg
> m_xDlg
;
451 explicit AbstractSwRenameXNamedDlg_Impl(std::unique_ptr
<SwRenameXNamedDlg
> p
)
452 : m_xDlg(std::move(p
))
455 virtual short Execute() override
;
456 virtual void SetForbiddenChars( const OUString
& rSet
) override
;
457 virtual void SetAlternativeAccess(
458 css::uno::Reference
< css::container::XNameAccess
> & xSecond
,
459 css::uno::Reference
< css::container::XNameAccess
> & xThird
) override
;
463 * Implementation of AbstractSwContentControlListItemDlg, that is only visible to
464 * SwAbstractDialogFactory_Impl::CreateSwContentControlListItemDlg().
466 class AbstractSwContentControlListItemDlg_Impl
: public AbstractSwContentControlListItemDlg
468 std::shared_ptr
<SwContentControlListItemDlg
> m_xDlg
;
471 explicit AbstractSwContentControlListItemDlg_Impl(
472 std::shared_ptr
<SwContentControlListItemDlg
> xDlg
)
473 : m_xDlg(std::move(xDlg
))
477 short Execute() override
;
478 bool StartExecuteAsync(VclAbstractDialog::AsyncContext
&) override
;
481 class AbstractSwModalRedlineAcceptDlg_Impl
: public AbstractSwModalRedlineAcceptDlg
483 std::unique_ptr
<SwModalRedlineAcceptDlg
> m_xDlg
;
485 explicit AbstractSwModalRedlineAcceptDlg_Impl(std::unique_ptr
<SwModalRedlineAcceptDlg
> p
)
486 : m_xDlg(std::move(p
))
489 virtual short Execute() override
;
493 class AbstractGlossaryDlg_Impl
: public AbstractGlossaryDlg
495 std::unique_ptr
<SwGlossaryDlg
> m_xDlg
;
497 explicit AbstractGlossaryDlg_Impl(std::unique_ptr
<SwGlossaryDlg
> p
)
498 : m_xDlg(std::move(p
))
501 virtual short Execute() override
;
502 virtual OUString
GetCurrGrpName() const override
;
503 virtual OUString
GetCurrShortName() const override
;
506 class SwFieldInputDlg
;
507 class AbstractFieldInputDlg_Impl
: public AbstractFieldInputDlg
509 std::unique_ptr
<SwFieldInputDlg
> m_xDlg
;
511 explicit AbstractFieldInputDlg_Impl(std::unique_ptr
<SwFieldInputDlg
> p
)
512 : m_xDlg(std::move(p
))
515 virtual short Execute() override
;
516 virtual void EndDialog(sal_Int32
) override
;
517 virtual bool PrevButtonPressed() const override
;
518 virtual bool NextButtonPressed() const override
;
521 class SwInsFootNoteDlg
;
522 class AbstractInsFootNoteDlg_Impl
: public AbstractInsFootNoteDlg
524 std::unique_ptr
<SwInsFootNoteDlg
> m_xDlg
;
526 explicit AbstractInsFootNoteDlg_Impl(std::unique_ptr
<SwInsFootNoteDlg
> p
)
527 : m_xDlg(std::move(p
))
530 virtual short Execute() override
;
531 virtual OUString
GetFontName() override
;
532 virtual bool IsEndNote() override
;
533 virtual OUString
GetStr() override
;
535 virtual void SetHelpId( const OUString
& sHelpId
) override
;
536 virtual void SetText( const OUString
& rStr
) override
;
540 class AbstractInsTableDlg_Impl
: public AbstractInsTableDlg
543 std::shared_ptr
<weld::DialogController
> m_xDlg
;
545 explicit AbstractInsTableDlg_Impl(std::shared_ptr
<weld::DialogController
> p
)
546 : m_xDlg(std::move(p
))
549 virtual void GetValues( OUString
& rName
, sal_uInt16
& rRow
, sal_uInt16
& rCol
,
550 SwInsertTableOptions
& rInsTableFlags
, OUString
& rTableAutoFormatName
,
551 std::unique_ptr
<SwTableAutoFormat
>& prTAFormat
) override
;
552 virtual std::shared_ptr
<weld::DialogController
> getDialogController() override
{ return m_xDlg
; }
555 class SwJavaEditDialog
;
556 class AbstractJavaEditDialog_Impl
: public AbstractJavaEditDialog
558 std::unique_ptr
<SwJavaEditDialog
> m_xDlg
;
560 explicit AbstractJavaEditDialog_Impl(std::unique_ptr
<SwJavaEditDialog
> p
)
561 : m_xDlg(std::move(p
))
564 virtual short Execute() override
;
565 virtual OUString
GetScriptText() const override
;
566 virtual OUString
GetScriptType() const override
;
567 virtual bool IsUrl() const override
;
568 virtual bool IsNew() const override
;
569 virtual bool IsUpdate() const override
;
572 class SwMailMergeDlg
;
573 class AbstractMailMergeDlg_Impl
: public AbstractMailMergeDlg
575 std::unique_ptr
<SwMailMergeDlg
> m_xDlg
;
577 explicit AbstractMailMergeDlg_Impl(std::unique_ptr
<SwMailMergeDlg
> p
)
578 : m_xDlg(std::move(p
))
581 virtual short Execute() override
;
582 virtual DBManagerOptions
GetMergeType() override
;
583 virtual const OUString
& GetSaveFilter() const override
;
584 virtual css::uno::Sequence
< css::uno::Any
> GetSelection() const override
;
585 virtual css::uno::Reference
< css::sdbc::XResultSet
> GetResultSet() const override
;
586 virtual bool IsSaveSingleDoc() const override
;
587 virtual bool IsGenerateFromDataBase() const override
;
588 virtual bool IsFileEncryptedFromDataBase() const override
;
589 virtual OUString
GetColumnName() const override
;
590 virtual OUString
GetPasswordColumnName() const override
;
591 virtual OUString
GetTargetURL() const override
;
594 class SwMailMergeCreateFromDlg
;
595 class AbstractMailMergeCreateFromDlg_Impl
: public AbstractMailMergeCreateFromDlg
597 std::unique_ptr
<SwMailMergeCreateFromDlg
> m_xDlg
;
599 explicit AbstractMailMergeCreateFromDlg_Impl(std::unique_ptr
<SwMailMergeCreateFromDlg
> p
)
600 : m_xDlg(std::move(p
))
603 virtual short Execute() override
;
604 virtual bool IsThisDocument() const override
;
607 class SwMailMergeFieldConnectionsDlg
;
608 class AbstractMailMergeFieldConnectionsDlg_Impl
: public AbstractMailMergeFieldConnectionsDlg
610 std::unique_ptr
<SwMailMergeFieldConnectionsDlg
> m_xDlg
;
612 explicit AbstractMailMergeFieldConnectionsDlg_Impl(std::unique_ptr
<SwMailMergeFieldConnectionsDlg
> p
)
613 : m_xDlg(std::move(p
))
616 virtual short Execute() override
;
617 virtual bool IsUseExistingConnections() const override
;
620 class SwMultiTOXTabDialog
;
621 class AbstractMultiTOXTabDialog_Impl
: public AbstractMultiTOXTabDialog
624 std::shared_ptr
<SwMultiTOXTabDialog
> m_xDlg
;
626 explicit AbstractMultiTOXTabDialog_Impl(std::shared_ptr
<SwMultiTOXTabDialog
> p
)
627 : m_xDlg(std::move(p
))
630 virtual short Execute() override
;
631 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext
&rCtx
) override
;
632 virtual CurTOXType
GetCurrentTOXType() const override
;
633 virtual SwTOXDescription
& GetTOXDescription(CurTOXType eTOXTypes
) override
;
635 virtual const SfxItemSet
* GetOutputItemSet() const override
;
638 class SwEditRegionDlg
;
639 class AbstractEditRegionDlg_Impl
: public AbstractEditRegionDlg
641 std::shared_ptr
<SwEditRegionDlg
> m_xDlg
;
643 explicit AbstractEditRegionDlg_Impl(std::shared_ptr
<SwEditRegionDlg
> p
)
644 : m_xDlg(std::move(p
))
647 virtual short Execute() override
;
648 virtual void SelectSection(const OUString
& rSectionName
) override
;
651 class SwInsertSectionTabDialog
;
652 class AbstractInsertSectionTabDialog_Impl
: public AbstractInsertSectionTabDialog
654 std::shared_ptr
<SwInsertSectionTabDialog
> m_xDlg
;
656 explicit AbstractInsertSectionTabDialog_Impl(std::shared_ptr
<SwInsertSectionTabDialog
> p
)
657 : m_xDlg(std::move(p
))
660 virtual short Execute() override
;
661 virtual bool StartExecuteAsync(AsyncContext
&rCtx
) override
;
662 virtual void SetSectionData(SwSectionData
const& rSect
) override
;
665 class SwIndexMarkFloatDlg
;
666 class AbstractIndexMarkFloatDlg_Impl
: public AbstractMarkFloatDlg
668 std::shared_ptr
<SwIndexMarkFloatDlg
> m_xDlg
;
670 explicit AbstractIndexMarkFloatDlg_Impl(std::shared_ptr
<SwIndexMarkFloatDlg
> p
)
671 : m_xDlg(std::move(p
))
674 virtual short Execute() override
;
675 virtual void ReInitDlg(SwWrtShell
& rWrtShell
) override
;
676 virtual std::shared_ptr
<SfxDialogController
> GetController() override
;
679 class SwAuthMarkFloatDlg
;
680 class AbstractAuthMarkFloatDlg_Impl
: public AbstractMarkFloatDlg
682 std::shared_ptr
<SwAuthMarkFloatDlg
> m_xDlg
;
684 explicit AbstractAuthMarkFloatDlg_Impl(std::shared_ptr
<SwAuthMarkFloatDlg
> p
)
685 : m_xDlg(std::move(p
))
688 virtual short Execute() override
;
689 virtual void ReInitDlg(SwWrtShell
& rWrtShell
) override
;
690 virtual std::shared_ptr
<SfxDialogController
> GetController() override
;
693 class SwMailMergeWizard
;
694 class AbstractMailMergeWizard_Impl
: public AbstractMailMergeWizard
696 std::shared_ptr
<SwMailMergeWizard
> m_xDlg
;
699 explicit AbstractMailMergeWizard_Impl(std::shared_ptr
<SwMailMergeWizard
> p
)
700 : m_xDlg(std::move(p
))
703 virtual ~AbstractMailMergeWizard_Impl() override
;
704 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext
&rCtx
) override
;
705 virtual short Execute() override
;
707 virtual OUString
GetReloadDocument() const override
;
708 virtual void ShowPage( sal_uInt16 nLevel
) override
;
709 virtual sal_uInt16
GetRestartPage() const override
;
712 //AbstractDialogFactory_Impl implementations
713 class SwAbstractDialogFactory_Impl
: public SwAbstractDialogFactory
717 virtual ~SwAbstractDialogFactory_Impl() {}
719 virtual VclPtr
<SfxAbstractDialog
> CreateNumFormatDialog(weld::Widget
* pParent
, const SfxItemSet
& rAttr
) override
;
720 virtual VclPtr
<SfxAbstractDialog
> CreateSwDropCapsDialog(weld::Window
* pParent
, const SfxItemSet
& rSet
) override
;
721 virtual VclPtr
<SfxAbstractDialog
> CreateSwBackgroundDialog(weld::Window
* pParent
, const SfxItemSet
& rSet
) override
;
722 virtual VclPtr
<AbstractSwWordCountFloatDlg
> CreateSwWordCountDialog(SfxBindings
* pBindings
,
723 SfxChildWindow
* pChild
, weld::Window
*pParent
, SfxChildWinInfo
* pInfo
) override
;
724 virtual VclPtr
<AbstractSwInsertAbstractDlg
> CreateSwInsertAbstractDlg(weld::Window
* pParent
) override
;
725 virtual VclPtr
<SfxAbstractDialog
> CreateSwAddressAbstractDlg(weld::Window
* pParent
, const SfxItemSet
& rSet
) override
;
726 virtual VclPtr
<AbstractSwAsciiFilterDlg
> CreateSwAsciiFilterDlg(weld::Window
* pParent
, SwDocShell
& rDocSh
,
727 SvStream
* pStream
) override
;
728 virtual VclPtr
<VclAbstractDialog
> CreateSwInsertBookmarkDlg(weld::Window
*pParent
, SwWrtShell
&rSh
, OUString
const* pSelected
) override
;
729 virtual VclPtr
<VclAbstractDialog
> CreateSwContentControlDlg(weld::Window
*pParent
, SwWrtShell
&rSh
) override
;
730 virtual VclPtr
<AbstractSwPageNumberDlg
> CreateSwPageNumberDlg(weld::Window
*pParent
) override
;
732 VclPtr
<AbstractSwContentControlListItemDlg
>
733 CreateSwContentControlListItemDlg(weld::Window
* pParent
,
734 SwContentControlListItem
& rItem
) override
;
736 virtual std::shared_ptr
<AbstractSwBreakDlg
> CreateSwBreakDlg(weld::Window
*pParent
, SwWrtShell
&rSh
) override
;
737 virtual std::shared_ptr
<AbstractSwTranslateLangSelectDlg
> CreateSwTranslateLangSelectDlg(weld::Window
*pParent
, SwWrtShell
&rSh
) override
;
738 virtual VclPtr
<VclAbstractDialog
> CreateSwChangeDBDlg(SwView
& rVw
) override
;
739 virtual VclPtr
<SfxAbstractTabDialog
> CreateSwCharDlg(weld::Window
* pParent
, SwView
& pVw
, const SfxItemSet
& rCoreSet
,
740 SwCharDlgMode nDialogMode
, const OUString
* pFormatStr
= nullptr) override
;
741 virtual VclPtr
<AbstractSwConvertTableDlg
> CreateSwConvertTableDlg(SwView
& rView
, bool bToTable
) override
;
742 virtual VclPtr
<VclAbstractDialog
> CreateSwCaptionDialog(weld::Window
*pParent
, SwView
&rV
) override
;
743 virtual VclPtr
<AbstractSwInsertDBColAutoPilot
> CreateSwInsertDBColAutoPilot(SwView
& rView
,
744 css::uno::Reference
< css::sdbc::XDataSource
> rxSource
,
745 css::uno::Reference
<css::sdbcx::XColumnsSupplier
> xColSupp
,
746 const SwDBData
& rData
) override
;
747 virtual VclPtr
<SfxAbstractTabDialog
> CreateSwFootNoteOptionDlg(weld::Window
*pParent
, SwWrtShell
&rSh
) override
;
749 virtual VclPtr
<AbstractDropDownFieldDialog
> CreateDropDownFieldDialog(weld::Widget
* pParent
, SwWrtShell
&rSh
,
750 SwField
* pField
, bool bPrevButton
, bool bNextButton
) override
;
751 virtual VclPtr
<VclAbstractDialog
> CreateDropDownFormFieldDialog(weld::Widget
* pParent
, sw::mark::IFieldmark
* pDropDownField
) override
;
752 virtual VclPtr
<VclAbstractDialog
> CreateDateFormFieldDialog(weld::Widget
* pParent
, sw::mark::IDateFieldmark
* pDateField
, SwDoc
& rDoc
) override
;
754 virtual VclPtr
<SfxAbstractTabDialog
> CreateSwEnvDlg(weld::Window
* pParent
, const SfxItemSet
& rSet
, SwWrtShell
* pWrtSh
, Printer
* pPrt
, bool bInsert
) override
;
755 virtual VclPtr
<AbstractSwLabDlg
> CreateSwLabDlg(weld::Window
* pParent
, const SfxItemSet
& rSet
,
756 SwDBManager
* pDBManager
, bool bLabel
) override
;
758 virtual SwLabDlgMethod
GetSwLabDlgStaticMethod () override
;
759 virtual VclPtr
<SfxAbstractTabDialog
> CreateSwParaDlg(weld::Window
*pParent
,
761 const SfxItemSet
& rCoreSet
,
763 const OUString
& sDefPage
= {}) override
;
765 virtual VclPtr
<VclAbstractDialog
> CreateSwAutoMarkDialog(weld::Window
*pParent
, SwWrtShell
&rSh
) override
;
766 virtual VclPtr
<AbstractSwSelGlossaryDlg
> CreateSwSelGlossaryDlg(weld::Window
*pParent
, const OUString
&rShortName
) override
;
767 virtual VclPtr
<VclAbstractDialog
> CreateSwSortingDialog(weld::Window
*pParent
, SwWrtShell
&rSh
) override
;
768 virtual VclPtr
<VclAbstractDialog
> CreateSwTableHeightDialog(weld::Window
*pParent
, SwWrtShell
&rSh
) override
;
769 virtual VclPtr
<VclAbstractDialog
> CreateSwColumnDialog(weld::Window
*pParent
, SwWrtShell
&rSh
) override
;
770 virtual VclPtr
<AbstractSplitTableDialog
> CreateSplitTableDialog(weld::Window
* pParent
, SwWrtShell
&rSh
) override
;
772 virtual VclPtr
<AbstractSwAutoFormatDlg
> CreateSwAutoFormatDlg(weld::Window
* pParent
, SwWrtShell
* pShell
,
773 bool bSetAutoFormat
= true,
774 const SwTableAutoFormat
* pSelFormat
= nullptr) override
;
775 virtual VclPtr
<SfxAbstractDialog
> CreateSwBorderDlg(weld::Window
* pParent
, SfxItemSet
& rSet
, SwBorderModes nType
) override
;
777 virtual VclPtr
<SfxAbstractDialog
> CreateSwWrapDlg(weld::Window
* pParent
, SfxItemSet
& rSet
, SwWrtShell
* pSh
) override
;
778 virtual VclPtr
<VclAbstractDialog
> CreateSwTableWidthDlg(weld::Window
*pParent
, SwTableFUNC
&rFnc
) override
;
779 virtual VclPtr
<SfxAbstractTabDialog
> CreateSwTableTabDlg(weld::Window
* pParent
,
780 const SfxItemSet
* pItemSet
, SwWrtShell
* pSh
) override
;
781 virtual VclPtr
<AbstractSwFieldDlg
> CreateSwFieldDlg(SfxBindings
* pB
, SwChildWinWrapper
* pCW
, weld::Window
*pParent
) override
;
782 virtual VclPtr
<SfxAbstractDialog
> CreateSwFieldEditDlg ( SwView
& rVw
) override
;
783 virtual VclPtr
<AbstractSwRenameXNamedDlg
> CreateSwRenameXNamedDlg(weld::Widget
* pParent
,
784 css::uno::Reference
< css::container::XNamed
> & xNamed
,
785 css::uno::Reference
< css::container::XNameAccess
> & xNameAccess
) override
;
786 virtual VclPtr
<AbstractSwModalRedlineAcceptDlg
> CreateSwModalRedlineAcceptDlg(weld::Window
*pParent
) override
;
788 virtual VclPtr
<VclAbstractDialog
> CreateTableMergeDialog(weld::Window
* pParent
, bool& rWithPrev
) override
;
789 virtual VclPtr
<SfxAbstractTabDialog
> CreateFrameTabDialog( const OUString
&rDialogType
,
790 SfxViewFrame
& rFrame
, weld::Window
*pParent
,
791 const SfxItemSet
& rCoreSet
,
792 bool bNewFrame
= true,
793 const OUString
& sDefPage
= {}) override
;
794 virtual VclPtr
<SfxAbstractApplyTabDialog
> CreateTemplateDialog(
795 weld::Window
*pParent
,
796 SfxStyleSheetBase
& rBase
,
797 SfxStyleFamily nRegion
,
798 const OUString
& sPage
,
799 SwWrtShell
* pActShell
,
801 virtual VclPtr
<AbstractGlossaryDlg
> CreateGlossaryDlg(SfxViewFrame
& rViewFrame
,
802 SwGlossaryHdl
* pGlosHdl
,
803 SwWrtShell
*pWrtShell
) override
;
804 virtual VclPtr
<AbstractFieldInputDlg
> CreateFieldInputDlg(weld::Widget
*pParent
,
805 SwWrtShell
&rSh
, SwField
* pField
, bool bPrevButton
, bool bNextButton
) override
;
806 virtual VclPtr
<AbstractInsFootNoteDlg
> CreateInsFootNoteDlg(
807 weld::Window
* pParent
, SwWrtShell
&rSh
, bool bEd
= false) override
;
808 virtual VclPtr
<VclAbstractDialog
> CreateTitlePageDlg(weld::Window
* pParent
) override
;
809 virtual VclPtr
<VclAbstractDialog
> CreateVclSwViewDialog(SwView
& rView
) override
;
810 virtual std::shared_ptr
<AbstractInsTableDlg
> CreateInsTableDlg(SwView
& rView
) override
;
811 virtual VclPtr
<AbstractJavaEditDialog
> CreateJavaEditDialog(weld::Window
* pParent
,
812 SwWrtShell
* pWrtSh
) override
;
813 virtual VclPtr
<AbstractMailMergeDlg
> CreateMailMergeDlg(
814 weld::Window
* pParent
, SwWrtShell
& rSh
,
815 const OUString
& rSourceName
,
816 const OUString
& rTableName
,
817 sal_Int32 nCommandType
,
818 const css::uno::Reference
< css::sdbc::XConnection
>& xConnection
) override
;
819 virtual VclPtr
<AbstractMailMergeCreateFromDlg
> CreateMailMergeCreateFromDlg(weld::Window
* pParent
) override
;
820 virtual VclPtr
<AbstractMailMergeFieldConnectionsDlg
> CreateMailMergeFieldConnectionsDlg(weld::Window
* pParent
) override
;
821 virtual VclPtr
<VclAbstractDialog
> CreateMultiTOXMarkDlg(weld::Window
* pParent
, SwTOXMgr
&rTOXMgr
) override
;
822 virtual VclPtr
<SfxAbstractTabDialog
> CreateOutlineTabDialog(weld::Window
* pParent
, const SfxItemSet
* pSwItemSet
,
823 SwWrtShell
&) override
;
824 virtual VclPtr
<SfxAbstractTabDialog
> CreateSvxNumBulletTabDialog(weld::Window
* pParent
,
825 const SfxItemSet
* pSwItemSet
,
826 SwWrtShell
&) override
;
827 virtual VclPtr
<AbstractMultiTOXTabDialog
> CreateMultiTOXTabDialog(
828 weld::Widget
* pParent
, const SfxItemSet
& rSet
,
831 bool bGlobal
) override
;
832 virtual VclPtr
<AbstractEditRegionDlg
> CreateEditRegionDlg(weld::Window
* pParent
, SwWrtShell
& rWrtSh
) override
;
833 virtual VclPtr
<AbstractInsertSectionTabDialog
> CreateInsertSectionTabDialog(
834 weld::Window
* pParent
, const SfxItemSet
& rSet
, SwWrtShell
& rSh
) override
;
835 virtual VclPtr
<AbstractMarkFloatDlg
> CreateIndexMarkFloatDlg(
836 SfxBindings
* pBindings
,
837 SfxChildWindow
* pChild
,
838 weld::Window
*pParent
,
839 SfxChildWinInfo
* pInfo
) override
;
840 virtual VclPtr
<AbstractMarkFloatDlg
> CreateAuthMarkFloatDlg(
841 SfxBindings
* pBindings
,
842 SfxChildWindow
* pChild
,
843 weld::Window
*pParent
,
844 SfxChildWinInfo
* pInfo
) override
;
845 virtual VclPtr
<VclAbstractDialog
> CreateIndexMarkModalDlg(
846 weld::Window
*pParent
, SwWrtShell
& rSh
, SwTOXMark
* pCurTOXMark
) override
;
848 virtual VclPtr
<AbstractMailMergeWizard
> CreateMailMergeWizard(SwView
& rView
, std::shared_ptr
<SwMailMergeConfigItem
>& rConfigItem
) override
;
850 virtual GlossaryGetCurrGroup
GetGlossaryCurrGroupFunc() override
;
851 virtual GlossarySetActGroup
SetGlossaryActGroupFunc() override
;
854 virtual CreateTabPage
GetTabPageCreatorFunc( sal_uInt16 nId
) override
;
856 virtual void ExecuteMMResultSaveDialog(weld::Window
* pParent
) override
;
857 virtual void ExecuteMMResultPrintDialog(weld::Window
* pParent
) override
;
858 virtual void ExecuteMMResultEmailDialog(weld::Window
* pParent
) override
;
863 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */