merge the formfield patch from ooo-build
[ooovba.git] / sd / source / ui / dlg / sddlgfact.cxx
blobb2fc886a2092de6f5e4c78463a65b63cd24b5b87
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sddlgfact.cxx,v $
10 * $Revision: 1.12 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sd.hxx"
34 #ifdef SD_DLLIMPLEMENTATION
35 #undef SD_DLLIMPLEMENTATION
36 #endif
38 #include <sfx2/objsh.hxx>
39 #include <tools/rc.hxx>
40 #include "sddlgfact.hxx"
41 #include "strings.hrc"
42 #include "BreakDlg.hxx"
43 #include "copydlg.hxx"
44 #include "custsdlg.hxx"
45 #include "dlg_char.hxx"
46 #include "dlgpage.hxx"
47 #include "dlgass.hxx"
48 #include "dlgfield.hxx"
49 #include "dlgsnap.hxx"
50 #include "layeroptionsdlg.hxx"
51 #include "ins_paste.hxx"
52 #include "inspagob.hxx"
53 #include "morphdlg.hxx"
54 #include "OutlineBulletDlg.hxx"
55 #include "paragr.hxx"
56 #include "present.hxx"
57 #include "printdlg.hxx"
58 #include "prltempl.hxx"
59 #include "sdpreslt.hxx"
60 #include "tabtempl.hxx"
61 #include "tpaction.hxx"
62 #include "vectdlg.hxx"
63 #include "tpoption.hxx"
64 #include "prntopts.hxx"
65 #include "pubdlg.hxx"
66 #include "masterlayoutdlg.hxx"
67 #include "headerfooterdlg.hxx"
69 IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl);
70 IMPL_ABSTDLG_BASE(AbstractCopyDlg_Impl);
71 IMPL_ABSTDLG_BASE(AbstractSdCustomShowDlg_Impl);
72 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl);
73 IMPL_ABSTDLG_BASE(SdPresLayoutTemplateDlg_Impl);
74 IMPL_ABSTDLG_BASE(AbstractAssistentDlg_Impl);
75 IMPL_ABSTDLG_BASE(AbstractSdModifyFieldDlg_Impl);
76 IMPL_ABSTDLG_BASE(AbstractSdSnapLineDlg_Impl);
77 IMPL_ABSTDLG_BASE(AbstractSdInsertLayerDlg_Impl);
78 IMPL_ABSTDLG_BASE(AbstractSdInsertPasteDlg_Impl);
79 IMPL_ABSTDLG_BASE(AbstractSdInsertPagesObjsDlg_Impl);
80 IMPL_ABSTDLG_BASE(AbstractMorphDlg_Impl);
81 IMPL_ABSTDLG_BASE(AbstractSdStartPresDlg_Impl);
82 IMPL_ABSTDLG_BASE(AbstractSdPrintDlg_Impl);
83 IMPL_ABSTDLG_BASE(AbstractSdPresLayoutDlg_Impl);
84 IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl);
85 IMPL_ABSTDLG_BASE(AbstractSdVectorizeDlg_Impl);
86 IMPL_ABSTDLG_BASE(AbstractSdPublishingDlg_Impl);
87 IMPL_ABSTDLG_BASE(AbstractHeaderFooterDialog_Impl);
88 IMPL_ABSTDLG_BASE(AbstractBulletDialog_Impl);
90 //AbstractCopyDlg_Impl begin
91 void AbstractCopyDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
93 pDlg->GetAttr( rOutAttrs );
95 // AbstractCopyDlg_Impl end
97 //AbstractSdCustomShowDlg_Impl begin
98 BOOL AbstractSdCustomShowDlg_Impl::IsModified() const
100 return pDlg->IsModified();
102 BOOL AbstractSdCustomShowDlg_Impl::IsCustomShow() const
104 return pDlg->IsCustomShow();
106 // AbstractSdCustomShowDlg_Impl end
108 // AbstractTabDialog_Impl begin
109 void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
111 pDlg->SetCurPageId( nId );
113 const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
115 return pDlg->GetOutputItemSet();
117 const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
119 return pDlg->GetInputRanges( pItem );
121 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
123 pDlg->SetInputSet( pInSet );
125 //From class Window.
126 void AbstractTabDialog_Impl::SetText( const XubString& rStr )
128 pDlg->SetText( rStr );
130 String AbstractTabDialog_Impl::GetText() const
132 return pDlg->GetText();
134 //add for AbstractTabDialog_Impl end
136 // --------------------------------------------------------------------
138 // AbstractBulletDialog_Impl begin
139 void AbstractBulletDialog_Impl::SetCurPageId( USHORT nId )
141 static_cast< ::sd::OutlineBulletDlg*>(pDlg)->SetCurPageId( nId );
143 const SfxItemSet* AbstractBulletDialog_Impl::GetOutputItemSet() const
145 return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetOutputItemSet();
147 const USHORT* AbstractBulletDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
149 return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetInputRanges( pItem );
151 void AbstractBulletDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
153 static_cast< ::sd::OutlineBulletDlg*>(pDlg)->SetInputSet( pInSet );
155 //From class Window.
156 void AbstractBulletDialog_Impl::SetText( const XubString& rStr )
158 static_cast< ::sd::OutlineBulletDlg*>(pDlg)->SetText( rStr );
160 String AbstractBulletDialog_Impl::GetText() const
162 return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetText();
164 //add for AbstractBulletDialog_Impl end
166 // --------------------------------------------------------------------
168 void SdPresLayoutTemplateDlg_Impl::SetCurPageId( USHORT nId )
170 pDlg->SetCurPageId( nId );
173 const SfxItemSet* SdPresLayoutTemplateDlg_Impl::GetOutputItemSet() const
175 return pDlg->GetOutputItemSet();
178 const USHORT* SdPresLayoutTemplateDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
180 return pDlg->GetInputRanges( pItem );
183 void SdPresLayoutTemplateDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
185 pDlg->SetInputSet( pInSet );
188 void SdPresLayoutTemplateDlg_Impl::SetText( const XubString& rStr )
190 pDlg->SetText( rStr );
193 String SdPresLayoutTemplateDlg_Impl::GetText() const
195 return pDlg->GetText();
198 // --------------------------------------------------------------------
200 //AbstractAssistentDlg_Impl begin
201 SfxObjectShellLock AbstractAssistentDlg_Impl::GetDocument()
203 return pDlg->GetDocument();
205 OutputType AbstractAssistentDlg_Impl::GetOutputMedium() const
207 return pDlg->GetOutputMedium();
209 BOOL AbstractAssistentDlg_Impl::IsSummary() const
211 return pDlg->IsSummary();
213 StartType AbstractAssistentDlg_Impl::GetStartType() const
215 return pDlg->GetStartType();
217 String AbstractAssistentDlg_Impl::GetDocPath() const
219 return pDlg->GetDocPath();
221 BOOL AbstractAssistentDlg_Impl::GetStartWithFlag() const
223 return pDlg->GetStartWithFlag();
225 BOOL AbstractAssistentDlg_Impl::IsDocEmpty() const
227 return pDlg->IsDocEmpty();
229 String AbstractAssistentDlg_Impl::GetPassword()
231 return pDlg->GetPassword();
233 // AbstractAssistentDlg_Impl end
235 //AbstractSdModifyFieldDlg_Impl begin
236 SvxFieldData* AbstractSdModifyFieldDlg_Impl::GetField()
238 return pDlg->GetField();
240 SfxItemSet AbstractSdModifyFieldDlg_Impl::GetItemSet()
242 return pDlg->GetItemSet();
244 // AbstractSdModifyFieldDlg_Impl end
246 //AbstractSdSnapLineDlg_Impl begin
247 void AbstractSdSnapLineDlg_Impl::GetAttr(SfxItemSet& rOutAttrs)
249 pDlg->GetAttr(rOutAttrs);
251 void AbstractSdSnapLineDlg_Impl::HideRadioGroup()
253 pDlg->HideRadioGroup();
255 void AbstractSdSnapLineDlg_Impl::HideDeleteBtn()
257 pDlg->HideDeleteBtn();
259 void AbstractSdSnapLineDlg_Impl::SetInputFields(BOOL bEnableX, BOOL bEnableY)
261 pDlg->SetInputFields(bEnableX, bEnableY);
263 void AbstractSdSnapLineDlg_Impl::SetText( const XubString& rStr )
265 pDlg->SetText( rStr );
267 // AbstractSdSnapLineDlg_Impl end
269 //AbstractSdInsertLayerDlg_Impl begin
270 void AbstractSdInsertLayerDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
272 pDlg->GetAttr( rOutAttrs );
274 void AbstractSdInsertLayerDlg_Impl::SetHelpId( ULONG nHelpId )
276 pDlg->SetHelpId( nHelpId );
278 // AbstractSdInsertLayerDlg_Impl end
280 //AbstractSdInsertPasteDlg_Impl begin
281 BOOL AbstractSdInsertPasteDlg_Impl::IsInsertBefore() const
283 return pDlg->IsInsertBefore();
285 // AbstractSdInsertPasteDlg_Impl end
287 //AbstractSdInsertPagesObjsDlg_Impl begin
288 ::Window* AbstractSdInsertPagesObjsDlg_Impl::GetWindow()
290 return (::Window*)pDlg;
292 List* AbstractSdInsertPagesObjsDlg_Impl::GetList( USHORT nType )
294 return pDlg->GetList( nType );
296 BOOL AbstractSdInsertPagesObjsDlg_Impl::IsLink()
298 return pDlg->IsLink();
300 BOOL AbstractSdInsertPagesObjsDlg_Impl::IsRemoveUnnessesaryMasterPages() const
302 return pDlg->IsRemoveUnnessesaryMasterPages();
304 // AbstractSdInsertPagesObjsDlg_Impl end
306 //AbstractMorphDlg_Impl begin
307 void AbstractMorphDlg_Impl::SaveSettings() const
309 pDlg->SaveSettings();
311 USHORT AbstractMorphDlg_Impl::GetFadeSteps() const
313 return pDlg->GetFadeSteps();
315 BOOL AbstractMorphDlg_Impl::IsAttributeFade() const
317 return pDlg->IsAttributeFade();
319 BOOL AbstractMorphDlg_Impl::IsOrientationFade() const
321 return pDlg->IsOrientationFade();
323 // AbstractMorphDlg_Impl end
325 //AbstractSdStartPresDlg_Impl begin
326 void AbstractSdStartPresDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
328 pDlg->GetAttr( rOutAttrs );
330 // AbstractSdStartPresDlg_Impl end
332 //AbstractSdPrintDlg_Impl begin
333 USHORT AbstractSdPrintDlg_Impl::GetAttr()
335 return pDlg->GetAttr();
337 // AbstractSdPrintDlg_Impl end
339 //AbstractSdPresLayoutDlg_Impl begin
340 void AbstractSdPresLayoutDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
342 pDlg->GetAttr( rOutAttrs );
344 // AbstractSdPresLayoutDlg_Impl end
346 //SfxAbstractDialog_Impl begin
347 const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const
349 return pDlg->GetOutputItemSet();
351 void AbstractSfxDialog_Impl::SetText( const XubString& rStr )
353 pDlg->SetText( rStr );
355 String AbstractSfxDialog_Impl::GetText() const
357 return pDlg->GetText();
360 //AbstractSfxSingleTabDialog_Impl end
362 //AbstractSdVectorizeDlg_Impl begin
363 const GDIMetaFile& AbstractSdVectorizeDlg_Impl::GetGDIMetaFile() const
365 return pDlg->GetGDIMetaFile();
367 //AbstractSdVectorizeDlg_Impl end
369 //AbstractSdPublishingDlg_Impl begin
370 void AbstractSdPublishingDlg_Impl::GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams )
372 pDlg->GetParameterSequence( rParams );
374 //AbstractSdPublishingDlg_Impl end
376 //AbstractHeaderFooterDialog_Impl
377 void AbstractHeaderFooterDialog_Impl::ApplyToAll( TabPage* pPage )
379 pDlg->ApplyToAll( pPage );
382 void AbstractHeaderFooterDialog_Impl::Apply( TabPage* pPage )
384 pDlg->Apply( pPage );
387 void AbstractHeaderFooterDialog_Impl::Cancel( TabPage* pPage )
389 pDlg->Cancel( pPage );
391 //AbstractHeaderFooterDialog_Impl
393 //-------------- SdAbstractDialogFactory implementation--------------
395 //add for BreakDlg begin
396 VclAbstractDialog * SdAbstractDialogFactory_Impl::CreateBreakDlg(
397 ::Window* pWindow,
398 ::sd::DrawView* pDrView,
399 ::sd::DrawDocShell* pShell,
400 ULONG nSumActionCount,
401 ULONG nObjCount ) //add for BreakDlg
403 return new VclAbstractDialog_Impl( new ::sd::BreakDlg( pWindow, pDrView, pShell, nSumActionCount, nObjCount ) );
405 //add for BreakDlg end
407 //add for CopyDlg begin
408 AbstractCopyDlg * SdAbstractDialogFactory_Impl::CreateCopyDlg(
409 ::Window* pWindow, const SfxItemSet& rInAttrs,
410 XColorTable* pColTab, ::sd::View* pView ) //add for CopyDlg
412 return new AbstractCopyDlg_Impl( new ::sd::CopyDlg( pWindow, rInAttrs, pColTab, pView ) );
414 //add for CopyDlg end
416 //add for SdCustomShowDlg begin
417 AbstractSdCustomShowDlg * SdAbstractDialogFactory_Impl::CreateSdCustomShowDlg( ::Window* pWindow, SdDrawDocument& rDrawDoc ) //add for SdCustomShowDlg
419 return new AbstractSdCustomShowDlg_Impl( new SdCustomShowDlg( pWindow, rDrawDoc ) );
421 //add for SdCustomShowDlg end
423 // add for SdCharDlg begin
424 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabCharDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell )
426 return new AbstractTabDialog_Impl( new SdCharDlg( pParent, pAttr, pDocShell ) );
430 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, BOOL bAreaPage )
432 return new AbstractTabDialog_Impl( new SdPageDlg( pDocShell, pParent, pAttr, bAreaPage ) );
434 // add for SdCharDlg end
436 //add for AssistentDlg begin
437 AbstractAssistentDlg * SdAbstractDialogFactory_Impl::CreateAssistentDlg( ::Window* pParent, BOOL bAutoPilot)
439 return new AbstractAssistentDlg_Impl( new AssistentDlg( pParent, bAutoPilot ) );
441 //add for AssistentDlg end
443 //add for SdModifyFieldDlg begin
444 AbstractSdModifyFieldDlg * SdAbstractDialogFactory_Impl::CreateSdModifyFieldDlg( ::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet )
446 return new AbstractSdModifyFieldDlg_Impl( new SdModifyFieldDlg( pWindow, pInField, rSet ) );
448 //add for SdModifyFieldDlg end
450 //add for SdSnapLineDlg begin
451 AbstractSdSnapLineDlg * SdAbstractDialogFactory_Impl::CreateSdSnapLineDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView)
453 return new AbstractSdSnapLineDlg_Impl( new SdSnapLineDlg( pWindow, rInAttrs, pView ) );
455 //add for SdSnapLineDlg end
457 //add for SdInsertLayerDlg begin
458 AbstractSdInsertLayerDlg * SdAbstractDialogFactory_Impl::CreateSdInsertLayerDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, bool bDeletable, String aStr ) //add for SdInsertLayerDlg
460 return new AbstractSdInsertLayerDlg_Impl( new SdInsertLayerDlg( pWindow, rInAttrs, bDeletable, aStr ) );
462 //add for SdInsertLayerDlg end
464 //add for SdInsertPasteDlg begin
465 AbstractSdInsertPasteDlg * SdAbstractDialogFactory_Impl::CreateSdInsertPasteDlg( ::Window* pWindow )
467 return new AbstractSdInsertPasteDlg_Impl( new SdInsertPasteDlg( pWindow ) );
469 //add for SdInsertPasteDlg end
471 //add for SdInsertPagesObjsDlg begin
472 AbstractSdInsertPagesObjsDlg * SdAbstractDialogFactory_Impl::CreateSdInsertPagesObjsDlg( ::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const String& rFileName )
474 return new AbstractSdInsertPagesObjsDlg_Impl( new SdInsertPagesObjsDlg( pParent, pDoc, pSfxMedium, rFileName ) );
476 //add for SdInsertPagesObjsDlg end
478 //add for MorphDlg begin
479 AbstractMorphDlg * SdAbstractDialogFactory_Impl::CreateMorphDlg( ::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2)
481 return new AbstractMorphDlg_Impl( new ::sd::MorphDlg( pParent, pObj1, pObj2 ) );
483 //add for MorphDlg end
485 // add for OutlineBulletDlg begin
486 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdOutlineBulletTabDlg( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView )
488 return new AbstractBulletDialog_Impl( new ::sd::OutlineBulletDlg( pParent, pAttr, pView ) );
491 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdParagraphTabDlg( ::Window* pParent, const SfxItemSet* pAttr )
493 return new AbstractTabDialog_Impl( new SdParagraphDlg( pParent, pAttr ) );
495 // add for OutlineBulletDlg end
497 // add for SdStartPresentationDlg begin
498 AbstractSdStartPresDlg * SdAbstractDialogFactory_Impl::CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, List& rPageNames, List* pCSList )
500 return new AbstractSdStartPresDlg_Impl( new SdStartPresentationDlg( pWindow, rInAttrs, rPageNames, pCSList ) );
502 // add for SdStartPresentationDlg end
504 // add for SdPrintDlg begin
505 AbstractSdPrintDlg * SdAbstractDialogFactory_Impl::CreateSdPrintDlg( ::Window* pWindow )
507 return new AbstractSdPrintDlg_Impl( new SdPrintDlg( pWindow ) );
509 // add for SdPrintDlg end
511 // add for SdPresLayoutTemplateDlg begin
512 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool )
514 return new SdPresLayoutTemplateDlg_Impl( new SdPresLayoutTemplateDlg( pDocSh, pParent, DlgId, rStyleBase, ePO, pSSPool ) );
517 // add for SdPresLayoutDlg begin
518 AbstractSdPresLayoutDlg * SdAbstractDialogFactory_Impl::CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, ::sd::ViewShell* pViewShell, ::Window* pWindow, const SfxItemSet& rInAttrs)
520 return new AbstractSdPresLayoutDlg_Impl( new SdPresLayoutDlg( pDocShell, pViewShell, pWindow, rInAttrs ) );
522 // add for SdPresLayoutDlg end
524 // add for SdTabTemplateDlg begin
525 SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView )
527 return new AbstractTabDialog_Impl( new SdTabTemplateDlg( pParent, pDocShell, rStyleBase, pModel, pView ) );
529 // add for SdTabTemplateDlg end
531 SfxAbstractDialog* SdAbstractDialogFactory_Impl::CreatSdActionDialog( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView )
533 return new AbstractSfxDialog_Impl( new SdActionDlg( pParent, pAttr, pView ) );
536 // add for SdVectorizeDlg begin
537 AbstractSdVectorizeDlg * SdAbstractDialogFactory_Impl::CreateSdVectorizeDlg( ::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell )
539 return new AbstractSdVectorizeDlg_Impl( new SdVectorizeDlg( pParent, rBmp, pDocShell ) );
541 // add for SdVectorizeDlg end
543 // add for SdPublishingDlg begin
544 AbstractSdPublishingDlg * SdAbstractDialogFactory_Impl::CreateSdPublishingDlg( ::Window* pWindow, DocumentType eDocType)
546 return new AbstractSdPublishingDlg_Impl( new SdPublishingDlg( pWindow, eDocType ) );
548 // add for SdPublishingDlg end
550 // Factories for TabPages
551 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsContentsTabPageCreatorFunc()
553 return SdTpOptionsContents::Create;
556 CreateTabPage SdAbstractDialogFactory_Impl::GetSdPrintOptionsTabPageCreatorFunc()
558 return SdPrintOptions::Create;
561 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsMiscTabPageCreatorFunc()
563 return SdTpOptionsMisc::Create;
566 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsSnapTabPageCreatorFunc()
568 return SdTpOptionsSnap::Create;
571 VclAbstractDialog* SdAbstractDialogFactory_Impl::CreateMasterLayoutDialog( ::Window* pParent,
572 SdDrawDocument* pDoc, SdPage* pCurrentPage )
574 return new VclAbstractDialog_Impl( new ::sd::MasterLayoutDialog( pParent, pDoc, pCurrentPage ));
577 AbstractHeaderFooterDialog* SdAbstractDialogFactory_Impl::CreateHeaderFooterDialog( ViewShell* pViewShell,
578 ::Window* pParent, SdDrawDocument* pDoc, SdPage* pCurrentPage )
580 return new AbstractHeaderFooterDialog_Impl( new ::sd::HeaderFooterDialog( (::sd::ViewShell*)pViewShell, pParent, pDoc, pCurrentPage ));