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 #include "sddlgfact.hxx"
21 #include <BreakDlg.hxx>
22 #include <copydlg.hxx>
23 #include <custsdlg.hxx>
24 #include <dlg_char.hxx>
25 #include <dlgpage.hxx>
26 #include <dlgfield.hxx>
27 #include <dlgsnap.hxx>
28 #include <layeroptionsdlg.hxx>
29 #include <inspagob.hxx>
30 #include <morphdlg.hxx>
31 #include <OutlineBulletDlg.hxx>
32 #include <paragr.hxx>
33 #include <present.hxx>
34 #include "RemoteDialog.hxx"
35 #include <prltempl.hxx>
36 #include <sdpreslt.hxx>
37 #include <tabtempl.hxx>
38 #include <tpaction.hxx>
39 #include <vectdlg.hxx>
40 #include <tpoption.hxx>
41 #include <prntopts.hxx>
42 #include <pubdlg.hxx>
43 #include <masterlayoutdlg.hxx>
44 #include <headerfooterdlg.hxx>
45 #include "PhotoAlbumDialog.hxx"
46 #include <vcl/virdev.hxx>
47 
Execute()48 short AbstractSvxBulletAndPositionDlg_Impl::Execute()
49 {
50     return m_xDlg->run();
51 }
52 
Execute()53 short SdAbstractGenericDialog_Impl::Execute()
54 {
55     return m_xDlg->run();
56 }
57 
createScreenshot() const58 BitmapEx SdAbstractGenericDialog_Impl::createScreenshot() const
59 {
60     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
61     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
62 }
63 
GetScreenshotId() const64 OString SdAbstractGenericDialog_Impl::GetScreenshotId() const
65 {
66     return m_xDlg->get_help_id();
67 }
68 
GetOutputItemSet(SfxItemSet * pSet) const69 const SfxItemSet* AbstractSvxBulletAndPositionDlg_Impl::GetOutputItemSet( SfxItemSet* pSet ) const
70 {
71     return m_xDlg->GetOutputItemSet( pSet );
72 }
73 
IsApplyToMaster()74 bool AbstractSvxBulletAndPositionDlg_Impl::IsApplyToMaster()
75 {
76     return m_xDlg->IsApplyToMaster();
77 }
78 
IsSlideScope()79 bool AbstractSvxBulletAndPositionDlg_Impl::IsSlideScope()
80 {
81     return m_xDlg->IsSlideScope();
82 }
83 
Execute()84 short AbstractCopyDlg_Impl::Execute()
85 {
86     return m_xDlg->run();
87 }
88 
Execute()89 short AbstractSdCustomShowDlg_Impl::Execute()
90 {
91     return m_xDlg->run();
92 }
93 
Execute()94 short SdPresLayoutTemplateDlg_Impl::Execute()
95 {
96     return m_xDlg->run();
97 }
98 
StartExecuteAsync(AsyncContext & rCtx)99 bool SdPresLayoutTemplateDlg_Impl::StartExecuteAsync(AsyncContext &rCtx)
100 {
101     return SfxTabDialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
102 }
103 
Execute()104 short AbstractSdModifyFieldDlg_Impl::Execute()
105 {
106     return m_xDlg->run();
107 }
108 
Execute()109 short AbstractSdSnapLineDlg_Impl::Execute()
110 {
111     return m_xDlg->run();
112 }
113 
Execute()114 short AbstractSdInsertLayerDlg_Impl::Execute()
115 {
116     return m_xDlg->run();
117 }
118 
Execute()119 short AbstractSdInsertPagesObjsDlg_Impl::Execute()
120 {
121     return m_xDlg->run();
122 }
123 
Execute()124 short AbstractMorphDlg_Impl::Execute()
125 {
126     return m_xDlg->run();
127 }
128 
Execute()129 short AbstractSdStartPresDlg_Impl::Execute()
130 {
131     return m_xDlg->run();
132 }
133 
Execute()134 short AbstractSdPresLayoutDlg_Impl::Execute()
135 {
136     return m_xDlg->run();
137 }
138 
Execute()139 short SdAbstractSfxDialog_Impl::Execute()
140 {
141     return m_xDlg->run();
142 }
143 
Execute()144 short AbstractSdVectorizeDlg_Impl::Execute()
145 {
146     return m_xDlg->run();
147 }
148 
Execute()149 short AbstractSdPublishingDlg_Impl::Execute()
150 {
151     return m_xDlg->run();
152 }
153 
Execute()154 short AbstractHeaderFooterDialog_Impl::Execute()
155 {
156     return m_xDlg->run();
157 }
158 
StartExecuteAsync(AsyncContext & rCtx)159 bool AbstractHeaderFooterDialog_Impl::StartExecuteAsync(AsyncContext &rCtx)
160 {
161     return weld::DialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
162 }
163 
createScreenshot() const164 BitmapEx AbstractHeaderFooterDialog_Impl::createScreenshot() const
165 {
166     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
167     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
168 }
169 
GetScreenshotId() const170 OString AbstractHeaderFooterDialog_Impl::GetScreenshotId() const
171 {
172     return m_xDlg->get_help_id();
173 }
174 
Execute()175 short AbstractBulletDialog_Impl::Execute()
176 {
177     return m_xDlg->run();
178 }
179 
StartExecuteAsync(AsyncContext & rCtx)180 bool AbstractBulletDialog_Impl::StartExecuteAsync(AsyncContext &rCtx)
181 {
182     return SfxTabDialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
183 }
184 
AbstractBreakDlg_Impl(std::unique_ptr<::sd::BreakDlg> pDlg)185 AbstractBreakDlg_Impl::AbstractBreakDlg_Impl(std::unique_ptr<::sd::BreakDlg> pDlg)
186     : m_xDlg(std::move(pDlg))
187 {
188 }
189 
Execute()190 short AbstractBreakDlg_Impl::Execute()
191 {
192     return m_xDlg->run();
193 }
194 
createScreenshot() const195 BitmapEx AbstractBreakDlg_Impl::createScreenshot() const
196 {
197     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
198     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
199 }
200 
GetScreenshotId() const201 OString AbstractBreakDlg_Impl::GetScreenshotId() const
202 {
203     return m_xDlg->get_help_id();
204 }
205 
AbstractMasterLayoutDialog_Impl(std::unique_ptr<::sd::MasterLayoutDialog> pDlg)206 AbstractMasterLayoutDialog_Impl::AbstractMasterLayoutDialog_Impl(std::unique_ptr<::sd::MasterLayoutDialog> pDlg)
207     : m_xDlg(std::move(pDlg))
208 {
209 }
210 
Execute()211 short AbstractMasterLayoutDialog_Impl::Execute()
212 {
213     return m_xDlg->run();
214 }
215 
createScreenshot() const216 BitmapEx AbstractMasterLayoutDialog_Impl::createScreenshot() const
217 {
218     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
219     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
220 }
221 
GetScreenshotId() const222 OString AbstractMasterLayoutDialog_Impl::GetScreenshotId() const
223 {
224     return m_xDlg->get_help_id();
225 }
226 
GetAttr(SfxItemSet & rOutAttrs)227 void AbstractCopyDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
228 {
229     m_xDlg->GetAttr( rOutAttrs );
230 }
231 
createScreenshot() const232 BitmapEx AbstractCopyDlg_Impl::createScreenshot() const
233 {
234     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
235     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
236 }
237 
GetScreenshotId() const238 OString AbstractCopyDlg_Impl::GetScreenshotId() const
239 {
240     return m_xDlg->get_help_id();
241 }
242 
IsModified() const243 bool AbstractSdCustomShowDlg_Impl::IsModified() const
244 {
245     return m_xDlg->IsModified();
246 }
247 
IsCustomShow() const248 bool AbstractSdCustomShowDlg_Impl::IsCustomShow() const
249 {
250     return m_xDlg->IsCustomShow();
251 }
252 
createScreenshot() const253 BitmapEx AbstractSdCustomShowDlg_Impl::createScreenshot() const
254 {
255     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
256     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
257 }
258 
GetScreenshotId() const259 OString AbstractSdCustomShowDlg_Impl::GetScreenshotId() const
260 {
261     return m_xDlg->get_help_id();
262 }
263 
Execute()264 short SdAbstractTabController_Impl::Execute()
265 {
266     return m_xDlg->run();
267 }
268 
SetCurPageId(const OString & rName)269 void SdAbstractTabController_Impl::SetCurPageId( const OString &rName )
270 {
271     m_xDlg->SetCurPageId( rName );
272 }
273 
GetOutputItemSet() const274 const SfxItemSet* SdAbstractTabController_Impl::GetOutputItemSet() const
275 {
276     return m_xDlg->GetOutputItemSet();
277 }
278 
GetInputRanges(const SfxItemPool & pItem)279 const sal_uInt16* SdAbstractTabController_Impl::GetInputRanges(const SfxItemPool& pItem )
280 {
281     return m_xDlg->GetInputRanges( pItem );
282 }
283 
SetInputSet(const SfxItemSet * pInSet)284 void SdAbstractTabController_Impl::SetInputSet( const SfxItemSet* pInSet )
285 {
286      m_xDlg->SetInputSet( pInSet );
287 }
288 
StartExecuteAsync(AsyncContext & rCtx)289 bool SdAbstractTabController_Impl::StartExecuteAsync(AsyncContext &rCtx)
290 {
291     return SfxTabDialogController::runAsync(m_xDlg, rCtx.maEndDialogFn);
292 }
293 
294 //From class Window.
SetText(const OUString & rStr)295 void SdAbstractTabController_Impl::SetText( const OUString& rStr )
296 {
297     m_xDlg->set_title(rStr);
298 }
299 
createScreenshot() const300 BitmapEx SdAbstractTabController_Impl::createScreenshot() const
301 {
302     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
303     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
304 }
305 
GetScreenshotId() const306 OString SdAbstractTabController_Impl::GetScreenshotId() const
307 {
308     return m_xDlg->get_help_id();
309 }
310 
SetCurPageId(const OString & rName)311 void AbstractBulletDialog_Impl::SetCurPageId( const OString& rName )
312 {
313     m_xDlg->SetCurPageId( rName );
314 }
315 
GetOutputItemSet() const316 const SfxItemSet* AbstractBulletDialog_Impl::GetOutputItemSet() const
317 {
318     return static_cast< ::sd::OutlineBulletDlg*>(m_xDlg.get())->GetBulletOutputItemSet();
319 }
320 
GetInputRanges(const SfxItemPool & pItem)321 const sal_uInt16* AbstractBulletDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
322 {
323     return m_xDlg->GetInputRanges(pItem);
324 }
325 
SetInputSet(const SfxItemSet * pInSet)326 void AbstractBulletDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
327 {
328      m_xDlg->SetInputSet(pInSet);
329 }
330 
SetText(const OUString & rStr)331 void AbstractBulletDialog_Impl::SetText( const OUString& rStr )
332 {
333     m_xDlg->set_title(rStr);
334 }
335 
createScreenshot() const336 BitmapEx AbstractBulletDialog_Impl::createScreenshot() const
337 {
338     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
339     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
340 }
341 
GetScreenshotId() const342 OString AbstractBulletDialog_Impl::GetScreenshotId() const
343 {
344     return m_xDlg->get_help_id();
345 }
346 
SetCurPageId(const OString & rName)347 void SdPresLayoutTemplateDlg_Impl::SetCurPageId( const OString& rName )
348 {
349     m_xDlg->SetCurPageId( rName );
350 }
351 
GetOutputItemSet() const352 const SfxItemSet* SdPresLayoutTemplateDlg_Impl::GetOutputItemSet() const
353 {
354     return m_xDlg->GetOutputItemSet();
355 }
356 
GetInputRanges(const SfxItemPool & pItem)357 const sal_uInt16* SdPresLayoutTemplateDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
358 {
359     return m_xDlg->GetInputRanges( pItem );
360 }
361 
SetInputSet(const SfxItemSet * pInSet)362 void SdPresLayoutTemplateDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
363 {
364      m_xDlg->SetInputSet( pInSet );
365 }
366 
SetText(const OUString & rStr)367 void SdPresLayoutTemplateDlg_Impl::SetText( const OUString& rStr )
368 {
369     m_xDlg->set_title(rStr);
370 }
371 
createScreenshot() const372 BitmapEx SdPresLayoutTemplateDlg_Impl::createScreenshot() const
373 {
374     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
375     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
376 }
377 
GetScreenshotId() const378 OString SdPresLayoutTemplateDlg_Impl::GetScreenshotId() const
379 {
380     return m_xDlg->get_help_id();
381 }
382 
GetField()383 SvxFieldData* AbstractSdModifyFieldDlg_Impl::GetField()
384 {
385     return m_xDlg->GetField();
386 }
387 
GetItemSet()388 SfxItemSet AbstractSdModifyFieldDlg_Impl::GetItemSet()
389 {
390     return m_xDlg->GetItemSet();
391 }
392 
createScreenshot() const393 BitmapEx AbstractSdModifyFieldDlg_Impl::createScreenshot() const
394 {
395     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
396     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
397 }
398 
GetScreenshotId() const399 OString AbstractSdModifyFieldDlg_Impl::GetScreenshotId() const
400 {
401     return m_xDlg->get_help_id();
402 }
403 
GetAttr(SfxItemSet & rOutAttrs)404 void AbstractSdSnapLineDlg_Impl::GetAttr(SfxItemSet& rOutAttrs)
405 {
406     m_xDlg->GetAttr(rOutAttrs);
407 }
408 
HideRadioGroup()409 void AbstractSdSnapLineDlg_Impl::HideRadioGroup()
410 {
411     m_xDlg->HideRadioGroup();
412 }
413 
HideDeleteBtn()414 void AbstractSdSnapLineDlg_Impl::HideDeleteBtn()
415 {
416     m_xDlg->HideDeleteBtn();
417 }
418 
SetInputFields(bool bEnableX,bool bEnableY)419 void AbstractSdSnapLineDlg_Impl::SetInputFields(bool bEnableX, bool bEnableY)
420 {
421     m_xDlg->SetInputFields(bEnableX, bEnableY);
422 }
423 
SetText(const OUString & rStr)424 void AbstractSdSnapLineDlg_Impl::SetText( const OUString& rStr )
425 {
426     m_xDlg->set_title(rStr);
427 }
428 
createScreenshot() const429 BitmapEx AbstractSdSnapLineDlg_Impl::createScreenshot() const
430 {
431     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
432     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
433 }
434 
GetScreenshotId() const435 OString AbstractSdSnapLineDlg_Impl::GetScreenshotId() const
436 {
437     return m_xDlg->get_help_id();
438 }
439 
GetAttr(SfxItemSet & rOutAttrs)440 void AbstractSdInsertLayerDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
441 {
442     m_xDlg->GetAttr(rOutAttrs);
443 }
444 
SetHelpId(const OString & rHelpId)445 void AbstractSdInsertLayerDlg_Impl::SetHelpId( const OString& rHelpId )
446 {
447     m_xDlg->set_help_id(rHelpId);
448 }
449 
createScreenshot() const450 BitmapEx AbstractSdInsertLayerDlg_Impl::createScreenshot() const
451 {
452     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
453     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
454 }
455 
GetScreenshotId() const456 OString AbstractSdInsertLayerDlg_Impl::GetScreenshotId() const
457 {
458     return m_xDlg->get_help_id();
459 }
460 
GetList(const sal_uInt16 nType)461 std::vector<OUString> AbstractSdInsertPagesObjsDlg_Impl::GetList(const sal_uInt16 nType)
462 {
463     return m_xDlg->GetList(nType);
464 }
465 
IsLink()466 bool AbstractSdInsertPagesObjsDlg_Impl::IsLink()
467 {
468     return m_xDlg->IsLink();
469 }
470 
IsRemoveUnnecessaryMasterPages() const471 bool AbstractSdInsertPagesObjsDlg_Impl::IsRemoveUnnecessaryMasterPages() const
472 {
473     return m_xDlg->IsRemoveUnnecessaryMasterPages();
474 }
475 
createScreenshot() const476 BitmapEx AbstractSdInsertPagesObjsDlg_Impl::createScreenshot() const
477 {
478     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
479     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
480 }
481 
GetScreenshotId() const482 OString AbstractSdInsertPagesObjsDlg_Impl::GetScreenshotId() const
483 {
484     return m_xDlg->get_help_id();
485 }
486 
SaveSettings() const487 void AbstractMorphDlg_Impl::SaveSettings() const
488 {
489     m_xDlg->SaveSettings();
490 }
491 
GetFadeSteps() const492 sal_uInt16 AbstractMorphDlg_Impl::GetFadeSteps() const
493 {
494     return m_xDlg->GetFadeSteps();
495 }
496 
IsAttributeFade() const497 bool AbstractMorphDlg_Impl::IsAttributeFade() const
498 {
499     return m_xDlg->IsAttributeFade();
500 }
501 
IsOrientationFade() const502 bool AbstractMorphDlg_Impl::IsOrientationFade() const
503 {
504     return m_xDlg->IsOrientationFade();
505 }
506 
createScreenshot() const507 BitmapEx AbstractMorphDlg_Impl::createScreenshot() const
508 {
509     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
510     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
511 }
512 
GetScreenshotId() const513 OString AbstractMorphDlg_Impl::GetScreenshotId() const
514 {
515     return m_xDlg->get_help_id();
516 }
517 
GetAttr(SfxItemSet & rOutAttrs)518 void AbstractSdStartPresDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
519 {
520     m_xDlg->GetAttr(rOutAttrs);
521 }
522 
createScreenshot() const523 BitmapEx AbstractSdStartPresDlg_Impl::createScreenshot() const
524 {
525     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
526     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
527 }
528 
GetScreenshotId() const529 OString AbstractSdStartPresDlg_Impl::GetScreenshotId() const
530 {
531     return m_xDlg->get_help_id();
532 }
533 
GetAttr(SfxItemSet & rOutAttrs)534 void AbstractSdPresLayoutDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
535 {
536     m_xDlg->GetAttr(rOutAttrs);
537 }
538 
createScreenshot() const539 BitmapEx AbstractSdPresLayoutDlg_Impl::createScreenshot() const
540 {
541     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
542     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
543 }
544 
GetScreenshotId() const545 OString AbstractSdPresLayoutDlg_Impl::GetScreenshotId() const
546 {
547     return m_xDlg->get_help_id();
548 }
549 
GetOutputItemSet() const550 const SfxItemSet* SdAbstractSfxDialog_Impl::GetOutputItemSet() const
551 {
552     return m_xDlg->GetOutputItemSet();
553 }
554 
SetText(const OUString & rStr)555 void SdAbstractSfxDialog_Impl::SetText( const OUString& rStr )
556 {
557     m_xDlg->set_title(rStr);
558 }
559 
GetGDIMetaFile() const560 const GDIMetaFile& AbstractSdVectorizeDlg_Impl::GetGDIMetaFile() const
561 {
562     return m_xDlg->GetGDIMetaFile();
563 }
564 
createScreenshot() const565 BitmapEx AbstractSdVectorizeDlg_Impl::createScreenshot() const
566 {
567     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
568     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
569 }
570 
GetScreenshotId() const571 OString AbstractSdVectorizeDlg_Impl::GetScreenshotId() const
572 {
573     return m_xDlg->get_help_id();
574 }
575 
GetParameterSequence(css::uno::Sequence<css::beans::PropertyValue> & rParams)576 void AbstractSdPublishingDlg_Impl::GetParameterSequence( css::uno::Sequence< css::beans::PropertyValue >& rParams )
577 {
578     m_xDlg->GetParameterSequence( rParams );
579 }
580 
createScreenshot() const581 BitmapEx AbstractSdPublishingDlg_Impl::createScreenshot() const
582 {
583     VclPtr<VirtualDevice> xDialogSurface(m_xDlg->getDialog()->screenshot());
584     return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
585 }
586 
GetScreenshotId() const587 OString AbstractSdPublishingDlg_Impl::GetScreenshotId() const
588 {
589     return m_xDlg->get_help_id();
590 }
591 
592 //-------------- SdAbstractDialogFactory implementation--------------
593 
CreateSvxBulletAndPositionDlg(weld::Window * pParent,const SfxItemSet * pAttr,::sd::View * pView)594 VclPtr<AbstractSvxBulletAndPositionDlg> SdAbstractDialogFactory_Impl::CreateSvxBulletAndPositionDlg(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView)
595 {
596     return VclPtr<AbstractSvxBulletAndPositionDlg_Impl>::Create(std::make_unique<SvxBulletAndPositionDlg>(pParent, *pAttr, pView));
597 }
598 
CreateBreakDlg(weld::Window * pParent,::sd::DrawView * pDrView,::sd::DrawDocShell * pShell,sal_uLong nSumActionCount,sal_uLong nObjCount)599 VclPtr<VclAbstractDialog> SdAbstractDialogFactory_Impl::CreateBreakDlg(
600                                             weld::Window* pParent,
601                                             ::sd::DrawView* pDrView,
602                                             ::sd::DrawDocShell* pShell,
603                                             sal_uLong nSumActionCount,
604                                             sal_uLong nObjCount )
605 {
606     return VclPtr<AbstractBreakDlg_Impl>::Create(std::make_unique<::sd::BreakDlg>(pParent, pDrView, pShell, nSumActionCount, nObjCount));
607 }
608 
CreateCopyDlg(weld::Window * pParent,const SfxItemSet & rInAttrs,::sd::View * pView)609 VclPtr<AbstractCopyDlg> SdAbstractDialogFactory_Impl::CreateCopyDlg(weld::Window* pParent,
610                                             const SfxItemSet& rInAttrs,
611                                             ::sd::View* pView )
612 {
613     return VclPtr<AbstractCopyDlg_Impl>::Create(std::make_unique<::sd::CopyDlg>(pParent, rInAttrs, pView));
614 }
615 
CreateSdCustomShowDlg(weld::Window * pParent,SdDrawDocument & rDrawDoc)616 VclPtr<AbstractSdCustomShowDlg> SdAbstractDialogFactory_Impl::CreateSdCustomShowDlg(weld::Window* pParent, SdDrawDocument& rDrawDoc )
617 {
618     return VclPtr<AbstractSdCustomShowDlg_Impl>::Create(std::make_unique<SdCustomShowDlg>(pParent, rDrawDoc));
619 }
620 
CreateSdTabCharDialog(weld::Window * pParent,const SfxItemSet * pAttr,SfxObjectShell * pDocShell)621 VclPtr<SfxAbstractTabDialog>  SdAbstractDialogFactory_Impl::CreateSdTabCharDialog(weld::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell)
622 {
623     return VclPtr<SdAbstractTabController_Impl>::Create(std::make_shared<SdCharDlg>(pParent, pAttr, pDocShell));
624 }
625 
CreateSdTabPageDialog(weld::Window * pParent,const SfxItemSet * pAttr,SfxObjectShell * pDocShell,bool bAreaPage,bool bIsImpressDoc)626 VclPtr<SfxAbstractTabDialog>  SdAbstractDialogFactory_Impl::CreateSdTabPageDialog(weld::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, bool bAreaPage, bool bIsImpressDoc )
627 {
628     return VclPtr<SdAbstractTabController_Impl>::Create(std::make_shared<SdPageDlg>(pDocShell, pParent, pAttr, bAreaPage, bIsImpressDoc));
629 }
630 
CreateSdModifyFieldDlg(weld::Window * pParent,const SvxFieldData * pInField,const SfxItemSet & rSet)631 VclPtr<AbstractSdModifyFieldDlg> SdAbstractDialogFactory_Impl::CreateSdModifyFieldDlg(weld::Window* pParent, const SvxFieldData* pInField, const SfxItemSet& rSet)
632 {
633     return VclPtr<AbstractSdModifyFieldDlg_Impl>::Create(std::make_unique<SdModifyFieldDlg>(pParent, pInField, rSet));
634 }
635 
CreateSdSnapLineDlg(weld::Window * pParent,const SfxItemSet & rInAttrs,::sd::View * pView)636 VclPtr<AbstractSdSnapLineDlg> SdAbstractDialogFactory_Impl::CreateSdSnapLineDlg(weld::Window* pParent, const SfxItemSet& rInAttrs, ::sd::View* pView)
637 {
638     return VclPtr<AbstractSdSnapLineDlg_Impl>::Create(std::make_unique<SdSnapLineDlg>(pParent, rInAttrs, pView));
639 }
640 
CreateSdInsertLayerDlg(weld::Window * pParent,const SfxItemSet & rInAttrs,bool bDeletable,const OUString & aStr)641 VclPtr<AbstractSdInsertLayerDlg> SdAbstractDialogFactory_Impl::CreateSdInsertLayerDlg(weld::Window* pParent, const SfxItemSet& rInAttrs, bool bDeletable, const OUString& aStr)
642 {
643     return VclPtr<AbstractSdInsertLayerDlg_Impl>::Create(std::make_unique<SdInsertLayerDlg>(pParent, rInAttrs, bDeletable, aStr));
644 }
645 
CreateSdInsertPagesObjsDlg(weld::Window * pParent,const SdDrawDocument * pDoc,SfxMedium * pSfxMedium,const OUString & rFileName)646 VclPtr<AbstractSdInsertPagesObjsDlg> SdAbstractDialogFactory_Impl::CreateSdInsertPagesObjsDlg(weld::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const OUString& rFileName)
647 {
648     return VclPtr<AbstractSdInsertPagesObjsDlg_Impl>::Create(std::make_unique<SdInsertPagesObjsDlg>(pParent, pDoc, pSfxMedium, rFileName));
649 }
650 
CreateMorphDlg(weld::Window * pParent,const SdrObject * pObj1,const SdrObject * pObj2)651 VclPtr<AbstractMorphDlg> SdAbstractDialogFactory_Impl::CreateMorphDlg(weld::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2)
652 {
653     return VclPtr<AbstractMorphDlg_Impl>::Create(std::make_unique<::sd::MorphDlg>(pParent, pObj1, pObj2));
654 }
655 
CreateSdOutlineBulletTabDlg(weld::Window * pParent,const SfxItemSet * pAttr,::sd::View * pView)656 VclPtr<SfxAbstractTabDialog>  SdAbstractDialogFactory_Impl::CreateSdOutlineBulletTabDlg(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView)
657 {
658     return VclPtr<AbstractBulletDialog_Impl>::Create(std::make_shared<::sd::OutlineBulletDlg>(pParent, pAttr, pView));
659 }
660 
CreateSdParagraphTabDlg(weld::Window * pParent,const SfxItemSet * pAttr)661 VclPtr<SfxAbstractTabDialog> SdAbstractDialogFactory_Impl::CreateSdParagraphTabDlg(weld::Window* pParent, const SfxItemSet* pAttr )
662 {
663     return VclPtr<SdAbstractTabController_Impl>::Create(std::make_shared<SdParagraphDlg>(pParent, pAttr));
664 }
665 
CreateSdStartPresentationDlg(weld::Window * pParent,const SfxItemSet & rInAttrs,const std::vector<OUString> & rPageNames,SdCustomShowList * pCSList)666 VclPtr<AbstractSdStartPresDlg> SdAbstractDialogFactory_Impl::CreateSdStartPresentationDlg(weld::Window* pParent,
667         const SfxItemSet& rInAttrs, const std::vector<OUString> &rPageNames, SdCustomShowList* pCSList)
668 {
669     return VclPtr<AbstractSdStartPresDlg_Impl>::Create(std::make_unique<SdStartPresentationDlg>(pParent, rInAttrs, rPageNames, pCSList));
670 }
671 
CreateRemoteDialog(weld::Window * pParent)672 VclPtr<VclAbstractDialog> SdAbstractDialogFactory_Impl::CreateRemoteDialog(weld::Window* pParent)
673 {
674      return VclPtr<SdAbstractGenericDialog_Impl>::Create(std::make_unique<::sd::RemoteDialog>(pParent));
675 }
676 
CreateSdPresLayoutTemplateDlg(SfxObjectShell * pDocSh,weld::Window * pParent,bool bBackgroundDlg,SfxStyleSheetBase & rStyleBase,PresentationObjects ePO,SfxStyleSheetBasePool * pSSPool)677 VclPtr<SfxAbstractTabDialog>  SdAbstractDialogFactory_Impl::CreateSdPresLayoutTemplateDlg(SfxObjectShell* pDocSh, weld::Window* pParent, bool bBackgroundDlg, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool)
678 {
679     return VclPtr<SdPresLayoutTemplateDlg_Impl>::Create(std::make_shared<SdPresLayoutTemplateDlg>(pDocSh, pParent, bBackgroundDlg, rStyleBase, ePO, pSSPool));
680 }
681 
CreateSdPresLayoutDlg(weld::Window * pParent,::sd::DrawDocShell * pDocShell,const SfxItemSet & rInAttrs)682 VclPtr<AbstractSdPresLayoutDlg> SdAbstractDialogFactory_Impl::CreateSdPresLayoutDlg(weld::Window* pParent, ::sd::DrawDocShell* pDocShell, const SfxItemSet& rInAttrs)
683 {
684     return VclPtr<AbstractSdPresLayoutDlg_Impl>::Create(std::make_unique<SdPresLayoutDlg>(pDocShell, pParent, rInAttrs));
685 }
686 
CreateSdTabTemplateDlg(weld::Window * pParent,const SfxObjectShell * pDocShell,SfxStyleSheetBase & rStyleBase,SdrModel * pModel,SdrView * pView)687 VclPtr<SfxAbstractTabDialog>  SdAbstractDialogFactory_Impl::CreateSdTabTemplateDlg(weld::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView)
688 {
689     return VclPtr<SdAbstractTabController_Impl>::Create(std::make_shared<SdTabTemplateDlg>(pParent, pDocShell, rStyleBase, pModel, pView));
690 }
691 
CreatSdActionDialog(weld::Window * pParent,const SfxItemSet * pAttr,::sd::View * pView)692 VclPtr<SfxAbstractDialog> SdAbstractDialogFactory_Impl::CreatSdActionDialog(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView )
693 {
694     return VclPtr<SdAbstractSfxDialog_Impl>::Create(std::make_unique<SdActionDlg>(pParent, pAttr, pView));
695 }
696 
CreateSdVectorizeDlg(weld::Window * pParent,const Bitmap & rBmp,::sd::DrawDocShell * pDocShell)697 VclPtr<AbstractSdVectorizeDlg>  SdAbstractDialogFactory_Impl::CreateSdVectorizeDlg(weld::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell)
698 {
699     return VclPtr<AbstractSdVectorizeDlg_Impl>::Create(std::make_unique<SdVectorizeDlg>(pParent, rBmp, pDocShell));
700 }
701 
CreateSdPublishingDlg(weld::Window * pParent,DocumentType eDocType)702 VclPtr<AbstractSdPublishingDlg>  SdAbstractDialogFactory_Impl::CreateSdPublishingDlg(weld::Window* pParent, DocumentType eDocType)
703 {
704     return VclPtr<AbstractSdPublishingDlg_Impl>::Create(std::make_unique<SdPublishingDlg>(pParent, eDocType));
705 }
706 
707 // Factories for TabPages
GetSdOptionsContentsTabPageCreatorFunc()708 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsContentsTabPageCreatorFunc()
709 {
710     return SdTpOptionsContents::Create;
711 }
712 
GetSdPrintOptionsTabPageCreatorFunc()713 CreateTabPage SdAbstractDialogFactory_Impl::GetSdPrintOptionsTabPageCreatorFunc()
714 {
715     return SdPrintOptions::Create;
716 }
717 
GetSdOptionsMiscTabPageCreatorFunc()718 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsMiscTabPageCreatorFunc()
719 {
720     return SdTpOptionsMisc::Create;
721 }
722 
GetSdOptionsSnapTabPageCreatorFunc()723 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsSnapTabPageCreatorFunc()
724 {
725     return SdTpOptionsSnap::Create;
726 }
727 
CreateMasterLayoutDialog(weld::Window * pParent,SdDrawDocument * pDoc,SdPage * pCurrentPage)728 VclPtr<VclAbstractDialog> SdAbstractDialogFactory_Impl::CreateMasterLayoutDialog(weld::Window* pParent, SdDrawDocument* pDoc, SdPage* pCurrentPage)
729 {
730   return VclPtr<AbstractMasterLayoutDialog_Impl>::Create(std::make_unique<::sd::MasterLayoutDialog>(pParent, pDoc, pCurrentPage));
731 }
732 
CreateHeaderFooterDialog(sd::ViewShell * pViewShell,weld::Window * pParent,SdDrawDocument * pDoc,SdPage * pCurrentPage)733 VclPtr<AbstractHeaderFooterDialog> SdAbstractDialogFactory_Impl::CreateHeaderFooterDialog(sd::ViewShell* pViewShell,
734     weld::Window* pParent, SdDrawDocument* pDoc, SdPage* pCurrentPage)
735 {
736     return VclPtr<AbstractHeaderFooterDialog_Impl>::Create(std::make_shared<::sd::HeaderFooterDialog>(pViewShell, pParent, pDoc, pCurrentPage));
737 }
738 
CreateSdPhotoAlbumDialog(weld::Window * pParent,SdDrawDocument * pDoc)739 VclPtr<VclAbstractDialog> SdAbstractDialogFactory_Impl::CreateSdPhotoAlbumDialog(weld::Window* pParent, SdDrawDocument* pDoc)
740 {
741     return VclPtr<SdAbstractGenericDialog_Impl>::Create(std::make_unique<sd::SdPhotoAlbumDialog>(pParent, pDoc));
742 }
743 
744 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
745