Update git submodules
[LibreOffice.git] / sc / source / ui / attrdlg / scdlgfact.hxx
blobfe60d59bc8e6f838cb57952a6c55d15879d5b4b7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #pragma once
21 #include <scabstdlg.hxx>
22 #include <sfx2/sfxdlg.hxx>
24 #include <corodlg.hxx>
25 #include <condformatmgr.hxx>
26 #include <dapitype.hxx>
27 #include <dapidata.hxx>
28 #include <datafdlg.hxx>
29 #include <delcodlg.hxx>
30 #include <delcldlg.hxx>
31 #include <dpgroupdlg.hxx>
32 #include <filldlg.hxx>
33 #include <gototabdlg.hxx>
34 #include <groupdlg.hxx>
35 #include <linkarea.hxx>
36 #include <lbseldlg.hxx>
37 #include <inscldlg.hxx>
38 #include <instbdlg.hxx>
39 #include <inscodlg.hxx>
40 #include <mtrindlg.hxx>
41 #include <mvtabdlg.hxx>
42 #include <namecrea.hxx>
43 #include <namepast.hxx>
44 #include <pfiltdlg.hxx>
45 #include <pvfundlg.hxx>
46 #include <shtabdlg.hxx>
47 #include <scendlg.hxx>
48 #include <scuiasciiopt.hxx>
49 #include <scuiautofmt.hxx>
50 #include <scuiimoptdlg.hxx>
51 #include <sortdlg.hxx>
52 #include <strindlg.hxx>
53 #include <tabbgcolordlg.hxx>
54 #include <textimportoptions.hxx>
56 class AbstractScImportAsciiDlg_Impl : public AbstractScImportAsciiDlg
58 std::shared_ptr<ScImportAsciiDlg> m_xDlg;
59 public:
60 explicit AbstractScImportAsciiDlg_Impl(std::shared_ptr<ScImportAsciiDlg> p)
61 : m_xDlg(std::move(p))
64 virtual short Execute() override;
65 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
66 virtual void GetOptions( ScAsciiOptions& rOpt ) override;
67 virtual void SaveParameters() override;
69 // screenshotting
70 virtual BitmapEx createScreenshot() const override;
71 virtual OUString GetScreenshotId() const override;
74 class AbstractScAutoFormatDlg_Impl : public AbstractScAutoFormatDlg
76 std::unique_ptr<ScAutoFormatDlg> m_xDlg;
77 public:
78 explicit AbstractScAutoFormatDlg_Impl(std::unique_ptr<ScAutoFormatDlg> p)
79 : m_xDlg(std::move(p))
82 virtual short Execute() override;
83 virtual sal_uInt16 GetIndex() const override;
84 virtual OUString GetCurrFormatName() override;
87 class AbstractScColRowLabelDlg_Impl : public AbstractScColRowLabelDlg
89 std::shared_ptr<ScColRowLabelDlg> m_xDlg;
90 public:
91 explicit AbstractScColRowLabelDlg_Impl(std::shared_ptr<ScColRowLabelDlg> p)
92 : m_xDlg(std::move(p))
95 virtual short Execute() override;
96 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
97 virtual bool IsCol() override;
98 virtual bool IsRow() override;
100 // screenshotting
101 virtual BitmapEx createScreenshot() const override;
102 virtual OUString GetScreenshotId() const override;
105 class AbstractScCondFormatManagerDlg_Impl : public AbstractScCondFormatManagerDlg
107 std::shared_ptr<ScCondFormatManagerDlg> m_xDlg;
108 public:
109 explicit AbstractScCondFormatManagerDlg_Impl(std::shared_ptr<ScCondFormatManagerDlg> p)
110 : m_xDlg(std::move(p))
113 virtual short Execute() override;
114 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
115 virtual std::unique_ptr<ScConditionalFormatList> GetConditionalFormatList() override;
116 virtual bool CondFormatsChanged() const override;
117 virtual void SetModified() override;
118 virtual ScConditionalFormat* GetCondFormatSelected() override;
121 class AbstractScDataPilotDatabaseDlg_Impl :public AbstractScDataPilotDatabaseDlg
123 std::shared_ptr<ScDataPilotDatabaseDlg> m_xDlg;
124 public:
125 explicit AbstractScDataPilotDatabaseDlg_Impl(std::shared_ptr<ScDataPilotDatabaseDlg> p)
126 : m_xDlg(std::move(p))
129 virtual short Execute() override;
130 virtual bool StartExecuteAsync(AsyncContext &) override;
131 virtual void GetValues( ScImportSourceDesc& rDesc ) override;
133 // screenshotting
134 virtual BitmapEx createScreenshot() const override;
135 virtual OUString GetScreenshotId() const override;
138 class AbstractScDataPilotSourceTypeDlg_Impl :public AbstractScDataPilotSourceTypeDlg
140 std::shared_ptr<ScDataPilotSourceTypeDlg> m_xDlg;
141 public:
142 explicit AbstractScDataPilotSourceTypeDlg_Impl(std::shared_ptr<ScDataPilotSourceTypeDlg> p)
143 : m_xDlg(std::move(p))
146 virtual short Execute() override;
147 virtual bool StartExecuteAsync(AsyncContext &) override;
148 virtual bool IsDatabase() const override;
149 virtual bool IsExternal() const override;
150 virtual bool IsNamedRange() const override;
151 virtual OUString GetSelectedNamedRange() const override;
152 virtual void AppendNamedRange(const OUString& rName) override;
154 // screenshotting
155 virtual BitmapEx createScreenshot() const override;
156 virtual OUString GetScreenshotId() const override;
159 class AbstractScDataPilotServiceDlg_Impl : public AbstractScDataPilotServiceDlg
161 std::shared_ptr<ScDataPilotServiceDlg> m_xDlg;
162 public:
163 explicit AbstractScDataPilotServiceDlg_Impl(std::shared_ptr<ScDataPilotServiceDlg> p)
164 : m_xDlg(std::move(p))
167 virtual short Execute() override;
168 virtual bool StartExecuteAsync(AsyncContext &) override;
169 virtual OUString GetServiceName() const override;
170 virtual OUString GetParSource() const override;
171 virtual OUString GetParName() const override;
172 virtual OUString GetParUser() const override;
173 virtual OUString GetParPass() const override;
176 class AbstractScDeleteCellDlg_Impl : public AbstractScDeleteCellDlg
178 std::shared_ptr<ScDeleteCellDlg> m_xDlg;
179 public:
180 explicit AbstractScDeleteCellDlg_Impl(std::unique_ptr<ScDeleteCellDlg> p)
181 : m_xDlg(std::move(p))
184 virtual short Execute() override;
185 virtual bool StartExecuteAsync(AsyncContext& rCtx) override;
186 virtual DelCellCmd GetDelCellCmd() const override;
188 // screenshotting
189 virtual BitmapEx createScreenshot() const override;
190 virtual OUString GetScreenshotId() const override;
193 //for dataform
194 class AbstractScDataFormDlg_Impl : public AbstractScDataFormDlg
196 std::unique_ptr<ScDataFormDlg> m_xDlg;
197 public:
198 explicit AbstractScDataFormDlg_Impl(std::unique_ptr<ScDataFormDlg> p)
199 : m_xDlg(std::move(p))
202 virtual short Execute() override;
204 // screenshotting
205 virtual BitmapEx createScreenshot() const override;
206 virtual OUString GetScreenshotId() const override;
209 class AbstractScDeleteContentsDlg_Impl : public AbstractScDeleteContentsDlg
211 std::unique_ptr<ScDeleteContentsDlg> m_xDlg;
212 public:
213 explicit AbstractScDeleteContentsDlg_Impl(std::unique_ptr<ScDeleteContentsDlg> p)
214 : m_xDlg(std::move(p))
217 virtual short Execute() override;
218 virtual void DisableObjects() override;
219 virtual InsertDeleteFlags GetDelContentsCmdBits() const override;
221 // screenshotting
222 virtual BitmapEx createScreenshot() const override;
223 virtual OUString GetScreenshotId() const override;
226 class AbstractScFillSeriesDlg_Impl:public AbstractScFillSeriesDlg
228 std::unique_ptr<ScFillSeriesDlg> m_xDlg;
229 public:
230 explicit AbstractScFillSeriesDlg_Impl(std::unique_ptr<ScFillSeriesDlg> p)
231 : m_xDlg(std::move(p))
234 virtual short Execute() override;
235 virtual FillDir GetFillDir() const override;
236 virtual FillCmd GetFillCmd() const override;
237 virtual FillDateCmd GetFillDateCmd() const override;
238 virtual double GetStart() const override;
239 virtual double GetStep() const override;
240 virtual double GetMax() const override;
241 virtual OUString GetStartStr() const override;
242 virtual void SetEdStartValEnabled(bool bFlag) override;
245 class AbstractScGroupDlg_Impl : public AbstractScGroupDlg
247 std::shared_ptr<ScGroupDlg> m_xDlg;
248 public:
249 explicit AbstractScGroupDlg_Impl(std::shared_ptr<ScGroupDlg> p)
250 : m_xDlg(std::move(p))
253 virtual short Execute() override;
254 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
255 virtual bool GetColsChecked() const override;
258 class AbstractScInsertCellDlg_Impl : public AbstractScInsertCellDlg
260 std::shared_ptr<ScInsertCellDlg> m_xDlg;
261 public:
262 explicit AbstractScInsertCellDlg_Impl(std::unique_ptr<ScInsertCellDlg> p)
263 : m_xDlg(std::move(p))
266 virtual short Execute() override;
267 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
268 virtual InsCellCmd GetInsCellCmd() const override ;
269 virtual size_t GetCount() const override ;
272 class AbstractScInsertContentsDlg_Impl : public AbstractScInsertContentsDlg
274 std::unique_ptr<ScInsertContentsDlg> m_xDlg;
275 public:
276 explicit AbstractScInsertContentsDlg_Impl(std::unique_ptr<ScInsertContentsDlg> p)
277 : m_xDlg(std::move(p))
280 virtual short Execute() override;
281 virtual InsertDeleteFlags GetInsContentsCmdBits() const override;
282 virtual ScPasteFunc GetFormulaCmdBits() const override;
283 virtual bool IsSkipEmptyCells() const override;
284 virtual bool IsLink() const override;
285 virtual void SetFillMode( bool bSet ) override;
286 virtual void SetOtherDoc( bool bSet ) override;
287 virtual bool IsTranspose() const override;
288 virtual void SetChangeTrack( bool bSet ) override;
289 virtual void SetCellShiftDisabled( CellShiftDisabledFlags nDisable ) override;
290 virtual InsCellCmd GetMoveMode() override;
292 // screenshotting
293 virtual BitmapEx createScreenshot() const override;
294 virtual OUString GetScreenshotId() const override;
297 class AbstractScInsertTableDlg_Impl : public AbstractScInsertTableDlg
299 std::shared_ptr<ScInsertTableDlg> m_xDlg;
300 public:
301 explicit AbstractScInsertTableDlg_Impl(std::shared_ptr<ScInsertTableDlg> p)
302 : m_xDlg(std::move(p))
305 virtual short Execute() override;
306 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
307 virtual bool GetTablesFromFile() override;
308 virtual bool GetTablesAsLink() override;
309 virtual const OUString* GetFirstTable( sal_uInt16* pN = nullptr ) override;
310 virtual ScDocShell* GetDocShellTables() override;
311 virtual bool IsTableBefore() override;
312 virtual sal_uInt16 GetTableCount() override;
313 virtual const OUString* GetNextTable( sal_uInt16* pN ) override;
315 // screenshotting
316 virtual BitmapEx createScreenshot() const override;
317 virtual OUString GetScreenshotId() const override;
320 class AbstractScSelEntryDlg_Impl : public AbstractScSelEntryDlg
322 std::shared_ptr<ScSelEntryDlg> m_xDlg;
323 public:
324 explicit AbstractScSelEntryDlg_Impl(std::unique_ptr<ScSelEntryDlg> p)
325 : m_xDlg(std::move(p))
328 virtual short Execute() override;
329 virtual bool StartExecuteAsync(AsyncContext& rCtx) override;
330 virtual OUString GetSelectedEntry() const override;
333 class AbstractScLinkedAreaDlg_Impl : public AbstractScLinkedAreaDlg
335 std::unique_ptr<ScLinkedAreaDlg> m_xDlg;
336 public:
337 explicit AbstractScLinkedAreaDlg_Impl(std::unique_ptr<ScLinkedAreaDlg> p)
338 : m_xDlg(std::move(p))
341 virtual ~AbstractScLinkedAreaDlg_Impl() override;
342 virtual short Execute() override;
343 virtual void InitFromOldLink( const OUString& rFile, const OUString& rFilter,
344 const OUString& rOptions, const OUString& rSource,
345 sal_Int32 nRefreshDelaySeconds ) override;
346 virtual OUString GetURL() override;
347 virtual OUString GetFilter() override; // may be empty
348 virtual OUString GetOptions() override; // filter options
349 virtual OUString GetSource() override; // separated by ";"
350 virtual sal_Int32 GetRefreshDelaySeconds() override; // 0 if disabled
353 class AbstractScMetricInputDlg_Impl : public AbstractScMetricInputDlg
355 std::shared_ptr<ScMetricInputDlg> m_xDlg;
356 public:
357 explicit AbstractScMetricInputDlg_Impl(std::shared_ptr<ScMetricInputDlg> p)
358 : m_xDlg(std::move(p))
361 virtual short Execute() override;
362 virtual bool StartExecuteAsync(AsyncContext& rCtx) override;
363 virtual int GetInputValue() const override;
366 class AbstractScMoveTableDlg_Impl : public AbstractScMoveTableDlg
368 std::shared_ptr<ScMoveTableDlg> m_xDlg;
369 public:
370 explicit AbstractScMoveTableDlg_Impl(std::shared_ptr<ScMoveTableDlg> p)
371 : m_xDlg(std::move(p))
374 virtual short Execute() override;
375 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext& rCtx) override;
376 virtual sal_uInt16 GetSelectedDocument () const override;
377 virtual sal_uInt16 GetSelectedTable () const override;
378 virtual bool GetCopyTable () const override;
379 virtual bool GetRenameTable () const override;
380 virtual void GetTabNameString( OUString& rString ) const override;
381 virtual void SetForceCopyTable () override;
382 virtual void EnableRenameTable (bool bFlag) override;
384 // screenshotting
385 virtual BitmapEx createScreenshot() const override;
386 virtual OUString GetScreenshotId() const override;
389 class AbstractScNameCreateDlg_Impl : public AbstractScNameCreateDlg
391 std::unique_ptr<ScNameCreateDlg> m_xDlg;
392 public:
393 explicit AbstractScNameCreateDlg_Impl(std::unique_ptr<ScNameCreateDlg> p)
394 : m_xDlg(std::move(p))
397 virtual short Execute() override;
398 virtual CreateNameFlags GetFlags() const override;
400 // screenshotting
401 virtual BitmapEx createScreenshot() const override;
402 virtual OUString GetScreenshotId() const override;
405 class AbstractScNamePasteDlg_Impl : public AbstractScNamePasteDlg
407 std::unique_ptr<ScNamePasteDlg> m_xDlg;
408 public:
409 explicit AbstractScNamePasteDlg_Impl(std::unique_ptr<ScNamePasteDlg> p)
410 : m_xDlg(std::move(p))
413 virtual short Execute() override;
414 virtual std::vector<OUString> GetSelectedNames() const override;
417 class AbstractScPivotFilterDlg_Impl : public AbstractScPivotFilterDlg
419 std::unique_ptr<ScPivotFilterDlg> m_xDlg;
420 public:
421 explicit AbstractScPivotFilterDlg_Impl(std::unique_ptr<ScPivotFilterDlg> p)
422 : m_xDlg(std::move(p))
425 virtual short Execute() override;
426 virtual const ScQueryItem& GetOutputItem() override;
429 class AbstractScDPFunctionDlg_Impl : public AbstractScDPFunctionDlg
431 std::shared_ptr<ScDPFunctionDlg> m_xDlg;
432 public:
433 explicit AbstractScDPFunctionDlg_Impl(std::shared_ptr<ScDPFunctionDlg> p)
434 : m_xDlg(std::move(p))
437 virtual short Execute() override;
438 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
439 virtual PivotFunc GetFuncMask() const override;
440 virtual css::sheet::DataPilotFieldReference GetFieldRef() const override;
441 virtual void Response(int nResponse) override;
444 class AbstractScDPSubtotalDlg_Impl : public AbstractScDPSubtotalDlg
446 std::shared_ptr<ScDPSubtotalDlg> m_xDlg;
447 public:
448 explicit AbstractScDPSubtotalDlg_Impl(std::shared_ptr<ScDPSubtotalDlg> p)
449 : m_xDlg(std::move(p))
452 virtual short Execute() override;
453 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
454 virtual PivotFunc GetFuncMask() const override;
455 virtual void FillLabelData( ScDPLabelData& rLabelData ) const override;
456 virtual void Response(int nResponse) override;
459 class AbstractScDPNumGroupDlg_Impl : public AbstractScDPNumGroupDlg
461 std::unique_ptr<ScDPNumGroupDlg> m_xDlg;
462 public:
463 explicit AbstractScDPNumGroupDlg_Impl(std::unique_ptr<ScDPNumGroupDlg> p)
464 : m_xDlg(std::move(p))
467 virtual short Execute() override;
468 virtual ScDPNumGroupInfo GetGroupInfo() const override;
471 class AbstractScDPDateGroupDlg_Impl : public AbstractScDPDateGroupDlg
473 std::unique_ptr<ScDPDateGroupDlg> m_xDlg;
474 public:
475 explicit AbstractScDPDateGroupDlg_Impl(std::unique_ptr<ScDPDateGroupDlg> p)
476 : m_xDlg(std::move(p))
479 virtual short Execute() override;
480 virtual ScDPNumGroupInfo GetGroupInfo() const override;
481 virtual sal_Int32 GetDatePart() const override;
484 class AbstractScDPShowDetailDlg_Impl : public AbstractScDPShowDetailDlg
486 std::unique_ptr<ScDPShowDetailDlg> m_xDlg;
487 public:
488 explicit AbstractScDPShowDetailDlg_Impl(std::unique_ptr<ScDPShowDetailDlg> p)
489 : m_xDlg(std::move(p))
492 virtual short Execute() override;
493 virtual OUString GetDimensionName() const override;
496 class AbstractScNewScenarioDlg_Impl : public AbstractScNewScenarioDlg
498 std::unique_ptr<ScNewScenarioDlg> m_xDlg;
499 public:
500 explicit AbstractScNewScenarioDlg_Impl(std::unique_ptr<ScNewScenarioDlg> p)
501 : m_xDlg(std::move(p))
504 virtual short Execute() override;
506 virtual void SetScenarioData( const OUString& rName, const OUString& rComment,
507 const Color& rColor, ScScenarioFlags nFlags ) override;
509 virtual void GetScenarioData( OUString& rName, OUString& rComment,
510 Color& rColor, ScScenarioFlags& rFlags ) const override;
513 class AbstractScShowTabDlg_Impl : public AbstractScShowTabDlg
515 std::shared_ptr<ScShowTabDlg> m_xDlg;
516 public:
517 explicit AbstractScShowTabDlg_Impl(std::shared_ptr<ScShowTabDlg> p)
518 : m_xDlg(std::move(p))
521 virtual short Execute() override;
522 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
523 virtual void Insert( const OUString& rString, bool bSelected ) override;
524 virtual void SetDescription(const OUString& rTitle, const OUString& rFixedText, const OUString& sDlgHelpId, const OUString& sLbHelpId) override;
525 virtual OUString GetEntry(sal_Int32 nPos) const override;
526 virtual std::vector<sal_Int32> GetSelectedRows() const override;
529 class AbstractScGoToTabDlg_Impl : public AbstractScGoToTabDlg
531 std::shared_ptr<ScGoToTabDlg> m_xDlg;
532 public:
533 explicit AbstractScGoToTabDlg_Impl(std::shared_ptr<ScGoToTabDlg> p)
534 : m_xDlg(std::move(p))
537 virtual short Execute() override;
538 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
539 virtual void Insert( const OUString& rString, bool bSelected ) override;
540 virtual void SetDescription(const OUString& rTitle, const OUString& rEntryLabel, const OUString& rListLabel,
541 const OUString& rDlgHelpId, const OUString& rEnHelpId, const OUString& rLbHelpId) override;
542 virtual OUString GetSelectedEntry() const override;
545 class AbstractScSortWarningDlg_Impl : public AbstractScSortWarningDlg
547 std::unique_ptr<ScSortWarningDlg> m_xDlg;
548 public:
549 explicit AbstractScSortWarningDlg_Impl(std::unique_ptr<ScSortWarningDlg> p)
550 : m_xDlg(std::move(p))
553 virtual short Execute() override;
556 class AbstractScStringInputDlg_Impl : public AbstractScStringInputDlg
558 std::shared_ptr<ScStringInputDlg> m_xDlg;
559 public:
560 explicit AbstractScStringInputDlg_Impl(std::shared_ptr<ScStringInputDlg> p)
561 : m_xDlg(std::move(p))
564 virtual short Execute() override;
565 virtual bool StartExecuteAsync(AsyncContext &rCtx) override;
566 virtual OUString GetInputString() const override;
568 // screenshotting
569 virtual BitmapEx createScreenshot() const override;
570 virtual OUString GetScreenshotId() const override;
573 class AbstractScTabBgColorDlg_Impl : public AbstractScTabBgColorDlg
575 std::shared_ptr<ScTabBgColorDlg> m_xDlg;
576 public:
577 explicit AbstractScTabBgColorDlg_Impl(std::shared_ptr<ScTabBgColorDlg> p)
578 : m_xDlg(std::move(p))
581 virtual short Execute() override;
582 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
583 virtual void GetSelectedColor( Color& rColor ) const override;
585 // screenshotting
586 virtual BitmapEx createScreenshot() const override;
587 virtual OUString GetScreenshotId() const override;
590 class AbstractScImportOptionsDlg_Impl : public AbstractScImportOptionsDlg
592 std::unique_ptr<ScImportOptionsDlg> m_xDlg;
593 public:
594 explicit AbstractScImportOptionsDlg_Impl(std::unique_ptr<ScImportOptionsDlg> p)
595 : m_xDlg(std::move(p))
598 virtual short Execute() override;
599 virtual void GetImportOptions( ScImportOptions& rOptions ) const override;
600 virtual void SaveImportOptions() const override;
603 class AbstractScTextImportOptionsDlg_Impl : public AbstractScTextImportOptionsDlg
605 std::unique_ptr<ScTextImportOptionsDlg> m_xDlg;
606 public:
607 explicit AbstractScTextImportOptionsDlg_Impl(std::unique_ptr<ScTextImportOptionsDlg> p)
608 : m_xDlg(std::move(p))
611 virtual short Execute() override;
612 virtual LanguageType GetLanguageType() const override;
613 virtual bool IsDateConversionSet() const override;
614 virtual bool IsScientificConversionSet() const override;
615 virtual bool IsKeepAskingSet() const override;
617 // screenshotting
618 virtual BitmapEx createScreenshot() const override;
619 virtual OUString GetScreenshotId() const override;
622 class ScAbstractTabController_Impl : public SfxAbstractTabDialog
624 std::shared_ptr<SfxTabDialogController> m_xDlg;
625 public:
626 explicit ScAbstractTabController_Impl(std::shared_ptr<SfxTabDialogController> p)
627 : m_xDlg(std::move(p))
630 virtual short Execute() override;
631 virtual bool StartExecuteAsync(AsyncContext &rCtx) override;
632 virtual void SetCurPageId( const OUString &rName ) override;
633 virtual const SfxItemSet* GetOutputItemSet() const override;
634 virtual WhichRangesContainer GetInputRanges( const SfxItemPool& pItem ) override;
635 virtual void SetInputSet( const SfxItemSet* pInSet ) override;
636 virtual void SetText( const OUString& rStr ) override;
638 // screenshotting
639 virtual std::vector<OUString> getAllPageUIXMLDescriptions() const override;
640 virtual bool selectPageByUIXMLDescription(const OUString& rUIXMLDescription) override;
641 virtual BitmapEx createScreenshot() const override;
642 virtual OUString GetScreenshotId() const override;
645 class ScAsyncTabController_Impl : public ScAsyncTabController
647 std::shared_ptr<SfxTabDialogController> m_xDlg;
648 public:
649 explicit ScAsyncTabController_Impl(std::shared_ptr<SfxTabDialogController> p)
650 : m_xDlg(std::move(p))
653 virtual bool StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx) override;
654 virtual const SfxItemSet* GetOutputItemSet() const override;
655 virtual void SetCurPageId( const OUString &rName ) override;
658 //AbstractDialogFactory_Impl implementations
659 class ScAbstractDialogFactory_Impl : public ScAbstractDialogFactory
662 public:
663 virtual ~ScAbstractDialogFactory_Impl() {}
665 virtual VclPtr<AbstractScImportAsciiDlg> CreateScImportAsciiDlg(weld::Window* pParent,
666 const OUString& aDatName,
667 SvStream* pInStream,
668 ScImportAsciiCall eCall) override;
670 virtual VclPtr<AbstractScTextImportOptionsDlg> CreateScTextImportOptionsDlg(weld::Window* pParent) override;
672 virtual VclPtr<AbstractScAutoFormatDlg> CreateScAutoFormatDlg(weld::Window* pParent,
673 ScAutoFormat* pAutoFormat,
674 const ScAutoFormatData* pSelFormatData,
675 ScViewData& rViewData) override;
676 virtual VclPtr<AbstractScColRowLabelDlg> CreateScColRowLabelDlg (weld::Window* pParent,
677 bool bCol,
678 bool bRow) override;
680 virtual VclPtr<AbstractScSortWarningDlg> CreateScSortWarningDlg(weld::Window* pParent, const OUString& rExtendText, const OUString& rCurrentText ) override;
682 virtual VclPtr<AbstractScCondFormatManagerDlg> CreateScCondFormatMgrDlg(weld::Window* pParent, ScDocument& rDoc, const ScConditionalFormatList* pFormatList ) override;
684 virtual VclPtr<AbstractScDataPilotDatabaseDlg> CreateScDataPilotDatabaseDlg(weld::Window* pParent) override;
686 virtual VclPtr<AbstractScDataPilotSourceTypeDlg> CreateScDataPilotSourceTypeDlg(weld::Window* pParent,
687 bool bEnableExternal) override;
689 virtual VclPtr<AbstractScDataPilotServiceDlg> CreateScDataPilotServiceDlg(weld::Window* pParent,
690 const std::vector<OUString>& rServices) override;
691 virtual VclPtr<AbstractScDeleteCellDlg> CreateScDeleteCellDlg(weld::Window* pParent, bool bDisallowCellMove ) override;
693 //for dataform
694 virtual VclPtr<AbstractScDataFormDlg> CreateScDataFormDlg(weld::Window* pParent, ScTabViewShell* pTabViewShell) override;
696 virtual VclPtr<AbstractScDeleteContentsDlg> CreateScDeleteContentsDlg(weld::Window* pParent) override;
698 virtual VclPtr<AbstractScFillSeriesDlg> CreateScFillSeriesDlg(weld::Window* pParent,
699 ScDocument& rDocument,
700 FillDir eFillDir,
701 FillCmd eFillCmd,
702 FillDateCmd eFillDateCmd,
703 const OUString& aStartStr,
704 double fStep,
705 double fMax,
706 SCSIZE nSelectHeight,
707 SCSIZE nSelectWidth,
708 sal_uInt16 nPossDir) override;
709 virtual VclPtr<AbstractScGroupDlg> CreateAbstractScGroupDlg(weld::Window* pParent, bool bUnGroup = false) override;
711 virtual VclPtr<AbstractScInsertCellDlg> CreateScInsertCellDlg(weld::Window* pParent,
712 bool bDisallowCellMove) override;
714 virtual VclPtr<AbstractScInsertContentsDlg> CreateScInsertContentsDlg(weld::Window* pParent,
715 const OUString* pStrTitle = nullptr) override;
717 virtual VclPtr<AbstractScInsertTableDlg> CreateScInsertTableDlg(weld::Window* pParent, ScViewData& rViewData,
718 SCTAB nTabCount, bool bFromFile) override;
720 virtual VclPtr<AbstractScSelEntryDlg> CreateScSelEntryDlg(weld::Window* pParent, const std::vector<OUString> &rEntryList) override;
722 virtual VclPtr<AbstractScLinkedAreaDlg> CreateScLinkedAreaDlg(weld::Widget* pParent) override;
724 virtual VclPtr<AbstractScMetricInputDlg> CreateScMetricInputDlg(weld::Window* pParent,
725 const OUString& sDialogName,
726 tools::Long nCurrent,
727 tools::Long nDefault,
728 FieldUnit eFUnit,
729 sal_uInt16 nDecimals,
730 tools::Long nMaximum,
731 tools::Long nMinimum = 0 ) override;
733 virtual VclPtr<AbstractScMoveTableDlg> CreateScMoveTableDlg(weld::Window * pParent,
734 const OUString& rDefault) override;
736 virtual VclPtr<AbstractScNameCreateDlg> CreateScNameCreateDlg(weld::Window * pParent,
737 CreateNameFlags nFlags) override;
739 virtual VclPtr<AbstractScNamePasteDlg> CreateScNamePasteDlg(weld::Window * pParent, ScDocShell* pShell) override;
741 virtual VclPtr<AbstractScPivotFilterDlg> CreateScPivotFilterDlg(weld::Window* pParent, const SfxItemSet& rArgSet,
742 sal_uInt16 nSourceTab) override;
744 virtual VclPtr<AbstractScDPFunctionDlg> CreateScDPFunctionDlg(weld::Widget* pParent,
745 const ScDPLabelDataVector& rLabelVec,
746 const ScDPLabelData& rLabelData,
747 const ScPivotFuncData& rFuncData ) override;
749 virtual VclPtr<AbstractScDPSubtotalDlg> CreateScDPSubtotalDlg(weld::Widget* pParent,
750 ScDPObject& rDPObj,
751 const ScDPLabelData& rLabelData,
752 const ScPivotFuncData& rFuncData,
753 const ScDPNameVec& rDataFields ) override;
755 virtual VclPtr<AbstractScDPNumGroupDlg> CreateScDPNumGroupDlg(weld::Window* pParent,
756 const ScDPNumGroupInfo& rInfo) override;
758 virtual VclPtr<AbstractScDPDateGroupDlg> CreateScDPDateGroupDlg(weld::Window* pParent,
759 const ScDPNumGroupInfo& rInfo,
760 sal_Int32 nDatePart,
761 const Date& rNullDate) override;
763 virtual VclPtr<AbstractScDPShowDetailDlg> CreateScDPShowDetailDlg(weld::Window* pParent,
764 ScDPObject& rDPObj,
765 css::sheet::DataPilotFieldOrientation nOrient) override;
767 virtual VclPtr<AbstractScNewScenarioDlg> CreateScNewScenarioDlg(weld::Window* pParent, const OUString& rName,
768 bool bEdit, bool bSheetProtected) override;
769 virtual VclPtr<AbstractScShowTabDlg> CreateScShowTabDlg(weld::Window* pParent) override;
770 virtual VclPtr<AbstractScGoToTabDlg> CreateScGoToTabDlg(weld::Window* pParent) override;
772 virtual VclPtr<AbstractScStringInputDlg> CreateScStringInputDlg(weld::Window* pParent,
773 const OUString& rTitle,
774 const OUString& rEditTitle,
775 const OUString& rDefault,
776 const OUString& rHelpId,
777 const OUString& rEditHelpId) override;
779 virtual VclPtr<AbstractScTabBgColorDlg> CreateScTabBgColorDlg(weld::Window* pParent,
780 const OUString& rTitle, //Dialog Title
781 const OUString& rTabBgColorNoColorText, //Label for no tab color
782 const Color& rDefaultColor) override; //Currently selected Color
784 virtual VclPtr<AbstractScImportOptionsDlg> CreateScImportOptionsDlg(weld::Window* pParent, bool bAscii,
785 const ScImportOptions* pOptions,
786 const OUString* pStrTitle,
787 bool bOnlyDbtoolsEncodings,
788 bool bImport = true) override;
790 virtual VclPtr<SfxAbstractTabDialog> CreateScAttrDlg(weld::Window* pParent,
791 const SfxItemSet* pCellAttrs) override;
793 virtual VclPtr<SfxAbstractTabDialog> CreateScHFEditDlg(weld::Window* pParent,
794 const SfxItemSet& rCoreSet,
795 const OUString& rPageStyle,
796 sal_uInt16 nResId ) override;
798 virtual VclPtr<SfxAbstractTabDialog> CreateScStyleDlg(weld::Window* pParent,
799 SfxStyleSheetBase& rStyleBase,
800 bool bPage) override;
802 virtual VclPtr<SfxAbstractTabDialog> CreateScDrawStyleDlg(weld::Window* pParent,
803 SfxStyleSheetBase& rStyleBase,
804 SdrView* pView) override;
806 virtual VclPtr<SfxAbstractTabDialog> CreateScSubTotalDlg(weld::Window* pParent,
807 const SfxItemSet& rArgSet) override;
808 virtual VclPtr<SfxAbstractTabDialog> CreateScCharDlg(weld::Window* pParent,
809 const SfxItemSet* pAttr, const SfxObjectShell* pDocShell, bool bDrawText) override;
811 virtual VclPtr<SfxAbstractTabDialog> CreateScParagraphDlg(weld::Window* pParent,
812 const SfxItemSet* pAttr) override;
814 virtual std::shared_ptr<ScAsyncTabController> CreateScSortDlg(weld::Window* pParent, const SfxItemSet* pArgSet) override;
816 // For TabPage
817 virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) override;
821 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */