android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / ui / dialog / swdlgfact.hxx
blob0b6f67b1da23504d5751a426750813bcb8dd4610
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
26 #include <cnttab.hxx>
27 #include <colwd.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>
36 #include <inpdlg.hxx>
37 #include <insfnote.hxx>
38 #include <javaedit.hxx>
39 #include <label.hxx>
40 #include <mailmergewizard.hxx>
41 #include <mailmrge.hxx>
42 #include <mergetbl.hxx>
43 #include <multmrk.hxx>
44 #include <regionsw.hxx>
45 #include <rowht.hxx>
46 #include <selglos.hxx>
47 #include <splittbl.hxx>
48 #include <srtdlg.hxx>
49 #include <swmodalredlineacceptdlg.hxx>
50 #include <swrenamexnameddlg.hxx>
51 #include <swuicnttab.hxx>
52 #include <swuiidxmrk.hxx>
53 #include <tautofmt.hxx>
54 #include <utility>
55 #include <wordcountdialog.hxx>
56 #include <itabenum.hxx>
57 #include <optional>
58 #include <o3tl/deleter.hxx>
59 #include <pagenumberdlg.hxx>
62 class SwInsertAbstractDlg;
63 class SwAsciiFilterDlg;
64 class SwBreakDlg;
65 class SwMultiTOXMarkDlg;
66 class SwSortDlg;
67 class SwTableHeightDlg;
68 class SwTableWidthDlg;
69 class SwMergeTableDlg;
70 class SfxTabDialog;
71 class SwConvertTableDlg;
72 class SwInsertDBColAutoPilot;
73 class SwLabDlg;
74 class SwSelGlossaryDlg;
75 class SwAutoFormatDlg;
76 class SwFieldDlg;
77 class SwRenameXNamedDlg;
78 class SwModalRedlineAcceptDlg;
79 class SwTOXMark;
80 class SwSplitTableDlg;
81 namespace sw
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;
93 public:
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;
107 public:
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;
120 public:
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;
133 public:
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;
147 public:
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;
160 public:
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;
178 public:
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;
190 public:
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;
201 public:
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;
212 public:
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;
228 public:
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;
241 public:
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;
252 public:
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;
263 public:
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;
274 public:
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
286 protected:
287 std::shared_ptr<SfxTabDialogController> m_xDlg;
288 public:
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;
299 //From class Window.
300 virtual void SetText( const OUString& rStr ) override;
303 class AbstractApplyTabController_Impl : public AbstractTabController_Impl, virtual public SfxAbstractApplyTabDialog
305 public:
306 explicit AbstractApplyTabController_Impl(std::shared_ptr<SfxTabDialogController> p)
307 : AbstractTabController_Impl(std::move(p))
310 DECL_LINK(ApplyHdl, weld::Button&, void);
311 private:
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;
319 public:
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;
332 public:
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;
347 public:
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;
360 public:
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;
371 public:
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;
382 public:
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;
392 //From class Window.
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;
401 public:
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;
415 public:
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;
427 public:
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;
438 //From class Window.
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;
450 public:
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;
470 public:
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;
484 public:
485 explicit AbstractSwModalRedlineAcceptDlg_Impl(std::unique_ptr<SwModalRedlineAcceptDlg> p)
486 : m_xDlg(std::move(p))
489 virtual short Execute() override;
492 class SwGlossaryDlg;
493 class AbstractGlossaryDlg_Impl : public AbstractGlossaryDlg
495 std::unique_ptr<SwGlossaryDlg> m_xDlg;
496 public:
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;
510 public:
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;
525 public:
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;
534 //from class Window
535 virtual void SetHelpId( const OUString& sHelpId ) override;
536 virtual void SetText( const OUString& rStr ) override;
539 class SwInsTableDlg;
540 class AbstractInsTableDlg_Impl : public AbstractInsTableDlg
542 protected:
543 std::shared_ptr<weld::DialogController> m_xDlg;
544 public:
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;
559 public:
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;
576 public:
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;
598 public:
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;
611 public:
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
623 protected:
624 std::shared_ptr<SwMultiTOXTabDialog> m_xDlg;
625 public:
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;
634 //from SfxTabDialog
635 virtual const SfxItemSet* GetOutputItemSet() const override;
638 class SwEditRegionDlg;
639 class AbstractEditRegionDlg_Impl : public AbstractEditRegionDlg
641 std::shared_ptr<SwEditRegionDlg> m_xDlg;
642 public:
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;
655 public:
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;
669 public:
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;
683 public:
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;
698 public:
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
716 public:
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,
760 SwView& rVw,
761 const SfxItemSet& rCoreSet,
762 bool bDraw,
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,
800 bool bNew) override;
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,
829 SwWrtShell &rShell,
830 SwTOXBase* pCurTOX,
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;
853 // For TabPage
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;
861 #endif
863 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */