xref: /aoo41x/main/sd/source/ui/dlg/sddlgfact.cxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_sd.hxx"
30 
31 #ifdef SD_DLLIMPLEMENTATION
32 #undef SD_DLLIMPLEMENTATION
33 #endif
34 
35 #include <sfx2/objsh.hxx>
36 #include <tools/rc.hxx>
37 #include "sddlgfact.hxx"
38 #include "strings.hrc"
39 #include "BreakDlg.hxx"
40 #include "copydlg.hxx"
41 #include "custsdlg.hxx"
42 #include "dlg_char.hxx"
43 #include "dlgpage.hxx"
44 #include "dlgass.hxx"
45 #include "dlgfield.hxx"
46 #include "dlgsnap.hxx"
47 #include "layeroptionsdlg.hxx"
48 #include "ins_paste.hxx"
49 #include "inspagob.hxx"
50 #include "morphdlg.hxx"
51 #include "OutlineBulletDlg.hxx"
52 #include "paragr.hxx"
53 #include "present.hxx"
54 #include "prltempl.hxx"
55 #include "sdpreslt.hxx"
56 #include "tabtempl.hxx"
57 #include "tpaction.hxx"
58 #include "vectdlg.hxx"
59 #include "tpoption.hxx"
60 #include "prntopts.hxx"
61 #include "pubdlg.hxx"
62 #include "masterlayoutdlg.hxx"
63 #include "headerfooterdlg.hxx"
64 
65 IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl);
66 IMPL_ABSTDLG_BASE(AbstractCopyDlg_Impl);
67 IMPL_ABSTDLG_BASE(AbstractSdCustomShowDlg_Impl);
68 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl);
69 IMPL_ABSTDLG_BASE(SdPresLayoutTemplateDlg_Impl);
70 IMPL_ABSTDLG_BASE(AbstractAssistentDlg_Impl);
71 IMPL_ABSTDLG_BASE(AbstractSdModifyFieldDlg_Impl);
72 IMPL_ABSTDLG_BASE(AbstractSdSnapLineDlg_Impl);
73 IMPL_ABSTDLG_BASE(AbstractSdInsertLayerDlg_Impl);
74 IMPL_ABSTDLG_BASE(AbstractSdInsertPasteDlg_Impl);
75 IMPL_ABSTDLG_BASE(AbstractSdInsertPagesObjsDlg_Impl);
76 IMPL_ABSTDLG_BASE(AbstractMorphDlg_Impl);
77 IMPL_ABSTDLG_BASE(AbstractSdStartPresDlg_Impl);
78 IMPL_ABSTDLG_BASE(AbstractSdPresLayoutDlg_Impl);
79 IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl);
80 IMPL_ABSTDLG_BASE(AbstractSdVectorizeDlg_Impl);
81 IMPL_ABSTDLG_BASE(AbstractSdPublishingDlg_Impl);
82 IMPL_ABSTDLG_BASE(AbstractHeaderFooterDialog_Impl);
83 IMPL_ABSTDLG_BASE(AbstractBulletDialog_Impl);
84 
85 //AbstractCopyDlg_Impl begin
86 void AbstractCopyDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
87 {
88 	pDlg->GetAttr( rOutAttrs );
89 }
90 // AbstractCopyDlg_Impl end
91 
92 //AbstractSdCustomShowDlg_Impl begin
93 sal_Bool AbstractSdCustomShowDlg_Impl::IsModified() const
94 {
95 	return pDlg->IsModified();
96 }
97 sal_Bool AbstractSdCustomShowDlg_Impl::IsCustomShow() const
98 {
99 	return pDlg->IsCustomShow();
100 }
101 // AbstractSdCustomShowDlg_Impl end
102 
103 // AbstractTabDialog_Impl begin
104 void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
105 {
106 	pDlg->SetCurPageId( nId );
107 }
108 const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
109 {
110 	return pDlg->GetOutputItemSet();
111 }
112 const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
113 {
114 	return pDlg->GetInputRanges( pItem );
115 }
116 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
117 {
118 	 pDlg->SetInputSet( pInSet );
119 }
120 //From class Window.
121 void AbstractTabDialog_Impl::SetText( const XubString& rStr )
122 {
123 	pDlg->SetText( rStr );
124 }
125 String AbstractTabDialog_Impl::GetText() const
126 {
127 	return pDlg->GetText();
128 }
129 //add for AbstractTabDialog_Impl end
130 
131 // --------------------------------------------------------------------
132 
133 // AbstractBulletDialog_Impl begin
134 void AbstractBulletDialog_Impl::SetCurPageId( sal_uInt16 nId )
135 {
136 	static_cast< ::sd::OutlineBulletDlg*>(pDlg)->SetCurPageId( nId );
137 }
138 const SfxItemSet* AbstractBulletDialog_Impl::GetOutputItemSet() const
139 {
140 	return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetOutputItemSet();
141 }
142 const sal_uInt16* AbstractBulletDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
143 {
144 	return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetInputRanges( pItem );
145 }
146 void AbstractBulletDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
147 {
148 	 static_cast< ::sd::OutlineBulletDlg*>(pDlg)->SetInputSet( pInSet );
149 }
150 //From class Window.
151 void AbstractBulletDialog_Impl::SetText( const XubString& rStr )
152 {
153 	static_cast< ::sd::OutlineBulletDlg*>(pDlg)->SetText( rStr );
154 }
155 String AbstractBulletDialog_Impl::GetText() const
156 {
157 	return static_cast< ::sd::OutlineBulletDlg*>(pDlg)->GetText();
158 }
159 //add for AbstractBulletDialog_Impl end
160 
161 // --------------------------------------------------------------------
162 
163 void SdPresLayoutTemplateDlg_Impl::SetCurPageId( sal_uInt16 nId )
164 {
165 	pDlg->SetCurPageId( nId );
166 }
167 
168 const SfxItemSet* SdPresLayoutTemplateDlg_Impl::GetOutputItemSet() const
169 {
170 	return pDlg->GetOutputItemSet();
171 }
172 
173 const sal_uInt16* SdPresLayoutTemplateDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
174 {
175 	return pDlg->GetInputRanges( pItem );
176 }
177 
178 void SdPresLayoutTemplateDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
179 {
180 	 pDlg->SetInputSet( pInSet );
181 }
182 
183 void SdPresLayoutTemplateDlg_Impl::SetText( const XubString& rStr )
184 {
185 	pDlg->SetText( rStr );
186 }
187 
188 String SdPresLayoutTemplateDlg_Impl::GetText() const
189 {
190 	return pDlg->GetText();
191 }
192 
193 // --------------------------------------------------------------------
194 
195 //AbstractAssistentDlg_Impl begin
196 SfxObjectShellLock AbstractAssistentDlg_Impl::GetDocument()
197 {
198 	return pDlg->GetDocument();
199 }
200 OutputType AbstractAssistentDlg_Impl::GetOutputMedium() const
201 {
202 	return pDlg->GetOutputMedium();
203 }
204 sal_Bool AbstractAssistentDlg_Impl::IsSummary() const
205 {
206 	return pDlg->IsSummary();
207 }
208 StartType AbstractAssistentDlg_Impl::GetStartType() const
209 {
210 	return pDlg->GetStartType();
211 }
212 String AbstractAssistentDlg_Impl::GetDocPath() const
213 {
214 	return pDlg->GetDocPath();
215 }
216 sal_Bool AbstractAssistentDlg_Impl::GetStartWithFlag() const
217 {
218 	return pDlg->GetStartWithFlag();
219 }
220 sal_Bool AbstractAssistentDlg_Impl::IsDocEmpty() const
221 {
222 	return pDlg->IsDocEmpty();
223 }
224 String AbstractAssistentDlg_Impl::GetPassword()
225 {
226 	return pDlg->GetPassword();
227 }
228 // AbstractAssistentDlg_Impl end
229 
230 //AbstractSdModifyFieldDlg_Impl begin
231 SvxFieldData* AbstractSdModifyFieldDlg_Impl::GetField()
232 {
233 	return pDlg->GetField();
234 }
235 SfxItemSet AbstractSdModifyFieldDlg_Impl::GetItemSet()
236 {
237 	return pDlg->GetItemSet();
238 }
239 // AbstractSdModifyFieldDlg_Impl end
240 
241 //AbstractSdSnapLineDlg_Impl begin
242 void AbstractSdSnapLineDlg_Impl::GetAttr(SfxItemSet& rOutAttrs)
243 {
244 	pDlg->GetAttr(rOutAttrs);
245 }
246 void AbstractSdSnapLineDlg_Impl::HideRadioGroup()
247 {
248 	pDlg->HideRadioGroup();
249 }
250 void AbstractSdSnapLineDlg_Impl::HideDeleteBtn()
251 {
252 	pDlg->HideDeleteBtn();
253 }
254 void AbstractSdSnapLineDlg_Impl::SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY)
255 {
256 	pDlg->SetInputFields(bEnableX, bEnableY);
257 }
258 void AbstractSdSnapLineDlg_Impl::SetText( const XubString& rStr )
259 {
260 	pDlg->SetText( rStr );
261 }
262 // AbstractSdSnapLineDlg_Impl end
263 
264 //AbstractSdInsertLayerDlg_Impl begin
265 void AbstractSdInsertLayerDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
266 {
267 	pDlg->GetAttr( rOutAttrs );
268 }
269 void AbstractSdInsertLayerDlg_Impl::SetHelpId( const rtl::OString& rHelpId )
270 {
271 	pDlg->SetHelpId( rHelpId );
272 }
273 // AbstractSdInsertLayerDlg_Impl end
274 
275 //AbstractSdInsertPasteDlg_Impl begin
276 sal_Bool AbstractSdInsertPasteDlg_Impl::IsInsertBefore() const
277 {
278 	return pDlg->IsInsertBefore();
279 }
280 // AbstractSdInsertPasteDlg_Impl end
281 
282 //AbstractSdInsertPagesObjsDlg_Impl begin
283 ::Window* AbstractSdInsertPagesObjsDlg_Impl::GetWindow()
284 {
285 	return (::Window*)pDlg;
286 }
287 List* AbstractSdInsertPagesObjsDlg_Impl::GetList( sal_uInt16 nType )
288 {
289 	return pDlg->GetList( nType );
290 }
291 sal_Bool AbstractSdInsertPagesObjsDlg_Impl::IsLink()
292 {
293 	return pDlg->IsLink();
294 }
295 sal_Bool AbstractSdInsertPagesObjsDlg_Impl::IsRemoveUnnessesaryMasterPages() const
296 {
297 	return pDlg->IsRemoveUnnessesaryMasterPages();
298 }
299 // AbstractSdInsertPagesObjsDlg_Impl end
300 
301 //AbstractMorphDlg_Impl begin
302 void AbstractMorphDlg_Impl::SaveSettings() const
303 {
304 	pDlg->SaveSettings();
305 }
306 sal_uInt16 AbstractMorphDlg_Impl::GetFadeSteps() const
307 {
308 	return pDlg->GetFadeSteps();
309 }
310 sal_Bool AbstractMorphDlg_Impl::IsAttributeFade() const
311 {
312 	return pDlg->IsAttributeFade();
313 }
314 sal_Bool AbstractMorphDlg_Impl::IsOrientationFade() const
315 {
316 	return pDlg->IsOrientationFade();
317 }
318 // AbstractMorphDlg_Impl end
319 
320 //AbstractSdStartPresDlg_Impl begin
321 void AbstractSdStartPresDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
322 {
323 	pDlg->GetAttr( rOutAttrs );
324 }
325 // AbstractSdStartPresDlg_Impl end
326 
327 //AbstractSdPresLayoutDlg_Impl begin
328 void AbstractSdPresLayoutDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
329 {
330 	pDlg->GetAttr( rOutAttrs );
331 }
332 // AbstractSdPresLayoutDlg_Impl end
333 
334 //SfxAbstractDialog_Impl begin
335 const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const
336 {
337 	return pDlg->GetOutputItemSet();
338 }
339 void AbstractSfxDialog_Impl::SetText( const XubString& rStr )
340 {
341 	pDlg->SetText( rStr );
342 }
343 String AbstractSfxDialog_Impl::GetText() const
344 {
345 	return pDlg->GetText();
346 }
347 
348 //AbstractSfxSingleTabDialog_Impl end
349 
350 //AbstractSdVectorizeDlg_Impl begin
351 const GDIMetaFile& AbstractSdVectorizeDlg_Impl::GetGDIMetaFile() const
352 {
353 	return pDlg->GetGDIMetaFile();
354 }
355 //AbstractSdVectorizeDlg_Impl end
356 
357 //AbstractSdPublishingDlg_Impl begin
358 void AbstractSdPublishingDlg_Impl::GetParameterSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rParams )
359 {
360 	pDlg->GetParameterSequence( rParams );
361 }
362 //AbstractSdPublishingDlg_Impl end
363 
364 //AbstractHeaderFooterDialog_Impl
365 void AbstractHeaderFooterDialog_Impl::ApplyToAll( TabPage* pPage )
366 {
367   pDlg->ApplyToAll( pPage );
368 }
369 
370 void AbstractHeaderFooterDialog_Impl::Apply( TabPage* pPage )
371 {
372   pDlg->Apply( pPage );
373 }
374 
375 void AbstractHeaderFooterDialog_Impl::Cancel( TabPage* pPage )
376 {
377   pDlg->Cancel( pPage );
378 }
379 //AbstractHeaderFooterDialog_Impl
380 
381 //-------------- SdAbstractDialogFactory implementation--------------
382 
383 //add for BreakDlg begin
384 VclAbstractDialog * SdAbstractDialogFactory_Impl::CreateBreakDlg(
385 											::Window* pWindow,
386 											::sd::DrawView* pDrView,
387 											::sd::DrawDocShell* pShell,
388 											sal_uLong nSumActionCount,
389 											sal_uLong nObjCount ) //add for BreakDlg
390 {
391 	return new VclAbstractDialog_Impl( new ::sd::BreakDlg( pWindow, pDrView, pShell, nSumActionCount, nObjCount ) );
392 }
393 //add for BreakDlg end
394 
395 //add for CopyDlg begin
396 AbstractCopyDlg * SdAbstractDialogFactory_Impl::CreateCopyDlg(
397 											::Window* pWindow, const SfxItemSet& rInAttrs,
398 											XColorTable* pColTab, ::sd::View* pView ) //add for CopyDlg
399 {
400 	return new AbstractCopyDlg_Impl( new ::sd::CopyDlg( pWindow, rInAttrs, pColTab, pView ) );
401 }
402 //add for CopyDlg end
403 
404 //add for SdCustomShowDlg begin
405 AbstractSdCustomShowDlg * SdAbstractDialogFactory_Impl::CreateSdCustomShowDlg( ::Window* pWindow, SdDrawDocument& rDrawDoc ) //add for SdCustomShowDlg
406 {
407 	return new AbstractSdCustomShowDlg_Impl( new SdCustomShowDlg( pWindow, rDrawDoc ) );
408 }
409 //add for SdCustomShowDlg end
410 
411 // add for SdCharDlg begin
412 SfxAbstractTabDialog *  SdAbstractDialogFactory_Impl::CreateSdTabCharDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell )
413 {
414 	return new AbstractTabDialog_Impl( new SdCharDlg( pParent, pAttr, pDocShell ) );
415 }
416 
417 
418 SfxAbstractTabDialog *  SdAbstractDialogFactory_Impl::CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage )
419 {
420 	return new AbstractTabDialog_Impl( new SdPageDlg( pDocShell, pParent, pAttr, bAreaPage ) );
421 }
422 // add for SdCharDlg end
423 
424 //add for AssistentDlg begin
425 AbstractAssistentDlg * SdAbstractDialogFactory_Impl::CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot)
426 {
427 	return new AbstractAssistentDlg_Impl( new AssistentDlg( pParent, bAutoPilot ) );
428 }
429 //add for AssistentDlg end
430 
431 //add for SdModifyFieldDlg begin
432 AbstractSdModifyFieldDlg * SdAbstractDialogFactory_Impl::CreateSdModifyFieldDlg( ::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet )
433 {
434 	return new AbstractSdModifyFieldDlg_Impl( new SdModifyFieldDlg( pWindow, pInField, rSet ) );
435 }
436 //add for SdModifyFieldDlg end
437 
438 //add for SdSnapLineDlg begin
439 AbstractSdSnapLineDlg * SdAbstractDialogFactory_Impl::CreateSdSnapLineDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView)
440 {
441 	return new AbstractSdSnapLineDlg_Impl( new SdSnapLineDlg( pWindow, rInAttrs, pView ) );
442 }
443 //add for SdSnapLineDlg end
444 
445 //add for SdInsertLayerDlg begin
446 AbstractSdInsertLayerDlg * SdAbstractDialogFactory_Impl::CreateSdInsertLayerDlg( ::Window* pWindow,	const SfxItemSet& rInAttrs,	bool bDeletable, String aStr ) //add for SdInsertLayerDlg
447 {
448 	return new AbstractSdInsertLayerDlg_Impl( new SdInsertLayerDlg( pWindow, rInAttrs, bDeletable, aStr ) );
449 }
450 //add for SdInsertLayerDlg end
451 
452 //add for SdInsertPasteDlg begin
453 AbstractSdInsertPasteDlg * SdAbstractDialogFactory_Impl::CreateSdInsertPasteDlg( ::Window* pWindow )
454 {
455 	return new AbstractSdInsertPasteDlg_Impl( new SdInsertPasteDlg( pWindow ) );
456 }
457 //add for SdInsertPasteDlg end
458 
459 //add for SdInsertPagesObjsDlg begin
460 AbstractSdInsertPagesObjsDlg * SdAbstractDialogFactory_Impl::CreateSdInsertPagesObjsDlg( ::Window* pParent, const SdDrawDocument* pDoc, SfxMedium* pSfxMedium, const String& rFileName )
461 {
462 	return new AbstractSdInsertPagesObjsDlg_Impl( new SdInsertPagesObjsDlg( pParent, pDoc, pSfxMedium, rFileName ) );
463 }
464 //add for SdInsertPagesObjsDlg end
465 
466 //add for MorphDlg begin
467 AbstractMorphDlg * SdAbstractDialogFactory_Impl::CreateMorphDlg( ::Window* pParent, const SdrObject* pObj1, const SdrObject* pObj2)
468 {
469 	return new AbstractMorphDlg_Impl( new ::sd::MorphDlg( pParent, pObj1, pObj2 ) );
470 }
471 //add for MorphDlg end
472 
473 // add for OutlineBulletDlg begin
474 SfxAbstractTabDialog *  SdAbstractDialogFactory_Impl::CreateSdOutlineBulletTabDlg( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView )
475 {
476 	return new AbstractBulletDialog_Impl( new ::sd::OutlineBulletDlg( pParent, pAttr, pView ) );
477 }
478 
479 SfxAbstractTabDialog *  SdAbstractDialogFactory_Impl::CreateSdParagraphTabDlg( ::Window* pParent, const SfxItemSet* pAttr )
480 {
481 	return new AbstractTabDialog_Impl( new SdParagraphDlg( pParent, pAttr ) );
482 }
483 // add for OutlineBulletDlg end
484 
485 // add for SdStartPresentationDlg begin
486 AbstractSdStartPresDlg *  SdAbstractDialogFactory_Impl::CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, List& rPageNames, List* pCSList )
487 {
488 	return new AbstractSdStartPresDlg_Impl( new SdStartPresentationDlg( pWindow, rInAttrs, rPageNames, pCSList ) );
489 }
490 // add for SdStartPresentationDlg end
491 
492 // add for SdPresLayoutTemplateDlg begin
493 SfxAbstractTabDialog *  SdAbstractDialogFactory_Impl::CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool )
494 {
495 	return new SdPresLayoutTemplateDlg_Impl( new SdPresLayoutTemplateDlg( pDocSh, pParent, DlgId, rStyleBase, ePO, pSSPool ) );
496 }
497 
498 // add for SdPresLayoutDlg begin
499 AbstractSdPresLayoutDlg *  SdAbstractDialogFactory_Impl::CreateSdPresLayoutDlg(  ::sd::DrawDocShell* pDocShell, ::sd::ViewShell* pViewShell, ::Window* pWindow, const SfxItemSet& rInAttrs)
500 {
501 	return new AbstractSdPresLayoutDlg_Impl( new SdPresLayoutDlg( pDocShell, pViewShell, pWindow, rInAttrs ) );
502 }
503 // add for SdPresLayoutDlg end
504 
505 // add for SdTabTemplateDlg begin
506 SfxAbstractTabDialog *  SdAbstractDialogFactory_Impl::CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView )
507 {
508 	return new AbstractTabDialog_Impl( new SdTabTemplateDlg( pParent, pDocShell, rStyleBase, pModel, pView ) );
509 }
510 // add for SdTabTemplateDlg end
511 
512 SfxAbstractDialog* SdAbstractDialogFactory_Impl::CreatSdActionDialog( ::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView )
513 {
514 	return new AbstractSfxDialog_Impl( new SdActionDlg( pParent, pAttr, pView ) );
515 }
516 
517 // add for SdVectorizeDlg begin
518 AbstractSdVectorizeDlg *  SdAbstractDialogFactory_Impl::CreateSdVectorizeDlg( ::Window* pParent, const Bitmap& rBmp, ::sd::DrawDocShell* pDocShell )
519 {
520 	return new AbstractSdVectorizeDlg_Impl( new SdVectorizeDlg( pParent, rBmp, pDocShell ) );
521 }
522 // add for SdVectorizeDlg end
523 
524 // add for SdPublishingDlg begin
525 AbstractSdPublishingDlg *  SdAbstractDialogFactory_Impl::CreateSdPublishingDlg( ::Window* pWindow, DocumentType eDocType)
526 {
527 	return new AbstractSdPublishingDlg_Impl( new SdPublishingDlg( pWindow, eDocType ) );
528 }
529 // add for SdPublishingDlg end
530 
531 // Factories for TabPages
532 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsContentsTabPageCreatorFunc()
533 {
534 	return SdTpOptionsContents::Create;
535 }
536 
537 CreateTabPage SdAbstractDialogFactory_Impl::GetSdPrintOptionsTabPageCreatorFunc()
538 {
539 	return SdPrintOptions::Create;
540 }
541 
542 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsMiscTabPageCreatorFunc()
543 {
544 	return SdTpOptionsMisc::Create;
545 }
546 
547 CreateTabPage SdAbstractDialogFactory_Impl::GetSdOptionsSnapTabPageCreatorFunc()
548 {
549 	return SdTpOptionsSnap::Create;
550 }
551 
552 VclAbstractDialog* SdAbstractDialogFactory_Impl::CreateMasterLayoutDialog( ::Window* pParent,
553 	SdDrawDocument* pDoc, SdPage* pCurrentPage )
554 {
555   return new VclAbstractDialog_Impl( new ::sd::MasterLayoutDialog( pParent, pDoc, pCurrentPage ));
556 }
557 
558 AbstractHeaderFooterDialog* SdAbstractDialogFactory_Impl::CreateHeaderFooterDialog( ViewShell* pViewShell,
559   ::Window* pParent, SdDrawDocument* pDoc, SdPage* pCurrentPage )
560 {
561 	return new AbstractHeaderFooterDialog_Impl( new ::sd::HeaderFooterDialog( (::sd::ViewShell*)pViewShell, pParent, pDoc, pCurrentPage ));
562 }
563 
564 
565