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