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