1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "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>
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>
43 #include <masterlayoutdlg.hxx>
44 #include <headerfooterdlg.hxx>
45 #include "PhotoAlbumDialog.hxx"
46 #include <vcl/virdev.hxx>
48 short AbstractSvxBulletAndPositionDlg_Impl::Execute()
53 short SdAbstractGenericDialog_Impl::Execute()
58 BitmapEx
SdAbstractGenericDialog_Impl::createScreenshot() const
60 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
61 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
64 OUString
SdAbstractGenericDialog_Impl::GetScreenshotId() const
66 return m_xDlg
->get_help_id();
69 const SfxItemSet
* AbstractSvxBulletAndPositionDlg_Impl::GetOutputItemSet( SfxItemSet
* pSet
) const
71 return m_xDlg
->GetOutputItemSet( pSet
);
74 bool AbstractSvxBulletAndPositionDlg_Impl::IsApplyToMaster()
76 return m_xDlg
->IsApplyToMaster();
79 bool AbstractSvxBulletAndPositionDlg_Impl::IsSlideScope()
81 return m_xDlg
->IsSlideScope();
84 short AbstractCopyDlg_Impl::Execute()
89 short AbstractSdCustomShowDlg_Impl::Execute()
94 short SdPresLayoutTemplateDlg_Impl::Execute()
99 bool SdPresLayoutTemplateDlg_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
101 return SfxTabDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
104 short AbstractSdModifyFieldDlg_Impl::Execute()
106 return m_xDlg
->run();
109 short AbstractSdSnapLineDlg_Impl::Execute()
111 return m_xDlg
->run();
114 short AbstractSdInsertLayerDlg_Impl::Execute()
116 return m_xDlg
->run();
119 short AbstractSdInsertPagesObjsDlg_Impl::Execute()
121 return m_xDlg
->run();
124 short AbstractMorphDlg_Impl::Execute()
126 return m_xDlg
->run();
129 short AbstractSdStartPresDlg_Impl::Execute()
131 return m_xDlg
->run();
134 short AbstractSdPresLayoutDlg_Impl::Execute()
136 return m_xDlg
->run();
139 short SdAbstractSfxDialog_Impl::Execute()
141 return m_xDlg
->run();
144 short AbstractSdVectorizeDlg_Impl::Execute()
146 return m_xDlg
->run();
149 short AbstractSdPublishingDlg_Impl::Execute()
151 return m_xDlg
->run();
154 short AbstractHeaderFooterDialog_Impl::Execute()
156 return m_xDlg
->run();
159 bool AbstractHeaderFooterDialog_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
161 return weld::DialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
164 BitmapEx
AbstractHeaderFooterDialog_Impl::createScreenshot() const
166 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
167 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
170 OUString
AbstractHeaderFooterDialog_Impl::GetScreenshotId() const
172 return m_xDlg
->get_help_id();
175 short AbstractBulletDialog_Impl::Execute()
177 return m_xDlg
->run();
180 bool AbstractBulletDialog_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
182 return SfxTabDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
185 AbstractBreakDlg_Impl::AbstractBreakDlg_Impl(std::unique_ptr
<::sd::BreakDlg
> pDlg
)
186 : m_xDlg(std::move(pDlg
))
190 short AbstractBreakDlg_Impl::Execute()
192 return m_xDlg
->run();
195 BitmapEx
AbstractBreakDlg_Impl::createScreenshot() const
197 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
198 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
201 OUString
AbstractBreakDlg_Impl::GetScreenshotId() const
203 return m_xDlg
->get_help_id();
206 AbstractMasterLayoutDialog_Impl::AbstractMasterLayoutDialog_Impl(std::unique_ptr
<::sd::MasterLayoutDialog
> pDlg
)
207 : m_xDlg(std::move(pDlg
))
211 short AbstractMasterLayoutDialog_Impl::Execute()
213 return m_xDlg
->run();
216 BitmapEx
AbstractMasterLayoutDialog_Impl::createScreenshot() const
218 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
219 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
222 OUString
AbstractMasterLayoutDialog_Impl::GetScreenshotId() const
224 return m_xDlg
->get_help_id();
227 void AbstractCopyDlg_Impl::GetAttr( SfxItemSet
& rOutAttrs
)
229 m_xDlg
->GetAttr( rOutAttrs
);
232 BitmapEx
AbstractCopyDlg_Impl::createScreenshot() const
234 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
235 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
238 OUString
AbstractCopyDlg_Impl::GetScreenshotId() const
240 return m_xDlg
->get_help_id();
243 bool AbstractSdCustomShowDlg_Impl::IsCustomShow() const
245 return m_xDlg
->IsCustomShow();
248 BitmapEx
AbstractSdCustomShowDlg_Impl::createScreenshot() const
250 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
251 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
254 OUString
AbstractSdCustomShowDlg_Impl::GetScreenshotId() const
256 return m_xDlg
->get_help_id();
259 short SdAbstractTabController_Impl::Execute()
261 return m_xDlg
->run();
264 void SdAbstractTabController_Impl::SetCurPageId( const OUString
&rName
)
266 m_xDlg
->SetCurPageId( rName
);
269 const SfxItemSet
* SdAbstractTabController_Impl::GetOutputItemSet() const
271 return m_xDlg
->GetOutputItemSet();
274 WhichRangesContainer
SdAbstractTabController_Impl::GetInputRanges(const SfxItemPool
& pItem
)
276 return m_xDlg
->GetInputRanges( pItem
);
279 void SdAbstractTabController_Impl::SetInputSet( const SfxItemSet
* pInSet
)
281 m_xDlg
->SetInputSet( pInSet
);
284 bool SdAbstractTabController_Impl::StartExecuteAsync(AsyncContext
&rCtx
)
286 return SfxTabDialogController::runAsync(m_xDlg
, rCtx
.maEndDialogFn
);
290 void SdAbstractTabController_Impl::SetText( const OUString
& rStr
)
292 m_xDlg
->set_title(rStr
);
295 BitmapEx
SdAbstractTabController_Impl::createScreenshot() const
297 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
298 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
301 OUString
SdAbstractTabController_Impl::GetScreenshotId() const
303 return m_xDlg
->get_help_id();
306 void AbstractBulletDialog_Impl::SetCurPageId( const OUString
& rName
)
308 m_xDlg
->SetCurPageId( rName
);
311 const SfxItemSet
* AbstractBulletDialog_Impl::GetOutputItemSet() const
313 return static_cast< ::sd::OutlineBulletDlg
*>(m_xDlg
.get())->GetBulletOutputItemSet();
316 WhichRangesContainer
AbstractBulletDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
318 return m_xDlg
->GetInputRanges(pItem
);
321 void AbstractBulletDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
323 m_xDlg
->SetInputSet(pInSet
);
326 void AbstractBulletDialog_Impl::SetText( const OUString
& rStr
)
328 m_xDlg
->set_title(rStr
);
331 BitmapEx
AbstractBulletDialog_Impl::createScreenshot() const
333 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
334 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
337 OUString
AbstractBulletDialog_Impl::GetScreenshotId() const
339 return m_xDlg
->get_help_id();
342 void SdPresLayoutTemplateDlg_Impl::SetCurPageId( const OUString
& rName
)
344 m_xDlg
->SetCurPageId( rName
);
347 const SfxItemSet
* SdPresLayoutTemplateDlg_Impl::GetOutputItemSet() const
349 return m_xDlg
->GetOutputItemSet();
352 WhichRangesContainer
SdPresLayoutTemplateDlg_Impl::GetInputRanges(const SfxItemPool
& pItem
)
354 return m_xDlg
->GetInputRanges( pItem
);
357 void SdPresLayoutTemplateDlg_Impl::SetInputSet( const SfxItemSet
* pInSet
)
359 m_xDlg
->SetInputSet( pInSet
);
362 void SdPresLayoutTemplateDlg_Impl::SetText( const OUString
& rStr
)
364 m_xDlg
->set_title(rStr
);
367 BitmapEx
SdPresLayoutTemplateDlg_Impl::createScreenshot() const
369 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
370 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
373 OUString
SdPresLayoutTemplateDlg_Impl::GetScreenshotId() const
375 return m_xDlg
->get_help_id();
378 SvxFieldData
* AbstractSdModifyFieldDlg_Impl::GetField()
380 return m_xDlg
->GetField();
383 SfxItemSet
AbstractSdModifyFieldDlg_Impl::GetItemSet()
385 return m_xDlg
->GetItemSet();
388 BitmapEx
AbstractSdModifyFieldDlg_Impl::createScreenshot() const
390 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
391 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
394 OUString
AbstractSdModifyFieldDlg_Impl::GetScreenshotId() const
396 return m_xDlg
->get_help_id();
399 void AbstractSdSnapLineDlg_Impl::GetAttr(SfxItemSet
& rOutAttrs
)
401 m_xDlg
->GetAttr(rOutAttrs
);
404 void AbstractSdSnapLineDlg_Impl::HideRadioGroup()
406 m_xDlg
->HideRadioGroup();
409 void AbstractSdSnapLineDlg_Impl::HideDeleteBtn()
411 m_xDlg
->HideDeleteBtn();
414 void AbstractSdSnapLineDlg_Impl::SetInputFields(bool bEnableX
, bool bEnableY
)
416 m_xDlg
->SetInputFields(bEnableX
, bEnableY
);
419 void AbstractSdSnapLineDlg_Impl::SetText( const OUString
& rStr
)
421 m_xDlg
->set_title(rStr
);
424 BitmapEx
AbstractSdSnapLineDlg_Impl::createScreenshot() const
426 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
427 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
430 OUString
AbstractSdSnapLineDlg_Impl::GetScreenshotId() const
432 return m_xDlg
->get_help_id();
435 void AbstractSdInsertLayerDlg_Impl::GetAttr( SfxItemSet
& rOutAttrs
)
437 m_xDlg
->GetAttr(rOutAttrs
);
440 void AbstractSdInsertLayerDlg_Impl::SetHelpId( const OUString
& rHelpId
)
442 m_xDlg
->set_help_id(rHelpId
);
445 BitmapEx
AbstractSdInsertLayerDlg_Impl::createScreenshot() const
447 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
448 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
451 OUString
AbstractSdInsertLayerDlg_Impl::GetScreenshotId() const
453 return m_xDlg
->get_help_id();
456 std::vector
<OUString
> AbstractSdInsertPagesObjsDlg_Impl::GetList(const sal_uInt16 nType
)
458 return m_xDlg
->GetList(nType
);
461 bool AbstractSdInsertPagesObjsDlg_Impl::IsLink()
463 return m_xDlg
->IsLink();
466 bool AbstractSdInsertPagesObjsDlg_Impl::IsRemoveUnnecessaryMasterPages() const
468 return m_xDlg
->IsRemoveUnnecessaryMasterPages();
471 BitmapEx
AbstractSdInsertPagesObjsDlg_Impl::createScreenshot() const
473 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
474 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
477 OUString
AbstractSdInsertPagesObjsDlg_Impl::GetScreenshotId() const
479 return m_xDlg
->get_help_id();
482 void AbstractMorphDlg_Impl::SaveSettings() const
484 m_xDlg
->SaveSettings();
487 sal_uInt16
AbstractMorphDlg_Impl::GetFadeSteps() const
489 return m_xDlg
->GetFadeSteps();
492 bool AbstractMorphDlg_Impl::IsAttributeFade() const
494 return m_xDlg
->IsAttributeFade();
497 bool AbstractMorphDlg_Impl::IsOrientationFade() const
499 return m_xDlg
->IsOrientationFade();
502 BitmapEx
AbstractMorphDlg_Impl::createScreenshot() const
504 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
505 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
508 OUString
AbstractMorphDlg_Impl::GetScreenshotId() const
510 return m_xDlg
->get_help_id();
513 void AbstractSdStartPresDlg_Impl::GetAttr( SfxItemSet
& rOutAttrs
)
515 m_xDlg
->GetAttr(rOutAttrs
);
518 BitmapEx
AbstractSdStartPresDlg_Impl::createScreenshot() const
520 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
521 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
524 OUString
AbstractSdStartPresDlg_Impl::GetScreenshotId() const
526 return m_xDlg
->get_help_id();
529 void AbstractSdPresLayoutDlg_Impl::GetAttr( SfxItemSet
& rOutAttrs
)
531 m_xDlg
->GetAttr(rOutAttrs
);
534 BitmapEx
AbstractSdPresLayoutDlg_Impl::createScreenshot() const
536 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
537 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
540 OUString
AbstractSdPresLayoutDlg_Impl::GetScreenshotId() const
542 return m_xDlg
->get_help_id();
545 const SfxItemSet
* SdAbstractSfxDialog_Impl::GetOutputItemSet() const
547 return m_xDlg
->GetOutputItemSet();
550 void SdAbstractSfxDialog_Impl::SetText( const OUString
& rStr
)
552 m_xDlg
->set_title(rStr
);
555 const GDIMetaFile
& AbstractSdVectorizeDlg_Impl::GetGDIMetaFile() const
557 return m_xDlg
->GetGDIMetaFile();
560 BitmapEx
AbstractSdVectorizeDlg_Impl::createScreenshot() const
562 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
563 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
566 OUString
AbstractSdVectorizeDlg_Impl::GetScreenshotId() const
568 return m_xDlg
->get_help_id();
571 void AbstractSdPublishingDlg_Impl::GetParameterSequence( css::uno::Sequence
< css::beans::PropertyValue
>& rParams
)
573 m_xDlg
->GetParameterSequence( rParams
);
576 BitmapEx
AbstractSdPublishingDlg_Impl::createScreenshot() const
578 VclPtr
<VirtualDevice
> xDialogSurface(m_xDlg
->getDialog()->screenshot());
579 return xDialogSurface
->GetBitmapEx(Point(), xDialogSurface
->GetOutputSizePixel());
582 OUString
AbstractSdPublishingDlg_Impl::GetScreenshotId() const
584 return m_xDlg
->get_help_id();
587 //-------------- SdAbstractDialogFactory implementation--------------
589 VclPtr
<AbstractSvxBulletAndPositionDlg
> SdAbstractDialogFactory_Impl::CreateSvxBulletAndPositionDlg(weld::Window
* pParent
, const SfxItemSet
* pAttr
, ::sd::View
* pView
)
591 return VclPtr
<AbstractSvxBulletAndPositionDlg_Impl
>::Create(std::make_unique
<SvxBulletAndPositionDlg
>(pParent
, *pAttr
, pView
));
594 VclPtr
<VclAbstractDialog
> SdAbstractDialogFactory_Impl::CreateBreakDlg(
595 weld::Window
* pParent
,
596 ::sd::DrawView
* pDrView
,
597 ::sd::DrawDocShell
* pShell
,
598 sal_uLong nSumActionCount
,
599 sal_uLong nObjCount
)
601 return VclPtr
<AbstractBreakDlg_Impl
>::Create(std::make_unique
<::sd::BreakDlg
>(pParent
, pDrView
, pShell
, nSumActionCount
, nObjCount
));
604 VclPtr
<AbstractCopyDlg
> SdAbstractDialogFactory_Impl::CreateCopyDlg(weld::Window
* pParent
,
605 const SfxItemSet
& rInAttrs
,
608 return VclPtr
<AbstractCopyDlg_Impl
>::Create(std::make_unique
<::sd::CopyDlg
>(pParent
, rInAttrs
, pView
));
611 VclPtr
<AbstractSdCustomShowDlg
> SdAbstractDialogFactory_Impl::CreateSdCustomShowDlg(weld::Window
* pParent
, SdDrawDocument
& rDrawDoc
)
613 return VclPtr
<AbstractSdCustomShowDlg_Impl
>::Create(std::make_unique
<SdCustomShowDlg
>(pParent
, rDrawDoc
));
616 VclPtr
<SfxAbstractTabDialog
> SdAbstractDialogFactory_Impl::CreateSdTabCharDialog(weld::Window
* pParent
, const SfxItemSet
* pAttr
, SfxObjectShell
* pDocShell
)
618 return VclPtr
<SdAbstractTabController_Impl
>::Create(std::make_shared
<SdCharDlg
>(pParent
, pAttr
, pDocShell
));
621 VclPtr
<SfxAbstractTabDialog
> SdAbstractDialogFactory_Impl::CreateSdTabPageDialog(weld::Window
* pParent
, const SfxItemSet
* pAttr
, SfxObjectShell
* pDocShell
, bool bAreaPage
, bool bIsImpressDoc
, bool bIsImpressMaster
)
623 return VclPtr
<SdAbstractTabController_Impl
>::Create(std::make_shared
<SdPageDlg
>(pDocShell
, pParent
, pAttr
, bAreaPage
, bIsImpressDoc
, bIsImpressMaster
));
626 VclPtr
<AbstractSdModifyFieldDlg
> SdAbstractDialogFactory_Impl::CreateSdModifyFieldDlg(weld::Window
* pParent
, const SvxFieldData
* pInField
, const SfxItemSet
& rSet
)
628 return VclPtr
<AbstractSdModifyFieldDlg_Impl
>::Create(std::make_unique
<SdModifyFieldDlg
>(pParent
, pInField
, rSet
));
631 VclPtr
<AbstractSdSnapLineDlg
> SdAbstractDialogFactory_Impl::CreateSdSnapLineDlg(weld::Window
* pParent
, const SfxItemSet
& rInAttrs
, ::sd::View
* pView
)
633 return VclPtr
<AbstractSdSnapLineDlg_Impl
>::Create(std::make_unique
<SdSnapLineDlg
>(pParent
, rInAttrs
, pView
));
636 VclPtr
<AbstractSdInsertLayerDlg
> SdAbstractDialogFactory_Impl::CreateSdInsertLayerDlg(weld::Window
* pParent
, const SfxItemSet
& rInAttrs
, bool bDeletable
, const OUString
& aStr
)
638 return VclPtr
<AbstractSdInsertLayerDlg_Impl
>::Create(std::make_unique
<SdInsertLayerDlg
>(pParent
, rInAttrs
, bDeletable
, aStr
));
641 VclPtr
<AbstractSdInsertPagesObjsDlg
> SdAbstractDialogFactory_Impl::CreateSdInsertPagesObjsDlg(weld::Window
* pParent
, const SdDrawDocument
* pDoc
, SfxMedium
* pSfxMedium
, const OUString
& rFileName
)
643 return VclPtr
<AbstractSdInsertPagesObjsDlg_Impl
>::Create(std::make_unique
<SdInsertPagesObjsDlg
>(pParent
, pDoc
, pSfxMedium
, rFileName
));
646 VclPtr
<AbstractMorphDlg
> SdAbstractDialogFactory_Impl::CreateMorphDlg(weld::Window
* pParent
, const SdrObject
* pObj1
, const SdrObject
* pObj2
)
648 return VclPtr
<AbstractMorphDlg_Impl
>::Create(std::make_unique
<::sd::MorphDlg
>(pParent
, pObj1
, pObj2
));
651 VclPtr
<SfxAbstractTabDialog
> SdAbstractDialogFactory_Impl::CreateSdOutlineBulletTabDlg(weld::Window
* pParent
, const SfxItemSet
* pAttr
, ::sd::View
* pView
)
653 return VclPtr
<AbstractBulletDialog_Impl
>::Create(std::make_shared
<::sd::OutlineBulletDlg
>(pParent
, pAttr
, pView
));
656 VclPtr
<SfxAbstractTabDialog
> SdAbstractDialogFactory_Impl::CreateSdParagraphTabDlg(weld::Window
* pParent
, const SfxItemSet
* pAttr
)
658 return VclPtr
<SdAbstractTabController_Impl
>::Create(std::make_shared
<SdParagraphDlg
>(pParent
, pAttr
));
661 VclPtr
<AbstractSdStartPresDlg
> SdAbstractDialogFactory_Impl::CreateSdStartPresentationDlg(weld::Window
* pParent
,
662 const SfxItemSet
& rInAttrs
, const std::vector
<OUString
> &rPageNames
, SdCustomShowList
* pCSList
)
664 return VclPtr
<AbstractSdStartPresDlg_Impl
>::Create(std::make_unique
<SdStartPresentationDlg
>(pParent
, rInAttrs
, rPageNames
, pCSList
));
667 VclPtr
<VclAbstractDialog
> SdAbstractDialogFactory_Impl::CreateRemoteDialog(weld::Window
* pParent
)
669 return VclPtr
<SdAbstractGenericDialog_Impl
>::Create(std::make_unique
<::sd::RemoteDialog
>(pParent
));
672 VclPtr
<SfxAbstractTabDialog
> SdAbstractDialogFactory_Impl::CreateSdPresLayoutTemplateDlg(SfxObjectShell
* pDocSh
, weld::Window
* pParent
, bool bBackgroundDlg
, SfxStyleSheetBase
& rStyleBase
, PresentationObjects ePO
, SfxStyleSheetBasePool
* pSSPool
)
674 return VclPtr
<SdPresLayoutTemplateDlg_Impl
>::Create(std::make_shared
<SdPresLayoutTemplateDlg
>(pDocSh
, pParent
, bBackgroundDlg
, rStyleBase
, ePO
, pSSPool
));
677 VclPtr
<AbstractSdPresLayoutDlg
> SdAbstractDialogFactory_Impl::CreateSdPresLayoutDlg(weld::Window
* pParent
, ::sd::DrawDocShell
* pDocShell
, const SfxItemSet
& rInAttrs
)
679 return VclPtr
<AbstractSdPresLayoutDlg_Impl
>::Create(std::make_unique
<SdPresLayoutDlg
>(pDocShell
, pParent
, rInAttrs
));
682 VclPtr
<SfxAbstractTabDialog
> SdAbstractDialogFactory_Impl::CreateSdTabTemplateDlg(weld::Window
* pParent
, const SfxObjectShell
* pDocShell
, SfxStyleSheetBase
& rStyleBase
, SdrModel
* pModel
, SdrView
* pView
)
684 return VclPtr
<SdAbstractTabController_Impl
>::Create(std::make_shared
<SdTabTemplateDlg
>(pParent
, pDocShell
, rStyleBase
, pModel
, pView
));
687 VclPtr
<SfxAbstractDialog
> SdAbstractDialogFactory_Impl::CreatSdActionDialog(weld::Window
* pParent
, const SfxItemSet
* pAttr
, ::sd::View
* pView
)
689 return VclPtr
<SdAbstractSfxDialog_Impl
>::Create(std::make_unique
<SdActionDlg
>(pParent
, pAttr
, pView
));
692 VclPtr
<AbstractSdVectorizeDlg
> SdAbstractDialogFactory_Impl::CreateSdVectorizeDlg(weld::Window
* pParent
, const Bitmap
& rBmp
, ::sd::DrawDocShell
* pDocShell
)
694 return VclPtr
<AbstractSdVectorizeDlg_Impl
>::Create(std::make_unique
<SdVectorizeDlg
>(pParent
, rBmp
, pDocShell
));
697 VclPtr
<AbstractSdPublishingDlg
> SdAbstractDialogFactory_Impl::CreateSdPublishingDlg(weld::Window
* pParent
, DocumentType eDocType
)
699 return VclPtr
<AbstractSdPublishingDlg_Impl
>::Create(std::make_unique
<SdPublishingDlg
>(pParent
, eDocType
));
702 // Factories for TabPages
703 CreateTabPage
SdAbstractDialogFactory_Impl::GetSdOptionsContentsTabPageCreatorFunc()
705 return SdTpOptionsContents::Create
;
708 CreateTabPage
SdAbstractDialogFactory_Impl::GetSdPrintOptionsTabPageCreatorFunc()
710 return SdPrintOptions::Create
;
713 CreateTabPage
SdAbstractDialogFactory_Impl::GetSdOptionsMiscTabPageCreatorFunc()
715 return SdTpOptionsMisc::Create
;
718 CreateTabPage
SdAbstractDialogFactory_Impl::GetSdOptionsSnapTabPageCreatorFunc()
720 return SdTpOptionsSnap::Create
;
723 VclPtr
<VclAbstractDialog
> SdAbstractDialogFactory_Impl::CreateMasterLayoutDialog(weld::Window
* pParent
, SdDrawDocument
* pDoc
, SdPage
* pCurrentPage
)
725 return VclPtr
<AbstractMasterLayoutDialog_Impl
>::Create(std::make_unique
<::sd::MasterLayoutDialog
>(pParent
, pDoc
, pCurrentPage
));
728 VclPtr
<AbstractHeaderFooterDialog
> SdAbstractDialogFactory_Impl::CreateHeaderFooterDialog(sd::ViewShell
* pViewShell
,
729 weld::Window
* pParent
, SdDrawDocument
* pDoc
, SdPage
* pCurrentPage
)
731 return VclPtr
<AbstractHeaderFooterDialog_Impl
>::Create(std::make_shared
<::sd::HeaderFooterDialog
>(pViewShell
, pParent
, pDoc
, pCurrentPage
));
734 VclPtr
<VclAbstractDialog
> SdAbstractDialogFactory_Impl::CreateSdPhotoAlbumDialog(weld::Window
* pParent
, SdDrawDocument
* pDoc
)
736 return VclPtr
<SdAbstractGenericDialog_Impl
>::Create(std::make_unique
<sd::SdPhotoAlbumDialog
>(pParent
, pDoc
));
739 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */