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