xref: /AOO41X/main/cui/source/factory/dlgfact.cxx (revision 2ee96f1cdb99d49425d866b1ec4c5567f37285e6)
1*2ee96f1cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*2ee96f1cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*2ee96f1cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*2ee96f1cSAndrew Rist  * distributed with this work for additional information
6*2ee96f1cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*2ee96f1cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*2ee96f1cSAndrew Rist  * "License"); you may not use this file except in compliance
9*2ee96f1cSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*2ee96f1cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*2ee96f1cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*2ee96f1cSAndrew Rist  * software distributed under the License is distributed on an
15*2ee96f1cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2ee96f1cSAndrew Rist  * KIND, either express or implied.  See the License for the
17*2ee96f1cSAndrew Rist  * specific language governing permissions and limitations
18*2ee96f1cSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*2ee96f1cSAndrew Rist  *************************************************************/
21*2ee96f1cSAndrew Rist 
22*2ee96f1cSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_cui.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "align.hxx" //add for SvxAlignmentTabPage
28cdf0e10cSrcweir #include "dlgfact.hxx"
29cdf0e10cSrcweir 
30cdf0e10cSrcweir #include <tools/rc.hxx>
31cdf0e10cSrcweir #include <sfx2/basedlgs.hxx>
32cdf0e10cSrcweir #include <sfx2/app.hxx>
33cdf0e10cSrcweir #include <sfx2/request.hxx>
34cdf0e10cSrcweir #include <cuires.hrc>
35cdf0e10cSrcweir #include <svx/dialogs.hrc>
36cdf0e10cSrcweir #include "numfmt.hxx"
37cdf0e10cSrcweir #include "optimprove.hxx"
38cdf0e10cSrcweir #include "splitcelldlg.hxx"
39cdf0e10cSrcweir #include "gallery.hrc"
40cdf0e10cSrcweir #include "dstribut.hxx"
41cdf0e10cSrcweir #include "cuigaldlg.hxx"
42cdf0e10cSrcweir #include "cuiimapwnd.hxx"
43cdf0e10cSrcweir #include "hlmarkwn.hxx"
44cdf0e10cSrcweir #include "cuicharmap.hxx"
45cdf0e10cSrcweir #include "srchxtra.hxx"
46cdf0e10cSrcweir #include "textanim.hxx"
47cdf0e10cSrcweir #include "autocdlg.hxx"
48cdf0e10cSrcweir #include "treeopt.hxx"
49cdf0e10cSrcweir #include "internationaloptions.hxx"
50cdf0e10cSrcweir #include "labdlg.hxx"
51cdf0e10cSrcweir #include "hangulhanjadlg.hxx" //add for HangulHanjaConversionDialog
52cdf0e10cSrcweir #include "showcols.hxx" //add for FmShowColsDialog
53cdf0e10cSrcweir #include "zoom.hxx" //add for SvxZoomDialog
54cdf0e10cSrcweir #include "cuigaldlg.hxx"		//add for Gallery 6 Dialogs and 1 TabPage
55cdf0e10cSrcweir #include "cuiimapwnd.hxx"		//add for URLDlg
56cdf0e10cSrcweir #include "hlmarkwn.hxx"		//add for SvxHlinkDlgMarkWnd
57cdf0e10cSrcweir #include "srchxtra.hxx"		//add for SvxSearchFormatDialog
58cdf0e10cSrcweir #include "transfrm.hxx" //add for SvxTransformTabDialog
59cdf0e10cSrcweir #include "bbdlg.hxx" //add for SvxBorderBackgroundDlg
60cdf0e10cSrcweir #include "cuisrchdlg.hxx" //add for SvxJSearchOptionsDialog
61cdf0e10cSrcweir #include "cuitbxform.hxx" //add for FmInputRecordNoDialog
62cdf0e10cSrcweir #include "optdict.hxx" //add for SvxNewDictionaryDialog
63cdf0e10cSrcweir #include "dlgname.hxx" //add for SvxNameDialog & SvxMessDialog
64cdf0e10cSrcweir #include "multipat.hxx" //add for SvxMultiPathDialog
65cdf0e10cSrcweir #include "multifil.hxx" //add for SvxMultiFileDialog
66cdf0e10cSrcweir #include "cuihyperdlg.hxx" //add for SvxHpLinkDlg
67cdf0e10cSrcweir #include "cuifmsearch.hxx" //add  for FmSearchDialog
68cdf0e10cSrcweir #include "cuigrfflt.hxx"	//add for GraphicFilterDialog
69cdf0e10cSrcweir #include "cuitabarea.hxx" //add for SvxAreaTabDialog
70cdf0e10cSrcweir #include "cuitabline.hxx" //add for SvxLineTabDialog
71cdf0e10cSrcweir #include "measure.hxx" //add for SvxMeasureDialog
72cdf0e10cSrcweir #include "connect.hxx" //add for SvxConnectionDialog
73cdf0e10cSrcweir #include "dbregister.hxx" // add for DatabaseRegistrationDialog
74cdf0e10cSrcweir #include "cuioptgenrl.hxx"	//add for SvxGeneralTabPage
75cdf0e10cSrcweir #include "optasian.hxx"
76cdf0e10cSrcweir #include "insdlg.hxx"
77cdf0e10cSrcweir #include "pastedlg.hxx"
78cdf0e10cSrcweir #include "linkdlg.hxx"
79cdf0e10cSrcweir #include "SpellDialog.hxx"
80cdf0e10cSrcweir #include "cfg.hxx"    //add for SvxConfigDialog
81cdf0e10cSrcweir #include "numpages.hxx" // add for
82cdf0e10cSrcweir #include "paragrph.hxx" //add for
83cdf0e10cSrcweir #include "tabstpge.hxx" // add  for
84cdf0e10cSrcweir #include "textattr.hxx" // add for SvxTextAttrPage
85cdf0e10cSrcweir #include "backgrnd.hxx" //add for SvxBackgroundTabPage
86cdf0e10cSrcweir #include "border.hxx" //add for SvxBorderTabPage
87cdf0e10cSrcweir #include "chardlg.hxx" //add for SvxCharNamePage,SvxCharEffectsPage,SvxCharPositionPage,SvxCharTwoLinesPage
88cdf0e10cSrcweir #include "page.hxx" //add for SvxPageDescPage
89cdf0e10cSrcweir #include "postdlg.hxx" //add for SvxPostItDialog
90cdf0e10cSrcweir #include "grfpage.hxx" //add for SvxGrfCropPage
91cdf0e10cSrcweir #include "scriptdlg.hxx" // for ScriptOrgDialog
92cdf0e10cSrcweir #include "selector.hxx" // for SvxScriptSelectorDialog
93cdf0e10cSrcweir #include "macropg.hxx" // for SvxMacroAssignDlg
94cdf0e10cSrcweir #include "sdrcelldlg.hxx"
95cdf0e10cSrcweir #include "newtabledlg.hxx"
96cdf0e10cSrcweir #include "macroass.hxx"
97cdf0e10cSrcweir #include "acccfg.hxx"
98cdf0e10cSrcweir #include "insrc.hxx"
99cdf0e10cSrcweir #include "passwdomdlg.hxx"
100cdf0e10cSrcweir #include "hyphen.hxx"
101cdf0e10cSrcweir #include "thesdlg.hxx"
102cdf0e10cSrcweir #include "about.hxx"
103cdf0e10cSrcweir #include "dialmgr.hxx"
104cdf0e10cSrcweir 
105cdf0e10cSrcweir using namespace ::com::sun::star;
106cdf0e10cSrcweir using namespace ::com::sun::star::frame;
107cdf0e10cSrcweir using namespace ::com::sun::star::container;
108cdf0e10cSrcweir 
109cdf0e10cSrcweir using ::com::sun::star::uno::Reference;
110cdf0e10cSrcweir 
111cdf0e10cSrcweir using namespace svx;
112cdf0e10cSrcweir // AbstractTabDialog implementations just forwards everything to the dialog
113cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl)
114cdf0e10cSrcweir IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl)
115cdf0e10cSrcweir IMPL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl);
116cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl);
117cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl);
118cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl);
119cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl);
120cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractHyphenWordDialog_Impl)
121cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractThesaurusDialog_Impl)
122cdf0e10cSrcweir 
123cdf0e10cSrcweir AbstractSvxZoomDialog_Impl::~AbstractSvxZoomDialog_Impl()                    					\
124cdf0e10cSrcweir {
125cdf0e10cSrcweir 	delete pDlg;
126cdf0e10cSrcweir }
127cdf0e10cSrcweir short AbstractSvxZoomDialog_Impl::Execute()
128cdf0e10cSrcweir {
129cdf0e10cSrcweir 	return pDlg->Execute();
130cdf0e10cSrcweir }
131cdf0e10cSrcweir 
132cdf0e10cSrcweir //IMPL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl);
133cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSearchProgress_Impl);
134cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTakeProgress_Impl);
135cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTitleDialog_Impl);
136cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScriptSelectorDialog_Impl);
137cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl);
138cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractURLDlg_Impl);
139cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl);
140cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl);
141cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl);
142cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl);
143cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl);
144cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl);
145cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl);
146cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl);
147cdf0e10cSrcweir 
148cdf0e10cSrcweir // #i68101#
149cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl);
150cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl);
151cdf0e10cSrcweir 
152cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl);
153cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl);
154cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxMultiFileDialog_Impl);
155cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl);
156cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl);
157cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl);
158cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl);
159cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractPasteDialog_Impl);
160cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl);
161cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractLinksDialog_Impl);
162cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSpellDialog_Impl);
163cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxPostItDialog_Impl);
164cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractPasswordToOpenModifyDialog_Impl);
165cdf0e10cSrcweir 
166cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////
167cdf0e10cSrcweir // VclAbstractDialog2_Impl
168cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////
169cdf0e10cSrcweir 
170cdf0e10cSrcweir // virtual
171cdf0e10cSrcweir VclAbstractDialog2_Impl::~VclAbstractDialog2_Impl()
172cdf0e10cSrcweir {
173cdf0e10cSrcweir     delete m_pDlg;
174cdf0e10cSrcweir }
175cdf0e10cSrcweir 
176cdf0e10cSrcweir // virtual
177cdf0e10cSrcweir void  VclAbstractDialog2_Impl::StartExecuteModal( const Link& rEndDialogHdl )
178cdf0e10cSrcweir {
179cdf0e10cSrcweir     m_aEndDlgHdl = rEndDialogHdl;
180cdf0e10cSrcweir     m_pDlg->StartExecuteModal(
181cdf0e10cSrcweir         LINK( this, VclAbstractDialog2_Impl, EndDialogHdl ) );
182cdf0e10cSrcweir }
183cdf0e10cSrcweir 
184cdf0e10cSrcweir // virtual
185cdf0e10cSrcweir long VclAbstractDialog2_Impl::GetResult()
186cdf0e10cSrcweir {
187cdf0e10cSrcweir     return m_pDlg->GetResult();
188cdf0e10cSrcweir }
189cdf0e10cSrcweir 
190cdf0e10cSrcweir IMPL_LINK( VclAbstractDialog2_Impl, EndDialogHdl, Dialog*, pDlg )
191cdf0e10cSrcweir {
192cdf0e10cSrcweir     if ( pDlg != m_pDlg )
193cdf0e10cSrcweir     {
194cdf0e10cSrcweir         DBG_ERRORFILE( "VclAbstractDialog2_Impl::EndDialogHdl(): wrong dialog" );
195cdf0e10cSrcweir     }
196cdf0e10cSrcweir 
197cdf0e10cSrcweir     m_aEndDlgHdl.Call( this );
198cdf0e10cSrcweir     m_aEndDlgHdl = Link();
199cdf0e10cSrcweir 
200cdf0e10cSrcweir     return 0L;
201cdf0e10cSrcweir }
202cdf0e10cSrcweir 
203cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////
204cdf0e10cSrcweir 
205cdf0e10cSrcweir void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
206cdf0e10cSrcweir {
207cdf0e10cSrcweir 	pDlg->SetCurPageId( nId );
208cdf0e10cSrcweir }
209cdf0e10cSrcweir 
210cdf0e10cSrcweir const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
211cdf0e10cSrcweir {
212cdf0e10cSrcweir 	return pDlg->GetOutputItemSet();
213cdf0e10cSrcweir }
214cdf0e10cSrcweir 
215cdf0e10cSrcweir const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
216cdf0e10cSrcweir {
217cdf0e10cSrcweir 	return pDlg->GetInputRanges( pItem );
218cdf0e10cSrcweir }
219cdf0e10cSrcweir 
220cdf0e10cSrcweir void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
221cdf0e10cSrcweir {
222cdf0e10cSrcweir 	 pDlg->SetInputSet( pInSet );
223cdf0e10cSrcweir }
224cdf0e10cSrcweir //From class Window.
225cdf0e10cSrcweir void AbstractTabDialog_Impl::SetText( const XubString& rStr )
226cdf0e10cSrcweir {
227cdf0e10cSrcweir 	pDlg->SetText( rStr );
228cdf0e10cSrcweir }
229cdf0e10cSrcweir String AbstractTabDialog_Impl::GetText() const
230cdf0e10cSrcweir {
231cdf0e10cSrcweir 	return pDlg->GetText();
232cdf0e10cSrcweir }
233cdf0e10cSrcweir 
234cdf0e10cSrcweir 
235cdf0e10cSrcweir const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const
236cdf0e10cSrcweir {
237cdf0e10cSrcweir 	return pDlg->GetOutputItemSet();
238cdf0e10cSrcweir }
239cdf0e10cSrcweir 
240cdf0e10cSrcweir void AbstractSfxDialog_Impl::SetText( const XubString& rStr )
241cdf0e10cSrcweir {
242cdf0e10cSrcweir 	pDlg->SetText( rStr );
243cdf0e10cSrcweir }
244cdf0e10cSrcweir 
245cdf0e10cSrcweir String AbstractSfxDialog_Impl::GetText() const
246cdf0e10cSrcweir {
247cdf0e10cSrcweir 	return pDlg->GetText();
248cdf0e10cSrcweir }
249cdf0e10cSrcweir 
250cdf0e10cSrcweir SvxDistributeHorizontal AbstractSvxDistributeDialog_Impl::GetDistributeHor()const
251cdf0e10cSrcweir {
252cdf0e10cSrcweir 	return pDlg->GetDistributeHor();
253cdf0e10cSrcweir }
254cdf0e10cSrcweir SvxDistributeVertical AbstractSvxDistributeDialog_Impl::GetDistributeVer()const
255cdf0e10cSrcweir {
256cdf0e10cSrcweir 	return pDlg->GetDistributeVer();
257cdf0e10cSrcweir }
258cdf0e10cSrcweir 
259cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::EndDialog(long nResult)
260cdf0e10cSrcweir {
261cdf0e10cSrcweir 	pDlg->EndDialog(nResult);
262cdf0e10cSrcweir }
263cdf0e10cSrcweir 
264cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::EnableRubySupport( sal_Bool _bVal )
265cdf0e10cSrcweir {
266cdf0e10cSrcweir     pDlg->EnableRubySupport(_bVal);
267cdf0e10cSrcweir }
268cdf0e10cSrcweir 
269cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetByCharacter( sal_Bool _bByCharacter )
270cdf0e10cSrcweir {
271cdf0e10cSrcweir 	pDlg->SetByCharacter(_bByCharacter);
272cdf0e10cSrcweir }
273cdf0e10cSrcweir 
274cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetConversionDirectionState( sal_Bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection )
275cdf0e10cSrcweir {
276cdf0e10cSrcweir 	pDlg->SetConversionDirectionState(_bTryBothDirections, _ePrimaryConversionDirection);
277cdf0e10cSrcweir }
278cdf0e10cSrcweir 
279cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType )
280cdf0e10cSrcweir {
281cdf0e10cSrcweir 	 pDlg->SetConversionFormat(_eType);
282cdf0e10cSrcweir }
283cdf0e10cSrcweir 
284cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetOptionsChangedHdl( const Link& _rHdl )
285cdf0e10cSrcweir {
286cdf0e10cSrcweir 	 pDlg->SetOptionsChangedHdl(_rHdl );
287cdf0e10cSrcweir }
288cdf0e10cSrcweir 
289cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreHdl( const Link& _rHdl )
290cdf0e10cSrcweir {
291cdf0e10cSrcweir 	 pDlg->SetIgnoreHdl(_rHdl );
292cdf0e10cSrcweir }
293cdf0e10cSrcweir 
294cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreAllHdl( const Link& _rHdl )
295cdf0e10cSrcweir {
296cdf0e10cSrcweir 	 pDlg->SetIgnoreAllHdl(_rHdl );
297cdf0e10cSrcweir }
298cdf0e10cSrcweir 
299cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetChangeHdl( const Link& _rHdl )
300cdf0e10cSrcweir {
301cdf0e10cSrcweir 	pDlg->SetChangeHdl(_rHdl );
302cdf0e10cSrcweir }
303cdf0e10cSrcweir 
304cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetChangeAllHdl( const Link& _rHdl )
305cdf0e10cSrcweir {
306cdf0e10cSrcweir 	pDlg->SetChangeAllHdl(_rHdl );
307cdf0e10cSrcweir }
308cdf0e10cSrcweir 
309cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link& _rHdl )
310cdf0e10cSrcweir {
311cdf0e10cSrcweir 	 pDlg->SetClickByCharacterHdl(_rHdl );
312cdf0e10cSrcweir }
313cdf0e10cSrcweir 
314cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl( const Link& _rHdl )
315cdf0e10cSrcweir {
316cdf0e10cSrcweir 	pDlg->SetConversionFormatChangedHdl(_rHdl );
317cdf0e10cSrcweir }
318cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetFindHdl( const Link& _rHdl )
319cdf0e10cSrcweir {
320cdf0e10cSrcweir 	 pDlg->SetFindHdl(_rHdl );
321cdf0e10cSrcweir }
322cdf0e10cSrcweir 
323cdf0e10cSrcweir sal_Bool AbstractHangulHanjaConversionDialog_Impl::GetUseBothDirections( ) const
324cdf0e10cSrcweir {
325cdf0e10cSrcweir 	return pDlg->GetUseBothDirections();
326cdf0e10cSrcweir }
327cdf0e10cSrcweir 
328cdf0e10cSrcweir editeng::HangulHanjaConversion::ConversionDirection AbstractHangulHanjaConversionDialog_Impl::GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const
329cdf0e10cSrcweir {
330cdf0e10cSrcweir     return pDlg->GetDirection( _eDefaultDirection );
331cdf0e10cSrcweir }
332cdf0e10cSrcweir 
333cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetCurrentString(
334cdf0e10cSrcweir 					const String& _rNewString,
335cdf0e10cSrcweir 					const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rSuggestions,
336cdf0e10cSrcweir 					bool _bOriginatesFromDocument
337cdf0e10cSrcweir 				)
338cdf0e10cSrcweir {
339cdf0e10cSrcweir 	 pDlg->SetCurrentString(_rNewString,_rSuggestions,_bOriginatesFromDocument);
340cdf0e10cSrcweir }
341cdf0e10cSrcweir String	 AbstractHangulHanjaConversionDialog_Impl::GetCurrentString( ) const
342cdf0e10cSrcweir {
343cdf0e10cSrcweir 	return pDlg->GetCurrentString();
344cdf0e10cSrcweir }
345cdf0e10cSrcweir editeng::HangulHanjaConversion::ConversionFormat	 AbstractHangulHanjaConversionDialog_Impl::GetConversionFormat( ) const
346cdf0e10cSrcweir {
347cdf0e10cSrcweir 	return pDlg->GetConversionFormat();
348cdf0e10cSrcweir }
349cdf0e10cSrcweir 
350cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::FocusSuggestion( )
351cdf0e10cSrcweir {
352cdf0e10cSrcweir 	pDlg->FocusSuggestion();
353cdf0e10cSrcweir }
354cdf0e10cSrcweir 
355cdf0e10cSrcweir String	AbstractHangulHanjaConversionDialog_Impl::GetCurrentSuggestion( ) const
356cdf0e10cSrcweir {
357cdf0e10cSrcweir 	return pDlg->GetCurrentSuggestion();
358cdf0e10cSrcweir }
359cdf0e10cSrcweir 
360cdf0e10cSrcweir String AbstractThesaurusDialog_Impl::GetWord()
361cdf0e10cSrcweir {
362cdf0e10cSrcweir 	return pDlg->GetWord();
363cdf0e10cSrcweir };
364cdf0e10cSrcweir 
365cdf0e10cSrcweir sal_uInt16 AbstractThesaurusDialog_Impl::GetLanguage() const
366cdf0e10cSrcweir {
367cdf0e10cSrcweir 	return pDlg->GetLanguage();
368cdf0e10cSrcweir };
369cdf0e10cSrcweir 
370cdf0e10cSrcweir Window*	AbstractThesaurusDialog_Impl::GetWindow()
371cdf0e10cSrcweir {
372cdf0e10cSrcweir 	return pDlg;
373cdf0e10cSrcweir }
374cdf0e10cSrcweir 
375cdf0e10cSrcweir void AbstractHyphenWordDialog_Impl::SelLeft()
376cdf0e10cSrcweir {
377cdf0e10cSrcweir 	pDlg->SelLeft();
378cdf0e10cSrcweir }
379cdf0e10cSrcweir 
380cdf0e10cSrcweir void AbstractHyphenWordDialog_Impl::SelRight()
381cdf0e10cSrcweir {
382cdf0e10cSrcweir 	pDlg->SelRight();
383cdf0e10cSrcweir }
384cdf0e10cSrcweir 
385cdf0e10cSrcweir Window*	AbstractHyphenWordDialog_Impl::GetWindow()
386cdf0e10cSrcweir {
387cdf0e10cSrcweir 	return pDlg;
388cdf0e10cSrcweir }
389cdf0e10cSrcweir 
390cdf0e10cSrcweir Reference < com::sun::star::embed::XEmbeddedObject > AbstractInsertObjectDialog_Impl::GetObject()
391cdf0e10cSrcweir {
392cdf0e10cSrcweir    return pDlg->GetObject();
393cdf0e10cSrcweir }
394cdf0e10cSrcweir 
395cdf0e10cSrcweir sal_Bool AbstractInsertObjectDialog_Impl::IsCreateNew()
396cdf0e10cSrcweir {
397cdf0e10cSrcweir     return pDlg->IsCreateNew();
398cdf0e10cSrcweir }
399cdf0e10cSrcweir 
400cdf0e10cSrcweir ::Reference< ::com::sun::star::io::XInputStream > AbstractInsertObjectDialog_Impl::GetIconIfIconified( ::rtl::OUString* pGraphicMediaType )
401cdf0e10cSrcweir {
402cdf0e10cSrcweir    return pDlg->GetIconIfIconified( pGraphicMediaType );
403cdf0e10cSrcweir }
404cdf0e10cSrcweir 
405cdf0e10cSrcweir void AbstractPasteDialog_Impl::Insert( SotFormatStringId nFormat, const String & rFormatName )
406cdf0e10cSrcweir {
407cdf0e10cSrcweir     pDlg->Insert( nFormat, rFormatName );
408cdf0e10cSrcweir }
409cdf0e10cSrcweir 
410cdf0e10cSrcweir void AbstractPasteDialog_Impl::SetObjName( const SvGlobalName & rClass, const String & rObjName )
411cdf0e10cSrcweir {
412cdf0e10cSrcweir     pDlg->SetObjName( rClass, rObjName );
413cdf0e10cSrcweir }
414cdf0e10cSrcweir 
415cdf0e10cSrcweir sal_uLong AbstractPasteDialog_Impl::GetFormat( const TransferableDataHelper& aHelper,
416cdf0e10cSrcweir                         const DataFlavorExVector* pFormats,
417cdf0e10cSrcweir                         const TransferableObjectDescriptor* pDesc )
418cdf0e10cSrcweir {
419cdf0e10cSrcweir     return pDlg->GetFormat( aHelper, pFormats, pDesc );
420cdf0e10cSrcweir }
421cdf0e10cSrcweir 
422cdf0e10cSrcweir void  AbstractFmShowColsDialog_Impl::SetColumns(const ::Reference< ::com::sun::star::container::XIndexContainer>& xCols)
423cdf0e10cSrcweir {
424cdf0e10cSrcweir 	 pDlg->SetColumns(xCols);
425cdf0e10cSrcweir }
426cdf0e10cSrcweir 
427cdf0e10cSrcweir void AbstractSvxZoomDialog_Impl::SetLimits( sal_uInt16 nMin, sal_uInt16 nMax )
428cdf0e10cSrcweir {
429cdf0e10cSrcweir 	pDlg->SetLimits( nMin, nMax );
430cdf0e10cSrcweir }
431cdf0e10cSrcweir 
432cdf0e10cSrcweir void AbstractSvxZoomDialog_Impl::HideButton( sal_uInt16 nBtnId )
433cdf0e10cSrcweir {
434cdf0e10cSrcweir 	pDlg->HideButton( nBtnId );
435cdf0e10cSrcweir }
436cdf0e10cSrcweir 
437cdf0e10cSrcweir const SfxItemSet* AbstractSvxZoomDialog_Impl::GetOutputItemSet() const
438cdf0e10cSrcweir {
439cdf0e10cSrcweir 	return pDlg->GetOutputItemSet();
440cdf0e10cSrcweir }
441cdf0e10cSrcweir 
442cdf0e10cSrcweir void AbstractSpellDialog_Impl::SetLanguage( sal_uInt16 nLang )
443cdf0e10cSrcweir {
444cdf0e10cSrcweir     pDlg->SetLanguage(nLang);
445cdf0e10cSrcweir }
446cdf0e10cSrcweir 
447cdf0e10cSrcweir sal_Bool AbstractSpellDialog_Impl::Close()
448cdf0e10cSrcweir {
449cdf0e10cSrcweir     return pDlg->Close();
450cdf0e10cSrcweir }
451cdf0e10cSrcweir 
452cdf0e10cSrcweir void  AbstractSpellDialog_Impl::Invalidate()
453cdf0e10cSrcweir {
454cdf0e10cSrcweir     pDlg->InvalidateDialog();
455cdf0e10cSrcweir }
456cdf0e10cSrcweir 
457cdf0e10cSrcweir Window*     AbstractSpellDialog_Impl::GetWindow()
458cdf0e10cSrcweir {
459cdf0e10cSrcweir     return pDlg;
460cdf0e10cSrcweir }
461cdf0e10cSrcweir 
462cdf0e10cSrcweir SfxBindings& AbstractSpellDialog_Impl::GetBindings()
463cdf0e10cSrcweir {
464cdf0e10cSrcweir     return pDlg->GetBindings();
465cdf0e10cSrcweir }
466cdf0e10cSrcweir 
467cdf0e10cSrcweir void AbstractSearchProgress_Impl::Update()
468cdf0e10cSrcweir {
469cdf0e10cSrcweir 	 pDlg->Update();
470cdf0e10cSrcweir }
471cdf0e10cSrcweir 
472cdf0e10cSrcweir void AbstractSearchProgress_Impl::Sync()
473cdf0e10cSrcweir {
474cdf0e10cSrcweir 	 pDlg-> Sync();
475cdf0e10cSrcweir }
476cdf0e10cSrcweir 
477cdf0e10cSrcweir void AbstractSearchProgress_Impl::SetFileType( const String& rType )
478cdf0e10cSrcweir {
479cdf0e10cSrcweir 	 pDlg->SetFileType( rType );
480cdf0e10cSrcweir }
481cdf0e10cSrcweir 
482cdf0e10cSrcweir void AbstractSearchProgress_Impl::SetDirectory( const INetURLObject& rURL )
483cdf0e10cSrcweir {
484cdf0e10cSrcweir 	 pDlg->SetDirectory( rURL );
485cdf0e10cSrcweir }
486cdf0e10cSrcweir PLinkStub	AbstractSearchProgress_Impl::GetLinkStubCleanUpHdl()
487cdf0e10cSrcweir {
488cdf0e10cSrcweir 	return SearchProgress::LinkStubCleanUpHdl;
489cdf0e10cSrcweir }
490cdf0e10cSrcweir 
491cdf0e10cSrcweir void AbstractTakeProgress_Impl::Update()
492cdf0e10cSrcweir {
493cdf0e10cSrcweir 	 pDlg->Update();
494cdf0e10cSrcweir }
495cdf0e10cSrcweir 
496cdf0e10cSrcweir void AbstractTakeProgress_Impl::Sync()
497cdf0e10cSrcweir {
498cdf0e10cSrcweir 	 pDlg-> Sync();
499cdf0e10cSrcweir }
500cdf0e10cSrcweir 
501cdf0e10cSrcweir void AbstractTakeProgress_Impl::SetFile( const INetURLObject& rURL )
502cdf0e10cSrcweir {
503cdf0e10cSrcweir 	 pDlg->SetFile( rURL );
504cdf0e10cSrcweir }
505cdf0e10cSrcweir 
506cdf0e10cSrcweir PLinkStub	AbstractTakeProgress_Impl::GetLinkStubCleanUpHdl()
507cdf0e10cSrcweir {
508cdf0e10cSrcweir 	return TakeProgress::LinkStubCleanUpHdl;
509cdf0e10cSrcweir }
510cdf0e10cSrcweir 
511cdf0e10cSrcweir String AbstractTitleDialog_Impl::GetTitle() const
512cdf0e10cSrcweir {
513cdf0e10cSrcweir 	return pDlg->GetTitle();
514cdf0e10cSrcweir }
515cdf0e10cSrcweir 
516cdf0e10cSrcweir sal_uLong AbstractGalleryIdDialog_Impl::GetId() const
517cdf0e10cSrcweir {
518cdf0e10cSrcweir 	return pDlg->GetId();
519cdf0e10cSrcweir }
520cdf0e10cSrcweir 
521cdf0e10cSrcweir void VclAbstractRefreshableDialog_Impl::Update()
522cdf0e10cSrcweir {
523cdf0e10cSrcweir 	pDlg->Update();
524cdf0e10cSrcweir }
525cdf0e10cSrcweir 
526cdf0e10cSrcweir void VclAbstractRefreshableDialog_Impl::Sync()
527cdf0e10cSrcweir {
528cdf0e10cSrcweir 	 pDlg-> Sync();
529cdf0e10cSrcweir }
530cdf0e10cSrcweir 
531cdf0e10cSrcweir String AbstractURLDlg_Impl::GetURL() const
532cdf0e10cSrcweir {
533cdf0e10cSrcweir 	return pDlg->GetURL();
534cdf0e10cSrcweir }
535cdf0e10cSrcweir 
536cdf0e10cSrcweir String AbstractURLDlg_Impl::GetAltText() const
537cdf0e10cSrcweir {
538cdf0e10cSrcweir 	return pDlg->GetAltText();
539cdf0e10cSrcweir }
540cdf0e10cSrcweir 
541cdf0e10cSrcweir String AbstractURLDlg_Impl::GetDesc() const
542cdf0e10cSrcweir {
543cdf0e10cSrcweir 	return pDlg->GetDesc();
544cdf0e10cSrcweir }
545cdf0e10cSrcweir 
546cdf0e10cSrcweir String AbstractURLDlg_Impl::GetTarget() const
547cdf0e10cSrcweir {
548cdf0e10cSrcweir 	return pDlg->GetTarget();
549cdf0e10cSrcweir }
550cdf0e10cSrcweir 
551cdf0e10cSrcweir String AbstractURLDlg_Impl::GetName() const
552cdf0e10cSrcweir {
553cdf0e10cSrcweir 	return pDlg->GetName();
554cdf0e10cSrcweir }
555cdf0e10cSrcweir 
556cdf0e10cSrcweir void AbstractSvxHlinkDlgMarkWnd_Impl::Hide( sal_uInt16 nFlags )
557cdf0e10cSrcweir {
558cdf0e10cSrcweir 	((Window*)pDlg)->Hide( nFlags );
559cdf0e10cSrcweir }
560cdf0e10cSrcweir 
561cdf0e10cSrcweir void AbstractSvxHlinkDlgMarkWnd_Impl::SetSizePixel( const Size& rNewSize )
562cdf0e10cSrcweir {
563cdf0e10cSrcweir 	pDlg->SetSizePixel( rNewSize );
564cdf0e10cSrcweir }
565cdf0e10cSrcweir 
566cdf0e10cSrcweir Size AbstractSvxHlinkDlgMarkWnd_Impl::GetSizePixel() const
567cdf0e10cSrcweir {
568cdf0e10cSrcweir 	return pDlg->GetSizePixel();
569cdf0e10cSrcweir }
570cdf0e10cSrcweir 
571cdf0e10cSrcweir sal_Bool AbstractSvxHlinkDlgMarkWnd_Impl::IsVisible( ) const
572cdf0e10cSrcweir {
573cdf0e10cSrcweir 	return (( Window* )pDlg)->IsVisible();
574cdf0e10cSrcweir }
575cdf0e10cSrcweir 
576cdf0e10cSrcweir void AbstractSvxHlinkDlgMarkWnd_Impl::Invalidate( sal_uInt16 nFlags )
577cdf0e10cSrcweir {
578cdf0e10cSrcweir 	(( Window* )pDlg)->Invalidate(nFlags);
579cdf0e10cSrcweir }
580cdf0e10cSrcweir 
581cdf0e10cSrcweir sal_Bool AbstractSvxHlinkDlgMarkWnd_Impl::MoveTo( Point aNewPos )const
582cdf0e10cSrcweir {
583cdf0e10cSrcweir 	return pDlg->MoveTo(aNewPos);
584cdf0e10cSrcweir }
585cdf0e10cSrcweir 
586cdf0e10cSrcweir sal_Bool AbstractSvxHlinkDlgMarkWnd_Impl::ConnectToDialog( sal_Bool bDoit  )const
587cdf0e10cSrcweir {
588cdf0e10cSrcweir 	return pDlg->ConnectToDialog(bDoit);
589cdf0e10cSrcweir }
590cdf0e10cSrcweir 
591cdf0e10cSrcweir void AbstractSvxHlinkDlgMarkWnd_Impl::RefreshTree ( String aStrURL )
592cdf0e10cSrcweir {
593cdf0e10cSrcweir 	pDlg->RefreshTree(aStrURL);
594cdf0e10cSrcweir }
595cdf0e10cSrcweir 
596cdf0e10cSrcweir void AbstractSvxHlinkDlgMarkWnd_Impl::SelectEntry ( String aStrMark )
597cdf0e10cSrcweir {
598cdf0e10cSrcweir 	pDlg->SelectEntry(aStrMark);
599cdf0e10cSrcweir }
600cdf0e10cSrcweir 
601cdf0e10cSrcweir sal_uInt16 AbstractSvxHlinkDlgMarkWnd_Impl::SetError( sal_uInt16 nError)
602cdf0e10cSrcweir {
603cdf0e10cSrcweir 	return pDlg->SetError(nError);
604cdf0e10cSrcweir }
605cdf0e10cSrcweir 
606cdf0e10cSrcweir sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetOther()
607cdf0e10cSrcweir {
608cdf0e10cSrcweir 	return pDlg->GetOther();
609cdf0e10cSrcweir }
610cdf0e10cSrcweir 
611cdf0e10cSrcweir sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetShorter()
612cdf0e10cSrcweir {
613cdf0e10cSrcweir 	return pDlg->GetShorter();
614cdf0e10cSrcweir }
615cdf0e10cSrcweir 
616cdf0e10cSrcweir sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetLonger()
617cdf0e10cSrcweir {
618cdf0e10cSrcweir 	return pDlg-> GetLonger();
619cdf0e10cSrcweir }
620cdf0e10cSrcweir 
621cdf0e10cSrcweir sal_Bool AbstractSvxSearchSimilarityDialog_Impl::IsRelaxed()
622cdf0e10cSrcweir {
623cdf0e10cSrcweir 	return pDlg-> IsRelaxed();
624cdf0e10cSrcweir }
625cdf0e10cSrcweir 
626cdf0e10cSrcweir // AbstractSvxTransformTabDialog implementations just forwards everything to the dialog
627cdf0e10cSrcweir void AbstractSvxTransformTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
628cdf0e10cSrcweir {
629cdf0e10cSrcweir     pDlg->SetCurPageId( nId );
630cdf0e10cSrcweir }
631cdf0e10cSrcweir const SfxItemSet* AbstractSvxTransformTabDialog_Impl::GetOutputItemSet() const
632cdf0e10cSrcweir {
633cdf0e10cSrcweir     return pDlg->GetOutputItemSet();
634cdf0e10cSrcweir }
635cdf0e10cSrcweir //
636cdf0e10cSrcweir const sal_uInt16* AbstractSvxTransformTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
637cdf0e10cSrcweir {
638cdf0e10cSrcweir     return pDlg->GetInputRanges( pItem );
639cdf0e10cSrcweir }
640cdf0e10cSrcweir //
641cdf0e10cSrcweir void AbstractSvxTransformTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
642cdf0e10cSrcweir {
643cdf0e10cSrcweir      pDlg->SetInputSet( pInSet );
644cdf0e10cSrcweir }
645cdf0e10cSrcweir //From class Window.
646cdf0e10cSrcweir void AbstractSvxTransformTabDialog_Impl::SetText( const XubString& rStr )
647cdf0e10cSrcweir {
648cdf0e10cSrcweir     pDlg->SetText( rStr );
649cdf0e10cSrcweir }
650cdf0e10cSrcweir String AbstractSvxTransformTabDialog_Impl::GetText() const
651cdf0e10cSrcweir {
652cdf0e10cSrcweir     return pDlg->GetText();
653cdf0e10cSrcweir }
654cdf0e10cSrcweir void AbstractSvxTransformTabDialog_Impl::SetValidateFramePosLink( const Link& rLink )
655cdf0e10cSrcweir {
656cdf0e10cSrcweir     pDlg->SetValidateFramePosLink( rLink );
657cdf0e10cSrcweir }
658cdf0e10cSrcweir 
659cdf0e10cSrcweir // AbstractSvxCaptionDialog implementations just forwards everything to the dialog
660cdf0e10cSrcweir void AbstractSvxCaptionDialog_Impl::SetCurPageId( sal_uInt16 nId )
661cdf0e10cSrcweir {
662cdf0e10cSrcweir     pDlg->SetCurPageId( nId );
663cdf0e10cSrcweir }
664cdf0e10cSrcweir const SfxItemSet* AbstractSvxCaptionDialog_Impl::GetOutputItemSet() const
665cdf0e10cSrcweir {
666cdf0e10cSrcweir     return pDlg->GetOutputItemSet();
667cdf0e10cSrcweir }
668cdf0e10cSrcweir //
669cdf0e10cSrcweir const sal_uInt16* AbstractSvxCaptionDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
670cdf0e10cSrcweir {
671cdf0e10cSrcweir     return pDlg->GetInputRanges( pItem );
672cdf0e10cSrcweir }
673cdf0e10cSrcweir //
674cdf0e10cSrcweir void AbstractSvxCaptionDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
675cdf0e10cSrcweir {
676cdf0e10cSrcweir      pDlg->SetInputSet( pInSet );
677cdf0e10cSrcweir }
678cdf0e10cSrcweir //From class Window.
679cdf0e10cSrcweir void AbstractSvxCaptionDialog_Impl::SetText( const XubString& rStr )
680cdf0e10cSrcweir {
681cdf0e10cSrcweir     pDlg->SetText( rStr );
682cdf0e10cSrcweir }
683cdf0e10cSrcweir String AbstractSvxCaptionDialog_Impl::GetText() const
684cdf0e10cSrcweir {
685cdf0e10cSrcweir     return pDlg->GetText();
686cdf0e10cSrcweir }
687cdf0e10cSrcweir void AbstractSvxCaptionDialog_Impl::SetValidateFramePosLink( const Link& rLink )
688cdf0e10cSrcweir {
689cdf0e10cSrcweir     pDlg->SetValidateFramePosLink( rLink );
690cdf0e10cSrcweir }
691cdf0e10cSrcweir 
692cdf0e10cSrcweir sal_Int32 AbstractSvxJSearchOptionsDialog_Impl::GetTransliterationFlags() const
693cdf0e10cSrcweir {
694cdf0e10cSrcweir 	return pDlg->GetTransliterationFlags();
695cdf0e10cSrcweir }
696cdf0e10cSrcweir 
697cdf0e10cSrcweir void AbstractFmInputRecordNoDialog_Impl::SetValue(long nNew)
698cdf0e10cSrcweir {
699cdf0e10cSrcweir     pDlg->SetValue(nNew);
700cdf0e10cSrcweir }
701cdf0e10cSrcweir 
702cdf0e10cSrcweir long AbstractFmInputRecordNoDialog_Impl::GetValue() const
703cdf0e10cSrcweir {
704cdf0e10cSrcweir 	return pDlg->GetValue();
705cdf0e10cSrcweir }
706cdf0e10cSrcweir 
707cdf0e10cSrcweir ::Reference<
708cdf0e10cSrcweir         ::com::sun::star::linguistic2::XDictionary > AbstractSvxNewDictionaryDialog_Impl::GetNewDictionary()
709cdf0e10cSrcweir {
710cdf0e10cSrcweir 	return pDlg->GetNewDictionary();
711cdf0e10cSrcweir }
712cdf0e10cSrcweir 
713cdf0e10cSrcweir void AbstractSvxNameDialog_Impl::GetName( String& rName )
714cdf0e10cSrcweir {
715cdf0e10cSrcweir 	pDlg->GetName( rName );
716cdf0e10cSrcweir }
717cdf0e10cSrcweir 
718cdf0e10cSrcweir void AbstractSvxNameDialog_Impl::SetCheckNameHdl( const Link& rLink, bool bCheckImmediately )
719cdf0e10cSrcweir {
720cdf0e10cSrcweir 	aCheckNameHdl = rLink;
721cdf0e10cSrcweir 	if( rLink.IsSet() )
722cdf0e10cSrcweir         pDlg->SetCheckNameHdl( LINK(this, AbstractSvxNameDialog_Impl, CheckNameHdl), bCheckImmediately );
723cdf0e10cSrcweir 	else
724cdf0e10cSrcweir 		pDlg->SetCheckNameHdl( Link(), bCheckImmediately );
725cdf0e10cSrcweir }
726cdf0e10cSrcweir void AbstractSvxNameDialog_Impl::SetEditHelpId(const rtl::OString& aHelpId)
727cdf0e10cSrcweir {
728cdf0e10cSrcweir 	pDlg->SetEditHelpId( aHelpId );
729cdf0e10cSrcweir }
730cdf0e10cSrcweir void AbstractSvxNameDialog_Impl::SetHelpId( const rtl::OString& aHelpId )
731cdf0e10cSrcweir {
732cdf0e10cSrcweir 	pDlg->SetHelpId( aHelpId );
733cdf0e10cSrcweir }
734cdf0e10cSrcweir void AbstractSvxNameDialog_Impl::SetText( const XubString& rStr )
735cdf0e10cSrcweir {
736cdf0e10cSrcweir 	pDlg->SetText( rStr );
737cdf0e10cSrcweir }
738cdf0e10cSrcweir IMPL_LINK( AbstractSvxNameDialog_Impl, CheckNameHdl, Window*, EMPTYARG )
739cdf0e10cSrcweir {
740cdf0e10cSrcweir 	if( aCheckNameHdl.IsSet() )
741cdf0e10cSrcweir 		return aCheckNameHdl.Call(this);
742cdf0e10cSrcweir 	return 0;
743cdf0e10cSrcweir }
744cdf0e10cSrcweir 
745cdf0e10cSrcweir void AbstractSvxObjectNameDialog_Impl::GetName(String& rName)
746cdf0e10cSrcweir {
747cdf0e10cSrcweir 	pDlg->GetName(rName);
748cdf0e10cSrcweir }
749cdf0e10cSrcweir 
750cdf0e10cSrcweir void AbstractSvxObjectNameDialog_Impl::SetCheckNameHdl(const Link& rLink, bool bCheckImmediately)
751cdf0e10cSrcweir {
752cdf0e10cSrcweir 	aCheckNameHdl = rLink;
753cdf0e10cSrcweir 
754cdf0e10cSrcweir 	if(rLink.IsSet())
755cdf0e10cSrcweir 	{
756cdf0e10cSrcweir         pDlg->SetCheckNameHdl(LINK(this, AbstractSvxObjectNameDialog_Impl, CheckNameHdl), bCheckImmediately);
757cdf0e10cSrcweir 	}
758cdf0e10cSrcweir 	else
759cdf0e10cSrcweir 	{
760cdf0e10cSrcweir 		pDlg->SetCheckNameHdl(Link(), bCheckImmediately);
761cdf0e10cSrcweir 	}
762cdf0e10cSrcweir }
763cdf0e10cSrcweir 
764cdf0e10cSrcweir IMPL_LINK(AbstractSvxObjectNameDialog_Impl, CheckNameHdl, Window*, EMPTYARG)
765cdf0e10cSrcweir {
766cdf0e10cSrcweir 	if(aCheckNameHdl.IsSet())
767cdf0e10cSrcweir 	{
768cdf0e10cSrcweir 		return aCheckNameHdl.Call(this);
769cdf0e10cSrcweir 	}
770cdf0e10cSrcweir 
771cdf0e10cSrcweir 	return 0;
772cdf0e10cSrcweir }
773cdf0e10cSrcweir 
774cdf0e10cSrcweir void AbstractSvxObjectTitleDescDialog_Impl::GetTitle(String& rTitle)
775cdf0e10cSrcweir {
776cdf0e10cSrcweir 	pDlg->GetTitle(rTitle);
777cdf0e10cSrcweir }
778cdf0e10cSrcweir 
779cdf0e10cSrcweir void AbstractSvxObjectTitleDescDialog_Impl::GetDescription(String& rDescription)
780cdf0e10cSrcweir {
781cdf0e10cSrcweir 	pDlg->GetDescription(rDescription);
782cdf0e10cSrcweir }
783cdf0e10cSrcweir 
784cdf0e10cSrcweir void AbstractSvxMessDialog_Impl::SetButtonText( sal_uInt16 nBtnId, const String& rNewTxt )
785cdf0e10cSrcweir {
786cdf0e10cSrcweir 	pDlg->SetButtonText( nBtnId, rNewTxt );
787cdf0e10cSrcweir }
788cdf0e10cSrcweir 
789cdf0e10cSrcweir String AbstractSvxMultiPathDialog_Impl::GetPath() const
790cdf0e10cSrcweir {
791cdf0e10cSrcweir 	return pDlg->GetPath();
792cdf0e10cSrcweir }
793cdf0e10cSrcweir 
794cdf0e10cSrcweir void AbstractSvxMultiPathDialog_Impl::SetPath( const String& rPath )
795cdf0e10cSrcweir {
796cdf0e10cSrcweir     pDlg->SetPath( rPath );
797cdf0e10cSrcweir }
798cdf0e10cSrcweir 
799cdf0e10cSrcweir void AbstractSvxMultiPathDialog_Impl::EnableRadioButtonMode()
800cdf0e10cSrcweir {
801cdf0e10cSrcweir     pDlg->EnableRadioButtonMode();
802cdf0e10cSrcweir }
803cdf0e10cSrcweir 
804cdf0e10cSrcweir void AbstractSvxMultiPathDialog_Impl::SetTitle( const String& rNewTitle )
805cdf0e10cSrcweir {
806cdf0e10cSrcweir     pDlg->SetText( rNewTitle );
807cdf0e10cSrcweir }
808cdf0e10cSrcweir 
809cdf0e10cSrcweir String AbstractSvxMultiFileDialog_Impl::GetPath() const
810cdf0e10cSrcweir {
811cdf0e10cSrcweir 	return pDlg->GetPath();
812cdf0e10cSrcweir }
813cdf0e10cSrcweir 
814cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::SetPath( const String& rPath )
815cdf0e10cSrcweir {
816cdf0e10cSrcweir 	pDlg->SetPath( rPath );
817cdf0e10cSrcweir }
818cdf0e10cSrcweir 
819cdf0e10cSrcweir String AbstractSvxMultiFileDialog_Impl::GetFiles() const
820cdf0e10cSrcweir {
821cdf0e10cSrcweir 	return pDlg->GetFiles();
822cdf0e10cSrcweir }
823cdf0e10cSrcweir 
824cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::SetFiles( const String& rPath )
825cdf0e10cSrcweir {
826cdf0e10cSrcweir 	pDlg->SetFiles( rPath );
827cdf0e10cSrcweir }
828cdf0e10cSrcweir 
829cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::SetClassPathMode()
830cdf0e10cSrcweir {
831cdf0e10cSrcweir     pDlg->SetClassPathMode();
832cdf0e10cSrcweir }
833cdf0e10cSrcweir 
834cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::EnableRadioButtonMode()
835cdf0e10cSrcweir {
836cdf0e10cSrcweir     pDlg->EnableRadioButtonMode();
837cdf0e10cSrcweir }
838cdf0e10cSrcweir 
839cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::SetTitle( const String& rNewTitle )
840cdf0e10cSrcweir {
841cdf0e10cSrcweir     pDlg->SetText( rNewTitle );
842cdf0e10cSrcweir }
843cdf0e10cSrcweir 
844cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::SetHelpId( const rtl::OString& aHelpId )
845cdf0e10cSrcweir {
846cdf0e10cSrcweir 	pDlg->SetHelpId( aHelpId );
847cdf0e10cSrcweir }
848cdf0e10cSrcweir 
849cdf0e10cSrcweir Window * AbstractSvxHpLinkDlg_Impl::GetWindow()
850cdf0e10cSrcweir {
851cdf0e10cSrcweir     return (Window *)pDlg;
852cdf0e10cSrcweir }
853cdf0e10cSrcweir 
854cdf0e10cSrcweir sal_Bool AbstractSvxHpLinkDlg_Impl::QueryClose()
855cdf0e10cSrcweir {
856cdf0e10cSrcweir     return pDlg->QueryClose();
857cdf0e10cSrcweir }
858cdf0e10cSrcweir 
859cdf0e10cSrcweir 
860cdf0e10cSrcweir void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link& lnk)
861cdf0e10cSrcweir {
862cdf0e10cSrcweir 	pDlg->SetFoundHandler(lnk);
863cdf0e10cSrcweir }
864cdf0e10cSrcweir void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link& lnk)
865cdf0e10cSrcweir {
866cdf0e10cSrcweir 	pDlg->SetCanceledNotFoundHdl(lnk);
867cdf0e10cSrcweir }
868cdf0e10cSrcweir void AbstractFmSearchDialog_Impl::SetActiveField(const String& strField)
869cdf0e10cSrcweir {
870cdf0e10cSrcweir 	pDlg->SetActiveField(strField);
871cdf0e10cSrcweir }
872cdf0e10cSrcweir 
873cdf0e10cSrcweir Graphic AbstractGraphicFilterDialog_Impl::GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY )
874cdf0e10cSrcweir {
875cdf0e10cSrcweir 	return pDlg->GetFilteredGraphic( rGraphic, fScaleX, fScaleY );
876cdf0e10cSrcweir }
877cdf0e10cSrcweir 
878cdf0e10cSrcweir // AbstractSvxAreaTabDialog implementations just forwards everything to the dialog
879cdf0e10cSrcweir void AbstractSvxAreaTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
880cdf0e10cSrcweir {
881cdf0e10cSrcweir 	pDlg->SetCurPageId( nId );
882cdf0e10cSrcweir }
883cdf0e10cSrcweir 
884cdf0e10cSrcweir const SfxItemSet* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const
885cdf0e10cSrcweir {
886cdf0e10cSrcweir 	return pDlg->GetOutputItemSet();
887cdf0e10cSrcweir }
888cdf0e10cSrcweir 
889cdf0e10cSrcweir const sal_uInt16* AbstractSvxAreaTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
890cdf0e10cSrcweir {
891cdf0e10cSrcweir 	return pDlg->GetInputRanges( pItem );
892cdf0e10cSrcweir }
893cdf0e10cSrcweir 
894cdf0e10cSrcweir void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
895cdf0e10cSrcweir {
896cdf0e10cSrcweir 	 pDlg->SetInputSet( pInSet );
897cdf0e10cSrcweir }
898cdf0e10cSrcweir //From class Window.
899cdf0e10cSrcweir void AbstractSvxAreaTabDialog_Impl::SetText( const XubString& rStr )
900cdf0e10cSrcweir {
901cdf0e10cSrcweir 	pDlg->SetText( rStr );
902cdf0e10cSrcweir }
903cdf0e10cSrcweir String AbstractSvxAreaTabDialog_Impl::GetText() const
904cdf0e10cSrcweir {
905cdf0e10cSrcweir 	return pDlg->GetText();
906cdf0e10cSrcweir }
907cdf0e10cSrcweir 
908cdf0e10cSrcweir void AbstractSvxAreaTabDialog_Impl::DontDeleteColorTable()
909cdf0e10cSrcweir {
910cdf0e10cSrcweir 	return pDlg->DontDeleteColorTable();
911cdf0e10cSrcweir }
912cdf0e10cSrcweir 
913cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::SetText( const XubString& rStr )
914cdf0e10cSrcweir {
915cdf0e10cSrcweir 	pDlg->SetText( rStr );
916cdf0e10cSrcweir }
917cdf0e10cSrcweir const SfxItemSet* AbstractSvxPostItDialog_Impl::GetOutputItemSet() const
918cdf0e10cSrcweir {
919cdf0e10cSrcweir 	return pDlg->GetOutputItemSet();
920cdf0e10cSrcweir }
921cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::EnableTravel(sal_Bool bNext, sal_Bool bPrev)
922cdf0e10cSrcweir {
923cdf0e10cSrcweir 	pDlg->EnableTravel( bNext, bPrev );
924cdf0e10cSrcweir }
925cdf0e10cSrcweir String AbstractSvxPostItDialog_Impl::GetNote()
926cdf0e10cSrcweir {
927cdf0e10cSrcweir 	return pDlg->GetNote();
928cdf0e10cSrcweir }
929cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::SetNote(const String& rTxt)
930cdf0e10cSrcweir {
931cdf0e10cSrcweir 	pDlg->SetNote( rTxt );
932cdf0e10cSrcweir }
933cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::ShowLastAuthor(const String& rAuthor, const String& rDate)
934cdf0e10cSrcweir {
935cdf0e10cSrcweir 	pDlg->ShowLastAuthor( rAuthor, rDate );
936cdf0e10cSrcweir }
937cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::DontChangeAuthor()
938cdf0e10cSrcweir {
939cdf0e10cSrcweir 	pDlg->DontChangeAuthor();
940cdf0e10cSrcweir }
941cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::HideAuthor()
942cdf0e10cSrcweir {
943cdf0e10cSrcweir 	pDlg->HideAuthor();
944cdf0e10cSrcweir }
945cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::SetReadonlyPostIt(sal_Bool bDisable)
946cdf0e10cSrcweir {
947cdf0e10cSrcweir 	pDlg->SetReadonlyPostIt( bDisable );
948cdf0e10cSrcweir }
949cdf0e10cSrcweir sal_Bool AbstractSvxPostItDialog_Impl::IsOkEnabled() const
950cdf0e10cSrcweir {
951cdf0e10cSrcweir 	return pDlg->IsOkEnabled();
952cdf0e10cSrcweir }
953cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link& rLink )
954cdf0e10cSrcweir {
955cdf0e10cSrcweir 	aNextHdl = rLink;
956cdf0e10cSrcweir 	if( rLink.IsSet() )
957cdf0e10cSrcweir         pDlg->SetNextHdl( LINK(this, AbstractSvxPostItDialog_Impl, NextHdl ) );
958cdf0e10cSrcweir 	else
959cdf0e10cSrcweir 		pDlg->SetNextHdl( Link() );
960cdf0e10cSrcweir }
961cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link& rLink )
962cdf0e10cSrcweir {
963cdf0e10cSrcweir 	aPrevHdl = rLink;
964cdf0e10cSrcweir 	if( rLink.IsSet() )
965cdf0e10cSrcweir         pDlg->SetPrevHdl( LINK(this, AbstractSvxPostItDialog_Impl, PrevHdl ) );
966cdf0e10cSrcweir 	else
967cdf0e10cSrcweir 		pDlg->SetPrevHdl( Link() );
968cdf0e10cSrcweir }
969cdf0e10cSrcweir IMPL_LINK( AbstractSvxPostItDialog_Impl, NextHdl, Window*, EMPTYARG )
970cdf0e10cSrcweir {
971cdf0e10cSrcweir 	if( aNextHdl.IsSet() )
972cdf0e10cSrcweir 		aNextHdl.Call(this);
973cdf0e10cSrcweir 	return 0;
974cdf0e10cSrcweir }
975cdf0e10cSrcweir IMPL_LINK( AbstractSvxPostItDialog_Impl, PrevHdl, Window*, EMPTYARG )
976cdf0e10cSrcweir {
977cdf0e10cSrcweir 	if( aPrevHdl.IsSet() )
978cdf0e10cSrcweir 		aPrevHdl.Call(this);
979cdf0e10cSrcweir 	return 0;
980cdf0e10cSrcweir }
981cdf0e10cSrcweir Window * AbstractSvxPostItDialog_Impl::GetWindow()
982cdf0e10cSrcweir {
983cdf0e10cSrcweir 	return (Window *)pDlg;
984cdf0e10cSrcweir }
985cdf0e10cSrcweir 
986cdf0e10cSrcweir String AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToOpen() const
987cdf0e10cSrcweir {
988cdf0e10cSrcweir     return pDlg->GetPasswordToOpen();
989cdf0e10cSrcweir }
990cdf0e10cSrcweir String AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToModify() const
991cdf0e10cSrcweir {
992cdf0e10cSrcweir     return pDlg->GetPasswordToModify();
993cdf0e10cSrcweir }
994cdf0e10cSrcweir bool AbstractPasswordToOpenModifyDialog_Impl::IsRecommendToOpenReadonly() const
995cdf0e10cSrcweir {
996cdf0e10cSrcweir     return pDlg->IsRecommendToOpenReadonly();
997cdf0e10cSrcweir }
998cdf0e10cSrcweir 
999cdf0e10cSrcweir // Create dialogs with simplest interface
1000cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateVclDialog( Window* pParent, sal_uInt32 nResId )
1001cdf0e10cSrcweir {
1002cdf0e10cSrcweir 	Dialog* pDlg=NULL;
1003cdf0e10cSrcweir     switch ( nResId )
1004cdf0e10cSrcweir 	{
1005cdf0e10cSrcweir         case RID_DEFAULTABOUT:
1006cdf0e10cSrcweir         {
1007cdf0e10cSrcweir             pDlg = new AboutDialog( pParent, CUI_RES( (sal_uInt16) nResId ) );
1008cdf0e10cSrcweir             break;
1009cdf0e10cSrcweir         }
1010cdf0e10cSrcweir 		case SID_OPTIONS_TREEDIALOG :
1011cdf0e10cSrcweir         case SID_OPTIONS_DATABASES :
1012cdf0e10cSrcweir 		case SID_LANGUAGE_OPTIONS :
1013cdf0e10cSrcweir         {
1014cdf0e10cSrcweir 			bool bActivateLastSelection = false;
1015cdf0e10cSrcweir 			if (nResId == SID_OPTIONS_TREEDIALOG)
1016cdf0e10cSrcweir 				bActivateLastSelection = true;
1017cdf0e10cSrcweir             Reference< frame::XFrame > xFrame;
1018cdf0e10cSrcweir             OfaTreeOptionsDialog* pOptDlg = new OfaTreeOptionsDialog( pParent, xFrame, bActivateLastSelection );
1019cdf0e10cSrcweir             if (nResId == SID_OPTIONS_DATABASES)
1020cdf0e10cSrcweir             {
1021cdf0e10cSrcweir                 pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS);
1022cdf0e10cSrcweir             }
1023cdf0e10cSrcweir             else if (nResId == SID_LANGUAGE_OPTIONS)
1024cdf0e10cSrcweir             {
1025cdf0e10cSrcweir 				//open the tab page "tools/options/languages"
1026cdf0e10cSrcweir                 pOptDlg->ActivatePage(OFA_TP_LANGUAGES_FOR_SET_DOCUMENT_LANGUAGE);
1027cdf0e10cSrcweir             }
1028cdf0e10cSrcweir             pDlg = pOptDlg;
1029cdf0e10cSrcweir         }
1030cdf0e10cSrcweir         break;
1031cdf0e10cSrcweir 		default:
1032cdf0e10cSrcweir 			break;
1033cdf0e10cSrcweir 	}
1034cdf0e10cSrcweir 
1035cdf0e10cSrcweir 	if ( pDlg )
1036cdf0e10cSrcweir 		return new VclAbstractDialog_Impl( pDlg );
1037cdf0e10cSrcweir 	return 0;
1038cdf0e10cSrcweir }
1039cdf0e10cSrcweir 
1040cdf0e10cSrcweir // dialogs that use SfxBindings
1041cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* /*pParent*/, const SfxBindings&, sal_uInt32 )
1042cdf0e10cSrcweir {
1043cdf0e10cSrcweir 	return 0;
1044cdf0e10cSrcweir }
1045cdf0e10cSrcweir 
1046cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateFrameDialog(
1047cdf0e10cSrcweir     Window* pParent, const Reference< frame::XFrame >& rxFrame,
1048cdf0e10cSrcweir     sal_uInt32 nResId, const String& rParameter )
1049cdf0e10cSrcweir {
1050cdf0e10cSrcweir     Dialog* pDlg = NULL;
1051cdf0e10cSrcweir     if ( SID_OPTIONS_TREEDIALOG == nResId || SID_OPTIONS_DATABASES == nResId )
1052cdf0e10cSrcweir     {
1053cdf0e10cSrcweir         // only activate last page if we dont want to activate a special page
1054cdf0e10cSrcweir 		bool bActivateLastSelection = ( nResId != SID_OPTIONS_DATABASES && rParameter.Len() == 0 );
1055cdf0e10cSrcweir         OfaTreeOptionsDialog* pOptDlg = new OfaTreeOptionsDialog( pParent, rxFrame, bActivateLastSelection );
1056cdf0e10cSrcweir         if ( nResId == SID_OPTIONS_DATABASES )
1057cdf0e10cSrcweir             pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS);
1058cdf0e10cSrcweir         else if ( rParameter.Len() > 0 )
1059cdf0e10cSrcweir             pOptDlg->ActivatePage( rParameter );
1060cdf0e10cSrcweir         pDlg = pOptDlg;
1061cdf0e10cSrcweir     }
1062cdf0e10cSrcweir 
1063cdf0e10cSrcweir     if ( pDlg )
1064cdf0e10cSrcweir         return new VclAbstractDialog_Impl( pDlg );
1065cdf0e10cSrcweir     else
1066cdf0e10cSrcweir         return NULL;
1067cdf0e10cSrcweir }
1068cdf0e10cSrcweir 
1069cdf0e10cSrcweir // TabDialog outside the drawing layer
1070cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId,
1071cdf0e10cSrcweir 												Window* pParent,
1072cdf0e10cSrcweir 												const SfxItemSet* pAttrSet,
1073cdf0e10cSrcweir                                                 SfxViewFrame* ,
1074cdf0e10cSrcweir                                                 bool /*bEditFmt*/,
1075cdf0e10cSrcweir                                                 const String * )
1076cdf0e10cSrcweir {
1077cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1078cdf0e10cSrcweir 	switch ( nResId )
1079cdf0e10cSrcweir 	{
1080cdf0e10cSrcweir 		case RID_OFA_AUTOCORR_DLG :
1081cdf0e10cSrcweir 			pDlg = new OfaAutoCorrDlg( pParent, pAttrSet );
1082cdf0e10cSrcweir 			break;
1083cdf0e10cSrcweir 		case RID_SVXDLG_CUSTOMIZE :
1084cdf0e10cSrcweir 			pDlg = new SvxConfigDialog( pParent, pAttrSet );
1085cdf0e10cSrcweir 			break;
1086cdf0e10cSrcweir 		default:
1087cdf0e10cSrcweir 			break;
1088cdf0e10cSrcweir 	}
1089cdf0e10cSrcweir 
1090cdf0e10cSrcweir 	if ( pDlg )
1091cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1092cdf0e10cSrcweir 	return 0;
1093cdf0e10cSrcweir }
1094cdf0e10cSrcweir 
1095cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId,
1096cdf0e10cSrcweir 												Window* pParent,
1097cdf0e10cSrcweir 												const SfxItemSet* pAttrSet,
1098cdf0e10cSrcweir                                                 const Reference< frame::XFrame >& xViewFrame,
1099cdf0e10cSrcweir                                                 bool /*bEditFmt*/,
1100cdf0e10cSrcweir                                                 const String * )
1101cdf0e10cSrcweir {
1102cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1103cdf0e10cSrcweir 	switch ( nResId )
1104cdf0e10cSrcweir 	{
1105cdf0e10cSrcweir 		case RID_OFA_AUTOCORR_DLG :
1106cdf0e10cSrcweir 			pDlg = new OfaAutoCorrDlg( pParent, pAttrSet );
1107cdf0e10cSrcweir 			break;
1108cdf0e10cSrcweir 		case RID_SVXDLG_CUSTOMIZE :
1109cdf0e10cSrcweir             {
1110cdf0e10cSrcweir 			    SvxConfigDialog* pDlg1 = new SvxConfigDialog( pParent, pAttrSet );
1111cdf0e10cSrcweir                 pDlg1->SetFrame(xViewFrame);
1112cdf0e10cSrcweir                 pDlg = (SfxTabDialog*)pDlg1;
1113cdf0e10cSrcweir             }
1114cdf0e10cSrcweir 			break;
1115cdf0e10cSrcweir 		default:
1116cdf0e10cSrcweir 			break;
1117cdf0e10cSrcweir 	}
1118cdf0e10cSrcweir 
1119cdf0e10cSrcweir 	if ( pDlg )
1120cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1121cdf0e10cSrcweir 	return 0;
1122cdf0e10cSrcweir }
1123cdf0e10cSrcweir 
1124cdf0e10cSrcweir // TabDialog that use functionality of the drawing layer
1125cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTextTabDialog( Window* pParent,
1126cdf0e10cSrcweir 											const SfxItemSet* pAttrSet,
1127cdf0e10cSrcweir 											SdrView* pView,
1128cdf0e10cSrcweir                                             SdrModel* )
1129cdf0e10cSrcweir {
1130cdf0e10cSrcweir 	SfxTabDialog* pDlg = new SvxTextTabDialog( pParent, pAttrSet, pView );
1131cdf0e10cSrcweir 	return new AbstractTabDialog_Impl( pDlg );
1132cdf0e10cSrcweir }
1133cdf0e10cSrcweir 
1134cdf0e10cSrcweir //TabDialog that use functionality of the drawing layer and add AnchorTypes  -- for SvxCaptionTabDialog CHINA001
1135cdf0e10cSrcweir AbstractSvxCaptionDialog*       AbstractDialogFactory_Impl::CreateCaptionDialog( Window* pParent,
1136cdf0e10cSrcweir 											const SdrView* pView,
1137cdf0e10cSrcweir 											sal_uInt16 nAnchorTypes )
1138cdf0e10cSrcweir {
1139cdf0e10cSrcweir     SvxCaptionTabDialog* pDlg = new SvxCaptionTabDialog( pParent, pView, nAnchorTypes );
1140cdf0e10cSrcweir     return new AbstractSvxCaptionDialog_Impl( pDlg );
1141cdf0e10cSrcweir }
1142cdf0e10cSrcweir 
1143cdf0e10cSrcweir AbstractSvxDistributeDialog* 	AbstractDialogFactory_Impl::CreateSvxDistributeDialog(Window* pParent,
1144cdf0e10cSrcweir 											const SfxItemSet& rAttr,
1145cdf0e10cSrcweir 											SvxDistributeHorizontal eHor ,
1146cdf0e10cSrcweir 											SvxDistributeVertical eVer)
1147cdf0e10cSrcweir {
1148cdf0e10cSrcweir 	SvxDistributeDialog* pDlg = new SvxDistributeDialog( pParent, rAttr, eHor, eVer);
1149cdf0e10cSrcweir 	return new AbstractSvxDistributeDialog_Impl( pDlg );
1150cdf0e10cSrcweir }
1151cdf0e10cSrcweir 
1152cdf0e10cSrcweir AbstractHangulHanjaConversionDialog* AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(Window* pParent,
1153cdf0e10cSrcweir 																	   editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection )
1154cdf0e10cSrcweir {
1155cdf0e10cSrcweir 	HangulHanjaConversionDialog* pDlg = new HangulHanjaConversionDialog( pParent, _ePrimaryDirection);
1156cdf0e10cSrcweir 	return new AbstractHangulHanjaConversionDialog_Impl( pDlg );
1157cdf0e10cSrcweir }
1158cdf0e10cSrcweir 
1159cdf0e10cSrcweir AbstractThesaurusDialog* AbstractDialogFactory_Impl::CreateThesaurusDialog( Window* pParent,
1160cdf0e10cSrcweir 								::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XThesaurus >  xThesaurus,
1161cdf0e10cSrcweir 								const String &rWord, sal_Int16 nLanguage )
1162cdf0e10cSrcweir {
1163cdf0e10cSrcweir 	SvxThesaurusDialog* pDlg = new SvxThesaurusDialog( pParent, xThesaurus, rWord, nLanguage );
1164cdf0e10cSrcweir 	return new AbstractThesaurusDialog_Impl( pDlg );
1165cdf0e10cSrcweir }
1166cdf0e10cSrcweir 
1167cdf0e10cSrcweir AbstractHyphenWordDialog* AbstractDialogFactory_Impl::CreateHyphenWordDialog( Window* pParent,
1168cdf0e10cSrcweir 												const String &rWord, LanguageType nLang,
1169cdf0e10cSrcweir 												::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator >  &xHyphen,
1170cdf0e10cSrcweir 												SvxSpellWrapper* pWrapper )
1171cdf0e10cSrcweir {
1172cdf0e10cSrcweir 	SvxHyphenWordDialog* pDlg = new SvxHyphenWordDialog( rWord, nLang, pParent, xHyphen, pWrapper );
1173cdf0e10cSrcweir 	return new AbstractHyphenWordDialog_Impl( pDlg );
1174cdf0e10cSrcweir }
1175cdf0e10cSrcweir 
1176cdf0e10cSrcweir AbstractFmShowColsDialog * AbstractDialogFactory_Impl::CreateFmShowColsDialog( Window* pParent )
1177cdf0e10cSrcweir {
1178cdf0e10cSrcweir     FmShowColsDialog* pDlg = new FmShowColsDialog( pParent);
1179cdf0e10cSrcweir 	return new AbstractFmShowColsDialog_Impl( pDlg );
1180cdf0e10cSrcweir }
1181cdf0e10cSrcweir AbstractSvxZoomDialog * AbstractDialogFactory_Impl::CreateSvxZoomDialog( Window* pParent,  //add for SvxZoomDialog
1182cdf0e10cSrcweir 											const SfxItemSet& rCoreSet)
1183cdf0e10cSrcweir {
1184cdf0e10cSrcweir     SvxZoomDialog* pDlg = new SvxZoomDialog( pParent, rCoreSet);
1185cdf0e10cSrcweir 	return new AbstractSvxZoomDialog_Impl( pDlg );
1186cdf0e10cSrcweir }
1187cdf0e10cSrcweir 
1188cdf0e10cSrcweir AbstractSpellDialog *  AbstractDialogFactory_Impl::CreateSvxSpellDialog(
1189cdf0e10cSrcweir                         Window* pParent,
1190cdf0e10cSrcweir                         SfxBindings* pBindings,
1191cdf0e10cSrcweir                         svx::SpellDialogChildWindow* pSpellChildWindow )
1192cdf0e10cSrcweir {
1193cdf0e10cSrcweir     svx::SpellDialog* pDlg = new svx::SpellDialog(pSpellChildWindow, pParent, pBindings);
1194cdf0e10cSrcweir     return new AbstractSpellDialog_Impl(pDlg);
1195cdf0e10cSrcweir }
1196cdf0e10cSrcweir 
1197cdf0e10cSrcweir VclAbstractRefreshableDialog * AbstractDialogFactory_Impl::CreateActualizeProgressDialog( Window* pParent, GalleryTheme* pThm )
1198cdf0e10cSrcweir {
1199cdf0e10cSrcweir    Dialog* pDlg = new ActualizeProgress( pParent, pThm);
1200cdf0e10cSrcweir    return new VclAbstractRefreshableDialog_Impl( pDlg );
1201cdf0e10cSrcweir }
1202cdf0e10cSrcweir 
1203cdf0e10cSrcweir AbstractSearchProgress * AbstractDialogFactory_Impl::CreateSearchProgressDialog( Window* pParent,  //add for SearchProgress
1204cdf0e10cSrcweir 											const INetURLObject& rStartURL )
1205cdf0e10cSrcweir {
1206cdf0e10cSrcweir     SearchProgress* pDlg = new SearchProgress( pParent, rStartURL);
1207cdf0e10cSrcweir 	return new AbstractSearchProgress_Impl( pDlg );
1208cdf0e10cSrcweir }
1209cdf0e10cSrcweir 
1210cdf0e10cSrcweir AbstractTakeProgress * AbstractDialogFactory_Impl::CreateTakeProgressDialog( Window* pParent )
1211cdf0e10cSrcweir {
1212cdf0e10cSrcweir     TakeProgress* pDlg = new TakeProgress( pParent );
1213cdf0e10cSrcweir 	return new AbstractTakeProgress_Impl( pDlg );
1214cdf0e10cSrcweir }
1215cdf0e10cSrcweir 
1216cdf0e10cSrcweir VclAbstractDialog*
1217cdf0e10cSrcweir AbstractDialogFactory_Impl::CreateScriptErrorDialog(
1218cdf0e10cSrcweir 	Window* pParent, ::com::sun::star::uno::Any aException )
1219cdf0e10cSrcweir {
1220cdf0e10cSrcweir 	return new SvxScriptErrorDialog( pParent, aException );
1221cdf0e10cSrcweir }
1222cdf0e10cSrcweir 
1223cdf0e10cSrcweir AbstractScriptSelectorDialog*
1224cdf0e10cSrcweir AbstractDialogFactory_Impl::CreateScriptSelectorDialog(
1225cdf0e10cSrcweir     Window* pParent, sal_Bool bShowSlots, const Reference< frame::XFrame >& _rxFrame )
1226cdf0e10cSrcweir {
1227cdf0e10cSrcweir 	SvxScriptSelectorDialog* pDlg = NULL;
1228cdf0e10cSrcweir 
1229cdf0e10cSrcweir 	pDlg = new SvxScriptSelectorDialog( pParent, bShowSlots, _rxFrame );
1230cdf0e10cSrcweir 
1231cdf0e10cSrcweir 	if (pDlg)
1232cdf0e10cSrcweir 	{
1233cdf0e10cSrcweir 		return new AbstractScriptSelectorDialog_Impl( pDlg );
1234cdf0e10cSrcweir 	}
1235cdf0e10cSrcweir 	return 0;
1236cdf0e10cSrcweir }
1237cdf0e10cSrcweir 
1238cdf0e10cSrcweir String AbstractScriptSelectorDialog_Impl::GetScriptURL() const
1239cdf0e10cSrcweir {
1240cdf0e10cSrcweir 	if (pDlg)
1241cdf0e10cSrcweir 		return pDlg->GetScriptURL();
1242cdf0e10cSrcweir 	return String();
1243cdf0e10cSrcweir }
1244cdf0e10cSrcweir 
1245cdf0e10cSrcweir void AbstractScriptSelectorDialog_Impl::SetRunLabel()
1246cdf0e10cSrcweir {
1247cdf0e10cSrcweir 	if (pDlg)
1248cdf0e10cSrcweir 		pDlg->SetRunLabel();
1249cdf0e10cSrcweir 	return;
1250cdf0e10cSrcweir }
1251cdf0e10cSrcweir 
1252cdf0e10cSrcweir VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( Window* pParent,  //add for SvxScriptOrgDialog
1253cdf0e10cSrcweir 											const String& rLanguage)
1254cdf0e10cSrcweir {
1255cdf0e10cSrcweir     Dialog* pDlg=NULL;
1256cdf0e10cSrcweir 
1257cdf0e10cSrcweir     pDlg = new SvxScriptOrgDialog( pParent, rLanguage);
1258cdf0e10cSrcweir 
1259cdf0e10cSrcweir 	if ( pDlg )
1260cdf0e10cSrcweir 		return new VclAbstractDialog_Impl( pDlg );
1261cdf0e10cSrcweir 	return 0;
1262cdf0e10cSrcweir }
1263cdf0e10cSrcweir 
1264cdf0e10cSrcweir AbstractTitleDialog * AbstractDialogFactory_Impl::CreateTitleDialog( Window* pParent,  //add for TitleDialog
1265cdf0e10cSrcweir 											const String& rOldText)
1266cdf0e10cSrcweir {
1267cdf0e10cSrcweir    TitleDialog* pDlg = new TitleDialog( pParent, rOldText);
1268cdf0e10cSrcweir    return new AbstractTitleDialog_Impl( pDlg );
1269cdf0e10cSrcweir }
1270cdf0e10cSrcweir 
1271cdf0e10cSrcweir AbstractGalleryIdDialog * AbstractDialogFactory_Impl::CreateGalleryIdDialog( Window* pParent,  //add for SvxZoomDialog
1272cdf0e10cSrcweir 											GalleryTheme* pThm )
1273cdf0e10cSrcweir {
1274cdf0e10cSrcweir    GalleryIdDialog* pDlg = new GalleryIdDialog( pParent, pThm);
1275cdf0e10cSrcweir    return new AbstractGalleryIdDialog_Impl( pDlg );
1276cdf0e10cSrcweir }
1277cdf0e10cSrcweir 
1278cdf0e10cSrcweir VclAbstractDialog2 * AbstractDialogFactory_Impl::CreateGalleryThemePropertiesDialog( Window* pParent,  //add for GalleryThemeProperties
1279cdf0e10cSrcweir 											ExchangeData* pData,
1280cdf0e10cSrcweir 											SfxItemSet* pItemSet)
1281cdf0e10cSrcweir {
1282cdf0e10cSrcweir 	Dialog* pDlg = new GalleryThemeProperties( pParent, pData, pItemSet);
1283cdf0e10cSrcweir     return new VclAbstractDialog2_Impl( pDlg );
1284cdf0e10cSrcweir }
1285cdf0e10cSrcweir 
1286cdf0e10cSrcweir AbstractURLDlg * AbstractDialogFactory_Impl::CreateURLDialog( Window* pParent,  //add for URLDlg
1287cdf0e10cSrcweir 											const String& rURL, const String& rAltText, const String& rDescription,
1288cdf0e10cSrcweir 											const String& rTarget, const String& rName,
1289cdf0e10cSrcweir 											TargetList& rTargetList )
1290cdf0e10cSrcweir {
1291cdf0e10cSrcweir 	URLDlg* pDlg = new URLDlg( pParent, rURL, rAltText, rDescription, rTarget, rName, rTargetList);
1292cdf0e10cSrcweir 	return new AbstractURLDlg_Impl( pDlg );
1293cdf0e10cSrcweir }
1294cdf0e10cSrcweir 
1295cdf0e10cSrcweir AbstractSvxHlinkDlgMarkWnd* AbstractDialogFactory_Impl::CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase* pParent, sal_uInt32 nResId )
1296cdf0e10cSrcweir {
1297cdf0e10cSrcweir 	SvxHlinkDlgMarkWnd* pDlg=NULL;
1298cdf0e10cSrcweir 	switch ( nResId )
1299cdf0e10cSrcweir 	{
1300cdf0e10cSrcweir 		case RID_SVXFLOAT_HYPERLINK_MARKWND :
1301cdf0e10cSrcweir 			pDlg = new  SvxHlinkDlgMarkWnd( pParent );
1302cdf0e10cSrcweir 			break;
1303cdf0e10cSrcweir 		default:
1304cdf0e10cSrcweir 			break;
1305cdf0e10cSrcweir 	}
1306cdf0e10cSrcweir 
1307cdf0e10cSrcweir 	if ( pDlg )
1308cdf0e10cSrcweir 		return new AbstractSvxHlinkDlgMarkWnd_Impl( pDlg );
1309cdf0e10cSrcweir 	return 0;
1310cdf0e10cSrcweir }
1311cdf0e10cSrcweir 
1312cdf0e10cSrcweir SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( sal_uInt32 nResId,
1313cdf0e10cSrcweir 											Window* pParent,
1314cdf0e10cSrcweir 											const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& ,
1315cdf0e10cSrcweir 											const SfxItemSet* pAttrSet )
1316cdf0e10cSrcweir {
1317cdf0e10cSrcweir 	SfxModalDialog* pDlg=NULL;
1318cdf0e10cSrcweir 	switch ( nResId )
1319cdf0e10cSrcweir 	{
1320cdf0e10cSrcweir 		case RID_SVXDLG_CHARMAP :
1321cdf0e10cSrcweir 			pDlg = new SvxCharacterMap( pParent, sal_True, pAttrSet );
1322cdf0e10cSrcweir 			break;
1323cdf0e10cSrcweir 		default:
1324cdf0e10cSrcweir 			break;
1325cdf0e10cSrcweir 	}
1326cdf0e10cSrcweir 
1327cdf0e10cSrcweir 	if ( pDlg )
1328cdf0e10cSrcweir 		return new AbstractSfxDialog_Impl( pDlg );
1329cdf0e10cSrcweir 	return 0;
1330cdf0e10cSrcweir }
1331cdf0e10cSrcweir 
1332cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabItemDialog( Window* pParent,
1333cdf0e10cSrcweir 											const SfxItemSet& rSet,
1334cdf0e10cSrcweir 											sal_uInt32 nResId)
1335cdf0e10cSrcweir {
1336cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1337cdf0e10cSrcweir 	switch ( nResId )
1338cdf0e10cSrcweir 	{
1339cdf0e10cSrcweir 		case RID_SVXDLG_SEARCHFORMAT :
1340cdf0e10cSrcweir 			pDlg = new SvxSearchFormatDialog( pParent, rSet );
1341cdf0e10cSrcweir 			break;
1342cdf0e10cSrcweir 		default:
1343cdf0e10cSrcweir 			break;
1344cdf0e10cSrcweir 	}
1345cdf0e10cSrcweir 
1346cdf0e10cSrcweir 	if ( pDlg )
1347cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1348cdf0e10cSrcweir 	return 0;
1349cdf0e10cSrcweir }
1350cdf0e10cSrcweir 
1351cdf0e10cSrcweir VclAbstractDialog* 		AbstractDialogFactory_Impl::CreateSvxSearchAttributeDialog( Window* pParent,
1352cdf0e10cSrcweir 											SearchAttrItemList& rLst,
1353cdf0e10cSrcweir 											const sal_uInt16* pWhRanges )
1354cdf0e10cSrcweir {
1355cdf0e10cSrcweir 	Dialog* pDlg = new SvxSearchAttributeDialog( pParent, rLst, pWhRanges);
1356cdf0e10cSrcweir 	return new VclAbstractDialog_Impl( pDlg );
1357cdf0e10cSrcweir }
1358cdf0e10cSrcweir 
1359cdf0e10cSrcweir AbstractSvxSearchSimilarityDialog * AbstractDialogFactory_Impl::CreateSvxSearchSimilarityDialog( Window* pParent,
1360cdf0e10cSrcweir 															sal_Bool bRelax,
1361cdf0e10cSrcweir 															sal_uInt16 nOther,
1362cdf0e10cSrcweir 															sal_uInt16 nShorter,
1363cdf0e10cSrcweir 															sal_uInt16 nLonger)
1364cdf0e10cSrcweir {
1365cdf0e10cSrcweir 	SvxSearchSimilarityDialog* pDlg = new SvxSearchSimilarityDialog( pParent, bRelax, nOther, nShorter, nLonger );
1366cdf0e10cSrcweir 	if ( pDlg )
1367cdf0e10cSrcweir 		return new AbstractSvxSearchSimilarityDialog_Impl( pDlg );
1368cdf0e10cSrcweir 	return NULL;
1369cdf0e10cSrcweir }
1370cdf0e10cSrcweir 
1371cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxBorderBackgroundDlg( Window* pParent,
1372cdf0e10cSrcweir 											const SfxItemSet& rCoreSet,
1373cdf0e10cSrcweir 											sal_Bool bEnableSelector)
1374cdf0e10cSrcweir {
1375cdf0e10cSrcweir 	SfxTabDialog* pDlg = new SvxBorderBackgroundDlg( pParent, rCoreSet, bEnableSelector);
1376cdf0e10cSrcweir 	return new AbstractTabDialog_Impl( pDlg );
1377cdf0e10cSrcweir }
1378cdf0e10cSrcweir 
1379cdf0e10cSrcweir AbstractSvxTransformTabDialog* AbstractDialogFactory_Impl::CreateSvxTransformTabDialog( Window* pParent,
1380cdf0e10cSrcweir 																			  const SfxItemSet* pAttr,
1381cdf0e10cSrcweir 																				const SdrView* pView,
1382cdf0e10cSrcweir 																				sal_uInt16 nAnchorTypes )
1383cdf0e10cSrcweir {
1384cdf0e10cSrcweir     SvxTransformTabDialog* pDlg = new SvxTransformTabDialog( pParent, pAttr,pView, nAnchorTypes);
1385cdf0e10cSrcweir     return new AbstractSvxTransformTabDialog_Impl( pDlg );
1386cdf0e10cSrcweir }
1387cdf0e10cSrcweir 
1388cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSchTransformTabDialog( Window* pParent,
1389cdf0e10cSrcweir 																const SfxItemSet* pAttr,
1390cdf0e10cSrcweir 																const SdrView* pSdrView,
1391cdf0e10cSrcweir 																sal_uInt32 nResId,
1392cdf0e10cSrcweir 																bool bSizeTabPage
1393cdf0e10cSrcweir 																)
1394cdf0e10cSrcweir {
1395cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1396cdf0e10cSrcweir 	switch ( nResId )
1397cdf0e10cSrcweir 	{
1398cdf0e10cSrcweir 		case RID_SCH_TransformTabDLG_SVXPAGE_ANGLE :
1399cdf0e10cSrcweir 			{
1400cdf0e10cSrcweir 			pDlg = new SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT :  SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE);
1401cdf0e10cSrcweir 			pDlg->RemoveTabPage( RID_SVXPAGE_ANGLE );
1402cdf0e10cSrcweir 			pDlg->RemoveTabPage( RID_SVXPAGE_SLANT );
1403cdf0e10cSrcweir 			}
1404cdf0e10cSrcweir 			break;
1405cdf0e10cSrcweir 		case RID_SCH_TransformTabDLG_SVXPAGE_SLANT:
1406cdf0e10cSrcweir 			{
1407cdf0e10cSrcweir 			pDlg = new  SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT :  SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE);
1408cdf0e10cSrcweir 			pDlg->RemoveTabPage( RID_SVXPAGE_SLANT );
1409cdf0e10cSrcweir 			}
1410cdf0e10cSrcweir 			break;
1411cdf0e10cSrcweir 		default:
1412cdf0e10cSrcweir 			break;
1413cdf0e10cSrcweir 	}
1414cdf0e10cSrcweir 
1415cdf0e10cSrcweir 	if ( pDlg )
1416cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1417cdf0e10cSrcweir 	return 0;
1418cdf0e10cSrcweir }
1419cdf0e10cSrcweir 
1420cdf0e10cSrcweir AbstractSvxJSearchOptionsDialog * AbstractDialogFactory_Impl::CreateSvxJSearchOptionsDialog( Window* pParent,
1421cdf0e10cSrcweir 															const SfxItemSet& rOptionsSet,
1422cdf0e10cSrcweir 															sal_Int32 nInitialFlags)
1423cdf0e10cSrcweir {
1424cdf0e10cSrcweir 	SvxJSearchOptionsDialog* pDlg = new SvxJSearchOptionsDialog( pParent, rOptionsSet, nInitialFlags );
1425cdf0e10cSrcweir 	return new AbstractSvxJSearchOptionsDialog_Impl( pDlg );
1426cdf0e10cSrcweir }
1427cdf0e10cSrcweir 
1428cdf0e10cSrcweir AbstractFmInputRecordNoDialog * AbstractDialogFactory_Impl::CreateFmInputRecordNoDialog( Window* pParent )
1429cdf0e10cSrcweir {
1430cdf0e10cSrcweir 	FmInputRecordNoDialog* pDlg = new FmInputRecordNoDialog( pParent );
1431cdf0e10cSrcweir 	return new AbstractFmInputRecordNoDialog_Impl( pDlg );
1432cdf0e10cSrcweir }
1433cdf0e10cSrcweir 
1434cdf0e10cSrcweir AbstractSvxNewDictionaryDialog * AbstractDialogFactory_Impl::CreateSvxNewDictionaryDialog( Window* pParent,
1435cdf0e10cSrcweir 											::Reference< ::com::sun::star::linguistic2::XSpellChecker1 >  &xSpl,
1436cdf0e10cSrcweir 											sal_uInt32 nResId )
1437cdf0e10cSrcweir {
1438cdf0e10cSrcweir 	SvxNewDictionaryDialog* pDlg=NULL;
1439cdf0e10cSrcweir 	switch ( nResId )
1440cdf0e10cSrcweir 	{
1441cdf0e10cSrcweir 		case RID_SFXDLG_NEWDICT :
1442cdf0e10cSrcweir 			pDlg = new SvxNewDictionaryDialog( pParent, xSpl );
1443cdf0e10cSrcweir 			break;
1444cdf0e10cSrcweir 		default:
1445cdf0e10cSrcweir 			break;
1446cdf0e10cSrcweir 	}
1447cdf0e10cSrcweir 
1448cdf0e10cSrcweir 	if ( pDlg )
1449cdf0e10cSrcweir 		return new AbstractSvxNewDictionaryDialog_Impl( pDlg );
1450cdf0e10cSrcweir 	return 0;
1451cdf0e10cSrcweir }
1452cdf0e10cSrcweir 
1453cdf0e10cSrcweir VclAbstractDialog* 		AbstractDialogFactory_Impl::CreateSvxEditDictionaryDialog( Window* pParent,
1454cdf0e10cSrcweir 											const String& rName,
1455cdf0e10cSrcweir 											::Reference< ::com::sun::star::linguistic2::XSpellChecker1> &xSpl,
1456cdf0e10cSrcweir 											sal_uInt32 nResId )
1457cdf0e10cSrcweir {
1458cdf0e10cSrcweir 	Dialog* pDlg=NULL;
1459cdf0e10cSrcweir 	switch ( nResId )
1460cdf0e10cSrcweir 	{
1461cdf0e10cSrcweir 		case RID_SFXDLG_EDITDICT :
1462cdf0e10cSrcweir 			pDlg = new SvxEditDictionaryDialog( pParent, rName, xSpl );
1463cdf0e10cSrcweir 			break;
1464cdf0e10cSrcweir 		default:
1465cdf0e10cSrcweir 			break;
1466cdf0e10cSrcweir 	}
1467cdf0e10cSrcweir 
1468cdf0e10cSrcweir 	if ( pDlg )
1469cdf0e10cSrcweir 		return new VclAbstractDialog_Impl( pDlg );
1470cdf0e10cSrcweir 	return 0;
1471cdf0e10cSrcweir }
1472cdf0e10cSrcweir 
1473cdf0e10cSrcweir AbstractSvxNameDialog * AbstractDialogFactory_Impl::CreateSvxNameDialog( Window* pParent,
1474cdf0e10cSrcweir 									const String& rName, const String& rDesc )
1475cdf0e10cSrcweir {
1476cdf0e10cSrcweir 	SvxNameDialog* pDlg = new SvxNameDialog( pParent, rName, rDesc );
1477cdf0e10cSrcweir 	return new AbstractSvxNameDialog_Impl( pDlg );
1478cdf0e10cSrcweir }
1479cdf0e10cSrcweir 
1480cdf0e10cSrcweir AbstractSvxObjectNameDialog* AbstractDialogFactory_Impl::CreateSvxObjectNameDialog(Window* pParent, const String& rName )
1481cdf0e10cSrcweir {
1482cdf0e10cSrcweir 	return new AbstractSvxObjectNameDialog_Impl(new SvxObjectNameDialog(pParent, rName));
1483cdf0e10cSrcweir }
1484cdf0e10cSrcweir 
1485cdf0e10cSrcweir AbstractSvxObjectTitleDescDialog* AbstractDialogFactory_Impl::CreateSvxObjectTitleDescDialog(Window* pParent, const String& rTitle, const String& rDescription)
1486cdf0e10cSrcweir {
1487cdf0e10cSrcweir 	return new AbstractSvxObjectTitleDescDialog_Impl(new SvxObjectTitleDescDialog(pParent, rTitle, rDescription));
1488cdf0e10cSrcweir }
1489cdf0e10cSrcweir 
1490cdf0e10cSrcweir AbstractSvxMessDialog * AbstractDialogFactory_Impl::CreateSvxMessDialog( Window* pParent, sal_uInt32 nResId,
1491cdf0e10cSrcweir 									const String& rText, const String& rDesc, Image* pImg )
1492cdf0e10cSrcweir {
1493cdf0e10cSrcweir 	SvxMessDialog* pDlg=NULL;
1494cdf0e10cSrcweir 	switch ( nResId )
1495cdf0e10cSrcweir 	{
1496cdf0e10cSrcweir 		case RID_SVXDLG_MESSBOX :
1497cdf0e10cSrcweir 			pDlg = new SvxMessDialog( pParent, rText, rDesc, pImg );
1498cdf0e10cSrcweir 			break;
1499cdf0e10cSrcweir 		default:
1500cdf0e10cSrcweir 			break;
1501cdf0e10cSrcweir 	}
1502cdf0e10cSrcweir 
1503cdf0e10cSrcweir 	if ( pDlg )
1504cdf0e10cSrcweir 		return new AbstractSvxMessDialog_Impl( pDlg );
1505cdf0e10cSrcweir 	return 0;
1506cdf0e10cSrcweir }
1507cdf0e10cSrcweir 
1508cdf0e10cSrcweir AbstractSvxMultiPathDialog * AbstractDialogFactory_Impl::CreateSvxMultiPathDialog( Window* pParent, sal_Bool bEmptyAllowed )
1509cdf0e10cSrcweir {
1510cdf0e10cSrcweir 	SvxMultiPathDialog* pDlg = new SvxMultiPathDialog( pParent, bEmptyAllowed );
1511cdf0e10cSrcweir 	return new AbstractSvxMultiPathDialog_Impl( pDlg );
1512cdf0e10cSrcweir }
1513cdf0e10cSrcweir 
1514cdf0e10cSrcweir AbstractSvxMultiFileDialog * AbstractDialogFactory_Impl::CreateSvxMultiFileDialog( Window* pParent, sal_Bool bEmptyAllowed )
1515cdf0e10cSrcweir {
1516cdf0e10cSrcweir 	SvxMultiFileDialog* pDlg = new SvxMultiFileDialog( pParent, bEmptyAllowed );
1517cdf0e10cSrcweir 	return new AbstractSvxMultiFileDialog_Impl( pDlg );
1518cdf0e10cSrcweir }
1519cdf0e10cSrcweir 
1520cdf0e10cSrcweir AbstractSvxHpLinkDlg * AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (Window* pParent,  //add for SvxMultiFileDialog
1521cdf0e10cSrcweir 											SfxBindings* pBindings,
1522cdf0e10cSrcweir 											sal_uInt32 nResId)
1523cdf0e10cSrcweir {
1524cdf0e10cSrcweir 	SvxHpLinkDlg* pDlg=NULL;
1525cdf0e10cSrcweir 	switch ( nResId )
1526cdf0e10cSrcweir 	{
1527cdf0e10cSrcweir 		case SID_HYPERLINK_DIALOG :
1528cdf0e10cSrcweir 			pDlg = new SvxHpLinkDlg( pParent, pBindings );
1529cdf0e10cSrcweir 			break;
1530cdf0e10cSrcweir 		default:
1531cdf0e10cSrcweir 			break;
1532cdf0e10cSrcweir 	}
1533cdf0e10cSrcweir 
1534cdf0e10cSrcweir 	if ( pDlg )
1535cdf0e10cSrcweir 		return new AbstractSvxHpLinkDlg_Impl( pDlg );
1536cdf0e10cSrcweir 	return 0;
1537cdf0e10cSrcweir }
1538cdf0e10cSrcweir 
1539cdf0e10cSrcweir AbstractFmSearchDialog*  AbstractDialogFactory_Impl::CreateFmSearchDialog(Window* pParent, //add for FmSearchDialog
1540cdf0e10cSrcweir 														const String& strInitialText,
1541cdf0e10cSrcweir 														const ::std::vector< String >& _rContexts,
1542cdf0e10cSrcweir 														sal_Int16 nInitialContext,
1543cdf0e10cSrcweir 														const Link& lnkContextSupplier)
1544cdf0e10cSrcweir {
1545cdf0e10cSrcweir 	FmSearchDialog* pDlg = new FmSearchDialog( pParent, strInitialText, _rContexts, nInitialContext, lnkContextSupplier );
1546cdf0e10cSrcweir 	if ( pDlg )
1547cdf0e10cSrcweir 		return new AbstractFmSearchDialog_Impl( pDlg );
1548cdf0e10cSrcweir 	return 0;
1549cdf0e10cSrcweir }
1550cdf0e10cSrcweir 
1551cdf0e10cSrcweir AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (Window* pParent,  //add for GraphicFilterEmboss
1552cdf0e10cSrcweir 											const Graphic& rGraphic,
1553cdf0e10cSrcweir 											RECT_POINT eLightSource,
1554cdf0e10cSrcweir 											sal_uInt32)
1555cdf0e10cSrcweir {
1556cdf0e10cSrcweir 	GraphicFilterDialog* pDlg = new GraphicFilterEmboss( pParent, rGraphic, eLightSource );
1557cdf0e10cSrcweir 	return new AbstractGraphicFilterDialog_Impl( pDlg );
1558cdf0e10cSrcweir }
1559cdf0e10cSrcweir 
1560cdf0e10cSrcweir AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterPosterSepia (Window* pParent,
1561cdf0e10cSrcweir 											const Graphic& rGraphic,
1562cdf0e10cSrcweir 											sal_uInt16 nCount,
1563cdf0e10cSrcweir 											sal_uInt32 nResId)
1564cdf0e10cSrcweir {
1565cdf0e10cSrcweir 	GraphicFilterDialog* pDlg=NULL;
1566cdf0e10cSrcweir 	switch ( nResId )
1567cdf0e10cSrcweir 	{
1568cdf0e10cSrcweir 		case RID_SVX_GRFFILTER_DLG_POSTER :
1569cdf0e10cSrcweir 			pDlg = new GraphicFilterPoster( pParent, rGraphic, nCount );
1570cdf0e10cSrcweir 			break;
1571cdf0e10cSrcweir 		case RID_SVX_GRFFILTER_DLG_SEPIA :
1572cdf0e10cSrcweir 			pDlg = new GraphicFilterSepia( pParent, rGraphic, nCount );
1573cdf0e10cSrcweir 			break;
1574cdf0e10cSrcweir 
1575cdf0e10cSrcweir 		default:
1576cdf0e10cSrcweir 			break;
1577cdf0e10cSrcweir 	}
1578cdf0e10cSrcweir 
1579cdf0e10cSrcweir 	if ( pDlg )
1580cdf0e10cSrcweir 		return new AbstractGraphicFilterDialog_Impl( pDlg );
1581cdf0e10cSrcweir 	return 0;
1582cdf0e10cSrcweir }
1583cdf0e10cSrcweir 
1584cdf0e10cSrcweir AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (Window* pParent,  //add for GraphicFilterSolarize
1585cdf0e10cSrcweir 											const Graphic& rGraphic,
1586cdf0e10cSrcweir 											sal_uInt8 nGreyThreshold, sal_Bool bInvert, sal_uInt32 )
1587cdf0e10cSrcweir {
1588cdf0e10cSrcweir 	GraphicFilterDialog* pDlg = new GraphicFilterSolarize( pParent, rGraphic, nGreyThreshold, bInvert );
1589cdf0e10cSrcweir 	return new AbstractGraphicFilterDialog_Impl( pDlg );
1590cdf0e10cSrcweir }
1591cdf0e10cSrcweir 
1592cdf0e10cSrcweir AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (Window* pParent,  //add for GraphicFilterMosaic
1593cdf0e10cSrcweir 											const Graphic& rGraphic,
1594cdf0e10cSrcweir 											sal_uInt16 nTileWidth, sal_uInt16 nTileHeight, sal_Bool bEnhanceEdges,
1595cdf0e10cSrcweir 											sal_uInt32 nResId)
1596cdf0e10cSrcweir {
1597cdf0e10cSrcweir 	GraphicFilterDialog* pDlg=NULL;
1598cdf0e10cSrcweir 	switch ( nResId )
1599cdf0e10cSrcweir 	{
1600cdf0e10cSrcweir 		case RID_SVX_GRFFILTER_DLG_MOSAIC :
1601cdf0e10cSrcweir 			pDlg = new GraphicFilterMosaic( pParent, rGraphic, nTileWidth, nTileHeight, bEnhanceEdges );
1602cdf0e10cSrcweir 			break;
1603cdf0e10cSrcweir 		default:
1604cdf0e10cSrcweir 			break;
1605cdf0e10cSrcweir 	}
1606cdf0e10cSrcweir 
1607cdf0e10cSrcweir 	if ( pDlg )
1608cdf0e10cSrcweir 		return new AbstractGraphicFilterDialog_Impl( pDlg );
1609cdf0e10cSrcweir 	return 0;
1610cdf0e10cSrcweir }
1611cdf0e10cSrcweir 
1612cdf0e10cSrcweir AbstractSvxAreaTabDialog* AbstractDialogFactory_Impl::CreateSvxAreaTabDialog( Window* pParent,
1613cdf0e10cSrcweir 															const SfxItemSet* pAttr,
1614cdf0e10cSrcweir 															SdrModel* pModel,
1615cdf0e10cSrcweir 															const SdrView* pSdrView )
1616cdf0e10cSrcweir {
1617cdf0e10cSrcweir 	SvxAreaTabDialog* pDlg = new SvxAreaTabDialog( pParent, pAttr, pModel,pSdrView );
1618cdf0e10cSrcweir 	return new AbstractSvxAreaTabDialog_Impl( pDlg );
1619cdf0e10cSrcweir }
1620cdf0e10cSrcweir 
1621cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxLineTabDialog( Window* pParent, const SfxItemSet* pAttr, //add forSvxLineTabDialog
1622cdf0e10cSrcweir 																 SdrModel* pModel,
1623cdf0e10cSrcweir 																 const SdrObject* pObj ,
1624cdf0e10cSrcweir 																sal_Bool bHasObj)
1625cdf0e10cSrcweir {
1626cdf0e10cSrcweir 	SfxTabDialog* pDlg = new SvxLineTabDialog( pParent, pAttr, pModel,pObj,bHasObj );
1627cdf0e10cSrcweir 	return new AbstractTabDialog_Impl( pDlg );
1628cdf0e10cSrcweir }
1629cdf0e10cSrcweir 
1630cdf0e10cSrcweir SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
1631cdf0e10cSrcweir 																		const SfxItemSet& rAttr,
1632cdf0e10cSrcweir 																		const Reference< XFrame >& _rxDocumentFrame,
1633cdf0e10cSrcweir 																		sal_uInt32 nResId
1634cdf0e10cSrcweir 																		)
1635cdf0e10cSrcweir {
1636cdf0e10cSrcweir 	SfxModalDialog* pDlg=NULL;
1637cdf0e10cSrcweir 	switch ( nResId )
1638cdf0e10cSrcweir 	{
1639cdf0e10cSrcweir 		case SID_EVENTCONFIG :
1640cdf0e10cSrcweir 			pDlg = new SfxMacroAssignDlg( pParent, _rxDocumentFrame, rAttr );
1641cdf0e10cSrcweir 			break;
1642cdf0e10cSrcweir 		case RID_SVXPAGE_MACROASSIGN :
1643cdf0e10cSrcweir 			pDlg = new SvxShortcutAssignDlg( pParent, _rxDocumentFrame, rAttr );
1644cdf0e10cSrcweir 			break;
1645cdf0e10cSrcweir 		case RID_SVXDLG_CHARMAP :
1646cdf0e10cSrcweir 			pDlg = new SvxCharacterMap( pParent, sal_True, &rAttr );
1647cdf0e10cSrcweir 			break;
1648cdf0e10cSrcweir 		default:
1649cdf0e10cSrcweir 			break;
1650cdf0e10cSrcweir 	}
1651cdf0e10cSrcweir 
1652cdf0e10cSrcweir 	if ( pDlg )
1653cdf0e10cSrcweir 		return new AbstractSfxDialog_Impl( pDlg );
1654cdf0e10cSrcweir 	return 0;
1655cdf0e10cSrcweir }
1656cdf0e10cSrcweir 
1657cdf0e10cSrcweir SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
1658cdf0e10cSrcweir 																		const SfxItemSet& rAttr,
1659cdf0e10cSrcweir 																		const SdrView* pView,
1660cdf0e10cSrcweir 																		sal_uInt32 nResId
1661cdf0e10cSrcweir 																		)
1662cdf0e10cSrcweir {
1663cdf0e10cSrcweir 	SfxSingleTabDialog* pDlg=NULL;
1664cdf0e10cSrcweir 	switch ( nResId )
1665cdf0e10cSrcweir 	{
1666cdf0e10cSrcweir 		case RID_SVXPAGE_MEASURE :
1667cdf0e10cSrcweir 			pDlg = new SvxMeasureDialog( pParent, rAttr, pView );
1668cdf0e10cSrcweir 			break;
1669cdf0e10cSrcweir 		case RID_SVXPAGE_CONNECTION :
1670cdf0e10cSrcweir 			pDlg = new SvxConnectionDialog( pParent, rAttr, pView );
1671cdf0e10cSrcweir 			break;
1672cdf0e10cSrcweir 		case RID_SFXPAGE_DBREGISTER :
1673cdf0e10cSrcweir 			pDlg = new DatabaseRegistrationDialog( pParent, rAttr );
1674cdf0e10cSrcweir 			break;
1675cdf0e10cSrcweir 		case RID_SVXPAGE_IMPROVEMENT :
1676cdf0e10cSrcweir 		{
1677cdf0e10cSrcweir 			String help_url;
1678cdf0e10cSrcweir 			SFX_ITEMSET_ARG( &rAttr, pItem, SfxStringItem, SID_CURRENT_URL, sal_False );
1679cdf0e10cSrcweir 			if ( pItem )
1680cdf0e10cSrcweir 				help_url = pItem->GetValue();
1681cdf0e10cSrcweir 			pDlg = new SvxImprovementDialog( pParent, help_url);
1682cdf0e10cSrcweir 		}
1683cdf0e10cSrcweir 		default:
1684cdf0e10cSrcweir 			break;
1685cdf0e10cSrcweir 	}
1686cdf0e10cSrcweir 
1687cdf0e10cSrcweir 	if ( pDlg )
1688cdf0e10cSrcweir 		return new AbstractSfxDialog_Impl( pDlg );
1689cdf0e10cSrcweir 	return 0;
1690cdf0e10cSrcweir }
1691cdf0e10cSrcweir 
1692cdf0e10cSrcweir AbstractSvxPostItDialog* AbstractDialogFactory_Impl::CreateSvxPostItDialog( Window* pParent,
1693cdf0e10cSrcweir 																		const SfxItemSet& rCoreSet,
1694cdf0e10cSrcweir 																		sal_Bool bPrevNext, sal_Bool bRedline )
1695cdf0e10cSrcweir {
1696cdf0e10cSrcweir 	SvxPostItDialog* pDlg = new SvxPostItDialog( pParent, rCoreSet, bPrevNext, bRedline );
1697cdf0e10cSrcweir 	return new AbstractSvxPostItDialog_Impl( pDlg );
1698cdf0e10cSrcweir }
1699cdf0e10cSrcweir 
1700cdf0e10cSrcweir class SvxMacroAssignDialog : public VclAbstractDialog
1701cdf0e10cSrcweir {
1702cdf0e10cSrcweir public:
1703cdf0e10cSrcweir     SvxMacroAssignDialog( Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode,
1704cdf0e10cSrcweir             const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent )
1705cdf0e10cSrcweir         :m_aItems( SFX_APP()->GetPool(), SID_ATTR_MACROITEM, SID_ATTR_MACROITEM )
1706cdf0e10cSrcweir     {
1707cdf0e10cSrcweir         m_aItems.Put( SfxBoolItem( SID_ATTR_MACROITEM, _bUnoDialogMode ) );
1708cdf0e10cSrcweir         m_pDialog.reset( new SvxMacroAssignDlg( _pParent, _rxDocumentFrame, m_aItems, _rxEvents, _nInitiallySelectedEvent ) );
1709cdf0e10cSrcweir     }
1710cdf0e10cSrcweir 
1711cdf0e10cSrcweir     virtual short Execute();
1712cdf0e10cSrcweir     virtual ~SvxMacroAssignDialog();
1713cdf0e10cSrcweir 
1714cdf0e10cSrcweir private:
1715cdf0e10cSrcweir     SfxItemSet                              m_aItems;
1716cdf0e10cSrcweir     ::std::auto_ptr< SvxMacroAssignDlg >    m_pDialog;
1717cdf0e10cSrcweir };
1718cdf0e10cSrcweir 
1719cdf0e10cSrcweir short SvxMacroAssignDialog::Execute()
1720cdf0e10cSrcweir {
1721cdf0e10cSrcweir     return m_pDialog->Execute();
1722cdf0e10cSrcweir }
1723cdf0e10cSrcweir 
1724cdf0e10cSrcweir SvxMacroAssignDialog::~SvxMacroAssignDialog()
1725cdf0e10cSrcweir {
1726cdf0e10cSrcweir }
1727cdf0e10cSrcweir 
1728cdf0e10cSrcweir VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxMacroAssignDlg(
1729cdf0e10cSrcweir     Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode,
1730cdf0e10cSrcweir     const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent )
1731cdf0e10cSrcweir {
1732cdf0e10cSrcweir     return new SvxMacroAssignDialog( _pParent, _rxDocumentFrame, _bUnoDialogMode, _rxEvents, _nInitiallySelectedEvent );
1733cdf0e10cSrcweir }
1734cdf0e10cSrcweir 
1735cdf0e10cSrcweir // Factories for TabPages
1736cdf0e10cSrcweir CreateTabPage AbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
1737cdf0e10cSrcweir {
1738cdf0e10cSrcweir 	switch ( nId )
1739cdf0e10cSrcweir 	{
1740cdf0e10cSrcweir 		case RID_OFA_TP_INTERNATIONAL:
1741cdf0e10cSrcweir 			return ::offapp::InternationalOptionsPage::CreateSc;
1742cdf0e10cSrcweir 		case RID_OFA_TP_INTERNATIONAL_SD:
1743cdf0e10cSrcweir 		case RID_OFA_TP_INTERNATIONAL_IMPR:
1744cdf0e10cSrcweir 			return offapp::InternationalOptionsPage::CreateSd;
1745cdf0e10cSrcweir 		case RID_SVXPAGE_TEXTANIMATION :
1746cdf0e10cSrcweir 			return SvxTextAnimationPage::Create;
1747cdf0e10cSrcweir 		case RID_SVXTABPAGE_GALLERY_GENERAL :
1748cdf0e10cSrcweir 			return TPGalleryThemeGeneral::Create;
1749cdf0e10cSrcweir 		case RID_SVXPAGE_TRANSPARENCE :
1750cdf0e10cSrcweir 			return SvxTransparenceTabPage::Create;
1751cdf0e10cSrcweir 		case RID_SVXPAGE_AREA :
1752cdf0e10cSrcweir 			return SvxAreaTabPage::Create;
1753cdf0e10cSrcweir 		case RID_SVXPAGE_SHADOW :
1754cdf0e10cSrcweir 			return SvxShadowTabPage::Create;
1755cdf0e10cSrcweir 		case RID_SVXPAGE_LINE :
1756cdf0e10cSrcweir 			return SvxLineTabPage::Create;
1757cdf0e10cSrcweir 		case RID_SVXPAGE_CONNECTION :
1758cdf0e10cSrcweir 			return SvxConnectionPage::Create;
1759cdf0e10cSrcweir 		case RID_SVXPAGE_MEASURE :
1760cdf0e10cSrcweir 			return SvxMeasurePage::Create;
1761cdf0e10cSrcweir 		case RID_SFXPAGE_GENERAL :
1762cdf0e10cSrcweir 			return SvxGeneralTabPage::Create;
1763cdf0e10cSrcweir 		case RID_SVXPAGE_PICK_SINGLE_NUM :
1764cdf0e10cSrcweir 			return SvxSingleNumPickTabPage::Create;
1765cdf0e10cSrcweir 		case RID_SVXPAGE_PICK_BMP :
1766cdf0e10cSrcweir 			return SvxBitmapPickTabPage::Create;
1767cdf0e10cSrcweir 		case RID_SVXPAGE_PICK_BULLET :
1768cdf0e10cSrcweir 			return SvxBulletPickTabPage::Create;
1769cdf0e10cSrcweir 		case RID_SVXPAGE_NUM_OPTIONS :
1770cdf0e10cSrcweir 			return SvxNumOptionsTabPage::Create;
1771cdf0e10cSrcweir 		case RID_SVXPAGE_PICK_NUM :
1772cdf0e10cSrcweir 			return SvxNumPickTabPage::Create;
1773cdf0e10cSrcweir 		case RID_SVXPAGE_NUM_POSITION :
1774cdf0e10cSrcweir 			return SvxNumPositionTabPage::Create;
1775cdf0e10cSrcweir 		case RID_SVXPAGE_PARA_ASIAN :
1776cdf0e10cSrcweir 			return SvxAsianTabPage::Create;
1777cdf0e10cSrcweir 		case RID_SVXPAGE_EXT_PARAGRAPH :
1778cdf0e10cSrcweir 			return SvxExtParagraphTabPage::Create;
1779cdf0e10cSrcweir 		case RID_SVXPAGE_ALIGN_PARAGRAPH :
1780cdf0e10cSrcweir 			return SvxParaAlignTabPage::Create;
1781cdf0e10cSrcweir 		case RID_SVXPAGE_STD_PARAGRAPH :
1782cdf0e10cSrcweir 			return SvxStdParagraphTabPage::Create;
1783cdf0e10cSrcweir 		case RID_SVXPAGE_TABULATOR :
1784cdf0e10cSrcweir 			return SvxTabulatorTabPage::Create;
1785cdf0e10cSrcweir 		case RID_SVXPAGE_TEXTATTR :
1786cdf0e10cSrcweir 			return SvxTextAttrPage::Create;
1787cdf0e10cSrcweir 		case RID_SVXPAGE_ALIGNMENT :
1788cdf0e10cSrcweir             return svx::AlignmentTabPage::Create;
1789cdf0e10cSrcweir 		case RID_SW_TP_BACKGROUND :
1790cdf0e10cSrcweir 		case RID_SVXPAGE_BACKGROUND :
1791cdf0e10cSrcweir 			return SvxBackgroundTabPage::Create;
1792cdf0e10cSrcweir 		case RID_SVXPAGE_BORDER :
1793cdf0e10cSrcweir 			return SvxBorderTabPage::Create;
1794cdf0e10cSrcweir 		case RID_SVXPAGE_CHAR_NAME :
1795cdf0e10cSrcweir 			return SvxCharNamePage::Create;
1796cdf0e10cSrcweir 		case RID_SVXPAGE_CHAR_EFFECTS :
1797cdf0e10cSrcweir 			return SvxCharEffectsPage::Create;
1798cdf0e10cSrcweir 		case RID_SVXPAGE_CHAR_POSITION :
1799cdf0e10cSrcweir 			return SvxCharPositionPage::Create;
1800cdf0e10cSrcweir 		case RID_SVXPAGE_CHAR_TWOLINES :
1801cdf0e10cSrcweir 			return SvxCharTwoLinesPage::Create;
1802cdf0e10cSrcweir 		case RID_SVXPAGE_NUMBERFORMAT :
1803cdf0e10cSrcweir 			return SvxNumberFormatTabPage::Create;
1804cdf0e10cSrcweir 		case RID_SVXPAGE_PAGE :
1805cdf0e10cSrcweir 			return SvxPageDescPage::Create;
1806cdf0e10cSrcweir 		case RID_SVXPAGE_GRFCROP :
1807cdf0e10cSrcweir 			return SvxGrfCropPage::Create;
1808cdf0e10cSrcweir 		case RID_SVXPAGE_MACROASSIGN :
1809cdf0e10cSrcweir 			return SfxMacroTabPage::Create;
1810cdf0e10cSrcweir 		default:
1811cdf0e10cSrcweir 			break;
1812cdf0e10cSrcweir 	}
1813cdf0e10cSrcweir 
1814cdf0e10cSrcweir 	return 0;
1815cdf0e10cSrcweir }
1816cdf0e10cSrcweir 
1817cdf0e10cSrcweir CreateSvxDistributePage	AbstractDialogFactory_Impl::GetSvxDistributePageCreatorFunc()
1818cdf0e10cSrcweir {
1819cdf0e10cSrcweir 	return SvxDistributePage::Create;
1820cdf0e10cSrcweir }
1821cdf0e10cSrcweir 
1822cdf0e10cSrcweir DialogGetRanges	AbstractDialogFactory_Impl::GetDialogGetRangesFunc( sal_uInt16 nId )
1823cdf0e10cSrcweir {
1824cdf0e10cSrcweir 		switch ( nId )
1825cdf0e10cSrcweir 	{
1826cdf0e10cSrcweir 		case RID_SVXDLG_POSTIT:
1827cdf0e10cSrcweir 			return SvxPostItDialog::GetRanges;	//add for SvxPostItDialog
1828cdf0e10cSrcweir 		default:
1829cdf0e10cSrcweir 			break;
1830cdf0e10cSrcweir 	}
1831cdf0e10cSrcweir 
1832cdf0e10cSrcweir 	return 0;
1833cdf0e10cSrcweir }
1834cdf0e10cSrcweir GetTabPageRanges AbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
1835cdf0e10cSrcweir {
1836cdf0e10cSrcweir 	switch ( nId )
1837cdf0e10cSrcweir 	{
1838cdf0e10cSrcweir 		case RID_SVXPAGE_TEXTANIMATION :
1839cdf0e10cSrcweir 			return SvxTextAnimationPage::GetRanges;
1840cdf0e10cSrcweir 		case RID_SVXPAGE_DISTRIBUTE:
1841cdf0e10cSrcweir 			return SvxDistributePage::GetRanges;
1842cdf0e10cSrcweir 		case RID_SVXPAGE_TRANSPARENCE :
1843cdf0e10cSrcweir 			return SvxTransparenceTabPage::GetRanges;
1844cdf0e10cSrcweir 		case RID_SVXPAGE_AREA :
1845cdf0e10cSrcweir 			return SvxAreaTabPage::GetRanges;
1846cdf0e10cSrcweir 		case RID_SVXPAGE_SHADOW :
1847cdf0e10cSrcweir 			return SvxShadowTabPage::GetRanges;
1848cdf0e10cSrcweir 		case RID_SVXPAGE_LINE :
1849cdf0e10cSrcweir 			return SvxLineTabPage::GetRanges;
1850cdf0e10cSrcweir 		case RID_SVXPAGE_CONNECTION :
1851cdf0e10cSrcweir 			return SvxConnectionPage::GetRanges;
1852cdf0e10cSrcweir 		case RID_SVXPAGE_MEASURE :
1853cdf0e10cSrcweir 			return SvxMeasurePage::GetRanges;
1854cdf0e10cSrcweir 		case RID_SVXPAGE_PARA_ASIAN :
1855cdf0e10cSrcweir 			return SvxAsianTabPage::GetRanges;
1856cdf0e10cSrcweir 		case RID_SVXPAGE_EXT_PARAGRAPH :
1857cdf0e10cSrcweir 			return SvxExtParagraphTabPage::GetRanges;
1858cdf0e10cSrcweir 		case RID_SVXPAGE_ALIGN_PARAGRAPH :
1859cdf0e10cSrcweir 			return SvxParaAlignTabPage::GetRanges;
1860cdf0e10cSrcweir 		case RID_SVXPAGE_STD_PARAGRAPH :
1861cdf0e10cSrcweir 			return SvxStdParagraphTabPage::GetRanges;
1862cdf0e10cSrcweir 		case RID_SVXPAGE_TABULATOR :
1863cdf0e10cSrcweir 			return SvxTabulatorTabPage::GetRanges;
1864cdf0e10cSrcweir 		case RID_SVXPAGE_TEXTATTR :
1865cdf0e10cSrcweir 			return SvxTextAttrPage::GetRanges;
1866cdf0e10cSrcweir 		case RID_SVXPAGE_ALIGNMENT :
1867cdf0e10cSrcweir             return svx::AlignmentTabPage::GetRanges;
1868cdf0e10cSrcweir 		case RID_SW_TP_BACKGROUND :
1869cdf0e10cSrcweir 		case RID_SVXPAGE_BACKGROUND :
1870cdf0e10cSrcweir 			return SvxBackgroundTabPage::GetRanges;
1871cdf0e10cSrcweir 		case RID_SVXPAGE_BORDER :
1872cdf0e10cSrcweir 			return SvxBorderTabPage::GetRanges;
1873cdf0e10cSrcweir 		case RID_SVXPAGE_CHAR_NAME :
1874cdf0e10cSrcweir 			return SvxCharNamePage::GetRanges;
1875cdf0e10cSrcweir 		case RID_SVXPAGE_CHAR_EFFECTS :
1876cdf0e10cSrcweir 			return SvxCharEffectsPage::GetRanges;
1877cdf0e10cSrcweir 		case RID_SVXPAGE_CHAR_POSITION :
1878cdf0e10cSrcweir 			return SvxCharPositionPage::GetRanges;
1879cdf0e10cSrcweir 		case RID_SVXPAGE_CHAR_TWOLINES :
1880cdf0e10cSrcweir 			return SvxCharTwoLinesPage::GetRanges;
1881cdf0e10cSrcweir 		case RID_SVXPAGE_NUMBERFORMAT :
1882cdf0e10cSrcweir 			return SvxNumberFormatTabPage::GetRanges;
1883cdf0e10cSrcweir 		case RID_SVXPAGE_PAGE :
1884cdf0e10cSrcweir 			return SvxPageDescPage::GetRanges;
1885cdf0e10cSrcweir         case RID_SVXPAGE_ASIAN_LAYOUT:
1886cdf0e10cSrcweir             return SvxAsianLayoutPage::GetRanges;
1887cdf0e10cSrcweir 		default:
1888cdf0e10cSrcweir 			break;
1889cdf0e10cSrcweir 	}
1890cdf0e10cSrcweir 
1891cdf0e10cSrcweir 	return 0;
1892cdf0e10cSrcweir }
1893cdf0e10cSrcweir 
1894cdf0e10cSrcweir SfxAbstractInsertObjectDialog* AbstractDialogFactory_Impl::CreateInsertObjectDialog( Window* pParent, const rtl::OUString& rCommand,
1895cdf0e10cSrcweir             const Reference < com::sun::star::embed::XStorage >& xStor,
1896cdf0e10cSrcweir             const SvObjectServerList* pList )
1897cdf0e10cSrcweir {
1898cdf0e10cSrcweir     InsertObjectDialog_Impl* pDlg=0;
1899cdf0e10cSrcweir     if ( rCommand.equalsAscii(".uno:InsertObject" ) )
1900cdf0e10cSrcweir         pDlg = new SvInsertOleDlg( pParent, xStor, pList );
1901cdf0e10cSrcweir     else if ( rCommand.equalsAscii(".uno:InsertPlugin" ) )
1902cdf0e10cSrcweir         pDlg = new SvInsertPlugInDialog( pParent, xStor );
1903cdf0e10cSrcweir     else if ( rCommand.equalsAscii(".uno:InsertObjectFloatingFrame" ) )
1904cdf0e10cSrcweir         pDlg = new SfxInsertFloatingFrameDialog( pParent, xStor );
1905cdf0e10cSrcweir 
1906cdf0e10cSrcweir     if ( pDlg )
1907cdf0e10cSrcweir     {
1908cdf0e10cSrcweir         pDlg->SetHelpId( rtl::OString( rCommand, rCommand.getLength(), RTL_TEXTENCODING_UTF8 ) );
1909cdf0e10cSrcweir         return new AbstractInsertObjectDialog_Impl( pDlg );
1910cdf0e10cSrcweir     }
1911cdf0e10cSrcweir     return 0;
1912cdf0e10cSrcweir }
1913cdf0e10cSrcweir 
1914cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateEditObjectDialog( Window* pParent,  const rtl::OUString& rCommand,
1915cdf0e10cSrcweir             const Reference < com::sun::star::embed::XEmbeddedObject >& xObj )
1916cdf0e10cSrcweir {
1917cdf0e10cSrcweir     InsertObjectDialog_Impl* pDlg=0;
1918cdf0e10cSrcweir     if ( rCommand.equalsAscii(".uno:InsertObjectFloatingFrame" ) )
1919cdf0e10cSrcweir     {
1920cdf0e10cSrcweir         pDlg = new SfxInsertFloatingFrameDialog( pParent, xObj );
1921cdf0e10cSrcweir         pDlg->SetHelpId( rtl::OString( rCommand, rCommand.getLength(), RTL_TEXTENCODING_UTF8 ) );
1922cdf0e10cSrcweir         return new VclAbstractDialog_Impl( pDlg );
1923cdf0e10cSrcweir     }
1924cdf0e10cSrcweir     return 0;
1925cdf0e10cSrcweir }
1926cdf0e10cSrcweir 
1927cdf0e10cSrcweir 
1928cdf0e10cSrcweir 
1929cdf0e10cSrcweir SfxAbstractPasteDialog* AbstractDialogFactory_Impl::CreatePasteDialog( Window* pParent )
1930cdf0e10cSrcweir {
1931cdf0e10cSrcweir     return new AbstractPasteDialog_Impl( new SvPasteObjectDialog( pParent ) );
1932cdf0e10cSrcweir }
1933cdf0e10cSrcweir 
1934cdf0e10cSrcweir SfxAbstractLinksDialog* AbstractDialogFactory_Impl::CreateLinksDialog( Window* pParent, sfx2::LinkManager* pMgr, sal_Bool bHTML, sfx2::SvBaseLink* p)
1935cdf0e10cSrcweir {
1936cdf0e10cSrcweir     SvBaseLinksDlg* pLinkDlg = new SvBaseLinksDlg( pParent, pMgr, bHTML );
1937cdf0e10cSrcweir     if ( p )
1938cdf0e10cSrcweir         pLinkDlg->SetActLink(p);
1939cdf0e10cSrcweir     return new AbstractLinksDialog_Impl( pLinkDlg );
1940cdf0e10cSrcweir }
1941cdf0e10cSrcweir 
1942cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, const SdrObject* /*pObj*/ )
1943cdf0e10cSrcweir {
1944cdf0e10cSrcweir 	return new AbstractTabDialog_Impl( new SvxFormatCellsDialog( pParent, pAttr, pModel ) );
1945cdf0e10cSrcweir }
1946cdf0e10cSrcweir 
1947cdf0e10cSrcweir SvxAbstractSplittTableDialog* AbstractDialogFactory_Impl::CreateSvxSplittTableDialog( Window* pParent, bool bIsTableVertical, long nMaxVertical, long nMaxHorizontal )
1948cdf0e10cSrcweir {
1949cdf0e10cSrcweir 	return new SvxSplitTableDlg( pParent, bIsTableVertical, nMaxVertical, nMaxHorizontal );
1950cdf0e10cSrcweir }
1951cdf0e10cSrcweir 
1952cdf0e10cSrcweir SvxAbstractNewTableDialog* AbstractDialogFactory_Impl::CreateSvxNewTableDialog( Window* pParent )
1953cdf0e10cSrcweir {
1954cdf0e10cSrcweir 	return new SvxNewTableDialog( pParent );
1955cdf0e10cSrcweir }
1956cdf0e10cSrcweir 
1957cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateOptionsDialog(
1958cdf0e10cSrcweir     Window* pParent, const rtl::OUString& rExtensionId, const rtl::OUString& /*rApplicationContext*/ )
1959cdf0e10cSrcweir {
1960cdf0e10cSrcweir     return new VclAbstractDialog_Impl( new OfaTreeOptionsDialog( pParent, rExtensionId ) );
1961cdf0e10cSrcweir }
1962cdf0e10cSrcweir 
1963cdf0e10cSrcweir SvxAbstractInsRowColDlg* AbstractDialogFactory_Impl::CreateSvxInsRowColDlg( Window* pParent, bool bCol, const rtl::OString& sHelpId )
1964cdf0e10cSrcweir {
1965cdf0e10cSrcweir     return new SvxInsRowColDlg( pParent, bCol, sHelpId );
1966cdf0e10cSrcweir }
1967cdf0e10cSrcweir 
1968cdf0e10cSrcweir AbstractPasswordToOpenModifyDialog * AbstractDialogFactory_Impl::CreatePasswordToOpenModifyDialog(
1969cdf0e10cSrcweir     Window * pParent,
1970cdf0e10cSrcweir     sal_uInt16 nMinPasswdLen, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify )
1971cdf0e10cSrcweir {
1972cdf0e10cSrcweir     PasswordToOpenModifyDialog * pDlg = new PasswordToOpenModifyDialog( pParent, nMinPasswdLen, nMaxPasswdLen, bIsPasswordToModify );
1973cdf0e10cSrcweir     return new AbstractPasswordToOpenModifyDialog_Impl( pDlg );
1974cdf0e10cSrcweir }
1975cdf0e10cSrcweir 
1976cdf0e10cSrcweir 
1977