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 .
20 #include <config_features.h>
21 #include <config_fuzzers.h>
22 #include <config_wasm_strip.h>
24 #include "swdlgfact.hxx"
25 #include <svl/style.hxx>
26 #include <globals.hrc>
28 #include <wordcountdialog.hxx>
29 #include <abstract.hxx>
30 #include <addrdlg.hxx>
31 #include <ascfldlg.hxx>
32 #include <bookmark.hxx>
34 #include <changedb.hxx>
37 #include <contentcontroldlg.hxx>
38 #include <contentcontrollistitemdlg.hxx>
39 #include <pagenumberdlg.hxx>
40 #include <convert.hxx>
42 #include <dbinsdlg.hxx>
43 #include <docfnote.hxx>
44 #include <docstdlg.hxx>
45 #include <DateFormFieldDialog.hxx>
46 #include <DropDownFieldDialog.hxx>
47 #include <DropDownFormFieldDialog.hxx>
51 #include <swuipardlg.hxx>
52 #include <pattern.hxx>
55 #include <selglos.hxx>
56 #include <splittbl.hxx>
58 #include <tautofmt.hxx>
59 #include <tblnumfm.hxx>
61 #include <tabledlg.hxx>
62 #include <fldtdlg.hxx>
64 #include <swrenamexnameddlg.hxx>
65 #include <swmodalredlineacceptdlg.hxx>
68 #include <glossary.hxx>
70 #include <insfnote.hxx>
71 #include <instable.hxx>
72 #include <javaedit.hxx>
73 #include <linenum.hxx>
74 #include <titlepage.hxx>
75 #include <mailmrge.hxx>
76 #include <mergetbl.hxx>
77 #include <multmrk.hxx>
79 #include <outline.hxx>
82 #include <swuicnttab.hxx>
83 #include <regionsw.hxx>
84 #include <optcomp.hxx>
85 #include <optload.hxx>
86 #include <optpage.hxx>
87 #include <swuiidxmrk.hxx>
88 #include <svx/dialogs.hrc>
89 #include <mailmergewizard.hxx>
90 #include <mailconfigpage.hxx>
91 #include <uiborder.hxx>
92 #include <mmresultdialogs.hxx>
93 #include <formatlinebreak.hxx>
94 #include <translatelangselect.hxx>
96 using namespace ::com::sun::star
;
97 using namespace css::frame
;
98 using namespace css::uno
;
100 short AbstractSwWordCountFloatDlg_Impl::Execute()
102 return m_xDlg
->run();
105 short AbstractSwInsertAbstractDlg_Impl::Execute()
107 return m_xDlg
->run();
110 short SwAbstractSfxController_Impl::Execute()
112 return m_xDlg
->run();
115 short AbstractNumFormatDlg_Impl::Execute()
117 return m_xDlg
->run();
120 bool AbstractNumFormatDlg_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
122 return SfxSingleTabDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
125 short AbstractSwAsciiFilterDlg_Impl::Execute()
127 return m_xDlg
->run();
130 short AbstractSplitTableDialog_Impl::Execute()
132 return m_xDlg
->run();
135 bool AbstractSplitTableDialog_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
137 return weld::GenericDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
140 short AbstractSwTableWidthDlg_Impl::Execute()
142 return m_xDlg
->run();
145 short AbstractSwTableHeightDlg_Impl::Execute()
147 return m_xDlg
->run();
150 short AbstractSwMergeTableDlg_Impl::Execute()
152 return m_xDlg
->run();
155 short AbstractSwPageNumberDlg_Impl::Execute()
157 return m_xDlg
->run();
160 bool AbstractSwPageNumberDlg_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
162 return weld::GenericDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
165 short AbstractGenericDialog_Impl::Execute()
167 return m_xDlg
->run();
170 bool AbstractGenericDialog_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
172 return weld::GenericDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
175 short AbstractSwSortDlg_Impl::Execute()
177 return m_xDlg
->run();
180 short AbstractMultiTOXMarkDlg_Impl::Execute()
182 return m_xDlg
->run();
185 short AbstractTabController_Impl::Execute()
187 return m_xDlg
->run();
190 short AbstractSwConvertTableDlg_Impl::Execute()
192 return m_xDlg
->run();
195 short AbstractSwInsertDBColAutoPilot_Impl::Execute()
197 return m_xDlg
->run();
200 short AbstractDropDownFieldDialog_Impl::Execute()
202 return m_xDlg
->run();
205 short AbstractDropDownFormFieldDialog_Impl::Execute()
207 return m_xDlg
->run();
210 short AbstractDateFormFieldDialog_Impl::Execute()
212 return m_xDlg
->run();
215 short AbstractSwLabDlg_Impl::Execute()
217 return m_xDlg
->run();
220 short AbstractSwSelGlossaryDlg_Impl::Execute()
222 return m_xDlg
->run();
225 short AbstractSwAutoFormatDlg_Impl::Execute()
227 return m_xDlg
->run();
230 short AbstractSwFieldDlg_Impl::Execute()
232 return m_xDlg
->run();
235 short AbstractSwRenameXNamedDlg_Impl::Execute()
237 return m_xDlg
->run();
240 bool AbstractSwContentControlListItemDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext
& rCtx
)
242 return weld::DialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
245 short AbstractSwContentControlListItemDlg_Impl::Execute()
247 return m_xDlg
->run();
250 short AbstractSwModalRedlineAcceptDlg_Impl::Execute()
252 return m_xDlg
->run();
255 short AbstractGlossaryDlg_Impl::Execute()
257 return m_xDlg
->run();
260 short AbstractFieldInputDlg_Impl::Execute()
262 return m_xDlg
->run();
265 short AbstractInsFootNoteDlg_Impl::Execute()
267 return m_xDlg
->run();
270 short AbstractJavaEditDialog_Impl::Execute()
272 return m_xDlg
->run();
275 short AbstractMailMergeDlg_Impl::Execute()
277 return m_xDlg
->run();
280 short AbstractMailMergeCreateFromDlg_Impl::Execute()
282 return m_xDlg
->run();
285 short AbstractMailMergeFieldConnectionsDlg_Impl::Execute()
287 return m_xDlg
->run();
290 short AbstractMultiTOXTabDialog_Impl::Execute()
292 return m_xDlg
->run();
295 bool AbstractMultiTOXTabDialog_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
297 return SfxTabDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
300 short AbstractEditRegionDlg_Impl::Execute()
302 return m_xDlg
->run();
305 short AbstractInsertSectionTabDialog_Impl::Execute()
307 return m_xDlg
->run();
310 bool AbstractInsertSectionTabDialog_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
312 return SfxTabDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
315 short AbstractIndexMarkFloatDlg_Impl::Execute()
317 return m_xDlg
->run();
320 short AbstractAuthMarkFloatDlg_Impl::Execute()
322 return m_xDlg
->run();
325 void AbstractTabController_Impl::SetCurPageId( const OUString
&rName
)
327 m_xDlg
->SetCurPageId( rName
);
330 const SfxItemSet
* AbstractTabController_Impl::GetOutputItemSet() const
332 return m_xDlg
->GetOutputItemSet();
335 WhichRangesContainer
AbstractTabController_Impl::GetInputRanges(const SfxItemPool
& pItem
)
337 return m_xDlg
->GetInputRanges( pItem
);
340 void AbstractTabController_Impl::SetInputSet( const SfxItemSet
* pInSet
)
342 m_xDlg
->SetInputSet( pInSet
);
345 bool AbstractTabController_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
347 return SfxTabDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
351 void AbstractTabController_Impl::SetText( const OUString
& rStr
)
353 m_xDlg
->set_title(rStr
);
356 IMPL_LINK_NOARG(AbstractApplyTabController_Impl
, ApplyHdl
, weld::Button
&, void)
360 m_aHandler
.Call(nullptr);
365 void AbstractApplyTabController_Impl::SetApplyHdl( const Link
<LinkParamNone
*,void>& rLink
)
368 m_xDlg
->SetApplyHandler(LINK(this, AbstractApplyTabController_Impl
, ApplyHdl
));
371 sal_uInt8
AbstractSwInsertAbstractDlg_Impl::GetLevel() const
373 return m_xDlg
->GetLevel();
376 sal_uInt8
AbstractSwInsertAbstractDlg_Impl::GetPara() const
378 return m_xDlg
->GetPara();
381 const SfxItemSet
* SwAbstractSfxController_Impl::GetOutputItemSet() const
383 return m_xDlg
->GetOutputItemSet();
386 const SfxItemSet
* AbstractNumFormatDlg_Impl::GetOutputItemSet() const
388 return m_xDlg
->GetOutputItemSet();
391 void SwAbstractSfxController_Impl::SetText(const OUString
& rStr
)
393 m_xDlg
->set_title(rStr
);
396 void AbstractNumFormatDlg_Impl::SetText(const OUString
& rStr
)
398 m_xDlg
->set_title(rStr
);
401 void AbstractSwAsciiFilterDlg_Impl::FillOptions( SwAsciiOptions
& rOptions
)
403 m_xDlg
->FillOptions(rOptions
);
406 SplitTable_HeadlineOption
AbstractSplitTableDialog_Impl::GetSplitMode()
408 return m_xDlg
->GetSplitMode();
411 OUString
AbstractSwBreakDlg_Impl::GetTemplateName()
413 SwBreakDlg
* pDlg
= dynamic_cast<SwBreakDlg
*>(m_xDlg
.get());
415 return pDlg
->GetTemplateName();
420 sal_uInt16
AbstractSwBreakDlg_Impl:: GetKind()
422 SwBreakDlg
* pDlg
= dynamic_cast<SwBreakDlg
*>(m_xDlg
.get());
424 return pDlg
->GetKind();
429 ::std::optional
<sal_uInt16
> AbstractSwBreakDlg_Impl:: GetPageNumber()
431 SwBreakDlg
* pDlg
= dynamic_cast<SwBreakDlg
*>(m_xDlg
.get());
433 return pDlg
->GetPageNumber();
438 std::optional
<SwLineBreakClear
> AbstractSwBreakDlg_Impl::GetClear()
440 SwBreakDlg
* pDlg
= dynamic_cast<SwBreakDlg
*>(m_xDlg
.get());
442 return pDlg
->GetClear();
444 return SwLineBreakClear::NONE
;
447 void AbstractSwConvertTableDlg_Impl::GetValues( sal_Unicode
& rDelim
,SwInsertTableOptions
& rInsTableFlags
,
448 SwTableAutoFormat
const*& prTAFormat
)
450 m_xDlg
->GetValues(rDelim
,rInsTableFlags
, prTAFormat
);
453 void AbstractSwInsertDBColAutoPilot_Impl::DataToDoc( const uno::Sequence
< uno::Any
>& rSelection
,
454 uno::Reference
< sdbc::XDataSource
> rxSource
,
455 uno::Reference
< sdbc::XConnection
> xConnection
,
456 uno::Reference
< sdbc::XResultSet
> xResultSet
)
458 #if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
459 m_xDlg
->DataToDoc(rSelection
, rxSource
, xConnection
, xResultSet
);
468 bool AbstractDropDownFieldDialog_Impl::PrevButtonPressed() const
470 return m_xDlg
->PrevButtonPressed();
473 bool AbstractDropDownFieldDialog_Impl::NextButtonPressed() const
475 return m_xDlg
->NextButtonPressed();
478 void AbstractSwLabDlg_Impl::SetCurPageId( const OUString
&rName
)
480 m_xDlg
->SetCurPageId( rName
);
483 const SfxItemSet
* AbstractSwLabDlg_Impl::GetOutputItemSet() const
485 return m_xDlg
->GetOutputItemSet();
488 WhichRangesContainer
AbstractSwLabDlg_Impl::GetInputRanges(const SfxItemPool
& pItem
)
490 return m_xDlg
->GetInputRanges( pItem
);
493 void AbstractSwLabDlg_Impl::SetInputSet( const SfxItemSet
* pInSet
)
495 m_xDlg
->SetInputSet( pInSet
);
498 void AbstractSwLabDlg_Impl::SetText( const OUString
& rStr
)
500 m_xDlg
->set_title(rStr
);
503 const OUString
& AbstractSwLabDlg_Impl::GetBusinessCardStr() const
505 return m_xDlg
->GetBusinessCardStr();
508 Printer
* AbstractSwLabDlg_Impl::GetPrt()
510 return m_xDlg
->GetPrt();
513 void AbstractSwSelGlossaryDlg_Impl::InsertGlos(const OUString
&rRegion
, const OUString
&rGlosName
)
515 m_xDlg
->InsertGlos( rRegion
, rGlosName
);
518 sal_Int32
AbstractSwSelGlossaryDlg_Impl::GetSelectedIdx() const
520 return m_xDlg
->GetSelectedIdx();
523 void AbstractSwSelGlossaryDlg_Impl::SelectEntryPos(sal_Int32 nIdx
)
525 m_xDlg
->SelectEntryPos( nIdx
);
528 std::unique_ptr
<SwTableAutoFormat
> AbstractSwAutoFormatDlg_Impl::FillAutoFormatOfIndex() const
530 return m_xDlg
->FillAutoFormatOfIndex();
533 void AbstractSwFieldDlg_Impl::SetCurPageId( const OUString
&rName
)
535 m_xDlg
->SetCurPageId( rName
);
538 const SfxItemSet
* AbstractSwFieldDlg_Impl::GetOutputItemSet() const
540 return m_xDlg
->GetOutputItemSet();
543 WhichRangesContainer
AbstractSwFieldDlg_Impl::GetInputRanges(const SfxItemPool
& pItem
)
545 return m_xDlg
->GetInputRanges( pItem
);
548 void AbstractSwFieldDlg_Impl::SetInputSet( const SfxItemSet
* pInSet
)
550 m_xDlg
->SetInputSet( pInSet
);
553 void AbstractSwFieldDlg_Impl::SetText( const OUString
& rStr
)
555 m_xDlg
->set_title(rStr
);
558 bool AbstractSwFieldDlg_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
561 return SfxTabDialogController::runAsync(m_xDlg
, [=](sal_Int32 nResult
){
564 rCtx
.maEndDialogFn(nResult
);
568 void AbstractSwFieldDlg_Impl::Initialize(SfxChildWinInfo
*pInfo
)
570 m_xDlg
->Initialize( pInfo
);
573 void AbstractSwFieldDlg_Impl::ReInitDlg()
578 void AbstractSwFieldDlg_Impl::ActivateDatabasePage()
580 m_xDlg
->ActivateDatabasePage();
583 void AbstractSwFieldDlg_Impl::ShowReferencePage()
585 m_xDlg
->ShowReferencePage();
588 std::shared_ptr
<SfxDialogController
> AbstractSwFieldDlg_Impl::GetController()
593 void AbstractSwRenameXNamedDlg_Impl::SetForbiddenChars( const OUString
& rSet
)
595 m_xDlg
->SetForbiddenChars( rSet
);
598 void AbstractSwRenameXNamedDlg_Impl::SetAlternativeAccess(
599 css::uno::Reference
< css::container::XNameAccess
> & xSecond
,
600 css::uno::Reference
< css::container::XNameAccess
> & xThird
)
602 m_xDlg
->SetAlternativeAccess( xSecond
, xThird
);
605 OUString
AbstractGlossaryDlg_Impl::GetCurrGrpName() const
607 return m_xDlg
->GetCurrGrpName();
610 OUString
AbstractGlossaryDlg_Impl::GetCurrShortName() const
612 return m_xDlg
->GetCurrShortName();
615 void AbstractFieldInputDlg_Impl::EndDialog(sal_Int32 n
)
620 bool AbstractFieldInputDlg_Impl::PrevButtonPressed() const
622 return m_xDlg
->PrevButtonPressed();
625 bool AbstractFieldInputDlg_Impl::NextButtonPressed() const
627 return m_xDlg
->NextButtonPressed();
630 OUString
AbstractInsFootNoteDlg_Impl::GetFontName()
632 return m_xDlg
->GetFontName();
635 int AbstractSwPageNumberDlg_Impl::GetPageNumberPosition() const
637 return m_xDlg
->GetPageNumberPosition();
640 int AbstractSwPageNumberDlg_Impl::GetPageNumberAlignment() const
642 return m_xDlg
->GetPageNumberAlignment();
645 bool AbstractSwPageNumberDlg_Impl::GetMirrorOnEvenPages() const
647 return m_xDlg
->GetMirrorOnEvenPages();
650 bool AbstractSwPageNumberDlg_Impl::GetIncludePageTotal() const
652 return m_xDlg
->GetIncludePageTotal();
655 SvxNumType
AbstractSwPageNumberDlg_Impl::GetPageNumberType() const
657 return m_xDlg
->GetPageNumberType();
660 void AbstractSwPageNumberDlg_Impl::SetPageNumberType(SvxNumType nSet
)
662 m_xDlg
->SetPageNumberType(nSet
);
665 bool AbstractInsFootNoteDlg_Impl::IsEndNote()
667 return m_xDlg
->IsEndNote();
670 OUString
AbstractInsFootNoteDlg_Impl::GetStr()
672 return m_xDlg
->GetStr();
675 void AbstractInsFootNoteDlg_Impl::SetHelpId(const OUString
& rHelpId
)
677 m_xDlg
->set_help_id(rHelpId
);
680 void AbstractInsFootNoteDlg_Impl::SetText( const OUString
& rStr
)
682 m_xDlg
->set_title(rStr
);
685 void AbstractInsTableDlg_Impl::GetValues( OUString
& rName
, sal_uInt16
& rRow
, sal_uInt16
& rCol
,
686 SwInsertTableOptions
& rInsTableFlags
, OUString
& rTableAutoFormatName
,
687 std::unique_ptr
<SwTableAutoFormat
>& prTAFormat
)
689 SwInsTableDlg
* pDlg
= dynamic_cast<SwInsTableDlg
*>(m_xDlg
.get());
691 pDlg
->GetValues(rName
, rRow
, rCol
, rInsTableFlags
, rTableAutoFormatName
, prTAFormat
);
694 OUString
AbstractJavaEditDialog_Impl::GetScriptText() const
696 return m_xDlg
->GetScriptText();
699 OUString
AbstractJavaEditDialog_Impl::GetScriptType() const
701 return m_xDlg
->GetScriptType();
704 bool AbstractJavaEditDialog_Impl::IsUrl() const
706 return m_xDlg
->IsUrl();
709 bool AbstractJavaEditDialog_Impl::IsNew() const
711 return m_xDlg
->IsNew();
714 bool AbstractJavaEditDialog_Impl::IsUpdate() const
716 return m_xDlg
->IsUpdate();
719 DBManagerOptions
AbstractMailMergeDlg_Impl::GetMergeType()
721 return m_xDlg
->GetMergeType();
724 const OUString
& AbstractMailMergeDlg_Impl::GetSaveFilter() const
726 return m_xDlg
->GetSaveFilter();
729 css::uno::Sequence
< css::uno::Any
> AbstractMailMergeDlg_Impl::GetSelection() const
731 return m_xDlg
->GetSelection();
734 uno::Reference
< sdbc::XResultSet
> AbstractMailMergeDlg_Impl::GetResultSet() const
736 return m_xDlg
->GetResultSet();
739 bool AbstractMailMergeDlg_Impl::IsSaveSingleDoc() const
741 return m_xDlg
->IsSaveSingleDoc();
744 bool AbstractMailMergeDlg_Impl::IsGenerateFromDataBase() const
746 return m_xDlg
->IsGenerateFromDataBase();
749 bool AbstractMailMergeDlg_Impl::IsFileEncryptedFromDataBase() const
751 return m_xDlg
->IsFileEncryptedFromDataBase();
754 OUString
AbstractMailMergeDlg_Impl::GetColumnName() const
756 return m_xDlg
->GetColumnName();
759 OUString
AbstractMailMergeDlg_Impl::GetPasswordColumnName() const
761 return m_xDlg
->GetPasswordColumnName();
764 OUString
AbstractMailMergeDlg_Impl::GetTargetURL() const
766 return m_xDlg
->GetTargetURL();
769 bool AbstractMailMergeCreateFromDlg_Impl::IsThisDocument() const
771 return m_xDlg
->IsThisDocument();
774 bool AbstractMailMergeFieldConnectionsDlg_Impl::IsUseExistingConnections() const
776 return m_xDlg
->IsUseExistingConnections();
779 CurTOXType
AbstractMultiTOXTabDialog_Impl::GetCurrentTOXType() const
781 return m_xDlg
->GetCurrentTOXType();
784 SwTOXDescription
& AbstractMultiTOXTabDialog_Impl::GetTOXDescription(CurTOXType eTOXTypes
)
786 return m_xDlg
->GetTOXDescription(eTOXTypes
);
789 const SfxItemSet
* AbstractMultiTOXTabDialog_Impl::GetOutputItemSet() const
791 return m_xDlg
->GetOutputItemSet();
794 void AbstractEditRegionDlg_Impl::SelectSection(const OUString
& rSectionName
)
796 m_xDlg
->SelectSection(rSectionName
);
800 AbstractInsertSectionTabDialog_Impl::SetSectionData(SwSectionData
const& rSect
)
802 m_xDlg
->SetSectionData(rSect
);
805 void AbstractIndexMarkFloatDlg_Impl::ReInitDlg(SwWrtShell
& rWrtShell
)
807 m_xDlg
->ReInitDlg( rWrtShell
);
810 std::shared_ptr
<SfxDialogController
> AbstractIndexMarkFloatDlg_Impl::GetController()
815 void AbstractAuthMarkFloatDlg_Impl::ReInitDlg(SwWrtShell
& rWrtShell
)
817 m_xDlg
->ReInitDlg(rWrtShell
);
820 std::shared_ptr
<SfxDialogController
> AbstractAuthMarkFloatDlg_Impl::GetController()
825 std::shared_ptr
<SfxDialogController
> AbstractSwWordCountFloatDlg_Impl::GetController()
830 void AbstractSwWordCountFloatDlg_Impl::UpdateCounts()
832 m_xDlg
->UpdateCounts();
835 void AbstractSwWordCountFloatDlg_Impl::SetCounts(const SwDocStat
&rCurrCnt
, const SwDocStat
&rDocStat
)
837 m_xDlg
->SetCounts(rCurrCnt
, rDocStat
);
840 AbstractMailMergeWizard_Impl::~AbstractMailMergeWizard_Impl()
844 bool AbstractMailMergeWizard_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
846 // SwMailMergeWizardExecutor wants to run the lifecycle of this dialog
847 // so clear mxOwner here and leave it up to SwMailMergeWizardExecutor
848 rCtx
.mxOwner
.clear();
849 return weld::GenericDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
852 short AbstractMailMergeWizard_Impl::Execute()
854 return m_xDlg
->run();
857 OUString
AbstractMailMergeWizard_Impl::GetReloadDocument() const
859 return m_xDlg
->GetReloadDocument();
862 void AbstractMailMergeWizard_Impl::ShowPage( sal_uInt16 nLevel
)
864 m_xDlg
->skipUntil(nLevel
);
867 sal_uInt16
AbstractMailMergeWizard_Impl::GetRestartPage() const
869 return m_xDlg
->GetRestartPage();
872 std::optional
<SwLanguageListItem
> AbstractSwTranslateLangSelectDlg_Impl::GetSelectedLanguage()
874 #if !ENABLE_WASM_STRIP_EXTRA
875 return SwTranslateLangSelectDlg::GetSelectedLanguage();
881 VclPtr
<AbstractSwInsertAbstractDlg
> SwAbstractDialogFactory_Impl::CreateSwInsertAbstractDlg(weld::Window
* pParent
)
883 return VclPtr
<AbstractSwInsertAbstractDlg_Impl
>::Create(std::make_unique
<SwInsertAbstractDlg
>(pParent
));
886 VclPtr
<SfxAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwAddressAbstractDlg(weld::Window
* pParent
,
887 const SfxItemSet
& rSet
)
889 return VclPtr
<SwAbstractSfxController_Impl
>::Create(std::make_unique
<SwAddrDlg
>(pParent
, rSet
));
892 VclPtr
<SfxAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwDropCapsDialog(weld::Window
* pParent
,
893 const SfxItemSet
& rSet
)
895 return VclPtr
<SwAbstractSfxController_Impl
>::Create(std::make_unique
<SwDropCapsDlg
>(pParent
, rSet
));
898 VclPtr
<SfxAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwBackgroundDialog(weld::Window
* pParent
,
899 const SfxItemSet
& rSet
)
901 return VclPtr
<SwAbstractSfxController_Impl
>::Create(std::make_unique
<SwBackgroundDlg
>(pParent
, rSet
));
904 VclPtr
<SfxAbstractDialog
> SwAbstractDialogFactory_Impl::CreateNumFormatDialog(weld::Widget
* pParent
, const SfxItemSet
& rSet
)
906 return VclPtr
<AbstractNumFormatDlg_Impl
>::Create(std::make_shared
<SwNumFormatDlg
>(pParent
, rSet
));
909 VclPtr
<AbstractSwAsciiFilterDlg
> SwAbstractDialogFactory_Impl::CreateSwAsciiFilterDlg(weld::Window
* pParent
,
910 SwDocShell
& rDocSh
, SvStream
* pStream
)
912 return VclPtr
<AbstractSwAsciiFilterDlg_Impl
>::Create(std::make_unique
<SwAsciiFilterDlg
>(pParent
, rDocSh
, pStream
));
915 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwInsertBookmarkDlg(weld::Window
*pParent
,
916 SwWrtShell
&rSh
, OUString
const*const pSelected
)
918 return VclPtr
<AbstractGenericDialog_Impl
>::Create(std::make_shared
<SwInsertBookmarkDlg
>(pParent
, rSh
, pSelected
));
921 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwContentControlDlg(weld::Window
* pParent
,
924 return VclPtr
<AbstractGenericDialog_Impl
>::Create(std::make_shared
<SwContentControlDlg
>(pParent
, rSh
));
927 VclPtr
<AbstractSwContentControlListItemDlg
>
928 SwAbstractDialogFactory_Impl::CreateSwContentControlListItemDlg(weld::Window
* pParent
,
929 SwContentControlListItem
& rItem
)
931 return VclPtr
<AbstractSwContentControlListItemDlg_Impl
>::Create(
932 std::make_shared
<SwContentControlListItemDlg
>(pParent
, rItem
));
935 std::shared_ptr
<AbstractSwBreakDlg
> SwAbstractDialogFactory_Impl::CreateSwBreakDlg(weld::Window
* pParent
, SwWrtShell
&rSh
)
937 return std::make_shared
<AbstractSwBreakDlg_Impl
>(std::make_unique
<SwBreakDlg
>(pParent
, rSh
));
940 std::shared_ptr
<AbstractSwTranslateLangSelectDlg
> SwAbstractDialogFactory_Impl::CreateSwTranslateLangSelectDlg(weld::Window
* pParent
, SwWrtShell
&rSh
)
942 #if !ENABLE_WASM_STRIP_EXTRA
943 return std::make_shared
<AbstractSwTranslateLangSelectDlg_Impl
>(std::make_unique
<SwTranslateLangSelectDlg
>(pParent
, rSh
));
951 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwChangeDBDlg(SwView
& rVw
)
953 #if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
954 return VclPtr
<AbstractGenericDialog_Impl
>::Create(std::make_shared
<SwChangeDBDlg
>(rVw
));
961 VclPtr
<SfxAbstractTabDialog
> SwAbstractDialogFactory_Impl::CreateSwCharDlg(weld::Window
* pParent
, SwView
& pVw
,
962 const SfxItemSet
& rCoreSet
, SwCharDlgMode nDialogMode
, const OUString
* pFormatStr
)
964 return VclPtr
<AbstractTabController_Impl
>::Create(std::make_shared
<SwCharDlg
>(pParent
, pVw
, rCoreSet
, nDialogMode
, pFormatStr
));
967 VclPtr
<AbstractSwConvertTableDlg
> SwAbstractDialogFactory_Impl::CreateSwConvertTableDlg(SwView
& rView
, bool bToTable
)
969 return VclPtr
<AbstractSwConvertTableDlg_Impl
>::Create(std::make_unique
<SwConvertTableDlg
>(rView
, bToTable
));
972 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwCaptionDialog(weld::Window
*pParent
, SwView
&rV
)
974 return VclPtr
<AbstractGenericDialog_Impl
>::Create(std::make_shared
<SwCaptionDialog
>(pParent
, rV
));
977 VclPtr
<AbstractSwInsertDBColAutoPilot
> SwAbstractDialogFactory_Impl::CreateSwInsertDBColAutoPilot( SwView
& rView
,
978 uno::Reference
< sdbc::XDataSource
> rxSource
,
979 uno::Reference
<sdbcx::XColumnsSupplier
> xColSupp
,
980 const SwDBData
& rData
)
982 #if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
983 return VclPtr
<AbstractSwInsertDBColAutoPilot_Impl
>::Create(std::make_unique
<SwInsertDBColAutoPilot
>(rView
, rxSource
, xColSupp
, rData
));
993 VclPtr
<SfxAbstractTabDialog
> SwAbstractDialogFactory_Impl::CreateSwFootNoteOptionDlg(weld::Window
*pParent
, SwWrtShell
&rSh
)
995 return VclPtr
<AbstractTabController_Impl
>::Create(std::make_shared
<SwFootNoteOptionDlg
>(pParent
, rSh
));
998 VclPtr
<AbstractDropDownFieldDialog
> SwAbstractDialogFactory_Impl::CreateDropDownFieldDialog(weld::Widget
*pParent
,
999 SwWrtShell
&rSh
, SwField
* pField
, bool bPrevButton
, bool bNextButton
)
1001 return VclPtr
<AbstractDropDownFieldDialog_Impl
>::Create(std::make_unique
<sw::DropDownFieldDialog
>(pParent
, rSh
, pField
, bPrevButton
, bNextButton
));
1004 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateDropDownFormFieldDialog(weld::Widget
*pParent
, sw::mark::IFieldmark
* pDropDownField
)
1006 return VclPtr
<AbstractDropDownFormFieldDialog_Impl
>::Create(std::make_unique
<sw::DropDownFormFieldDialog
>(pParent
, pDropDownField
));
1009 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateDateFormFieldDialog(weld::Widget
*pParent
, sw::mark::IDateFieldmark
* pDateField
, SwDoc
& rDoc
)
1011 return VclPtr
<AbstractDateFormFieldDialog_Impl
>::Create(std::make_unique
<sw::DateFormFieldDialog
>(pParent
, pDateField
, rDoc
));
1014 VclPtr
<SfxAbstractTabDialog
> SwAbstractDialogFactory_Impl::CreateSwEnvDlg(weld::Window
* pParent
, const SfxItemSet
& rSet
,
1015 SwWrtShell
* pWrtSh
, Printer
* pPrt
,
1018 return VclPtr
<AbstractTabController_Impl
>::Create(std::make_shared
<SwEnvDlg
>(pParent
, rSet
, pWrtSh
,pPrt
, bInsert
));
1021 VclPtr
<AbstractSwLabDlg
> SwAbstractDialogFactory_Impl::CreateSwLabDlg(weld::Window
* pParent
, const SfxItemSet
& rSet
,
1022 SwDBManager
* pDBManager
, bool bLabel
)
1024 return VclPtr
<AbstractSwLabDlg_Impl
>::Create(std::make_unique
<SwLabDlg
>(pParent
, rSet
, pDBManager
, bLabel
));
1027 SwLabDlgMethod
SwAbstractDialogFactory_Impl::GetSwLabDlgStaticMethod ()
1029 return SwLabDlg::UpdateFieldInformation
;
1032 VclPtr
<SfxAbstractTabDialog
> SwAbstractDialogFactory_Impl::CreateSwParaDlg(weld::Window
*pParent
, SwView
& rVw
,
1033 const SfxItemSet
& rCoreSet
,
1035 const OUString
& sDefPage
)
1037 return VclPtr
<AbstractTabController_Impl
>::Create(std::make_shared
<SwParaDlg
>(pParent
, rVw
, rCoreSet
, DLG_STD
, nullptr, bDraw
, sDefPage
));
1040 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwAutoMarkDialog(weld::Window
*pParent
, SwWrtShell
&rSh
)
1042 return VclPtr
<AbstractGenericDialog_Impl
>::Create(std::make_shared
<SwAuthMarkModalDlg
>(pParent
, rSh
));
1045 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwColumnDialog(weld::Window
*pParent
, SwWrtShell
&rSh
)
1047 return VclPtr
<AbstractGenericDialog_Impl
>::Create(std::make_shared
<SwColumnDlg
>(pParent
, rSh
));
1050 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwTableHeightDialog(weld::Window
*pParent
, SwWrtShell
&rSh
)
1052 return VclPtr
<AbstractSwTableHeightDlg_Impl
>::Create(std::make_unique
<SwTableHeightDlg
>(pParent
, rSh
));
1055 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwSortingDialog(weld::Window
*pParent
, SwWrtShell
&rSh
)
1057 return VclPtr
<AbstractSwSortDlg_Impl
>::Create(std::make_unique
<SwSortDlg
>(pParent
, rSh
));
1060 VclPtr
<AbstractSplitTableDialog
> SwAbstractDialogFactory_Impl::CreateSplitTableDialog(weld::Window
*pParent
, SwWrtShell
&rSh
)
1062 return VclPtr
<AbstractSplitTableDialog_Impl
>::Create(std::make_shared
<SwSplitTableDlg
>(pParent
, rSh
));
1065 VclPtr
<AbstractSwSelGlossaryDlg
> SwAbstractDialogFactory_Impl::CreateSwSelGlossaryDlg(weld::Window
*pParent
, const OUString
&rShortName
)
1067 return VclPtr
<AbstractSwSelGlossaryDlg_Impl
>::Create(std::make_unique
<SwSelGlossaryDlg
>(pParent
, rShortName
));
1070 VclPtr
<AbstractSwAutoFormatDlg
> SwAbstractDialogFactory_Impl::CreateSwAutoFormatDlg(weld::Window
* pParent
,
1071 SwWrtShell
* pShell
, bool bSetAutoFormat
, const SwTableAutoFormat
* pSelFormat
)
1073 return VclPtr
<AbstractSwAutoFormatDlg_Impl
>::Create(
1074 std::unique_ptr
<SwAutoFormatDlg
, o3tl::default_delete
<SwAutoFormatDlg
>>(
1075 new SwAutoFormatDlg(pParent
, pShell
, bSetAutoFormat
, pSelFormat
)));
1078 VclPtr
<SfxAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwBorderDlg(weld::Window
* pParent
, SfxItemSet
& rSet
, SwBorderModes nType
)
1080 return VclPtr
<SwAbstractSfxController_Impl
>::Create(std::make_unique
<SwBorderDlg
>(pParent
, rSet
, nType
));
1083 VclPtr
<SfxAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwWrapDlg(weld::Window
* pParent
, SfxItemSet
& rSet
, SwWrtShell
* pSh
)
1085 return VclPtr
<SwAbstractSfxController_Impl
>::Create(std::make_unique
<SwWrapDlg
>(pParent
, rSet
, pSh
, true/*bDrawMode*/));
1088 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwTableWidthDlg(weld::Window
*pParent
, SwTableFUNC
&rFnc
)
1090 return VclPtr
<AbstractSwTableWidthDlg_Impl
>::Create(std::make_unique
<SwTableWidthDlg
>(pParent
, rFnc
));
1093 VclPtr
<SfxAbstractTabDialog
> SwAbstractDialogFactory_Impl::CreateSwTableTabDlg(weld::Window
* pParent
,
1094 const SfxItemSet
* pItemSet
, SwWrtShell
* pSh
)
1096 return VclPtr
<AbstractTabController_Impl
>::Create(std::make_shared
<SwTableTabDlg
>(pParent
, pItemSet
, pSh
));
1099 VclPtr
<AbstractSwFieldDlg
> SwAbstractDialogFactory_Impl::CreateSwFieldDlg(SfxBindings
* pB
, SwChildWinWrapper
* pCW
, weld::Window
*pParent
)
1101 return VclPtr
<AbstractSwFieldDlg_Impl
>::Create(std::make_shared
<SwFieldDlg
>(pB
, pCW
, pParent
));
1104 VclPtr
<SfxAbstractDialog
> SwAbstractDialogFactory_Impl::CreateSwFieldEditDlg(SwView
& rVw
)
1106 return VclPtr
<SwAbstractSfxController_Impl
>::Create(std::make_unique
<SwFieldEditDlg
>(rVw
));
1109 VclPtr
<AbstractSwRenameXNamedDlg
> SwAbstractDialogFactory_Impl::CreateSwRenameXNamedDlg(weld::Widget
* pParent
,
1110 css::uno::Reference
< css::container::XNamed
> & xNamed
,
1111 css::uno::Reference
< css::container::XNameAccess
> & xNameAccess
)
1113 return VclPtr
<AbstractSwRenameXNamedDlg_Impl
>::Create(std::make_unique
<SwRenameXNamedDlg
>(pParent
,xNamed
, xNameAccess
));
1116 VclPtr
<AbstractSwModalRedlineAcceptDlg
> SwAbstractDialogFactory_Impl::CreateSwModalRedlineAcceptDlg(weld::Window
*pParent
)
1118 return VclPtr
<AbstractSwModalRedlineAcceptDlg_Impl
>::Create(std::make_unique
<SwModalRedlineAcceptDlg
>(pParent
));
1121 VclPtr
<AbstractSwPageNumberDlg
> SwAbstractDialogFactory_Impl::CreateSwPageNumberDlg(weld::Window
*pParent
)
1123 return VclPtr
<AbstractSwPageNumberDlg_Impl
>::Create(std::make_shared
<SwPageNumberDlg
>(pParent
));
1126 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateTableMergeDialog(weld::Window
* pParent
, bool& rWithPrev
)
1128 return VclPtr
<AbstractSwMergeTableDlg_Impl
>::Create(std::make_unique
<SwMergeTableDlg
>(pParent
, rWithPrev
));
1131 VclPtr
<SfxAbstractTabDialog
> SwAbstractDialogFactory_Impl::CreateFrameTabDialog(const OUString
&rDialogType
,
1132 SfxViewFrame
& rFrame
, weld::Window
*pParent
,
1133 const SfxItemSet
& rCoreSet
,
1135 const OUString
& sDefPage
)
1137 return VclPtr
<AbstractTabController_Impl
>::Create(std::make_shared
<SwFrameDlg
>(rFrame
, pParent
, rCoreSet
, bNewFrame
, rDialogType
, false/*bFormat*/, sDefPage
, nullptr));
1140 VclPtr
<SfxAbstractApplyTabDialog
> SwAbstractDialogFactory_Impl::CreateTemplateDialog(
1141 weld::Window
*pParent
,
1142 SfxStyleSheetBase
& rBase
,
1143 SfxStyleFamily nRegion
,
1144 const OUString
& sPage
,
1145 SwWrtShell
* pActShell
,
1148 return VclPtr
<AbstractApplyTabController_Impl
>::Create(std::make_shared
<SwTemplateDlgController
>(pParent
, rBase
, nRegion
,
1149 sPage
, pActShell
, bNew
));
1152 VclPtr
<AbstractGlossaryDlg
> SwAbstractDialogFactory_Impl::CreateGlossaryDlg(SfxViewFrame
& rViewFrame
, SwGlossaryHdl
* pGlosHdl
,
1153 SwWrtShell
*pWrtShell
)
1155 return VclPtr
<AbstractGlossaryDlg_Impl
>::Create(std::make_unique
<SwGlossaryDlg
>(rViewFrame
, pGlosHdl
, pWrtShell
));
1158 VclPtr
<AbstractFieldInputDlg
> SwAbstractDialogFactory_Impl::CreateFieldInputDlg(weld::Widget
*pParent
,
1159 SwWrtShell
&rSh
, SwField
* pField
, bool bPrevButton
, bool bNextButton
)
1161 return VclPtr
<AbstractFieldInputDlg_Impl
>::Create(std::make_unique
<SwFieldInputDlg
>(pParent
, rSh
, pField
, bPrevButton
, bNextButton
));
1164 VclPtr
<AbstractInsFootNoteDlg
> SwAbstractDialogFactory_Impl::CreateInsFootNoteDlg(
1165 weld::Window
* pParent
, SwWrtShell
&rSh
, bool bEd
)
1167 return VclPtr
<AbstractInsFootNoteDlg_Impl
>::Create(std::make_unique
<SwInsFootNoteDlg
>(pParent
, rSh
, bEd
));
1170 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateTitlePageDlg(weld::Window
*pParent
)
1172 return VclPtr
<AbstractGenericDialog_Impl
>::Create(std::make_shared
<SwTitlePageDlg
>(pParent
));
1175 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateVclSwViewDialog(SwView
& rView
)
1177 return VclPtr
<AbstractGenericDialog_Impl
>::Create(std::make_shared
<SwLineNumberingDlg
>(rView
));
1180 std::shared_ptr
<AbstractInsTableDlg
> SwAbstractDialogFactory_Impl::CreateInsTableDlg(SwView
& rView
)
1182 return std::make_shared
<AbstractInsTableDlg_Impl
>(std::make_shared
<SwInsTableDlg
>(rView
));
1185 VclPtr
<AbstractJavaEditDialog
> SwAbstractDialogFactory_Impl::CreateJavaEditDialog(
1186 weld::Window
* pParent
, SwWrtShell
* pWrtSh
)
1188 return VclPtr
<AbstractJavaEditDialog_Impl
>::Create(std::make_unique
<SwJavaEditDialog
>(pParent
, pWrtSh
));
1191 VclPtr
<AbstractMailMergeDlg
> SwAbstractDialogFactory_Impl::CreateMailMergeDlg(
1192 weld::Window
* pParent
, SwWrtShell
& rSh
,
1193 const OUString
& rSourceName
,
1194 const OUString
& rTableName
,
1195 sal_Int32 nCommandType
,
1196 const uno::Reference
< sdbc::XConnection
>& xConnection
)
1198 return VclPtr
<AbstractMailMergeDlg_Impl
>::Create(std::make_unique
<SwMailMergeDlg
>(pParent
, rSh
, rSourceName
, rTableName
, nCommandType
, xConnection
, nullptr));
1201 VclPtr
<AbstractMailMergeCreateFromDlg
> SwAbstractDialogFactory_Impl::CreateMailMergeCreateFromDlg(weld::Window
* pParent
)
1203 return VclPtr
<AbstractMailMergeCreateFromDlg_Impl
>::Create(std::make_unique
<SwMailMergeCreateFromDlg
>(pParent
));
1206 VclPtr
<AbstractMailMergeFieldConnectionsDlg
> SwAbstractDialogFactory_Impl::CreateMailMergeFieldConnectionsDlg(weld::Window
* pParent
)
1208 return VclPtr
<AbstractMailMergeFieldConnectionsDlg_Impl
>::Create(std::make_unique
<SwMailMergeFieldConnectionsDlg
>(pParent
));
1211 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateMultiTOXMarkDlg(weld::Window
* pParent
, SwTOXMgr
&rTOXMgr
)
1213 return VclPtr
<AbstractMultiTOXMarkDlg_Impl
>::Create(std::make_unique
<SwMultiTOXMarkDlg
>(pParent
, rTOXMgr
));
1216 VclPtr
<SfxAbstractTabDialog
> SwAbstractDialogFactory_Impl::CreateSvxNumBulletTabDialog(weld::Window
* pParent
,
1217 const SfxItemSet
* pSwItemSet
,
1218 SwWrtShell
& rWrtSh
)
1220 return VclPtr
<AbstractTabController_Impl
>::Create(std::make_shared
<SwSvxNumBulletTabDialog
>(pParent
, pSwItemSet
, rWrtSh
));
1223 VclPtr
<SfxAbstractTabDialog
> SwAbstractDialogFactory_Impl::CreateOutlineTabDialog(weld::Window
* pParent
,
1224 const SfxItemSet
* pSwItemSet
,
1225 SwWrtShell
& rWrtSh
)
1227 return VclPtr
<AbstractTabController_Impl
>::Create(std::make_shared
<SwOutlineTabDialog
>(pParent
, pSwItemSet
, rWrtSh
));
1230 VclPtr
<AbstractMultiTOXTabDialog
> SwAbstractDialogFactory_Impl::CreateMultiTOXTabDialog(weld::Widget
* pParent
, const SfxItemSet
& rSet
,
1231 SwWrtShell
&rShell
, SwTOXBase
* pCurTOX
, bool bGlobal
)
1233 return VclPtr
<AbstractMultiTOXTabDialog_Impl
>::Create(std::make_shared
<SwMultiTOXTabDialog
>(pParent
, rSet
, rShell
, pCurTOX
, USHRT_MAX
, bGlobal
));
1236 VclPtr
<AbstractEditRegionDlg
> SwAbstractDialogFactory_Impl::CreateEditRegionDlg(weld::Window
* pParent
, SwWrtShell
& rWrtSh
)
1238 return VclPtr
<AbstractEditRegionDlg_Impl
>::Create(std::make_shared
<SwEditRegionDlg
>(pParent
, rWrtSh
));
1241 VclPtr
<AbstractInsertSectionTabDialog
> SwAbstractDialogFactory_Impl::CreateInsertSectionTabDialog(weld::Window
* pParent
,
1242 const SfxItemSet
& rSet
, SwWrtShell
& rSh
)
1244 return VclPtr
<AbstractInsertSectionTabDialog_Impl
>::Create(std::make_shared
<SwInsertSectionTabDialog
>(pParent
, rSet
, rSh
));
1247 VclPtr
<AbstractMarkFloatDlg
> SwAbstractDialogFactory_Impl::CreateIndexMarkFloatDlg(
1248 SfxBindings
* pBindings
,
1249 SfxChildWindow
* pChild
,
1250 weld::Window
*pParent
,
1251 SfxChildWinInfo
* pInfo
)
1253 return VclPtr
<AbstractIndexMarkFloatDlg_Impl
>::Create(std::make_shared
<SwIndexMarkFloatDlg
>(pBindings
, pChild
, pParent
, pInfo
, true/*bNew*/));
1256 VclPtr
<AbstractMarkFloatDlg
> SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg(
1257 SfxBindings
* pBindings
,
1258 SfxChildWindow
* pChild
,
1259 weld::Window
*pParent
,
1260 SfxChildWinInfo
* pInfo
)
1262 return VclPtr
<AbstractAuthMarkFloatDlg_Impl
>::Create(std::make_shared
<SwAuthMarkFloatDlg
>(pBindings
, pChild
, pParent
, pInfo
, true/*bNew*/));
1265 VclPtr
<AbstractSwWordCountFloatDlg
> SwAbstractDialogFactory_Impl::CreateSwWordCountDialog(
1266 SfxBindings
* pBindings
,
1267 SfxChildWindow
* pChild
,
1268 weld::Window
*pParent
,
1269 SfxChildWinInfo
* pInfo
)
1271 return VclPtr
<AbstractSwWordCountFloatDlg_Impl
>::Create(std::make_shared
<SwWordCountFloatDlg
>(pBindings
, pChild
, pParent
, pInfo
));
1274 VclPtr
<VclAbstractDialog
> SwAbstractDialogFactory_Impl::CreateIndexMarkModalDlg(weld::Window
*pParent
, SwWrtShell
& rSh
, SwTOXMark
* pCurTOXMark
)
1276 return VclPtr
<AbstractGenericDialog_Impl
>::Create(std::make_shared
<SwIndexMarkModalDlg
>(pParent
, rSh
, pCurTOXMark
));
1279 VclPtr
<AbstractMailMergeWizard
> SwAbstractDialogFactory_Impl::CreateMailMergeWizard(
1280 SwView
& rView
, std::shared_ptr
<SwMailMergeConfigItem
>& rConfigItem
)
1282 #if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
1283 return VclPtr
<AbstractMailMergeWizard_Impl
>::Create(std::make_shared
<SwMailMergeWizard
>(rView
, rConfigItem
));
1291 GlossaryGetCurrGroup
SwAbstractDialogFactory_Impl::GetGlossaryCurrGroupFunc()
1293 return SwGlossaryDlg::GetCurrGroup
;
1296 GlossarySetActGroup
SwAbstractDialogFactory_Impl::SetGlossaryActGroupFunc()
1298 return SwGlossaryDlg::SetActGroup
;
1301 // Factories for TabPages
1302 CreateTabPage
SwAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId
)
1304 CreateTabPage pRet
= nullptr;
1307 case RID_SW_TP_OPTCOMPATIBILITY_PAGE
:
1308 pRet
= SwCompatibilityOptPage::Create
;
1310 case RID_SW_TP_OPTLOAD_PAGE
:
1311 pRet
= SwLoadOptPage::Create
;
1313 case RID_SW_TP_OPTCAPTION_PAGE
:
1314 return SwCaptionOptPage::Create
;
1315 case RID_SW_TP_CONTENT_OPT
:
1316 case RID_SW_TP_HTML_CONTENT_OPT
:
1317 pRet
= SwContentOptPage::Create
;
1319 case RID_SW_TP_OPTSHDWCRSR
:
1320 case RID_SW_TP_HTML_OPTSHDWCRSR
:
1321 pRet
= SwShdwCursorOptionsTabPage::Create
;
1323 case RID_SW_TP_REDLINE_OPT
:
1324 pRet
= SwRedlineOptionsTabPage::Create
;
1326 case RID_SW_TP_OPTTEST_PAGE
:
1328 pRet
= SwTestTabPage::Create
;
1331 case TP_OPTPRINT_PAGE
:
1332 case RID_SW_TP_HTML_OPTPRINT_PAGE
:
1333 case RID_SW_TP_OPTPRINT_PAGE
:
1334 pRet
= SwAddPrinterTabPage::Create
;
1336 case RID_SW_TP_STD_FONT
:
1337 case RID_SW_TP_STD_FONT_CJK
:
1338 case RID_SW_TP_STD_FONT_CTL
:
1339 pRet
= SwStdFontTabPage::Create
;
1341 case RID_SW_TP_HTML_OPTTABLE_PAGE
:
1342 case RID_SW_TP_OPTTABLE_PAGE
:
1343 pRet
= SwTableOptionsTabPage::Create
;
1345 case RID_SW_TP_DOC_STAT
:
1346 pRet
= SwDocStatPage::Create
;
1348 case RID_SW_TP_MAILCONFIG
:
1349 pRet
= SwMailConfigPage::Create
;
1351 case RID_SW_TP_COMPARISON_OPT
:
1352 pRet
= SwCompareOptionsTabPage::Create
;
1359 void SwAbstractDialogFactory_Impl::ExecuteMMResultSaveDialog(weld::Window
* pParent
)
1361 #if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
1362 SwMMResultSaveDialog
aDialog(pParent
);
1369 void SwAbstractDialogFactory_Impl::ExecuteMMResultPrintDialog(weld::Window
* pParent
)
1371 #if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
1372 SwMMResultPrintDialog
aDialog(pParent
);
1379 void SwAbstractDialogFactory_Impl::ExecuteMMResultEmailDialog(weld::Window
* pParent
)
1381 #if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
1382 SwMMResultEmailDialog
aDialog(pParent
);
1389 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */