Update git submodules
[LibreOffice.git] / sc / source / ui / attrdlg / scdlgfact.cxx
blobc088322f01a2c8e101e3b814b34df5865a8a0da4
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 .
20 #undef SC_DLLIMPLEMENTATION
22 #include "scdlgfact.hxx"
24 #include <scuiasciiopt.hxx>
25 #include <scuiautofmt.hxx>
26 #include <corodlg.hxx>
27 #include <dapidata.hxx>
28 #include <dapitype.hxx>
29 #include <delcldlg.hxx>
30 #include <delcodlg.hxx>
31 #include <filldlg.hxx>
32 #include <groupdlg.hxx>
33 #include <inscldlg.hxx>
34 #include <inscodlg.hxx>
35 #include <instbdlg.hxx>
36 #include <lbseldlg.hxx>
37 #include <linkarea.hxx>
38 #include <mtrindlg.hxx>
39 #include <mvtabdlg.hxx>
40 #include <namecrea.hxx>
41 #include <namepast.hxx>
42 #include <pfiltdlg.hxx>
43 #include <pvfundlg.hxx>
44 #include <dpgroupdlg.hxx>
45 #include <scendlg.hxx>
46 #include <shtabdlg.hxx>
47 #include <strindlg.hxx>
48 #include <tabbgcolordlg.hxx>
49 #include <scuiimoptdlg.hxx>
50 #include <attrdlg.hxx>
51 #include <hfedtdlg.hxx>
52 #include <styledlg.hxx>
53 #include <subtdlg.hxx>
54 #include <textdlgs.hxx>
55 #include <sortdlg.hxx>
56 #include <textimportoptions.hxx>
57 #include <opredlin.hxx>
58 #include <tpcalc.hxx>
59 #include <tpprint.hxx>
60 #include <tpstat.hxx>
61 #include <tpusrlst.hxx>
62 #include <tpview.hxx>
63 #include <tpformula.hxx>
64 #include <datafdlg.hxx>
65 #include <tpcompatibility.hxx>
66 #include <tpdefaults.hxx>
67 #include <condformatmgr.hxx>
68 #include <scres.hrc>
69 #include <svx/dialogs.hrc>
70 #include <sfx2/sfxdlg.hxx>
71 #include <conditio.hxx>
73 #include <vcl/virdev.hxx>
75 short AbstractScImportAsciiDlg_Impl::Execute()
77 return m_xDlg->run();
80 bool AbstractScImportAsciiDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
82 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
85 short AbstractScAutoFormatDlg_Impl::Execute()
87 return m_xDlg->run();
90 short AbstractScColRowLabelDlg_Impl::Execute()
92 return m_xDlg->run();
95 bool AbstractScColRowLabelDlg_Impl::StartExecuteAsync(AsyncContext &rCtx)
97 return weld::GenericDialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
100 short AbstractScCondFormatManagerDlg_Impl::Execute()
102 return m_xDlg->run();
105 bool AbstractScCondFormatManagerDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
107 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
110 short AbstractScDataPilotDatabaseDlg_Impl::Execute()
112 return m_xDlg->run();
115 bool AbstractScDataPilotDatabaseDlg_Impl::StartExecuteAsync(AsyncContext &rCtx)
117 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
120 short AbstractScDataPilotSourceTypeDlg_Impl::Execute()
122 return m_xDlg->run();
125 bool AbstractScDataPilotSourceTypeDlg_Impl::StartExecuteAsync(AsyncContext &rCtx)
127 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
130 short AbstractScDataPilotServiceDlg_Impl::Execute()
132 return m_xDlg->run();
135 bool AbstractScDataPilotServiceDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
137 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
140 short AbstractScDeleteCellDlg_Impl::Execute()
142 return m_xDlg->run();
145 bool AbstractScDeleteCellDlg_Impl::StartExecuteAsync(AsyncContext& rCtx)
147 return ScDeleteCellDlg::runAsync(m_xDlg, rCtx.maEndDialogFn);
150 //for dataform
151 short AbstractScDataFormDlg_Impl::Execute()
153 return m_xDlg->run();
156 BitmapEx AbstractScDataFormDlg_Impl::createScreenshot() const
158 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
159 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
162 OUString AbstractScDataFormDlg_Impl::GetScreenshotId() const
164 return m_xDlg->get_help_id();
167 short AbstractScDeleteContentsDlg_Impl::Execute()
169 return m_xDlg->run();
172 short AbstractScFillSeriesDlg_Impl::Execute()
174 return m_xDlg->run();
177 short AbstractScGroupDlg_Impl::Execute()
179 return m_xDlg->run();
182 short AbstractScInsertCellDlg_Impl::Execute()
184 return m_xDlg->run();
187 bool AbstractScInsertCellDlg_Impl::StartExecuteAsync(AsyncContext& rCtx)
189 return ScInsertCellDlg::runAsync(m_xDlg, rCtx.maEndDialogFn);
192 short AbstractScInsertContentsDlg_Impl::Execute()
194 return m_xDlg->run();
197 short AbstractScInsertTableDlg_Impl::Execute()
199 return m_xDlg->run();
202 bool AbstractScInsertTableDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
204 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
207 short AbstractScSelEntryDlg_Impl::Execute()
209 return m_xDlg->run();
212 short AbstractScMetricInputDlg_Impl::Execute()
214 return m_xDlg->run();
217 bool AbstractScMetricInputDlg_Impl::StartExecuteAsync(AsyncContext& rCtx)
219 return ScMetricInputDlg::runAsync(m_xDlg, rCtx.maEndDialogFn);
222 short AbstractScMoveTableDlg_Impl::Execute()
224 return m_xDlg->run();
227 bool AbstractScMoveTableDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext& rCtx)
229 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
232 BitmapEx AbstractScMoveTableDlg_Impl::createScreenshot() const
234 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
235 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
238 OUString AbstractScMoveTableDlg_Impl::GetScreenshotId() const
240 return m_xDlg->get_help_id();
243 short AbstractScNameCreateDlg_Impl::Execute()
245 return m_xDlg->run();
248 short AbstractScNamePasteDlg_Impl::Execute()
250 return m_xDlg->run();
253 short AbstractScPivotFilterDlg_Impl::Execute()
255 return m_xDlg->run();
258 short AbstractScDPFunctionDlg_Impl::Execute()
260 return m_xDlg->run();
263 bool AbstractScDPFunctionDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
265 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
268 short AbstractScDPSubtotalDlg_Impl::Execute()
270 return m_xDlg->run();
273 bool AbstractScDPSubtotalDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
275 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
278 short AbstractScDPNumGroupDlg_Impl::Execute()
280 return m_xDlg->run();
283 short AbstractScDPDateGroupDlg_Impl::Execute()
285 return m_xDlg->run();
288 short AbstractScDPShowDetailDlg_Impl::Execute()
290 return m_xDlg->run();
293 short AbstractScNewScenarioDlg_Impl::Execute()
295 return m_xDlg->run();
298 short AbstractScShowTabDlg_Impl::Execute()
300 return m_xDlg->run();
303 bool AbstractScShowTabDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
305 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
308 short AbstractScGoToTabDlg_Impl::Execute()
310 return m_xDlg->run();
313 bool AbstractScGoToTabDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
315 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
318 short AbstractScSortWarningDlg_Impl::Execute()
320 return m_xDlg->run();
323 short AbstractScTabBgColorDlg_Impl::Execute()
325 return m_xDlg->run();
328 bool AbstractScTabBgColorDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
330 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
333 short AbstractScImportOptionsDlg_Impl::Execute()
335 return m_xDlg->run();
338 short AbstractScTextImportOptionsDlg_Impl::Execute()
340 return m_xDlg->run();
343 AbstractScLinkedAreaDlg_Impl::~AbstractScLinkedAreaDlg_Impl()
347 short AbstractScLinkedAreaDlg_Impl::Execute()
349 return m_xDlg->run();
352 void AbstractScImportAsciiDlg_Impl::GetOptions( ScAsciiOptions& rOpt )
354 m_xDlg->GetOptions( rOpt );
357 void AbstractScImportAsciiDlg_Impl::SaveParameters()
359 m_xDlg->SaveParameters();
362 BitmapEx AbstractScImportAsciiDlg_Impl::createScreenshot() const
364 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
365 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
368 OUString AbstractScImportAsciiDlg_Impl::GetScreenshotId() const
370 return m_xDlg->get_help_id();
373 sal_uInt16 AbstractScAutoFormatDlg_Impl::GetIndex() const
375 return m_xDlg->GetIndex();
378 OUString AbstractScAutoFormatDlg_Impl::GetCurrFormatName()
380 return m_xDlg->GetCurrFormatName();
383 bool AbstractScColRowLabelDlg_Impl::IsCol()
385 return m_xDlg->IsCol();
388 bool AbstractScColRowLabelDlg_Impl::IsRow()
390 return m_xDlg->IsRow();
393 BitmapEx AbstractScColRowLabelDlg_Impl::createScreenshot() const
395 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
396 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
399 OUString AbstractScColRowLabelDlg_Impl::GetScreenshotId() const
401 return m_xDlg->get_help_id();
404 void AbstractScDataPilotDatabaseDlg_Impl::GetValues( ScImportSourceDesc& rDesc )
406 m_xDlg->GetValues(rDesc);
409 BitmapEx AbstractScDataPilotDatabaseDlg_Impl::createScreenshot() const
411 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
412 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
415 OUString AbstractScDataPilotDatabaseDlg_Impl::GetScreenshotId() const
417 return m_xDlg->get_help_id();
420 bool AbstractScDataPilotSourceTypeDlg_Impl::IsDatabase() const
422 return m_xDlg->IsDatabase();
425 bool AbstractScDataPilotSourceTypeDlg_Impl::IsExternal() const
427 return m_xDlg->IsExternal();
430 bool AbstractScDataPilotSourceTypeDlg_Impl::IsNamedRange() const
432 return m_xDlg->IsNamedRange();
435 OUString AbstractScDataPilotSourceTypeDlg_Impl::GetSelectedNamedRange() const
437 return m_xDlg->GetSelectedNamedRange();
440 void AbstractScDataPilotSourceTypeDlg_Impl::AppendNamedRange(const OUString& rName)
442 m_xDlg->AppendNamedRange(rName);
445 BitmapEx AbstractScDataPilotSourceTypeDlg_Impl::createScreenshot() const
447 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
448 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
451 OUString AbstractScDataPilotSourceTypeDlg_Impl::GetScreenshotId() const
453 return m_xDlg->get_help_id();
456 OUString AbstractScDataPilotServiceDlg_Impl::GetServiceName() const
458 return m_xDlg->GetServiceName();
461 OUString AbstractScDataPilotServiceDlg_Impl::GetParSource() const
463 return m_xDlg->GetParSource();
466 OUString AbstractScDataPilotServiceDlg_Impl::GetParName() const
468 return m_xDlg->GetParName();
471 OUString AbstractScDataPilotServiceDlg_Impl::GetParUser() const
473 return m_xDlg->GetParUser();
476 OUString AbstractScDataPilotServiceDlg_Impl::GetParPass() const
478 return m_xDlg->GetParPass();
481 DelCellCmd AbstractScDeleteCellDlg_Impl::GetDelCellCmd() const
483 return m_xDlg->GetDelCellCmd();
486 BitmapEx AbstractScDeleteCellDlg_Impl::createScreenshot() const
488 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
489 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
492 OUString AbstractScDeleteCellDlg_Impl::GetScreenshotId() const
494 return m_xDlg->get_help_id();
497 void AbstractScDeleteContentsDlg_Impl::DisableObjects()
499 m_xDlg->DisableObjects();
502 InsertDeleteFlags AbstractScDeleteContentsDlg_Impl::GetDelContentsCmdBits() const
504 return m_xDlg->GetDelContentsCmdBits();
507 BitmapEx AbstractScDeleteContentsDlg_Impl::createScreenshot() const
509 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
510 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
513 OUString AbstractScDeleteContentsDlg_Impl::GetScreenshotId() const
515 return m_xDlg->get_help_id();
518 FillDir AbstractScFillSeriesDlg_Impl::GetFillDir() const
520 return m_xDlg->GetFillDir();
523 FillCmd AbstractScFillSeriesDlg_Impl::GetFillCmd() const
525 return m_xDlg->GetFillCmd();
528 FillDateCmd AbstractScFillSeriesDlg_Impl::GetFillDateCmd() const
530 return m_xDlg->GetFillDateCmd();
533 double AbstractScFillSeriesDlg_Impl::GetStart() const
535 return m_xDlg->GetStart();
538 double AbstractScFillSeriesDlg_Impl::GetStep() const
540 return m_xDlg->GetStep();
543 double AbstractScFillSeriesDlg_Impl::GetMax() const
545 return m_xDlg->GetMax();
548 OUString AbstractScFillSeriesDlg_Impl::GetStartStr() const
550 return m_xDlg->GetStartStr();
553 void AbstractScFillSeriesDlg_Impl::SetEdStartValEnabled(bool bFlag)
555 m_xDlg->SetEdStartValEnabled(bFlag);
558 bool AbstractScGroupDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
560 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
563 bool AbstractScGroupDlg_Impl::GetColsChecked() const
565 return m_xDlg->GetColsChecked();
568 InsCellCmd AbstractScInsertCellDlg_Impl::GetInsCellCmd() const
570 return m_xDlg->GetInsCellCmd();
573 size_t AbstractScInsertCellDlg_Impl::GetCount() const
575 return m_xDlg->GetCount();
578 InsertDeleteFlags AbstractScInsertContentsDlg_Impl::GetInsContentsCmdBits() const
580 return m_xDlg->GetInsContentsCmdBits();
583 ScPasteFunc AbstractScInsertContentsDlg_Impl::GetFormulaCmdBits() const
585 return m_xDlg->GetFormulaCmdBits();
588 bool AbstractScInsertContentsDlg_Impl::IsSkipEmptyCells() const
590 return m_xDlg->IsSkipEmptyCells();
593 bool AbstractScInsertContentsDlg_Impl::IsLink() const
595 return m_xDlg->IsLink();
598 void AbstractScInsertContentsDlg_Impl::SetFillMode( bool bSet )
600 m_xDlg->SetFillMode( bSet );
603 void AbstractScInsertContentsDlg_Impl::SetOtherDoc( bool bSet )
605 m_xDlg->SetOtherDoc( bSet );
608 bool AbstractScInsertContentsDlg_Impl::IsTranspose() const
610 return m_xDlg->IsTranspose();
613 void AbstractScInsertContentsDlg_Impl::SetChangeTrack( bool bSet )
615 m_xDlg->SetChangeTrack( bSet );
618 void AbstractScInsertContentsDlg_Impl::SetCellShiftDisabled( CellShiftDisabledFlags nDisable )
620 m_xDlg->SetCellShiftDisabled( nDisable );
623 InsCellCmd AbstractScInsertContentsDlg_Impl::GetMoveMode()
625 return m_xDlg->GetMoveMode();
628 BitmapEx AbstractScInsertContentsDlg_Impl::createScreenshot() const
630 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
631 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
634 OUString AbstractScInsertContentsDlg_Impl::GetScreenshotId() const
636 return m_xDlg->get_help_id();
639 bool AbstractScInsertTableDlg_Impl::GetTablesFromFile()
641 return m_xDlg->GetTablesFromFile();
644 bool AbstractScInsertTableDlg_Impl::GetTablesAsLink()
646 return m_xDlg->GetTablesAsLink();
649 const OUString* AbstractScInsertTableDlg_Impl::GetFirstTable( sal_uInt16* pN )
651 return m_xDlg->GetFirstTable( pN );
654 ScDocShell* AbstractScInsertTableDlg_Impl::GetDocShellTables()
656 return m_xDlg->GetDocShellTables();
659 bool AbstractScInsertTableDlg_Impl::IsTableBefore()
661 return m_xDlg->IsTableBefore();
664 sal_uInt16 AbstractScInsertTableDlg_Impl::GetTableCount()
666 return m_xDlg->GetTableCount();
669 const OUString* AbstractScInsertTableDlg_Impl::GetNextTable( sal_uInt16* pN )
671 return m_xDlg->GetNextTable( pN );
674 BitmapEx AbstractScInsertTableDlg_Impl::createScreenshot() const
676 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
677 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
680 OUString AbstractScInsertTableDlg_Impl::GetScreenshotId() const
682 return m_xDlg->get_help_id();
685 OUString AbstractScSelEntryDlg_Impl::GetSelectedEntry() const
687 return m_xDlg->GetSelectedEntry();
690 void AbstractScLinkedAreaDlg_Impl::InitFromOldLink( const OUString& rFile, const OUString& rFilter,
691 const OUString& rOptions, const OUString& rSource,
692 sal_Int32 nRefreshDelaySeconds )
694 m_xDlg->InitFromOldLink( rFile, rFilter, rOptions, rSource, nRefreshDelaySeconds);
697 OUString AbstractScLinkedAreaDlg_Impl::GetURL()
699 return m_xDlg->GetURL();
702 OUString AbstractScLinkedAreaDlg_Impl::GetFilter()
704 return m_xDlg->GetFilter();
707 OUString AbstractScLinkedAreaDlg_Impl::GetOptions()
709 return m_xDlg->GetOptions();
712 OUString AbstractScLinkedAreaDlg_Impl::GetSource()
714 return m_xDlg->GetSource();
717 sal_Int32 AbstractScLinkedAreaDlg_Impl::GetRefreshDelaySeconds()
719 return m_xDlg->GetRefreshDelaySeconds();
722 std::unique_ptr<ScConditionalFormatList> AbstractScCondFormatManagerDlg_Impl::GetConditionalFormatList()
724 return m_xDlg->GetConditionalFormatList();
727 bool AbstractScCondFormatManagerDlg_Impl::CondFormatsChanged() const
729 return m_xDlg->CondFormatsChanged();
732 void AbstractScCondFormatManagerDlg_Impl::SetModified()
734 return m_xDlg->SetModified();
737 ScConditionalFormat* AbstractScCondFormatManagerDlg_Impl::GetCondFormatSelected()
739 return m_xDlg->GetCondFormatSelected();
742 int AbstractScMetricInputDlg_Impl::GetInputValue() const
744 return m_xDlg->GetInputValue();
747 sal_uInt16 AbstractScMoveTableDlg_Impl::GetSelectedDocument() const
749 return m_xDlg->GetSelectedDocument();
752 sal_uInt16 AbstractScMoveTableDlg_Impl::GetSelectedTable() const
754 return m_xDlg->GetSelectedTable();
757 bool AbstractScMoveTableDlg_Impl::GetCopyTable() const
759 return m_xDlg->GetCopyTable();
762 bool AbstractScMoveTableDlg_Impl::GetRenameTable() const
764 return m_xDlg->GetRenameTable();
767 void AbstractScMoveTableDlg_Impl::GetTabNameString( OUString& rString ) const
769 m_xDlg->GetTabNameString( rString );
772 void AbstractScMoveTableDlg_Impl::SetForceCopyTable()
774 return m_xDlg->SetForceCopyTable();
777 void AbstractScMoveTableDlg_Impl::EnableRenameTable(bool bFlag)
779 return m_xDlg->EnableRenameTable( bFlag);
782 CreateNameFlags AbstractScNameCreateDlg_Impl::GetFlags() const
784 return m_xDlg->GetFlags();
787 BitmapEx AbstractScNameCreateDlg_Impl::createScreenshot() const
789 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
790 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
793 OUString AbstractScNameCreateDlg_Impl::GetScreenshotId() const
795 return m_xDlg->get_help_id();
798 std::vector<OUString> AbstractScNamePasteDlg_Impl::GetSelectedNames() const
800 return m_xDlg->GetSelectedNames();
803 const ScQueryItem& AbstractScPivotFilterDlg_Impl::GetOutputItem()
805 return m_xDlg->GetOutputItem();
808 PivotFunc AbstractScDPFunctionDlg_Impl::GetFuncMask() const
810 return m_xDlg->GetFuncMask();
813 void AbstractScDPFunctionDlg_Impl::Response(int nResponse)
815 m_xDlg->response(nResponse);
818 css::sheet::DataPilotFieldReference AbstractScDPFunctionDlg_Impl::GetFieldRef() const
820 return m_xDlg->GetFieldRef();
823 PivotFunc AbstractScDPSubtotalDlg_Impl::GetFuncMask() const
825 return m_xDlg->GetFuncMask();
828 void AbstractScDPSubtotalDlg_Impl::FillLabelData( ScDPLabelData& rLabelData ) const
830 m_xDlg->FillLabelData( rLabelData );
833 void AbstractScDPSubtotalDlg_Impl::Response(int nResponse)
835 m_xDlg->response(nResponse);
838 ScDPNumGroupInfo AbstractScDPNumGroupDlg_Impl::GetGroupInfo() const
840 return m_xDlg->GetGroupInfo();
843 ScDPNumGroupInfo AbstractScDPDateGroupDlg_Impl::GetGroupInfo() const
845 return m_xDlg->GetGroupInfo();
848 sal_Int32 AbstractScDPDateGroupDlg_Impl::GetDatePart() const
850 return m_xDlg->GetDatePart();
853 OUString AbstractScDPShowDetailDlg_Impl::GetDimensionName() const
855 return m_xDlg->GetDimensionName();
858 void AbstractScNewScenarioDlg_Impl::SetScenarioData(
859 const OUString& rName, const OUString& rComment, const Color& rColor, ScScenarioFlags nFlags )
861 m_xDlg->SetScenarioData(rName, rComment, rColor, nFlags);
864 void AbstractScNewScenarioDlg_Impl::GetScenarioData(
865 OUString& rName, OUString& rComment, Color& rColor, ScScenarioFlags& rFlags ) const
867 m_xDlg->GetScenarioData(rName, rComment, rColor, rFlags);
870 void AbstractScShowTabDlg_Impl::Insert( const OUString& rString, bool bSelected )
872 m_xDlg->Insert(rString, bSelected);
875 void AbstractScShowTabDlg_Impl::SetDescription(
876 const OUString& rTitle, const OUString& rFixedText,
877 const OUString& sDlgHelpId, const OUString& sLbHelpId )
879 m_xDlg->SetDescription( rTitle, rFixedText, sDlgHelpId, sLbHelpId );
882 std::vector<sal_Int32> AbstractScShowTabDlg_Impl::GetSelectedRows() const
884 return m_xDlg->GetSelectedRows();
887 OUString AbstractScShowTabDlg_Impl::GetEntry(sal_Int32 nPos) const
889 return m_xDlg->GetEntry(nPos);
892 void AbstractScGoToTabDlg_Impl::Insert( const OUString& rString, bool bSelected )
894 m_xDlg->Insert(rString, bSelected);
897 void AbstractScGoToTabDlg_Impl::SetDescription(
898 const OUString& rTitle, const OUString& rEntryLabel, const OUString& rListLabel,
899 const OUString& rDlgHelpId, const OUString& rEnHelpId, const OUString& rLbHelpId )
901 m_xDlg->SetDescription( rTitle, rEntryLabel, rListLabel, rDlgHelpId, rEnHelpId, rLbHelpId );
904 OUString AbstractScGoToTabDlg_Impl::GetSelectedEntry() const
906 return m_xDlg->GetSelectedEntry();
909 short AbstractScStringInputDlg_Impl::Execute()
911 return m_xDlg->run();
914 bool AbstractScStringInputDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
916 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
919 OUString AbstractScStringInputDlg_Impl::GetInputString() const
921 return m_xDlg->GetInputString();
924 BitmapEx AbstractScStringInputDlg_Impl::createScreenshot() const
926 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
927 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
930 OUString AbstractScStringInputDlg_Impl::GetScreenshotId() const
932 return m_xDlg->get_help_id();
935 void AbstractScTabBgColorDlg_Impl::GetSelectedColor( Color& rColor ) const
937 m_xDlg->GetSelectedColor( rColor );
940 BitmapEx AbstractScTabBgColorDlg_Impl::createScreenshot() const
942 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
943 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
946 OUString AbstractScTabBgColorDlg_Impl::GetScreenshotId() const
948 return m_xDlg->get_help_id();
951 void AbstractScImportOptionsDlg_Impl::GetImportOptions( ScImportOptions& rOptions ) const
953 m_xDlg->GetImportOptions(rOptions);
956 void AbstractScImportOptionsDlg_Impl::SaveImportOptions() const
958 m_xDlg->SaveImportOptions();
961 LanguageType AbstractScTextImportOptionsDlg_Impl::GetLanguageType() const
963 return m_xDlg->getLanguageType();
966 bool AbstractScTextImportOptionsDlg_Impl::IsDateConversionSet() const
968 return m_xDlg->isDateConversionSet();
971 bool AbstractScTextImportOptionsDlg_Impl::IsScientificConversionSet() const
973 return m_xDlg->isScientificConversionSet();
976 bool AbstractScTextImportOptionsDlg_Impl::IsKeepAskingSet() const
978 return m_xDlg->isKeepAskingSet();
981 BitmapEx AbstractScTextImportOptionsDlg_Impl::createScreenshot() const
983 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
984 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
987 OUString AbstractScTextImportOptionsDlg_Impl::GetScreenshotId() const
989 return m_xDlg->get_help_id();
992 short ScAbstractTabController_Impl::Execute()
994 return m_xDlg->run();
997 bool ScAbstractTabController_Impl::StartExecuteAsync(AsyncContext &rCtx)
999 return SfxTabDialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
1002 void ScAbstractTabController_Impl::SetCurPageId( const OUString &rName )
1004 m_xDlg->SetCurPageId( rName );
1007 const SfxItemSet* ScAbstractTabController_Impl::GetOutputItemSet() const
1009 return m_xDlg->GetOutputItemSet();
1012 WhichRangesContainer ScAbstractTabController_Impl::GetInputRanges(const SfxItemPool& pItem )
1014 return m_xDlg->GetInputRanges( pItem );
1017 void ScAbstractTabController_Impl::SetInputSet( const SfxItemSet* pInSet )
1019 m_xDlg->SetInputSet( pInSet );
1022 //From class Window.
1023 void ScAbstractTabController_Impl::SetText( const OUString& rStr )
1025 m_xDlg->set_title(rStr);
1028 std::vector<OUString> ScAbstractTabController_Impl::getAllPageUIXMLDescriptions() const
1030 return m_xDlg->getAllPageUIXMLDescriptions();
1033 bool ScAbstractTabController_Impl::selectPageByUIXMLDescription(const OUString& rUIXMLDescription)
1035 return m_xDlg->selectPageByUIXMLDescription(rUIXMLDescription);
1038 BitmapEx ScAbstractTabController_Impl::createScreenshot() const
1040 return m_xDlg->createScreenshot();
1043 OUString ScAbstractTabController_Impl::GetScreenshotId() const
1045 return m_xDlg->GetScreenshotId();
1048 bool ScAsyncTabController_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
1050 return SfxTabDialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
1053 void ScAsyncTabController_Impl::SetCurPageId( const OUString &rName )
1055 m_xDlg->SetCurPageId( rName );
1058 const SfxItemSet* ScAsyncTabController_Impl::GetOutputItemSet() const
1060 return m_xDlg->GetOutputItemSet();
1063 bool AbstractScSelEntryDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
1065 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
1068 // =========================Factories for createdialog ===================
1069 VclPtr<AbstractScImportAsciiDlg> ScAbstractDialogFactory_Impl::CreateScImportAsciiDlg(weld::Window* pParent,
1070 const OUString& aDatName,
1071 SvStream* pInStream, ScImportAsciiCall eCall)
1073 return VclPtr<AbstractScImportAsciiDlg_Impl>::Create(std::make_shared<ScImportAsciiDlg>(pParent, aDatName,pInStream, eCall));
1076 VclPtr<AbstractScTextImportOptionsDlg> ScAbstractDialogFactory_Impl::CreateScTextImportOptionsDlg(weld::Window* pParent)
1078 return VclPtr<AbstractScTextImportOptionsDlg_Impl>::Create(std::make_unique<ScTextImportOptionsDlg>(pParent));
1081 VclPtr<AbstractScAutoFormatDlg> ScAbstractDialogFactory_Impl::CreateScAutoFormatDlg(weld::Window* pParent,
1082 ScAutoFormat* pAutoFormat,
1083 const ScAutoFormatData* pSelFormatData,
1084 ScViewData& rViewData)
1086 return VclPtr<AbstractScAutoFormatDlg_Impl>::Create(std::make_unique<ScAutoFormatDlg>(pParent, pAutoFormat, pSelFormatData, rViewData));
1089 VclPtr<AbstractScColRowLabelDlg> ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(weld::Window* pParent,
1090 bool bCol, bool bRow)
1092 return VclPtr<AbstractScColRowLabelDlg_Impl>::Create(std::make_unique<ScColRowLabelDlg>(pParent, bCol, bRow));
1095 VclPtr<AbstractScSortWarningDlg> ScAbstractDialogFactory_Impl::CreateScSortWarningDlg(weld::Window* pParent, const OUString& rExtendText, const OUString& rCurrentText)
1097 return VclPtr<AbstractScSortWarningDlg_Impl>::Create(std::make_unique<ScSortWarningDlg>(pParent, rExtendText, rCurrentText));
1100 VclPtr<AbstractScCondFormatManagerDlg> ScAbstractDialogFactory_Impl::CreateScCondFormatMgrDlg(weld::Window* pParent, ScDocument& rDoc, const ScConditionalFormatList* pFormatList )
1102 return VclPtr<AbstractScCondFormatManagerDlg_Impl>::Create(std::make_shared<ScCondFormatManagerDlg>(pParent, rDoc, pFormatList));
1105 VclPtr<AbstractScDataPilotDatabaseDlg> ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg(weld::Window* pParent)
1107 return VclPtr<AbstractScDataPilotDatabaseDlg_Impl>::Create(std::make_shared<ScDataPilotDatabaseDlg>(pParent));
1110 VclPtr<AbstractScDataPilotSourceTypeDlg> ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg(
1111 weld::Window* pParent, bool bEnableExternal)
1113 return VclPtr<AbstractScDataPilotSourceTypeDlg_Impl>::Create(std::make_shared<ScDataPilotSourceTypeDlg>(pParent, bEnableExternal));
1116 VclPtr<AbstractScDataPilotServiceDlg> ScAbstractDialogFactory_Impl::CreateScDataPilotServiceDlg(weld::Window* pParent,
1117 const std::vector<OUString>& rServices)
1119 return VclPtr<AbstractScDataPilotServiceDlg_Impl>::Create(std::make_shared<ScDataPilotServiceDlg>(pParent, rServices));
1122 VclPtr<AbstractScDeleteCellDlg> ScAbstractDialogFactory_Impl::CreateScDeleteCellDlg(weld::Window* pParent,
1123 bool bDisallowCellMove)
1125 return VclPtr<AbstractScDeleteCellDlg_Impl>::Create(std::make_unique<ScDeleteCellDlg>(pParent, bDisallowCellMove));
1128 VclPtr<AbstractScDataFormDlg> ScAbstractDialogFactory_Impl::CreateScDataFormDlg(weld::Window* pParent,
1129 ScTabViewShell* pTabViewShell)
1131 return VclPtr<AbstractScDataFormDlg_Impl>::Create(std::make_unique<ScDataFormDlg>(pParent, pTabViewShell));
1134 VclPtr<AbstractScDeleteContentsDlg> ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(weld::Window* pParent)
1136 return VclPtr<AbstractScDeleteContentsDlg_Impl>::Create(std::make_unique<ScDeleteContentsDlg>(pParent));
1139 VclPtr<AbstractScFillSeriesDlg> ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg(weld::Window* pParent,
1140 ScDocument& rDocument,
1141 FillDir eFillDir,
1142 FillCmd eFillCmd,
1143 FillDateCmd eFillDateCmd,
1144 const OUString& aStartStr,
1145 double fStep,
1146 double fMax,
1147 const SCSIZE nSelectHeight,
1148 const SCSIZE nSelectWidth,
1149 sal_uInt16 nPossDir)
1151 return VclPtr<AbstractScFillSeriesDlg_Impl>::Create(std::make_unique<ScFillSeriesDlg>(pParent, rDocument,eFillDir, eFillCmd,eFillDateCmd, aStartStr,fStep,fMax,nSelectHeight,nSelectWidth,nPossDir));
1154 VclPtr<AbstractScGroupDlg> ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg(weld::Window* pParent, bool bUnGroup)
1156 return VclPtr<AbstractScGroupDlg_Impl>::Create(std::make_shared<ScGroupDlg>(pParent, bUnGroup, true/*bRows*/));
1159 VclPtr<AbstractScInsertCellDlg> ScAbstractDialogFactory_Impl::CreateScInsertCellDlg(weld::Window* pParent,
1160 bool bDisallowCellMove)
1162 return VclPtr<AbstractScInsertCellDlg_Impl>::Create(std::make_unique<ScInsertCellDlg>(pParent, bDisallowCellMove));
1165 VclPtr<AbstractScInsertContentsDlg> ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg(weld::Window* pParent,
1166 const OUString* pStrTitle)
1168 return VclPtr<AbstractScInsertContentsDlg_Impl>::Create(std::make_unique<ScInsertContentsDlg>(pParent, pStrTitle));
1171 VclPtr<AbstractScInsertTableDlg> ScAbstractDialogFactory_Impl::CreateScInsertTableDlg(weld::Window* pParent, ScViewData& rViewData,
1172 SCTAB nTabCount, bool bFromFile)
1174 return VclPtr<AbstractScInsertTableDlg_Impl>::Create(std::make_unique<ScInsertTableDlg>(pParent, rViewData,nTabCount, bFromFile));
1177 VclPtr<AbstractScSelEntryDlg> ScAbstractDialogFactory_Impl::CreateScSelEntryDlg(weld::Window* pParent,
1178 const std::vector<OUString> &rEntryList)
1180 return VclPtr<AbstractScSelEntryDlg_Impl>::Create(std::make_unique<ScSelEntryDlg>(pParent, rEntryList));
1183 VclPtr<AbstractScLinkedAreaDlg> ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg(weld::Widget* pParent)
1185 return VclPtr<AbstractScLinkedAreaDlg_Impl>::Create(std::make_unique<ScLinkedAreaDlg>(pParent));
1188 VclPtr<AbstractScMetricInputDlg> ScAbstractDialogFactory_Impl::CreateScMetricInputDlg(weld::Window* pParent,
1189 const OUString& sDialogName,
1190 tools::Long nCurrent,
1191 tools::Long nDefault,
1192 FieldUnit eFUnit,
1193 sal_uInt16 nDecimals,
1194 tools::Long nMaximum ,
1195 tools::Long nMinimum )
1197 return VclPtr<AbstractScMetricInputDlg_Impl>::Create(std::make_shared<ScMetricInputDlg>(pParent, sDialogName, nCurrent ,nDefault, eFUnit,
1198 nDecimals, nMaximum , nMinimum));
1201 VclPtr<AbstractScMoveTableDlg> ScAbstractDialogFactory_Impl::CreateScMoveTableDlg(weld::Window* pParent,
1202 const OUString& rDefault)
1204 return VclPtr<AbstractScMoveTableDlg_Impl>::Create(std::make_shared<ScMoveTableDlg>(pParent, rDefault));
1207 VclPtr<AbstractScNameCreateDlg> ScAbstractDialogFactory_Impl::CreateScNameCreateDlg(weld::Window * pParent, CreateNameFlags nFlags)
1209 return VclPtr<AbstractScNameCreateDlg_Impl>::Create(std::make_unique<ScNameCreateDlg>(pParent, nFlags));
1212 VclPtr<AbstractScNamePasteDlg> ScAbstractDialogFactory_Impl::CreateScNamePasteDlg(weld::Window * pParent, ScDocShell* pShell)
1214 return VclPtr<AbstractScNamePasteDlg_Impl>::Create(std::make_unique<ScNamePasteDlg>(pParent, pShell));
1217 VclPtr<AbstractScPivotFilterDlg> ScAbstractDialogFactory_Impl::CreateScPivotFilterDlg(weld::Window* pParent,
1218 const SfxItemSet& rArgSet, sal_uInt16 nSourceTab)
1220 return VclPtr<AbstractScPivotFilterDlg_Impl>::Create(std::make_unique<ScPivotFilterDlg>(pParent, rArgSet, nSourceTab));
1223 VclPtr<AbstractScDPFunctionDlg> ScAbstractDialogFactory_Impl::CreateScDPFunctionDlg(weld::Widget* pParent,
1224 const ScDPLabelDataVector& rLabelVec,
1225 const ScDPLabelData& rLabelData,
1226 const ScPivotFuncData& rFuncData)
1228 return VclPtr<AbstractScDPFunctionDlg_Impl>::Create(std::make_shared<ScDPFunctionDlg>(pParent, rLabelVec, rLabelData, rFuncData));
1231 VclPtr<AbstractScDPSubtotalDlg> ScAbstractDialogFactory_Impl::CreateScDPSubtotalDlg(weld::Widget* pParent,
1232 ScDPObject& rDPObj,
1233 const ScDPLabelData& rLabelData,
1234 const ScPivotFuncData& rFuncData,
1235 const ScDPNameVec& rDataFields)
1237 return VclPtr<AbstractScDPSubtotalDlg_Impl>::Create(std::make_shared<ScDPSubtotalDlg>(pParent, rDPObj, rLabelData, rFuncData, rDataFields, true/*bEnableLayout*/));
1240 VclPtr<AbstractScDPNumGroupDlg> ScAbstractDialogFactory_Impl::CreateScDPNumGroupDlg(weld::Window* pParent, const ScDPNumGroupInfo& rInfo)
1242 return VclPtr<AbstractScDPNumGroupDlg_Impl>::Create(std::make_unique<ScDPNumGroupDlg>(pParent, rInfo));
1245 VclPtr<AbstractScDPDateGroupDlg> ScAbstractDialogFactory_Impl::CreateScDPDateGroupDlg(
1246 weld::Window* pParent, const ScDPNumGroupInfo& rInfo, sal_Int32 nDatePart, const Date& rNullDate)
1248 return VclPtr<AbstractScDPDateGroupDlg_Impl>::Create(std::make_unique<ScDPDateGroupDlg>(pParent, rInfo, nDatePart, rNullDate));
1251 VclPtr<AbstractScDPShowDetailDlg> ScAbstractDialogFactory_Impl::CreateScDPShowDetailDlg (
1252 weld::Window* pParent, ScDPObject& rDPObj, css::sheet::DataPilotFieldOrientation nOrient )
1254 return VclPtr<AbstractScDPShowDetailDlg_Impl>::Create(std::make_unique<ScDPShowDetailDlg>(pParent, rDPObj, nOrient));
1257 VclPtr<AbstractScNewScenarioDlg> ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg(weld::Window* pParent, const OUString& rName,
1258 bool bEdit, bool bSheetProtected)
1260 return VclPtr<AbstractScNewScenarioDlg_Impl>::Create(std::make_unique<ScNewScenarioDlg>(pParent, rName, bEdit, bSheetProtected));
1263 VclPtr<AbstractScShowTabDlg> ScAbstractDialogFactory_Impl::CreateScShowTabDlg(weld::Window* pParent)
1265 return VclPtr<AbstractScShowTabDlg_Impl>::Create(std::make_shared<ScShowTabDlg>(pParent));
1268 VclPtr<AbstractScGoToTabDlg> ScAbstractDialogFactory_Impl::CreateScGoToTabDlg(weld::Window* pParent)
1270 return VclPtr<AbstractScGoToTabDlg_Impl>::Create(std::make_shared<ScGoToTabDlg>(pParent));
1273 VclPtr<AbstractScStringInputDlg> ScAbstractDialogFactory_Impl::CreateScStringInputDlg(weld::Window* pParent,
1274 const OUString& rTitle, const OUString& rEditTitle, const OUString& rDefault, const OUString& rHelpId,
1275 const OUString& rEditHelpId)
1277 return VclPtr<AbstractScStringInputDlg_Impl>::Create(std::make_unique<ScStringInputDlg>(pParent, rTitle, rEditTitle,
1278 rDefault, rHelpId, rEditHelpId));
1281 VclPtr<AbstractScTabBgColorDlg> ScAbstractDialogFactory_Impl::CreateScTabBgColorDlg(
1282 weld::Window* pParent,
1283 const OUString& rTitle,
1284 const OUString& rTabBgColorNoColorText,
1285 const Color& rDefaultColor)
1287 return VclPtr<AbstractScTabBgColorDlg_Impl>::Create(std::make_unique<ScTabBgColorDlg>(pParent, rTitle, rTabBgColorNoColorText, rDefaultColor));
1290 VclPtr<AbstractScImportOptionsDlg> ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg(weld::Window* pParent,
1291 bool bAscii,
1292 const ScImportOptions* pOptions,
1293 const OUString* pStrTitle,
1294 bool bOnlyDbtoolsEncodings,
1295 bool bImport)
1297 return VclPtr<AbstractScImportOptionsDlg_Impl>::Create(std::make_unique<ScImportOptionsDlg>(pParent, bAscii, pOptions, pStrTitle, true/*bMultiByte*/, bOnlyDbtoolsEncodings, bImport));
1300 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScAttrDlg(weld::Window* pParent, const SfxItemSet* pCellAttrs)
1302 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScAttrDlg>(pParent, pCellAttrs));
1305 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScHFEditDlg( weld::Window* pParent,
1306 const SfxItemSet& rCoreSet,
1307 const OUString& rPageStyle,
1308 sal_uInt16 nResId )
1310 std::shared_ptr<SfxTabDialogController> xDlg;
1312 switch (nResId)
1314 case RID_SCDLG_HFED_HEADER:
1315 case RID_SCDLG_HFEDIT_HEADER:
1316 xDlg = std::make_shared<ScHFEditHeaderDlg>(pParent, rCoreSet, rPageStyle);
1317 break;
1318 case RID_SCDLG_HFED_FOOTER:
1319 case RID_SCDLG_HFEDIT_FOOTER:
1320 xDlg = std::make_shared<ScHFEditFooterDlg>(pParent, rCoreSet, rPageStyle);
1321 break;
1322 case RID_SCDLG_HFEDIT_SHAREDFIRSTHEADER:
1323 xDlg = std::make_shared<ScHFEditSharedFirstHeaderDlg>(pParent, rCoreSet, rPageStyle);
1324 break;
1325 case RID_SCDLG_HFEDIT_SHAREDLEFTHEADER:
1326 xDlg = std::make_shared<ScHFEditSharedLeftHeaderDlg>(pParent, rCoreSet, rPageStyle);
1327 break;
1328 case RID_SCDLG_HFEDIT_SHAREDFIRSTFOOTER:
1329 xDlg = std::make_shared<ScHFEditSharedFirstFooterDlg>(pParent, rCoreSet, rPageStyle);
1330 break;
1331 case RID_SCDLG_HFEDIT_SHAREDLEFTFOOTER:
1332 xDlg = std::make_shared<ScHFEditSharedLeftFooterDlg>(pParent, rCoreSet, rPageStyle);
1333 break;
1334 case RID_SCDLG_HFEDIT_LEFTHEADER:
1335 xDlg = std::make_shared<ScHFEditLeftHeaderDlg>(pParent, rCoreSet, rPageStyle);
1336 break;
1337 case RID_SCDLG_HFEDIT_RIGHTHEADER:
1338 xDlg = std::make_shared<ScHFEditRightHeaderDlg>(pParent, rCoreSet, rPageStyle);
1339 break;
1340 case RID_SCDLG_HFEDIT_LEFTFOOTER:
1341 xDlg = std::make_shared<ScHFEditLeftFooterDlg>(pParent, rCoreSet, rPageStyle);
1342 break;
1343 case RID_SCDLG_HFEDIT_RIGHTFOOTER:
1344 xDlg = std::make_shared<ScHFEditRightFooterDlg>(pParent, rCoreSet, rPageStyle);
1345 break;
1346 case RID_SCDLG_HFEDIT_SHDR:
1347 xDlg = std::make_shared<ScHFEditSharedHeaderDlg>(pParent, rCoreSet, rPageStyle);
1348 break;
1349 case RID_SCDLG_HFEDIT_SFTR:
1350 xDlg = std::make_shared<ScHFEditSharedFooterDlg>(pParent, rCoreSet, rPageStyle);
1351 break;
1352 case RID_SCDLG_HFEDIT_ALL:
1353 xDlg = std::make_shared<ScHFEditAllDlg>(pParent, rCoreSet, rPageStyle);
1354 break;
1355 default:
1356 case RID_SCDLG_HFEDIT:
1357 xDlg = std::make_shared<ScHFEditActiveDlg>(pParent, rCoreSet, rPageStyle);
1358 break;
1361 return VclPtr<ScAbstractTabController_Impl>::Create(std::move(xDlg));
1364 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScStyleDlg(weld::Window* pParent,
1365 SfxStyleSheetBase& rStyleBase,
1366 bool bPage)
1368 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScStyleDlg>(pParent, rStyleBase, bPage));
1371 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScDrawStyleDlg(weld::Window* pParent,
1372 SfxStyleSheetBase& rStyleBase,
1373 SdrView* pView)
1375 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScDrawStyleDlg>(pParent, rStyleBase, pView));
1378 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScSubTotalDlg(weld::Window* pParent, const SfxItemSet& rArgSet)
1380 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScSubTotalDlg>(pParent, rArgSet));
1383 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScCharDlg(
1384 weld::Window* pParent, const SfxItemSet* pAttr, const SfxObjectShell* pDocShell, bool bDrawText)
1386 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScCharDlg>(pParent, pAttr, pDocShell, bDrawText));
1389 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScParagraphDlg(
1390 weld::Window* pParent, const SfxItemSet* pAttr)
1392 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScParagraphDlg>(pParent, pAttr));
1395 std::shared_ptr<ScAsyncTabController> ScAbstractDialogFactory_Impl::CreateScSortDlg(weld::Window* pParent, const SfxItemSet* pArgSet)
1397 return std::make_shared<ScAsyncTabController_Impl>(std::make_shared<ScSortDlg>(pParent, pArgSet));
1400 //------------------ Factories for TabPages--------------------
1401 CreateTabPage ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
1403 switch (nId)
1405 case SID_SC_TP_CHANGES:
1406 return ScRedlineOptionsTabPage::Create;
1407 case SID_SC_TP_CALC:
1408 return ScTpCalcOptions::Create;
1409 case SID_SC_TP_FORMULA:
1410 return ScTpFormulaOptions::Create;
1411 case SID_SC_TP_COMPATIBILITY:
1412 return ScTpCompatOptions::Create;
1413 case RID_SC_TP_DEFAULTS:
1414 return ScTpDefaultsOptions::Create;
1415 case RID_SC_TP_PRINT:
1416 return ScTpPrintOptions::Create;
1417 case SID_SC_TP_STAT:
1418 return ScDocStatPage::Create;
1419 case SID_SC_TP_USERLISTS:
1420 return ScTpUserLists::Create;
1421 case SID_SC_TP_CONTENT:
1422 return ScTpContentOptions::Create;
1423 case SID_SC_TP_LAYOUT:
1424 return ScTpLayoutOptions::Create;
1425 default:
1426 break;
1429 return nullptr;
1432 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */