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