1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20 #undef SC_DLLIMPLEMENTATION
21
22 #include "scdlgfact.hxx"
23
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>
72
73 #include <vcl/virdev.hxx>
74
Execute()75 short AbstractScImportAsciiDlg_Impl::Execute()
76 {
77 return m_xDlg->run();
78 }
79
StartExecuteAsync(VclAbstractDialog::AsyncContext & rCtx)80 bool AbstractScImportAsciiDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
81 {
82 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
83 }
84
Execute()85 short AbstractScAutoFormatDlg_Impl::Execute()
86 {
87 return m_xDlg->run();
88 }
89
Execute()90 short AbstractScColRowLabelDlg_Impl::Execute()
91 {
92 return m_xDlg->run();
93 }
94
Execute()95 short AbstractScCondFormatManagerDlg_Impl::Execute()
96 {
97 return m_xDlg->run();
98 }
99
StartExecuteAsync(VclAbstractDialog::AsyncContext & rCtx)100 bool AbstractScCondFormatManagerDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
101 {
102 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
103 }
104
Execute()105 short AbstractScDataPilotDatabaseDlg_Impl::Execute()
106 {
107 return m_xDlg->run();
108 }
109
StartExecuteAsync(AsyncContext & rCtx)110 bool AbstractScDataPilotDatabaseDlg_Impl::StartExecuteAsync(AsyncContext &rCtx)
111 {
112 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
113 }
114
Execute()115 short AbstractScDataPilotSourceTypeDlg_Impl::Execute()
116 {
117 return m_xDlg->run();
118 }
119
StartExecuteAsync(AsyncContext & rCtx)120 bool AbstractScDataPilotSourceTypeDlg_Impl::StartExecuteAsync(AsyncContext &rCtx)
121 {
122 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
123 }
124
Execute()125 short AbstractScDataPilotServiceDlg_Impl::Execute()
126 {
127 return m_xDlg->run();
128 }
129
StartExecuteAsync(VclAbstractDialog::AsyncContext & rCtx)130 bool AbstractScDataPilotServiceDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
131 {
132 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
133 }
134
Execute()135 short AbstractScDeleteCellDlg_Impl::Execute()
136 {
137 return m_xDlg->run();
138 }
139
140 //for dataform
Execute()141 short AbstractScDataFormDlg_Impl::Execute()
142 {
143 return m_xDlg->run();
144 }
145
createScreenshot() const146 BitmapEx AbstractScDataFormDlg_Impl::createScreenshot() const
147 {
148 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
149 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
150 }
151
GetScreenshotId() const152 OString AbstractScDataFormDlg_Impl::GetScreenshotId() const
153 {
154 return m_xDlg->get_help_id();
155 }
156
Execute()157 short AbstractScDeleteContentsDlg_Impl::Execute()
158 {
159 return m_xDlg->run();
160 }
161
Execute()162 short AbstractScFillSeriesDlg_Impl::Execute()
163 {
164 return m_xDlg->run();
165 }
166
Execute()167 short AbstractScGroupDlg_Impl::Execute()
168 {
169 return m_xDlg->run();
170 }
171
Execute()172 short AbstractScInsertCellDlg_Impl::Execute()
173 {
174 return m_xDlg->run();
175 }
176
Execute()177 short AbstractScInsertContentsDlg_Impl::Execute()
178 {
179 return m_xDlg->run();
180 }
181
Execute()182 short AbstractScInsertTableDlg_Impl::Execute()
183 {
184 return m_xDlg->run();
185 }
186
Execute()187 short AbstractScSelEntryDlg_Impl::Execute()
188 {
189 return m_xDlg->run();
190 }
191
Execute()192 short AbstractScMetricInputDlg_Impl::Execute()
193 {
194 return m_xDlg->run();
195 }
196
Execute()197 short AbstractScMoveTableDlg_Impl::Execute()
198 {
199 return m_xDlg->run();
200 }
201
createScreenshot() const202 BitmapEx AbstractScMoveTableDlg_Impl::createScreenshot() const
203 {
204 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
205 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
206 }
207
GetScreenshotId() const208 OString AbstractScMoveTableDlg_Impl::GetScreenshotId() const
209 {
210 return m_xDlg->get_help_id();
211 }
212
Execute()213 short AbstractScNameCreateDlg_Impl::Execute()
214 {
215 return m_xDlg->run();
216 }
217
Execute()218 short AbstractScNamePasteDlg_Impl::Execute()
219 {
220 return m_xDlg->run();
221 }
222
Execute()223 short AbstractScPivotFilterDlg_Impl::Execute()
224 {
225 return m_xDlg->run();
226 }
227
Execute()228 short AbstractScDPFunctionDlg_Impl::Execute()
229 {
230 return m_xDlg->run();
231 }
232
StartExecuteAsync(VclAbstractDialog::AsyncContext & rCtx)233 bool AbstractScDPFunctionDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
234 {
235 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
236 }
237
Execute()238 short AbstractScDPSubtotalDlg_Impl::Execute()
239 {
240 return m_xDlg->run();
241 }
242
StartExecuteAsync(VclAbstractDialog::AsyncContext & rCtx)243 bool AbstractScDPSubtotalDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
244 {
245 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
246 }
247
Execute()248 short AbstractScDPNumGroupDlg_Impl::Execute()
249 {
250 return m_xDlg->run();
251 }
252
Execute()253 short AbstractScDPDateGroupDlg_Impl::Execute()
254 {
255 return m_xDlg->run();
256 }
257
Execute()258 short AbstractScDPShowDetailDlg_Impl::Execute()
259 {
260 return m_xDlg->run();
261 }
262
Execute()263 short AbstractScNewScenarioDlg_Impl::Execute()
264 {
265 return m_xDlg->run();
266 }
267
Execute()268 short AbstractScShowTabDlg_Impl::Execute()
269 {
270 return m_xDlg->run();
271 }
272
StartExecuteAsync(VclAbstractDialog::AsyncContext & rCtx)273 bool AbstractScShowTabDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
274 {
275 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
276 }
277
Execute()278 short AbstractScSortWarningDlg_Impl::Execute()
279 {
280 return m_xDlg->run();
281 }
282
Execute()283 short AbstractScTabBgColorDlg_Impl::Execute()
284 {
285 return m_xDlg->run();
286 }
287
Execute()288 short AbstractScImportOptionsDlg_Impl::Execute()
289 {
290 return m_xDlg->run();
291 }
292
Execute()293 short AbstractScTextImportOptionsDlg_Impl::Execute()
294 {
295 return m_xDlg->run();
296 }
297
~AbstractScLinkedAreaDlg_Impl()298 AbstractScLinkedAreaDlg_Impl::~AbstractScLinkedAreaDlg_Impl()
299 {
300 }
301
Execute()302 short AbstractScLinkedAreaDlg_Impl::Execute()
303 {
304 return m_xDlg->run();
305 }
306
GetOptions(ScAsciiOptions & rOpt)307 void AbstractScImportAsciiDlg_Impl::GetOptions( ScAsciiOptions& rOpt )
308 {
309 m_xDlg->GetOptions( rOpt );
310 }
311
SaveParameters()312 void AbstractScImportAsciiDlg_Impl::SaveParameters()
313 {
314 m_xDlg->SaveParameters();
315 }
316
createScreenshot() const317 BitmapEx AbstractScImportAsciiDlg_Impl::createScreenshot() const
318 {
319 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
320 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
321 }
322
GetScreenshotId() const323 OString AbstractScImportAsciiDlg_Impl::GetScreenshotId() const
324 {
325 return m_xDlg->get_help_id();
326 }
327
GetIndex() const328 sal_uInt16 AbstractScAutoFormatDlg_Impl::GetIndex() const
329 {
330 return m_xDlg->GetIndex();
331 }
332
GetCurrFormatName()333 OUString AbstractScAutoFormatDlg_Impl::GetCurrFormatName()
334 {
335 return m_xDlg->GetCurrFormatName();
336 }
337
IsCol()338 bool AbstractScColRowLabelDlg_Impl::IsCol()
339 {
340 return m_xDlg->IsCol();
341 }
342
IsRow()343 bool AbstractScColRowLabelDlg_Impl::IsRow()
344 {
345 return m_xDlg->IsRow();
346 }
347
createScreenshot() const348 BitmapEx AbstractScColRowLabelDlg_Impl::createScreenshot() const
349 {
350 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
351 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
352 }
353
GetScreenshotId() const354 OString AbstractScColRowLabelDlg_Impl::GetScreenshotId() const
355 {
356 return m_xDlg->get_help_id();
357 }
358
GetValues(ScImportSourceDesc & rDesc)359 void AbstractScDataPilotDatabaseDlg_Impl::GetValues( ScImportSourceDesc& rDesc )
360 {
361 m_xDlg->GetValues(rDesc);
362 }
363
createScreenshot() const364 BitmapEx AbstractScDataPilotDatabaseDlg_Impl::createScreenshot() const
365 {
366 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
367 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
368 }
369
GetScreenshotId() const370 OString AbstractScDataPilotDatabaseDlg_Impl::GetScreenshotId() const
371 {
372 return m_xDlg->get_help_id();
373 }
374
IsDatabase() const375 bool AbstractScDataPilotSourceTypeDlg_Impl::IsDatabase() const
376 {
377 return m_xDlg->IsDatabase();
378 }
379
IsExternal() const380 bool AbstractScDataPilotSourceTypeDlg_Impl::IsExternal() const
381 {
382 return m_xDlg->IsExternal();
383 }
384
IsNamedRange() const385 bool AbstractScDataPilotSourceTypeDlg_Impl::IsNamedRange() const
386 {
387 return m_xDlg->IsNamedRange();
388 }
389
GetSelectedNamedRange() const390 OUString AbstractScDataPilotSourceTypeDlg_Impl::GetSelectedNamedRange() const
391 {
392 return m_xDlg->GetSelectedNamedRange();
393 }
394
AppendNamedRange(const OUString & rName)395 void AbstractScDataPilotSourceTypeDlg_Impl::AppendNamedRange(const OUString& rName)
396 {
397 m_xDlg->AppendNamedRange(rName);
398 }
399
createScreenshot() const400 BitmapEx AbstractScDataPilotSourceTypeDlg_Impl::createScreenshot() const
401 {
402 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
403 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
404 }
405
GetScreenshotId() const406 OString AbstractScDataPilotSourceTypeDlg_Impl::GetScreenshotId() const
407 {
408 return m_xDlg->get_help_id();
409 }
410
GetServiceName() const411 OUString AbstractScDataPilotServiceDlg_Impl::GetServiceName() const
412 {
413 return m_xDlg->GetServiceName();
414 }
415
GetParSource() const416 OUString AbstractScDataPilotServiceDlg_Impl::GetParSource() const
417 {
418 return m_xDlg->GetParSource();
419 }
420
GetParName() const421 OUString AbstractScDataPilotServiceDlg_Impl::GetParName() const
422 {
423 return m_xDlg->GetParName();
424 }
425
GetParUser() const426 OUString AbstractScDataPilotServiceDlg_Impl::GetParUser() const
427 {
428 return m_xDlg->GetParUser();
429 }
430
GetParPass() const431 OUString AbstractScDataPilotServiceDlg_Impl::GetParPass() const
432 {
433 return m_xDlg->GetParPass();
434 }
435
GetDelCellCmd() const436 DelCellCmd AbstractScDeleteCellDlg_Impl::GetDelCellCmd() const
437 {
438 return m_xDlg->GetDelCellCmd();
439 }
440
createScreenshot() const441 BitmapEx AbstractScDeleteCellDlg_Impl::createScreenshot() const
442 {
443 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
444 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
445 }
446
GetScreenshotId() const447 OString AbstractScDeleteCellDlg_Impl::GetScreenshotId() const
448 {
449 return m_xDlg->get_help_id();
450 }
451
DisableObjects()452 void AbstractScDeleteContentsDlg_Impl::DisableObjects()
453 {
454 m_xDlg->DisableObjects();
455 }
456
GetDelContentsCmdBits() const457 InsertDeleteFlags AbstractScDeleteContentsDlg_Impl::GetDelContentsCmdBits() const
458 {
459 return m_xDlg->GetDelContentsCmdBits();
460 }
461
createScreenshot() const462 BitmapEx AbstractScDeleteContentsDlg_Impl::createScreenshot() const
463 {
464 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
465 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
466 }
467
GetScreenshotId() const468 OString AbstractScDeleteContentsDlg_Impl::GetScreenshotId() const
469 {
470 return m_xDlg->get_help_id();
471 }
472
GetFillDir() const473 FillDir AbstractScFillSeriesDlg_Impl::GetFillDir() const
474 {
475 return m_xDlg->GetFillDir();
476 }
477
GetFillCmd() const478 FillCmd AbstractScFillSeriesDlg_Impl::GetFillCmd() const
479 {
480 return m_xDlg->GetFillCmd();
481 }
482
GetFillDateCmd() const483 FillDateCmd AbstractScFillSeriesDlg_Impl::GetFillDateCmd() const
484 {
485 return m_xDlg->GetFillDateCmd();
486 }
487
GetStart() const488 double AbstractScFillSeriesDlg_Impl::GetStart() const
489 {
490 return m_xDlg->GetStart();
491 }
492
GetStep() const493 double AbstractScFillSeriesDlg_Impl::GetStep() const
494 {
495 return m_xDlg->GetStep();
496 }
497
GetMax() const498 double AbstractScFillSeriesDlg_Impl::GetMax() const
499 {
500 return m_xDlg->GetMax();
501 }
502
GetStartStr() const503 OUString AbstractScFillSeriesDlg_Impl::GetStartStr() const
504 {
505 return m_xDlg->GetStartStr();
506 }
507
SetEdStartValEnabled(bool bFlag)508 void AbstractScFillSeriesDlg_Impl::SetEdStartValEnabled(bool bFlag)
509 {
510 m_xDlg->SetEdStartValEnabled(bFlag);
511 }
512
StartExecuteAsync(VclAbstractDialog::AsyncContext & rCtx)513 bool AbstractScGroupDlg_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
514 {
515 return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
516 }
517
GetColsChecked() const518 bool AbstractScGroupDlg_Impl::GetColsChecked() const
519 {
520 return m_xDlg->GetColsChecked();
521 }
522
GetInsCellCmd() const523 InsCellCmd AbstractScInsertCellDlg_Impl::GetInsCellCmd() const
524 {
525 return m_xDlg->GetInsCellCmd();
526 }
527
GetInsContentsCmdBits() const528 InsertDeleteFlags AbstractScInsertContentsDlg_Impl::GetInsContentsCmdBits() const
529 {
530 return m_xDlg->GetInsContentsCmdBits();
531 }
532
GetFormulaCmdBits() const533 ScPasteFunc AbstractScInsertContentsDlg_Impl::GetFormulaCmdBits() const
534 {
535 return m_xDlg->GetFormulaCmdBits();
536 }
537
IsSkipEmptyCells() const538 bool AbstractScInsertContentsDlg_Impl::IsSkipEmptyCells() const
539 {
540 return m_xDlg->IsSkipEmptyCells();
541 }
542
IsLink() const543 bool AbstractScInsertContentsDlg_Impl::IsLink() const
544 {
545 return m_xDlg->IsLink();
546 }
547
SetFillMode(bool bSet)548 void AbstractScInsertContentsDlg_Impl::SetFillMode( bool bSet )
549 {
550 m_xDlg->SetFillMode( bSet );
551 }
552
SetOtherDoc(bool bSet)553 void AbstractScInsertContentsDlg_Impl::SetOtherDoc( bool bSet )
554 {
555 m_xDlg->SetOtherDoc( bSet );
556 }
557
IsTranspose() const558 bool AbstractScInsertContentsDlg_Impl::IsTranspose() const
559 {
560 return m_xDlg->IsTranspose();
561 }
562
SetChangeTrack(bool bSet)563 void AbstractScInsertContentsDlg_Impl::SetChangeTrack( bool bSet )
564 {
565 m_xDlg->SetChangeTrack( bSet );
566 }
567
SetCellShiftDisabled(CellShiftDisabledFlags nDisable)568 void AbstractScInsertContentsDlg_Impl::SetCellShiftDisabled( CellShiftDisabledFlags nDisable )
569 {
570 m_xDlg->SetCellShiftDisabled( nDisable );
571 }
572
GetMoveMode()573 InsCellCmd AbstractScInsertContentsDlg_Impl::GetMoveMode()
574 {
575 return m_xDlg->GetMoveMode();
576 }
577
createScreenshot() const578 BitmapEx AbstractScInsertContentsDlg_Impl::createScreenshot() const
579 {
580 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
581 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
582 }
583
GetScreenshotId() const584 OString AbstractScInsertContentsDlg_Impl::GetScreenshotId() const
585 {
586 return m_xDlg->get_help_id();
587 }
588
GetTablesFromFile()589 bool AbstractScInsertTableDlg_Impl::GetTablesFromFile()
590 {
591 return m_xDlg->GetTablesFromFile();
592 }
593
GetTablesAsLink()594 bool AbstractScInsertTableDlg_Impl::GetTablesAsLink()
595 {
596 return m_xDlg->GetTablesAsLink();
597 }
598
GetFirstTable(sal_uInt16 * pN)599 const OUString* AbstractScInsertTableDlg_Impl::GetFirstTable( sal_uInt16* pN )
600 {
601 return m_xDlg->GetFirstTable( pN );
602 }
603
GetDocShellTables()604 ScDocShell* AbstractScInsertTableDlg_Impl::GetDocShellTables()
605 {
606 return m_xDlg->GetDocShellTables();
607 }
608
IsTableBefore()609 bool AbstractScInsertTableDlg_Impl::IsTableBefore()
610 {
611 return m_xDlg->IsTableBefore();
612 }
613
GetTableCount()614 sal_uInt16 AbstractScInsertTableDlg_Impl::GetTableCount()
615 {
616 return m_xDlg->GetTableCount();
617 }
618
GetNextTable(sal_uInt16 * pN)619 const OUString* AbstractScInsertTableDlg_Impl::GetNextTable( sal_uInt16* pN )
620 {
621 return m_xDlg->GetNextTable( pN );
622 }
623
createScreenshot() const624 BitmapEx AbstractScInsertTableDlg_Impl::createScreenshot() const
625 {
626 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
627 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
628 }
629
GetScreenshotId() const630 OString AbstractScInsertTableDlg_Impl::GetScreenshotId() const
631 {
632 return m_xDlg->get_help_id();
633 }
634
GetSelectedEntry() const635 OUString AbstractScSelEntryDlg_Impl::GetSelectedEntry() const
636 {
637 return m_xDlg->GetSelectedEntry();
638 }
639
InitFromOldLink(const OUString & rFile,const OUString & rFilter,const OUString & rOptions,const OUString & rSource,sal_uLong nRefresh)640 void AbstractScLinkedAreaDlg_Impl::InitFromOldLink( const OUString& rFile, const OUString& rFilter,
641 const OUString& rOptions, const OUString& rSource,
642 sal_uLong nRefresh )
643 {
644 m_xDlg->InitFromOldLink( rFile, rFilter, rOptions, rSource, nRefresh);
645 }
646
GetURL()647 OUString AbstractScLinkedAreaDlg_Impl::GetURL()
648 {
649 return m_xDlg->GetURL();
650 }
651
GetFilter()652 OUString AbstractScLinkedAreaDlg_Impl::GetFilter()
653 {
654 return m_xDlg->GetFilter();
655 }
656
GetOptions()657 OUString AbstractScLinkedAreaDlg_Impl::GetOptions()
658 {
659 return m_xDlg->GetOptions();
660 }
661
GetSource()662 OUString AbstractScLinkedAreaDlg_Impl::GetSource()
663 {
664 return m_xDlg->GetSource();
665 }
666
GetRefresh()667 sal_uLong AbstractScLinkedAreaDlg_Impl::GetRefresh()
668 {
669 return m_xDlg->GetRefresh();
670 }
671
GetConditionalFormatList()672 std::unique_ptr<ScConditionalFormatList> AbstractScCondFormatManagerDlg_Impl::GetConditionalFormatList()
673 {
674 return m_xDlg->GetConditionalFormatList();
675 }
676
CondFormatsChanged() const677 bool AbstractScCondFormatManagerDlg_Impl::CondFormatsChanged() const
678 {
679 return m_xDlg->CondFormatsChanged();
680 }
681
SetModified()682 void AbstractScCondFormatManagerDlg_Impl::SetModified()
683 {
684 return m_xDlg->SetModified();
685 }
686
GetCondFormatSelected()687 ScConditionalFormat* AbstractScCondFormatManagerDlg_Impl::GetCondFormatSelected()
688 {
689 return m_xDlg->GetCondFormatSelected();
690 }
691
GetInputValue() const692 int AbstractScMetricInputDlg_Impl::GetInputValue() const
693 {
694 return m_xDlg->GetInputValue();
695 }
696
GetSelectedDocument() const697 sal_uInt16 AbstractScMoveTableDlg_Impl::GetSelectedDocument() const
698 {
699 return m_xDlg->GetSelectedDocument();
700 }
701
GetSelectedTable() const702 sal_uInt16 AbstractScMoveTableDlg_Impl::GetSelectedTable() const
703 {
704 return m_xDlg->GetSelectedTable();
705 }
706
GetCopyTable() const707 bool AbstractScMoveTableDlg_Impl::GetCopyTable() const
708 {
709 return m_xDlg->GetCopyTable();
710 }
711
GetRenameTable() const712 bool AbstractScMoveTableDlg_Impl::GetRenameTable() const
713 {
714 return m_xDlg->GetRenameTable();
715 }
716
GetTabNameString(OUString & rString) const717 void AbstractScMoveTableDlg_Impl::GetTabNameString( OUString& rString ) const
718 {
719 m_xDlg->GetTabNameString( rString );
720 }
721
SetForceCopyTable()722 void AbstractScMoveTableDlg_Impl::SetForceCopyTable()
723 {
724 return m_xDlg->SetForceCopyTable();
725 }
726
EnableRenameTable(bool bFlag)727 void AbstractScMoveTableDlg_Impl::EnableRenameTable(bool bFlag)
728 {
729 return m_xDlg->EnableRenameTable( bFlag);
730 }
731
GetFlags() const732 CreateNameFlags AbstractScNameCreateDlg_Impl::GetFlags() const
733 {
734 return m_xDlg->GetFlags();
735 }
736
createScreenshot() const737 BitmapEx AbstractScNameCreateDlg_Impl::createScreenshot() const
738 {
739 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
740 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
741 }
742
GetScreenshotId() const743 OString AbstractScNameCreateDlg_Impl::GetScreenshotId() const
744 {
745 return m_xDlg->get_help_id();
746 }
747
GetSelectedNames() const748 std::vector<OUString> AbstractScNamePasteDlg_Impl::GetSelectedNames() const
749 {
750 return m_xDlg->GetSelectedNames();
751 }
752
GetOutputItem()753 const ScQueryItem& AbstractScPivotFilterDlg_Impl::GetOutputItem()
754 {
755 return m_xDlg->GetOutputItem();
756 }
757
GetFuncMask() const758 PivotFunc AbstractScDPFunctionDlg_Impl::GetFuncMask() const
759 {
760 return m_xDlg->GetFuncMask();
761 }
762
Response(int nResponse)763 void AbstractScDPFunctionDlg_Impl::Response(int nResponse)
764 {
765 m_xDlg->response(nResponse);
766 }
767
GetFieldRef() const768 css::sheet::DataPilotFieldReference AbstractScDPFunctionDlg_Impl::GetFieldRef() const
769 {
770 return m_xDlg->GetFieldRef();
771 }
772
GetFuncMask() const773 PivotFunc AbstractScDPSubtotalDlg_Impl::GetFuncMask() const
774 {
775 return m_xDlg->GetFuncMask();
776 }
777
FillLabelData(ScDPLabelData & rLabelData) const778 void AbstractScDPSubtotalDlg_Impl::FillLabelData( ScDPLabelData& rLabelData ) const
779 {
780 m_xDlg->FillLabelData( rLabelData );
781 }
782
Response(int nResponse)783 void AbstractScDPSubtotalDlg_Impl::Response(int nResponse)
784 {
785 m_xDlg->response(nResponse);
786 }
787
GetGroupInfo() const788 ScDPNumGroupInfo AbstractScDPNumGroupDlg_Impl::GetGroupInfo() const
789 {
790 return m_xDlg->GetGroupInfo();
791 }
792
GetGroupInfo() const793 ScDPNumGroupInfo AbstractScDPDateGroupDlg_Impl::GetGroupInfo() const
794 {
795 return m_xDlg->GetGroupInfo();
796 }
797
GetDatePart() const798 sal_Int32 AbstractScDPDateGroupDlg_Impl::GetDatePart() const
799 {
800 return m_xDlg->GetDatePart();
801 }
802
GetDimensionName() const803 OUString AbstractScDPShowDetailDlg_Impl::GetDimensionName() const
804 {
805 return m_xDlg->GetDimensionName();
806 }
807
SetScenarioData(const OUString & rName,const OUString & rComment,const Color & rColor,ScScenarioFlags nFlags)808 void AbstractScNewScenarioDlg_Impl::SetScenarioData(
809 const OUString& rName, const OUString& rComment, const Color& rColor, ScScenarioFlags nFlags )
810 {
811 m_xDlg->SetScenarioData(rName, rComment, rColor, nFlags);
812 }
813
GetScenarioData(OUString & rName,OUString & rComment,Color & rColor,ScScenarioFlags & rFlags) const814 void AbstractScNewScenarioDlg_Impl::GetScenarioData(
815 OUString& rName, OUString& rComment, Color& rColor, ScScenarioFlags& rFlags ) const
816 {
817 m_xDlg->GetScenarioData(rName, rComment, rColor, rFlags);
818 }
819
Insert(const OUString & rString,bool bSelected)820 void AbstractScShowTabDlg_Impl::Insert( const OUString& rString, bool bSelected )
821 {
822 m_xDlg->Insert(rString, bSelected);
823 }
824
SetDescription(const OUString & rTitle,const OUString & rFixedText,const OString & sDlgHelpId,const OString & sLbHelpId)825 void AbstractScShowTabDlg_Impl::SetDescription(
826 const OUString& rTitle, const OUString& rFixedText,
827 const OString& sDlgHelpId, const OString& sLbHelpId )
828 {
829 m_xDlg->SetDescription( rTitle, rFixedText, sDlgHelpId, sLbHelpId );
830 }
831
GetSelectedRows() const832 std::vector<sal_Int32> AbstractScShowTabDlg_Impl::GetSelectedRows() const
833 {
834 return m_xDlg->GetSelectedRows();
835 }
836
GetEntry(sal_Int32 nPos) const837 OUString AbstractScShowTabDlg_Impl::GetEntry(sal_Int32 nPos) const
838 {
839 return m_xDlg->GetEntry(nPos);
840 }
841
Execute()842 short AbstractScStringInputDlg_Impl::Execute()
843 {
844 return m_xDlg->run();
845 }
846
GetInputString() const847 OUString AbstractScStringInputDlg_Impl::GetInputString() const
848 {
849 return m_xDlg->GetInputString();
850 }
851
createScreenshot() const852 BitmapEx AbstractScStringInputDlg_Impl::createScreenshot() const
853 {
854 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
855 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
856 }
857
GetScreenshotId() const858 OString AbstractScStringInputDlg_Impl::GetScreenshotId() const
859 {
860 return m_xDlg->get_help_id();
861 }
862
GetSelectedColor(Color & rColor) const863 void AbstractScTabBgColorDlg_Impl::GetSelectedColor( Color& rColor ) const
864 {
865 m_xDlg->GetSelectedColor( rColor );
866 }
867
createScreenshot() const868 BitmapEx AbstractScTabBgColorDlg_Impl::createScreenshot() const
869 {
870 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
871 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
872 }
873
GetScreenshotId() const874 OString AbstractScTabBgColorDlg_Impl::GetScreenshotId() const
875 {
876 return m_xDlg->get_help_id();
877 }
878
GetImportOptions(ScImportOptions & rOptions) const879 void AbstractScImportOptionsDlg_Impl::GetImportOptions( ScImportOptions& rOptions ) const
880 {
881 m_xDlg->GetImportOptions(rOptions);
882 }
883
SaveImportOptions() const884 void AbstractScImportOptionsDlg_Impl::SaveImportOptions() const
885 {
886 m_xDlg->SaveImportOptions();
887 }
888
GetLanguageType() const889 LanguageType AbstractScTextImportOptionsDlg_Impl::GetLanguageType() const
890 {
891 return m_xDlg->getLanguageType();
892 }
893
IsDateConversionSet() const894 bool AbstractScTextImportOptionsDlg_Impl::IsDateConversionSet() const
895 {
896 return m_xDlg->isDateConversionSet();
897 }
898
IsKeepAskingSet() const899 bool AbstractScTextImportOptionsDlg_Impl::IsKeepAskingSet() const
900 {
901 return m_xDlg->isKeepAskingSet();
902 }
903
createScreenshot() const904 BitmapEx AbstractScTextImportOptionsDlg_Impl::createScreenshot() const
905 {
906 VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
907 return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
908 }
909
GetScreenshotId() const910 OString AbstractScTextImportOptionsDlg_Impl::GetScreenshotId() const
911 {
912 return m_xDlg->get_help_id();
913 }
914
Execute()915 short ScAbstractTabController_Impl::Execute()
916 {
917 return m_xDlg->run();
918 }
919
StartExecuteAsync(AsyncContext & rCtx)920 bool ScAbstractTabController_Impl::StartExecuteAsync(AsyncContext &rCtx)
921 {
922 return SfxTabDialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
923 }
924
SetCurPageId(const OString & rName)925 void ScAbstractTabController_Impl::SetCurPageId( const OString &rName )
926 {
927 m_xDlg->SetCurPageId( rName );
928 }
929
GetOutputItemSet() const930 const SfxItemSet* ScAbstractTabController_Impl::GetOutputItemSet() const
931 {
932 return m_xDlg->GetOutputItemSet();
933 }
934
GetInputRanges(const SfxItemPool & pItem)935 const sal_uInt16* ScAbstractTabController_Impl::GetInputRanges(const SfxItemPool& pItem )
936 {
937 return m_xDlg->GetInputRanges( pItem );
938 }
939
SetInputSet(const SfxItemSet * pInSet)940 void ScAbstractTabController_Impl::SetInputSet( const SfxItemSet* pInSet )
941 {
942 m_xDlg->SetInputSet( pInSet );
943 }
944
945 //From class Window.
SetText(const OUString & rStr)946 void ScAbstractTabController_Impl::SetText( const OUString& rStr )
947 {
948 m_xDlg->set_title(rStr);
949 }
950
getAllPageUIXMLDescriptions() const951 std::vector<OString> ScAbstractTabController_Impl::getAllPageUIXMLDescriptions() const
952 {
953 return m_xDlg->getAllPageUIXMLDescriptions();
954 }
955
selectPageByUIXMLDescription(const OString & rUIXMLDescription)956 bool ScAbstractTabController_Impl::selectPageByUIXMLDescription(const OString& rUIXMLDescription)
957 {
958 return m_xDlg->selectPageByUIXMLDescription(rUIXMLDescription);
959 }
960
createScreenshot() const961 BitmapEx ScAbstractTabController_Impl::createScreenshot() const
962 {
963 return m_xDlg->createScreenshot();
964 }
965
GetScreenshotId() const966 OString ScAbstractTabController_Impl::GetScreenshotId() const
967 {
968 return m_xDlg->GetScreenshotId();
969 }
970
StartExecuteAsync(VclAbstractDialog::AsyncContext & rCtx)971 bool ScAsyncTabController_Impl::StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx)
972 {
973 return SfxTabDialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
974 }
975
SetCurPageId(const OString & rName)976 void ScAsyncTabController_Impl::SetCurPageId( const OString &rName )
977 {
978 m_xDlg->SetCurPageId( rName );
979 }
980
GetOutputItemSet() const981 const SfxItemSet* ScAsyncTabController_Impl::GetOutputItemSet() const
982 {
983 return m_xDlg->GetOutputItemSet();
984 }
985
986 // =========================Factories for createdialog ===================
CreateScImportAsciiDlg(weld::Window * pParent,const OUString & aDatName,SvStream * pInStream,ScImportAsciiCall eCall)987 VclPtr<AbstractScImportAsciiDlg> ScAbstractDialogFactory_Impl::CreateScImportAsciiDlg(weld::Window* pParent,
988 const OUString& aDatName,
989 SvStream* pInStream, ScImportAsciiCall eCall)
990 {
991 return VclPtr<AbstractScImportAsciiDlg_Impl>::Create(std::make_shared<ScImportAsciiDlg>(pParent, aDatName,pInStream, eCall));
992 }
993
CreateScTextImportOptionsDlg(weld::Window * pParent)994 VclPtr<AbstractScTextImportOptionsDlg> ScAbstractDialogFactory_Impl::CreateScTextImportOptionsDlg(weld::Window* pParent)
995 {
996 return VclPtr<AbstractScTextImportOptionsDlg_Impl>::Create(std::make_unique<ScTextImportOptionsDlg>(pParent));
997 }
998
CreateScAutoFormatDlg(weld::Window * pParent,ScAutoFormat * pAutoFormat,const ScAutoFormatData * pSelFormatData,ScViewData & rViewData)999 VclPtr<AbstractScAutoFormatDlg> ScAbstractDialogFactory_Impl::CreateScAutoFormatDlg(weld::Window* pParent,
1000 ScAutoFormat* pAutoFormat,
1001 const ScAutoFormatData* pSelFormatData,
1002 ScViewData& rViewData)
1003 {
1004 return VclPtr<AbstractScAutoFormatDlg_Impl>::Create(std::make_unique<ScAutoFormatDlg>(pParent, pAutoFormat, pSelFormatData, rViewData));
1005 }
1006
CreateScColRowLabelDlg(weld::Window * pParent,bool bCol,bool bRow)1007 VclPtr<AbstractScColRowLabelDlg> ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(weld::Window* pParent,
1008 bool bCol, bool bRow)
1009 {
1010 return VclPtr<AbstractScColRowLabelDlg_Impl>::Create(std::make_unique<ScColRowLabelDlg>(pParent, bCol, bRow));
1011 }
1012
CreateScSortWarningDlg(weld::Window * pParent,const OUString & rExtendText,const OUString & rCurrentText)1013 VclPtr<AbstractScSortWarningDlg> ScAbstractDialogFactory_Impl::CreateScSortWarningDlg(weld::Window* pParent, const OUString& rExtendText, const OUString& rCurrentText)
1014 {
1015 return VclPtr<AbstractScSortWarningDlg_Impl>::Create(std::make_unique<ScSortWarningDlg>(pParent, rExtendText, rCurrentText));
1016 }
1017
CreateScCondFormatMgrDlg(weld::Window * pParent,ScDocument & rDoc,const ScConditionalFormatList * pFormatList)1018 VclPtr<AbstractScCondFormatManagerDlg> ScAbstractDialogFactory_Impl::CreateScCondFormatMgrDlg(weld::Window* pParent, ScDocument& rDoc, const ScConditionalFormatList* pFormatList )
1019 {
1020 return VclPtr<AbstractScCondFormatManagerDlg_Impl>::Create(std::make_shared<ScCondFormatManagerDlg>(pParent, rDoc, pFormatList));
1021 }
1022
CreateScDataPilotDatabaseDlg(weld::Window * pParent)1023 VclPtr<AbstractScDataPilotDatabaseDlg> ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg(weld::Window* pParent)
1024 {
1025 return VclPtr<AbstractScDataPilotDatabaseDlg_Impl>::Create(std::make_shared<ScDataPilotDatabaseDlg>(pParent));
1026 }
1027
CreateScDataPilotSourceTypeDlg(weld::Window * pParent,bool bEnableExternal)1028 VclPtr<AbstractScDataPilotSourceTypeDlg> ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg(
1029 weld::Window* pParent, bool bEnableExternal)
1030 {
1031 return VclPtr<AbstractScDataPilotSourceTypeDlg_Impl>::Create(std::make_shared<ScDataPilotSourceTypeDlg>(pParent, bEnableExternal));
1032 }
1033
CreateScDataPilotServiceDlg(weld::Window * pParent,const std::vector<OUString> & rServices)1034 VclPtr<AbstractScDataPilotServiceDlg> ScAbstractDialogFactory_Impl::CreateScDataPilotServiceDlg(weld::Window* pParent,
1035 const std::vector<OUString>& rServices)
1036 {
1037 return VclPtr<AbstractScDataPilotServiceDlg_Impl>::Create(std::make_shared<ScDataPilotServiceDlg>(pParent, rServices));
1038 }
1039
CreateScDeleteCellDlg(weld::Window * pParent,bool bDisallowCellMove)1040 VclPtr<AbstractScDeleteCellDlg> ScAbstractDialogFactory_Impl::CreateScDeleteCellDlg(weld::Window* pParent,
1041 bool bDisallowCellMove)
1042 {
1043 return VclPtr<AbstractScDeleteCellDlg_Impl>::Create(std::make_unique<ScDeleteCellDlg>(pParent, bDisallowCellMove));
1044 }
1045
CreateScDataFormDlg(weld::Window * pParent,ScTabViewShell * pTabViewShell)1046 VclPtr<AbstractScDataFormDlg> ScAbstractDialogFactory_Impl::CreateScDataFormDlg(weld::Window* pParent,
1047 ScTabViewShell* pTabViewShell)
1048 {
1049 return VclPtr<AbstractScDataFormDlg_Impl>::Create(std::make_unique<ScDataFormDlg>(pParent, pTabViewShell));
1050 }
1051
CreateScDeleteContentsDlg(weld::Window * pParent)1052 VclPtr<AbstractScDeleteContentsDlg> ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(weld::Window* pParent)
1053 {
1054 return VclPtr<AbstractScDeleteContentsDlg_Impl>::Create(std::make_unique<ScDeleteContentsDlg>(pParent));
1055 }
1056
CreateScFillSeriesDlg(weld::Window * pParent,ScDocument & rDocument,FillDir eFillDir,FillCmd eFillCmd,FillDateCmd eFillDateCmd,const OUString & aStartStr,double fStep,double fMax,const SCSIZE nSelectHeight,const SCSIZE nSelectWidth,sal_uInt16 nPossDir)1057 VclPtr<AbstractScFillSeriesDlg> ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg(weld::Window* pParent,
1058 ScDocument& rDocument,
1059 FillDir eFillDir,
1060 FillCmd eFillCmd,
1061 FillDateCmd eFillDateCmd,
1062 const OUString& aStartStr,
1063 double fStep,
1064 double fMax,
1065 const SCSIZE nSelectHeight,
1066 const SCSIZE nSelectWidth,
1067 sal_uInt16 nPossDir)
1068 {
1069 return VclPtr<AbstractScFillSeriesDlg_Impl>::Create(std::make_unique<ScFillSeriesDlg>(pParent, rDocument,eFillDir, eFillCmd,eFillDateCmd, aStartStr,fStep,fMax,nSelectHeight,nSelectWidth,nPossDir));
1070 }
1071
CreateAbstractScGroupDlg(weld::Window * pParent,bool bUnGroup)1072 VclPtr<AbstractScGroupDlg> ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg(weld::Window* pParent, bool bUnGroup)
1073 {
1074 return VclPtr<AbstractScGroupDlg_Impl>::Create(std::make_shared<ScGroupDlg>(pParent, bUnGroup, true/*bRows*/));
1075 }
1076
CreateScInsertCellDlg(weld::Window * pParent,bool bDisallowCellMove)1077 VclPtr<AbstractScInsertCellDlg> ScAbstractDialogFactory_Impl::CreateScInsertCellDlg(weld::Window* pParent,
1078 bool bDisallowCellMove)
1079 {
1080 return VclPtr<AbstractScInsertCellDlg_Impl>::Create(std::make_unique<ScInsertCellDlg>(pParent, bDisallowCellMove));
1081 }
1082
CreateScInsertContentsDlg(weld::Window * pParent,const OUString * pStrTitle)1083 VclPtr<AbstractScInsertContentsDlg> ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg(weld::Window* pParent,
1084 const OUString* pStrTitle)
1085 {
1086 return VclPtr<AbstractScInsertContentsDlg_Impl>::Create(std::make_unique<ScInsertContentsDlg>(pParent, pStrTitle));
1087 }
1088
CreateScInsertTableDlg(weld::Window * pParent,ScViewData & rViewData,SCTAB nTabCount,bool bFromFile)1089 VclPtr<AbstractScInsertTableDlg> ScAbstractDialogFactory_Impl::CreateScInsertTableDlg(weld::Window* pParent, ScViewData& rViewData,
1090 SCTAB nTabCount, bool bFromFile)
1091 {
1092 return VclPtr<AbstractScInsertTableDlg_Impl>::Create(std::make_unique<ScInsertTableDlg>(pParent, rViewData,nTabCount, bFromFile));
1093 }
1094
CreateScSelEntryDlg(weld::Window * pParent,const std::vector<OUString> & rEntryList)1095 VclPtr<AbstractScSelEntryDlg> ScAbstractDialogFactory_Impl::CreateScSelEntryDlg(weld::Window* pParent,
1096 const std::vector<OUString> &rEntryList)
1097 {
1098 return VclPtr<AbstractScSelEntryDlg_Impl>::Create(std::make_unique<ScSelEntryDlg>(pParent, rEntryList));
1099 }
1100
CreateScLinkedAreaDlg(weld::Widget * pParent)1101 VclPtr<AbstractScLinkedAreaDlg> ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg(weld::Widget* pParent)
1102 {
1103 return VclPtr<AbstractScLinkedAreaDlg_Impl>::Create(std::make_unique<ScLinkedAreaDlg>(pParent));
1104 }
1105
CreateScMetricInputDlg(weld::Window * pParent,const OString & sDialogName,tools::Long nCurrent,tools::Long nDefault,FieldUnit eFUnit,sal_uInt16 nDecimals,tools::Long nMaximum,tools::Long nMinimum)1106 VclPtr<AbstractScMetricInputDlg> ScAbstractDialogFactory_Impl::CreateScMetricInputDlg(weld::Window* pParent,
1107 const OString& sDialogName,
1108 tools::Long nCurrent,
1109 tools::Long nDefault,
1110 FieldUnit eFUnit,
1111 sal_uInt16 nDecimals,
1112 tools::Long nMaximum ,
1113 tools::Long nMinimum )
1114 {
1115 return VclPtr<AbstractScMetricInputDlg_Impl>::Create(std::make_unique<ScMetricInputDlg>(pParent, sDialogName, nCurrent ,nDefault, eFUnit,
1116 nDecimals, nMaximum , nMinimum));
1117 }
1118
CreateScMoveTableDlg(weld::Window * pParent,const OUString & rDefault)1119 VclPtr<AbstractScMoveTableDlg> ScAbstractDialogFactory_Impl::CreateScMoveTableDlg(weld::Window* pParent,
1120 const OUString& rDefault)
1121 {
1122 return VclPtr<AbstractScMoveTableDlg_Impl>::Create(std::make_unique<ScMoveTableDlg>(pParent, rDefault));
1123 }
1124
CreateScNameCreateDlg(weld::Window * pParent,CreateNameFlags nFlags)1125 VclPtr<AbstractScNameCreateDlg> ScAbstractDialogFactory_Impl::CreateScNameCreateDlg(weld::Window * pParent, CreateNameFlags nFlags)
1126 {
1127 return VclPtr<AbstractScNameCreateDlg_Impl>::Create(std::make_unique<ScNameCreateDlg>(pParent, nFlags));
1128 }
1129
CreateScNamePasteDlg(weld::Window * pParent,ScDocShell * pShell)1130 VclPtr<AbstractScNamePasteDlg> ScAbstractDialogFactory_Impl::CreateScNamePasteDlg(weld::Window * pParent, ScDocShell* pShell)
1131 {
1132 return VclPtr<AbstractScNamePasteDlg_Impl>::Create(std::make_unique<ScNamePasteDlg>(pParent, pShell));
1133 }
1134
CreateScPivotFilterDlg(weld::Window * pParent,const SfxItemSet & rArgSet,sal_uInt16 nSourceTab)1135 VclPtr<AbstractScPivotFilterDlg> ScAbstractDialogFactory_Impl::CreateScPivotFilterDlg(weld::Window* pParent,
1136 const SfxItemSet& rArgSet, sal_uInt16 nSourceTab)
1137 {
1138 return VclPtr<AbstractScPivotFilterDlg_Impl>::Create(std::make_unique<ScPivotFilterDlg>(pParent, rArgSet, nSourceTab));
1139 }
1140
CreateScDPFunctionDlg(weld::Widget * pParent,const ScDPLabelDataVector & rLabelVec,const ScDPLabelData & rLabelData,const ScPivotFuncData & rFuncData)1141 VclPtr<AbstractScDPFunctionDlg> ScAbstractDialogFactory_Impl::CreateScDPFunctionDlg(weld::Widget* pParent,
1142 const ScDPLabelDataVector& rLabelVec,
1143 const ScDPLabelData& rLabelData,
1144 const ScPivotFuncData& rFuncData)
1145 {
1146 return VclPtr<AbstractScDPFunctionDlg_Impl>::Create(std::make_shared<ScDPFunctionDlg>(pParent, rLabelVec, rLabelData, rFuncData));
1147 }
1148
CreateScDPSubtotalDlg(weld::Widget * pParent,ScDPObject & rDPObj,const ScDPLabelData & rLabelData,const ScPivotFuncData & rFuncData,const ScDPNameVec & rDataFields)1149 VclPtr<AbstractScDPSubtotalDlg> ScAbstractDialogFactory_Impl::CreateScDPSubtotalDlg(weld::Widget* pParent,
1150 ScDPObject& rDPObj,
1151 const ScDPLabelData& rLabelData,
1152 const ScPivotFuncData& rFuncData,
1153 const ScDPNameVec& rDataFields)
1154 {
1155 return VclPtr<AbstractScDPSubtotalDlg_Impl>::Create(std::make_shared<ScDPSubtotalDlg>(pParent, rDPObj, rLabelData, rFuncData, rDataFields, true/*bEnableLayout*/));
1156 }
1157
CreateScDPNumGroupDlg(weld::Window * pParent,const ScDPNumGroupInfo & rInfo)1158 VclPtr<AbstractScDPNumGroupDlg> ScAbstractDialogFactory_Impl::CreateScDPNumGroupDlg(weld::Window* pParent, const ScDPNumGroupInfo& rInfo)
1159 {
1160 return VclPtr<AbstractScDPNumGroupDlg_Impl>::Create(std::make_unique<ScDPNumGroupDlg>(pParent, rInfo));
1161 }
1162
CreateScDPDateGroupDlg(weld::Window * pParent,const ScDPNumGroupInfo & rInfo,sal_Int32 nDatePart,const Date & rNullDate)1163 VclPtr<AbstractScDPDateGroupDlg> ScAbstractDialogFactory_Impl::CreateScDPDateGroupDlg(
1164 weld::Window* pParent, const ScDPNumGroupInfo& rInfo, sal_Int32 nDatePart, const Date& rNullDate)
1165 {
1166 return VclPtr<AbstractScDPDateGroupDlg_Impl>::Create(std::make_unique<ScDPDateGroupDlg>(pParent, rInfo, nDatePart, rNullDate));
1167 }
1168
CreateScDPShowDetailDlg(weld::Window * pParent,ScDPObject & rDPObj,css::sheet::DataPilotFieldOrientation nOrient)1169 VclPtr<AbstractScDPShowDetailDlg> ScAbstractDialogFactory_Impl::CreateScDPShowDetailDlg (
1170 weld::Window* pParent, ScDPObject& rDPObj, css::sheet::DataPilotFieldOrientation nOrient )
1171 {
1172 return VclPtr<AbstractScDPShowDetailDlg_Impl>::Create(std::make_unique<ScDPShowDetailDlg>(pParent, rDPObj, nOrient));
1173 }
1174
CreateScNewScenarioDlg(weld::Window * pParent,const OUString & rName,bool bEdit,bool bSheetProtected)1175 VclPtr<AbstractScNewScenarioDlg> ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg(weld::Window* pParent, const OUString& rName,
1176 bool bEdit, bool bSheetProtected)
1177 {
1178 return VclPtr<AbstractScNewScenarioDlg_Impl>::Create(std::make_unique<ScNewScenarioDlg>(pParent, rName, bEdit, bSheetProtected));
1179 }
1180
CreateScShowTabDlg(weld::Window * pParent)1181 VclPtr<AbstractScShowTabDlg> ScAbstractDialogFactory_Impl::CreateScShowTabDlg(weld::Window* pParent)
1182 {
1183 return VclPtr<AbstractScShowTabDlg_Impl>::Create(std::make_shared<ScShowTabDlg>(pParent));
1184 }
1185
CreateScStringInputDlg(weld::Window * pParent,const OUString & rTitle,const OUString & rEditTitle,const OUString & rDefault,const OString & rHelpId,const OString & rEditHelpId)1186 VclPtr<AbstractScStringInputDlg> ScAbstractDialogFactory_Impl::CreateScStringInputDlg(weld::Window* pParent,
1187 const OUString& rTitle, const OUString& rEditTitle, const OUString& rDefault, const OString& rHelpId,
1188 const OString& rEditHelpId)
1189 {
1190 return VclPtr<AbstractScStringInputDlg_Impl>::Create(std::make_unique<ScStringInputDlg>(pParent, rTitle, rEditTitle,
1191 rDefault, rHelpId, rEditHelpId));
1192 }
1193
CreateScTabBgColorDlg(weld::Window * pParent,const OUString & rTitle,const OUString & rTabBgColorNoColorText,const Color & rDefaultColor)1194 VclPtr<AbstractScTabBgColorDlg> ScAbstractDialogFactory_Impl::CreateScTabBgColorDlg(
1195 weld::Window* pParent,
1196 const OUString& rTitle,
1197 const OUString& rTabBgColorNoColorText,
1198 const Color& rDefaultColor)
1199 {
1200 return VclPtr<AbstractScTabBgColorDlg_Impl>::Create(std::make_unique<ScTabBgColorDlg>(pParent, rTitle, rTabBgColorNoColorText, rDefaultColor));
1201 }
1202
CreateScImportOptionsDlg(weld::Window * pParent,bool bAscii,const ScImportOptions * pOptions,const OUString * pStrTitle,bool bOnlyDbtoolsEncodings,bool bImport)1203 VclPtr<AbstractScImportOptionsDlg> ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg(weld::Window* pParent,
1204 bool bAscii,
1205 const ScImportOptions* pOptions,
1206 const OUString* pStrTitle,
1207 bool bOnlyDbtoolsEncodings,
1208 bool bImport)
1209 {
1210 return VclPtr<AbstractScImportOptionsDlg_Impl>::Create(std::make_unique<ScImportOptionsDlg>(pParent, bAscii, pOptions, pStrTitle, true/*bMultiByte*/, bOnlyDbtoolsEncodings, bImport));
1211 }
1212
CreateScAttrDlg(weld::Window * pParent,const SfxItemSet * pCellAttrs)1213 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScAttrDlg(weld::Window* pParent, const SfxItemSet* pCellAttrs)
1214 {
1215 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScAttrDlg>(pParent, pCellAttrs));
1216 }
1217
CreateScHFEditDlg(weld::Window * pParent,const SfxItemSet & rCoreSet,const OUString & rPageStyle,sal_uInt16 nResId)1218 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScHFEditDlg( weld::Window* pParent,
1219 const SfxItemSet& rCoreSet,
1220 const OUString& rPageStyle,
1221 sal_uInt16 nResId )
1222 {
1223 std::shared_ptr<SfxTabDialogController> xDlg;
1224
1225 switch (nResId)
1226 {
1227 case RID_SCDLG_HFED_HEADER:
1228 case RID_SCDLG_HFEDIT_HEADER:
1229 xDlg = std::make_shared<ScHFEditHeaderDlg>(pParent, rCoreSet, rPageStyle);
1230 break;
1231 case RID_SCDLG_HFED_FOOTER:
1232 case RID_SCDLG_HFEDIT_FOOTER:
1233 xDlg = std::make_shared<ScHFEditFooterDlg>(pParent, rCoreSet, rPageStyle);
1234 break;
1235 case RID_SCDLG_HFEDIT_LEFTHEADER:
1236 xDlg = std::make_shared<ScHFEditLeftHeaderDlg>(pParent, rCoreSet, rPageStyle);
1237 break;
1238 case RID_SCDLG_HFEDIT_RIGHTHEADER:
1239 xDlg = std::make_shared<ScHFEditRightHeaderDlg>(pParent, rCoreSet, rPageStyle);
1240 break;
1241 case RID_SCDLG_HFEDIT_LEFTFOOTER:
1242 xDlg = std::make_shared<ScHFEditLeftFooterDlg>(pParent, rCoreSet, rPageStyle);
1243 break;
1244 case RID_SCDLG_HFEDIT_RIGHTFOOTER:
1245 xDlg = std::make_shared<ScHFEditRightFooterDlg>(pParent, rCoreSet, rPageStyle);
1246 break;
1247 case RID_SCDLG_HFEDIT_SHDR:
1248 xDlg = std::make_shared<ScHFEditSharedHeaderDlg>(pParent, rCoreSet, rPageStyle);
1249 break;
1250 case RID_SCDLG_HFEDIT_SFTR:
1251 xDlg = std::make_shared<ScHFEditSharedFooterDlg>(pParent, rCoreSet, rPageStyle);
1252 break;
1253 case RID_SCDLG_HFEDIT_ALL:
1254 xDlg = std::make_shared<ScHFEditAllDlg>(pParent, rCoreSet, rPageStyle);
1255 break;
1256 default:
1257 case RID_SCDLG_HFEDIT:
1258 xDlg = std::make_shared<ScHFEditActiveDlg>(pParent, rCoreSet, rPageStyle);
1259 break;
1260 }
1261
1262 return xDlg ? VclPtr<ScAbstractTabController_Impl>::Create(std::move(xDlg)) : nullptr;
1263 }
1264
CreateScStyleDlg(weld::Window * pParent,SfxStyleSheetBase & rStyleBase,bool bPage)1265 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScStyleDlg(weld::Window* pParent,
1266 SfxStyleSheetBase& rStyleBase,
1267 bool bPage)
1268 {
1269 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScStyleDlg>(pParent, rStyleBase, bPage));
1270 }
1271
CreateScSubTotalDlg(weld::Window * pParent,const SfxItemSet & rArgSet)1272 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScSubTotalDlg(weld::Window* pParent, const SfxItemSet& rArgSet)
1273 {
1274 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScSubTotalDlg>(pParent, rArgSet));
1275 }
1276
CreateScCharDlg(weld::Window * pParent,const SfxItemSet * pAttr,const SfxObjectShell * pDocShell,bool bDrawText)1277 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScCharDlg(
1278 weld::Window* pParent, const SfxItemSet* pAttr, const SfxObjectShell* pDocShell, bool bDrawText)
1279 {
1280 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScCharDlg>(pParent, pAttr, pDocShell, bDrawText));
1281 }
1282
CreateScParagraphDlg(weld::Window * pParent,const SfxItemSet * pAttr)1283 VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScParagraphDlg(
1284 weld::Window* pParent, const SfxItemSet* pAttr)
1285 {
1286 return VclPtr<ScAbstractTabController_Impl>::Create(std::make_shared<ScParagraphDlg>(pParent, pAttr));
1287 }
1288
CreateScSortDlg(weld::Window * pParent,const SfxItemSet * pArgSet)1289 std::shared_ptr<ScAsyncTabController> ScAbstractDialogFactory_Impl::CreateScSortDlg(weld::Window* pParent, const SfxItemSet* pArgSet)
1290 {
1291 return std::make_shared<ScAsyncTabController_Impl>(std::make_shared<ScSortDlg>(pParent, pArgSet));
1292 }
1293
1294 //------------------ Factories for TabPages--------------------
GetTabPageCreatorFunc(sal_uInt16 nId)1295 CreateTabPage ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
1296 {
1297 switch (nId)
1298 {
1299 case SID_SC_TP_CHANGES:
1300 return ScRedlineOptionsTabPage::Create;
1301 case SID_SC_TP_CALC:
1302 return ScTpCalcOptions::Create;
1303 case SID_SC_TP_FORMULA:
1304 return ScTpFormulaOptions::Create;
1305 case SID_SC_TP_COMPATIBILITY:
1306 return ScTpCompatOptions::Create;
1307 case RID_SC_TP_DEFAULTS:
1308 return ScTpDefaultsOptions::Create;
1309 case RID_SC_TP_PRINT:
1310 return ScTpPrintOptions::Create;
1311 case SID_SC_TP_STAT:
1312 return ScDocStatPage::Create;
1313 case SID_SC_TP_USERLISTS:
1314 return ScTpUserLists::Create;
1315 case SID_SC_TP_CONTENT:
1316 return ScTpContentOptions::Create;
1317 case SID_SC_TP_LAYOUT:
1318 return ScTpLayoutOptions::Create;
1319 default:
1320 break;
1321 }
1322
1323 return nullptr;
1324 }
1325
1326 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
1327