xref: /aoo41x/main/sc/source/ui/attrdlg/scdlgfact.cxx (revision b3f79822)
1*b3f79822SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*b3f79822SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*b3f79822SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*b3f79822SAndrew Rist  * distributed with this work for additional information
6*b3f79822SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*b3f79822SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*b3f79822SAndrew Rist  * "License"); you may not use this file except in compliance
9*b3f79822SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*b3f79822SAndrew Rist  *
11*b3f79822SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*b3f79822SAndrew Rist  *
13*b3f79822SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*b3f79822SAndrew Rist  * software distributed under the License is distributed on an
15*b3f79822SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b3f79822SAndrew Rist  * KIND, either express or implied.  See the License for the
17*b3f79822SAndrew Rist  * specific language governing permissions and limitations
18*b3f79822SAndrew Rist  * under the License.
19*b3f79822SAndrew Rist  *
20*b3f79822SAndrew Rist  *************************************************************/
21*b3f79822SAndrew Rist 
22*b3f79822SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_sc.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #if ! ENABLE_LAYOUT_EXPERIMENTAL
28cdf0e10cSrcweir #undef ENABLE_LAYOUT
29cdf0e10cSrcweir #endif
30cdf0e10cSrcweir 
31cdf0e10cSrcweir #undef SC_DLLIMPLEMENTATION
32cdf0e10cSrcweir 
33cdf0e10cSrcweir #include "scdlgfact.hxx"
34cdf0e10cSrcweir 
35cdf0e10cSrcweir #include "sc.hrc" //CHINA001
36cdf0e10cSrcweir #include "scuiasciiopt.hxx" //add for ScImportAsciiDlg
37cdf0e10cSrcweir #include "scuiautofmt.hxx" //add for ScAutoFormatDlg
38cdf0e10cSrcweir #include "corodlg.hxx" //add for ScColRowLabelDlg
39cdf0e10cSrcweir #include "crdlg.hxx" //add for ScColOrRowDlg
40cdf0e10cSrcweir #include "dapidata.hxx" //add for ScDataPilotDatabaseDlg
41cdf0e10cSrcweir #include "dapitype.hxx" //add for ScDataPilotSourceTypeDlg, ScDataPilotServiceDlg
42cdf0e10cSrcweir #include "delcldlg.hxx" //add for ScDeleteCellDlg
43cdf0e10cSrcweir #include "delcodlg.hxx" //add for ScDeleteContentsDlg
44cdf0e10cSrcweir #include "filldlg.hxx" //add for ScFillSeriesDlg
45cdf0e10cSrcweir #include "groupdlg.hxx" //add for ScGroupDlg
46cdf0e10cSrcweir #include "inscldlg.hxx" //add for ScInsertCellDlg
47cdf0e10cSrcweir #include "inscodlg.hxx" //add for ScInsertContentsDlg
48cdf0e10cSrcweir #include "instbdlg.hxx" //add for ScInsertTableDlg
49cdf0e10cSrcweir #include "lbseldlg.hxx" //add for ScSelEntryDlg
50cdf0e10cSrcweir #include "linkarea.hxx" //add for ScLinkedAreaDlg
51cdf0e10cSrcweir #include "mtrindlg.hxx" //add for ScMetricInputDlg
52cdf0e10cSrcweir #include "mvtabdlg.hxx" //add for ScMoveTableDlg
53cdf0e10cSrcweir #include "namecrea.hxx" //add for ScNameCreateDlg
54cdf0e10cSrcweir #include "namepast.hxx" //add for ScNamePasteDlg
55cdf0e10cSrcweir #include "pfiltdlg.hxx" //add for ScPivotFilterDlg
56cdf0e10cSrcweir #include "pvfundlg.hxx" //add for ScDPFunctionDlg
57cdf0e10cSrcweir #include "dpgroupdlg.hxx"
58cdf0e10cSrcweir #include "scendlg.hxx" //add for ScNewScenarioDlg
59cdf0e10cSrcweir #include "shtabdlg.hxx" //add for ScShowTabDlg
60cdf0e10cSrcweir #include "strindlg.hxx" //add for ScStringInputDlg
61cdf0e10cSrcweir #include "tabbgcolordlg.hxx"//add for ScTabBgColorDlg
62cdf0e10cSrcweir #include "scuiimoptdlg.hxx" //add for ScImportOptionsDlg
63cdf0e10cSrcweir #include "attrdlg.hxx" //add for ScAttrDlg
64cdf0e10cSrcweir #include "hfedtdlg.hxx" //add for ScHFEditDlg
65cdf0e10cSrcweir #include "styledlg.hxx" //add for ScStyleDlg
66cdf0e10cSrcweir #include "subtdlg.hxx" //add for ScSubTotalDlg
67cdf0e10cSrcweir #include "textdlgs.hxx" //add for ScCharDlg, ScParagraphDlg
68cdf0e10cSrcweir #include "validate.hxx" //add for ScValidationDlg
69cdf0e10cSrcweir #include "validate.hrc" //add for ScValidationDlg
70cdf0e10cSrcweir #include "sortdlg.hxx" //add for ScSortDlg
71cdf0e10cSrcweir #include "textimportoptions.hxx"
72cdf0e10cSrcweir #include "opredlin.hxx" //add for  ScRedlineOptionsTabPage
73cdf0e10cSrcweir #include "tpcalc.hxx" //add for ScTpCalcOptions
74cdf0e10cSrcweir #include "tpprint.hxx" //add for ScTpPrintOptions
75cdf0e10cSrcweir #include "tpstat.hxx" //add for ScDocStatPage
76cdf0e10cSrcweir #include "tpusrlst.hxx" //add for ScTpUserLists
77cdf0e10cSrcweir #include "tpview.hxx" //add for ScTpContentOptions
78cdf0e10cSrcweir 
79cdf0e10cSrcweir // ause
80cdf0e10cSrcweir #include "editutil.hxx"
81cdf0e10cSrcweir #include <sfx2/layout.hxx>
82cdf0e10cSrcweir 
83cdf0e10cSrcweir IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl); //add for ScColOrRowDlg
84cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl);//CHINA001 add for ScImportAsciiDlg
85cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl); //CHINA001 add for ScAutoFormatDlg
86cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl); //add for ScColRowLabelDlg
87cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl); //add for ScDataPilotDatabaseDlg
88cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl); //add for ScDataPilotSourceTypeDlg
89cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDataPilotServiceDlg_Impl); //add for ScDataPilotServiceDlg
90cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDeleteCellDlg_Impl); //add for ScDeleteCellDlg
91cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDeleteContentsDlg_Impl); //add for ScDeleteContentsDlg
92cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScFillSeriesDlg_Impl); //add for ScFillSeriesDlg
93cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScGroupDlg_Impl); //add for ScGroupDlg
94cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScInsertCellDlg_Impl); //add for ScInsertCellDlg
95cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScInsertContentsDlg_Impl); //add for ScInsertContentsDlg
96cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScInsertTableDlg_Impl); //add for ScInsertTableDlg
97cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScSelEntryDlg_Impl); //add for ScSelEntryDlg
98cdf0e10cSrcweir IMPL_ABSTDLG2_BASE(AbstractScLinkedAreaDlg_Impl); //add for ScLinkedAreaDlg
99cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScMetricInputDlg_Impl); //add for ScMetricInputDlg
100cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScMoveTableDlg_Impl); //add for ScMoveTableDlg
101cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScNameCreateDlg_Impl); //add for ScNameCreateDlg
102cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScNamePasteDlg_Impl); //add for ScNamePasteDlg
103cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScPivotFilterDlg_Impl); //add for ScPivotFilterDlg
104cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDPFunctionDlg_Impl); //add for ScDPFunctionDlg
105cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDPSubtotalDlg_Impl); //add for ScDPSubtotalDlg
106cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDPNumGroupDlg_Impl);
107cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDPDateGroupDlg_Impl);
108cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDPShowDetailDlg_Impl); //add for ScDPShowDetailDlg
109cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScNewScenarioDlg_Impl); //add for ScNewScenarioDlg
110cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScShowTabDlg_Impl); //add for ScShowTabDlg
111cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScStringInputDlg_Impl); //add for ScStringInputDlg
112cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScTabBgColorDlg_Impl); //add for ScTabBgColorDlg
113cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScImportOptionsDlg_Impl); //add for ScImportOptionsDlg
114cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScTextImportOptionsDlg_Impl);
115cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for ScAttrDlg, ScHFEditDlg, ScStyleDlg, ScSubTotalDlg,ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg
116cdf0e10cSrcweir 
117cdf0e10cSrcweir // AbstractTabDialog_Impl begin
SetCurPageId(sal_uInt16 nId)118cdf0e10cSrcweir void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
119cdf0e10cSrcweir {
120cdf0e10cSrcweir 	pDlg->SetCurPageId( nId );
121cdf0e10cSrcweir }
122cdf0e10cSrcweir 
GetOutputItemSet() const123cdf0e10cSrcweir const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
124cdf0e10cSrcweir {
125cdf0e10cSrcweir 	return pDlg->GetOutputItemSet();
126cdf0e10cSrcweir }
127cdf0e10cSrcweir //add by CHINA001
GetInputRanges(const SfxItemPool & pItem)128cdf0e10cSrcweir const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
129cdf0e10cSrcweir {
130cdf0e10cSrcweir 	return pDlg->GetInputRanges( pItem );
131cdf0e10cSrcweir }
132cdf0e10cSrcweir //add by CHINA001
SetInputSet(const SfxItemSet * pInSet)133cdf0e10cSrcweir void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
134cdf0e10cSrcweir {
135cdf0e10cSrcweir 	 pDlg->SetInputSet( pInSet );
136cdf0e10cSrcweir }
137cdf0e10cSrcweir //From class Window.
SetText(const XubString & rStr)138cdf0e10cSrcweir void AbstractTabDialog_Impl::SetText( const XubString& rStr )
139cdf0e10cSrcweir {
140cdf0e10cSrcweir 	pDlg->SetText( rStr );
141cdf0e10cSrcweir }
GetText() const142cdf0e10cSrcweir String AbstractTabDialog_Impl::GetText() const
143cdf0e10cSrcweir {
144cdf0e10cSrcweir 	return pDlg->GetText();
145cdf0e10cSrcweir }
146cdf0e10cSrcweir 
147cdf0e10cSrcweir #if ENABLE_LAYOUT
148cdf0e10cSrcweir namespace layout
149cdf0e10cSrcweir {
150cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for ScAttrDlg, ScHFEditDlg, ScStyleDlg, ScSubTotalDlg,ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg
151cdf0e10cSrcweir 
152cdf0e10cSrcweir // AbstractTabDialog_Impl begin
SetCurPageId(sal_uInt16 nId)153cdf0e10cSrcweir void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
154cdf0e10cSrcweir {
155cdf0e10cSrcweir 	pDlg->SetCurPageId( nId );
156cdf0e10cSrcweir }
157cdf0e10cSrcweir 
GetOutputItemSet() const158cdf0e10cSrcweir const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
159cdf0e10cSrcweir {
160cdf0e10cSrcweir 	return pDlg->GetOutputItemSet();
161cdf0e10cSrcweir }
162cdf0e10cSrcweir //add by CHINA001
GetInputRanges(const SfxItemPool & pItem)163cdf0e10cSrcweir const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
164cdf0e10cSrcweir {
165cdf0e10cSrcweir 	return pDlg->GetInputRanges( pItem );
166cdf0e10cSrcweir }
167cdf0e10cSrcweir //add by CHINA001
SetInputSet(const SfxItemSet * pInSet)168cdf0e10cSrcweir void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
169cdf0e10cSrcweir {
170cdf0e10cSrcweir 	 pDlg->SetInputSet( pInSet );
171cdf0e10cSrcweir }
172cdf0e10cSrcweir //From class Window.
SetText(const XubString & rStr)173cdf0e10cSrcweir void AbstractTabDialog_Impl::SetText( const XubString& rStr )
174cdf0e10cSrcweir {
175cdf0e10cSrcweir 	pDlg->SetText( rStr );
176cdf0e10cSrcweir }
GetText() const177cdf0e10cSrcweir String AbstractTabDialog_Impl::GetText() const
178cdf0e10cSrcweir {
179cdf0e10cSrcweir 	return pDlg->GetText();
180cdf0e10cSrcweir }
181cdf0e10cSrcweir }
182cdf0e10cSrcweir #endif /* ENABLE_LAYOUT */
183cdf0e10cSrcweir 
184cdf0e10cSrcweir //add for AbstractTabDialog_Impl end
185cdf0e10cSrcweir // AbstractScImportAsciiDlg_Impl begin
GetOptions(ScAsciiOptions & rOpt)186cdf0e10cSrcweir void AbstractScImportAsciiDlg_Impl::GetOptions( ScAsciiOptions& rOpt )
187cdf0e10cSrcweir {
188cdf0e10cSrcweir 	pDlg->GetOptions( rOpt );
189cdf0e10cSrcweir }
190cdf0e10cSrcweir 
SetTextToColumnsMode()191cdf0e10cSrcweir void AbstractScImportAsciiDlg_Impl::SetTextToColumnsMode()
192cdf0e10cSrcweir {
193cdf0e10cSrcweir     pDlg->SetTextToColumnsMode();
194cdf0e10cSrcweir }
195cdf0e10cSrcweir 
SaveParameters()196cdf0e10cSrcweir void AbstractScImportAsciiDlg_Impl::SaveParameters()
197cdf0e10cSrcweir {
198cdf0e10cSrcweir     pDlg->SaveParameters();
199cdf0e10cSrcweir }
200cdf0e10cSrcweir 
201cdf0e10cSrcweir // AbstractScImportAsciiDlg_Impl end
202cdf0e10cSrcweir 
203cdf0e10cSrcweir //AbstractScAutoFormatDlg_Impl begin
GetIndex() const204cdf0e10cSrcweir sal_uInt16 AbstractScAutoFormatDlg_Impl::GetIndex() const
205cdf0e10cSrcweir {
206cdf0e10cSrcweir 	return pDlg->GetIndex();
207cdf0e10cSrcweir }
208cdf0e10cSrcweir 
GetCurrFormatName()209cdf0e10cSrcweir String AbstractScAutoFormatDlg_Impl::GetCurrFormatName()
210cdf0e10cSrcweir {
211cdf0e10cSrcweir 	return pDlg->GetCurrFormatName();
212cdf0e10cSrcweir }
213cdf0e10cSrcweir 
214cdf0e10cSrcweir //AbstractScAutoFormatDlg_Impl end
215cdf0e10cSrcweir 
216cdf0e10cSrcweir 
217cdf0e10cSrcweir 
218cdf0e10cSrcweir //AbstractScColRowLabelDlg_Impl begin
IsCol()219cdf0e10cSrcweir sal_Bool  AbstractScColRowLabelDlg_Impl::IsCol()
220cdf0e10cSrcweir {
221cdf0e10cSrcweir 	return  pDlg->IsCol();
222cdf0e10cSrcweir }
IsRow()223cdf0e10cSrcweir sal_Bool AbstractScColRowLabelDlg_Impl::IsRow()
224cdf0e10cSrcweir {
225cdf0e10cSrcweir 	return pDlg->IsRow();
226cdf0e10cSrcweir }
227cdf0e10cSrcweir 
228cdf0e10cSrcweir //AbstractScColRowLabelDlg_Impl end
229cdf0e10cSrcweir 
230cdf0e10cSrcweir 
231cdf0e10cSrcweir //AbstractScDataPilotDatabaseDlg_Impl begin
232cdf0e10cSrcweir 
233cdf0e10cSrcweir 
GetValues(ScImportSourceDesc & rDesc)234cdf0e10cSrcweir void AbstractScDataPilotDatabaseDlg_Impl::GetValues( ScImportSourceDesc& rDesc )
235cdf0e10cSrcweir {
236cdf0e10cSrcweir 	pDlg->GetValues(rDesc);
237cdf0e10cSrcweir }
238cdf0e10cSrcweir 
239cdf0e10cSrcweir //AbstractScDataPilotDatabaseDlg_Impl end
240cdf0e10cSrcweir 
241cdf0e10cSrcweir //AbstractScDataPilotSourceTypeDlg_Impl begin
242cdf0e10cSrcweir 
IsDatabase() const243cdf0e10cSrcweir sal_Bool AbstractScDataPilotSourceTypeDlg_Impl::IsDatabase() const
244cdf0e10cSrcweir {
245cdf0e10cSrcweir 	return pDlg->IsDatabase();
246cdf0e10cSrcweir }
247cdf0e10cSrcweir 
IsExternal() const248cdf0e10cSrcweir sal_Bool AbstractScDataPilotSourceTypeDlg_Impl::IsExternal() const
249cdf0e10cSrcweir {
250cdf0e10cSrcweir 	return pDlg->IsExternal();
251cdf0e10cSrcweir }
252cdf0e10cSrcweir 
253cdf0e10cSrcweir //AbstractScDataPilotSourceTypeDlg_Impl end
254cdf0e10cSrcweir 
255cdf0e10cSrcweir 
256cdf0e10cSrcweir // AbstractScDataPilotServiceDlg_Impl begin
GetServiceName() const257cdf0e10cSrcweir String AbstractScDataPilotServiceDlg_Impl::GetServiceName() const
258cdf0e10cSrcweir {
259cdf0e10cSrcweir 	return pDlg->GetServiceName();
260cdf0e10cSrcweir }
261cdf0e10cSrcweir 
GetParSource() const262cdf0e10cSrcweir String AbstractScDataPilotServiceDlg_Impl::GetParSource() const
263cdf0e10cSrcweir {
264cdf0e10cSrcweir 	return pDlg->GetParSource();
265cdf0e10cSrcweir }
GetParName() const266cdf0e10cSrcweir String AbstractScDataPilotServiceDlg_Impl::GetParName() const
267cdf0e10cSrcweir {
268cdf0e10cSrcweir 	return pDlg->GetParName();
269cdf0e10cSrcweir }
GetParUser() const270cdf0e10cSrcweir String AbstractScDataPilotServiceDlg_Impl::GetParUser() const
271cdf0e10cSrcweir {
272cdf0e10cSrcweir 	return pDlg->GetParUser();
273cdf0e10cSrcweir }
GetParPass() const274cdf0e10cSrcweir String AbstractScDataPilotServiceDlg_Impl::GetParPass() const
275cdf0e10cSrcweir {
276cdf0e10cSrcweir 	return pDlg->GetParPass();
277cdf0e10cSrcweir }
278cdf0e10cSrcweir 
279cdf0e10cSrcweir //AbstractScDataPilotServiceDlg_Impl end
280cdf0e10cSrcweir 
281cdf0e10cSrcweir //AbstractScDeleteCellDlg_Impl begin
GetDelCellCmd() const282cdf0e10cSrcweir DelCellCmd AbstractScDeleteCellDlg_Impl::GetDelCellCmd() const  //add for ScDeleteCellDlg
283cdf0e10cSrcweir {
284cdf0e10cSrcweir 	return pDlg->GetDelCellCmd();
285cdf0e10cSrcweir }
286cdf0e10cSrcweir //AbstractScDeleteCellDlg_Impl end
287cdf0e10cSrcweir 
288cdf0e10cSrcweir //add for AbstractScDeleteContentsDlg_Impl begin
DisableObjects()289cdf0e10cSrcweir void AbstractScDeleteContentsDlg_Impl::DisableObjects()
290cdf0e10cSrcweir {
291cdf0e10cSrcweir 	pDlg->DisableObjects();
292cdf0e10cSrcweir }
GetDelContentsCmdBits() const293cdf0e10cSrcweir sal_uInt16	 AbstractScDeleteContentsDlg_Impl::GetDelContentsCmdBits() const
294cdf0e10cSrcweir {
295cdf0e10cSrcweir 	return pDlg->GetDelContentsCmdBits();
296cdf0e10cSrcweir }
297cdf0e10cSrcweir //add for AbstractScDeleteContentsDlg_Impl end
298cdf0e10cSrcweir 
299cdf0e10cSrcweir //add for AbstractScFillSeriesDlg_Impl begin
GetFillDir() const300cdf0e10cSrcweir FillDir AbstractScFillSeriesDlg_Impl::GetFillDir() const
301cdf0e10cSrcweir {
302cdf0e10cSrcweir 	return pDlg->GetFillDir();
303cdf0e10cSrcweir }
304cdf0e10cSrcweir 
GetFillCmd() const305cdf0e10cSrcweir FillCmd	AbstractScFillSeriesDlg_Impl::GetFillCmd() const
306cdf0e10cSrcweir {
307cdf0e10cSrcweir 	return pDlg->GetFillCmd();
308cdf0e10cSrcweir }
309cdf0e10cSrcweir 
GetFillDateCmd() const310cdf0e10cSrcweir FillDateCmd AbstractScFillSeriesDlg_Impl::GetFillDateCmd() const
311cdf0e10cSrcweir {
312cdf0e10cSrcweir 	return pDlg->GetFillDateCmd();
313cdf0e10cSrcweir }
314cdf0e10cSrcweir 
GetStart() const315cdf0e10cSrcweir double	AbstractScFillSeriesDlg_Impl::GetStart() const
316cdf0e10cSrcweir {
317cdf0e10cSrcweir 	return pDlg->GetStart();
318cdf0e10cSrcweir }
GetStep() const319cdf0e10cSrcweir double	AbstractScFillSeriesDlg_Impl::GetStep() const
320cdf0e10cSrcweir {
321cdf0e10cSrcweir 	return pDlg->GetStep();
322cdf0e10cSrcweir }
GetMax() const323cdf0e10cSrcweir double	AbstractScFillSeriesDlg_Impl::GetMax() const
324cdf0e10cSrcweir {
325cdf0e10cSrcweir 	return pDlg->GetMax();
326cdf0e10cSrcweir }
GetStartStr() const327cdf0e10cSrcweir String	AbstractScFillSeriesDlg_Impl::GetStartStr() const
328cdf0e10cSrcweir {
329cdf0e10cSrcweir 	return pDlg->GetStartStr();
330cdf0e10cSrcweir }
SetEdStartValEnabled(sal_Bool bFlag)331cdf0e10cSrcweir void	AbstractScFillSeriesDlg_Impl::SetEdStartValEnabled(sal_Bool bFlag)
332cdf0e10cSrcweir {
333cdf0e10cSrcweir 	pDlg->SetEdStartValEnabled(bFlag);
334cdf0e10cSrcweir }
335cdf0e10cSrcweir //add for AbstractScFillSeriesDlg_Impl end
336cdf0e10cSrcweir 
337cdf0e10cSrcweir //add for AbstractScGroupDlg_Impl begin
GetColsChecked() const338cdf0e10cSrcweir sal_Bool AbstractScGroupDlg_Impl::GetColsChecked() const
339cdf0e10cSrcweir {
340cdf0e10cSrcweir 	return pDlg->GetColsChecked();
341cdf0e10cSrcweir }
342cdf0e10cSrcweir //add for AbstractScGroupDlg_Impl end
343cdf0e10cSrcweir 
344cdf0e10cSrcweir 
345cdf0e10cSrcweir //add for AbstractScInsertCellDlg_Impl begin
GetInsCellCmd() const346cdf0e10cSrcweir InsCellCmd  AbstractScInsertCellDlg_Impl::GetInsCellCmd() const
347cdf0e10cSrcweir {
348cdf0e10cSrcweir 	return pDlg->GetInsCellCmd();
349cdf0e10cSrcweir }
350cdf0e10cSrcweir 
351cdf0e10cSrcweir //add for AbstractScInsertCellDlg_Impl end
352cdf0e10cSrcweir 
353cdf0e10cSrcweir 
354cdf0e10cSrcweir //add for AbstractScInsertContentsDlg_Impl begin
GetInsContentsCmdBits() const355cdf0e10cSrcweir sal_uInt16 AbstractScInsertContentsDlg_Impl::GetInsContentsCmdBits() const
356cdf0e10cSrcweir {
357cdf0e10cSrcweir 	return pDlg->GetInsContentsCmdBits();
358cdf0e10cSrcweir }
359cdf0e10cSrcweir 
360cdf0e10cSrcweir 
GetFormulaCmdBits() const361cdf0e10cSrcweir sal_uInt16	AbstractScInsertContentsDlg_Impl::GetFormulaCmdBits() const
362cdf0e10cSrcweir {
363cdf0e10cSrcweir 	return pDlg->GetFormulaCmdBits();
364cdf0e10cSrcweir }
IsSkipEmptyCells() const365cdf0e10cSrcweir sal_Bool	AbstractScInsertContentsDlg_Impl::IsSkipEmptyCells() const
366cdf0e10cSrcweir {
367cdf0e10cSrcweir 	return pDlg->IsSkipEmptyCells();
368cdf0e10cSrcweir }
IsLink() const369cdf0e10cSrcweir sal_Bool 	AbstractScInsertContentsDlg_Impl::IsLink() const
370cdf0e10cSrcweir {
371cdf0e10cSrcweir 	return pDlg->IsLink();
372cdf0e10cSrcweir }
SetFillMode(sal_Bool bSet)373cdf0e10cSrcweir void	AbstractScInsertContentsDlg_Impl::SetFillMode( sal_Bool bSet )
374cdf0e10cSrcweir {
375cdf0e10cSrcweir 	pDlg->SetFillMode( bSet );
376cdf0e10cSrcweir }
377cdf0e10cSrcweir 
SetOtherDoc(sal_Bool bSet)378cdf0e10cSrcweir void	AbstractScInsertContentsDlg_Impl::SetOtherDoc( sal_Bool bSet )
379cdf0e10cSrcweir {
380cdf0e10cSrcweir 	pDlg->SetOtherDoc( bSet );
381cdf0e10cSrcweir }
382cdf0e10cSrcweir 
IsTranspose() const383cdf0e10cSrcweir sal_Bool 	AbstractScInsertContentsDlg_Impl::IsTranspose() const
384cdf0e10cSrcweir {
385cdf0e10cSrcweir 	return pDlg->IsTranspose();
386cdf0e10cSrcweir }
SetChangeTrack(sal_Bool bSet)387cdf0e10cSrcweir void	AbstractScInsertContentsDlg_Impl::SetChangeTrack( sal_Bool bSet )
388cdf0e10cSrcweir {
389cdf0e10cSrcweir 	pDlg->SetChangeTrack( bSet );
390cdf0e10cSrcweir }
SetCellShiftDisabled(int nDisable)391cdf0e10cSrcweir void	AbstractScInsertContentsDlg_Impl::SetCellShiftDisabled( int nDisable )
392cdf0e10cSrcweir {
393cdf0e10cSrcweir 	pDlg->SetCellShiftDisabled( nDisable );
394cdf0e10cSrcweir }
395cdf0e10cSrcweir 
GetMoveMode()396cdf0e10cSrcweir InsCellCmd	AbstractScInsertContentsDlg_Impl::GetMoveMode()
397cdf0e10cSrcweir {
398cdf0e10cSrcweir 	return pDlg->GetMoveMode();
399cdf0e10cSrcweir }
400cdf0e10cSrcweir //add for AbstractScInsertContentsDlg_Impl end
401cdf0e10cSrcweir 
402cdf0e10cSrcweir 
403cdf0e10cSrcweir //add for AbstractScInsertTableDlg_Impl begin
GetTablesFromFile()404cdf0e10cSrcweir sal_Bool AbstractScInsertTableDlg_Impl::GetTablesFromFile()
405cdf0e10cSrcweir {
406cdf0e10cSrcweir 	return pDlg->GetTablesFromFile();
407cdf0e10cSrcweir }
408cdf0e10cSrcweir 
GetTablesAsLink()409cdf0e10cSrcweir sal_Bool	AbstractScInsertTableDlg_Impl::GetTablesAsLink()
410cdf0e10cSrcweir {
411cdf0e10cSrcweir 	return pDlg->GetTablesAsLink();
412cdf0e10cSrcweir }
GetFirstTable(sal_uInt16 * pN)413cdf0e10cSrcweir const String*	AbstractScInsertTableDlg_Impl::GetFirstTable( sal_uInt16* pN )
414cdf0e10cSrcweir {
415cdf0e10cSrcweir 	return pDlg->GetFirstTable( pN );
416cdf0e10cSrcweir }
GetDocShellTables()417cdf0e10cSrcweir ScDocShell*		AbstractScInsertTableDlg_Impl::GetDocShellTables()
418cdf0e10cSrcweir {
419cdf0e10cSrcweir 	return pDlg->GetDocShellTables();
420cdf0e10cSrcweir }
IsTableBefore()421cdf0e10cSrcweir sal_Bool	AbstractScInsertTableDlg_Impl::IsTableBefore()
422cdf0e10cSrcweir {
423cdf0e10cSrcweir 	return pDlg->IsTableBefore();
424cdf0e10cSrcweir }
GetTableCount()425cdf0e10cSrcweir sal_uInt16	AbstractScInsertTableDlg_Impl::GetTableCount()
426cdf0e10cSrcweir {
427cdf0e10cSrcweir 	return pDlg->GetTableCount();
428cdf0e10cSrcweir }
GetNextTable(sal_uInt16 * pN)429cdf0e10cSrcweir const String*	AbstractScInsertTableDlg_Impl::GetNextTable( sal_uInt16* pN )
430cdf0e10cSrcweir {
431cdf0e10cSrcweir 	return pDlg->GetNextTable( pN );
432cdf0e10cSrcweir }
433cdf0e10cSrcweir //add for AbstractScInsertTableDlg_Impl end
434cdf0e10cSrcweir 
435cdf0e10cSrcweir //add for AbstractScSelEntryDlg_Impl begin
GetSelectEntry() const436cdf0e10cSrcweir String AbstractScSelEntryDlg_Impl::GetSelectEntry() const
437cdf0e10cSrcweir {
438cdf0e10cSrcweir 	return pDlg->GetSelectEntry();
439cdf0e10cSrcweir }
440cdf0e10cSrcweir //add for AbstractScSelEntryDlg_Impl end
441cdf0e10cSrcweir 
442cdf0e10cSrcweir //add for AbstractScLinkedAreaDlg_Impl begin
InitFromOldLink(const String & rFile,const String & rFilter,const String & rOptions,const String & rSource,sal_uLong nRefresh)443cdf0e10cSrcweir void AbstractScLinkedAreaDlg_Impl::InitFromOldLink( const String& rFile, const String& rFilter,
444cdf0e10cSrcweir 										const String& rOptions, const String& rSource,
445cdf0e10cSrcweir 										sal_uLong nRefresh )
446cdf0e10cSrcweir {
447cdf0e10cSrcweir 	pDlg->InitFromOldLink( rFile, rFilter, rOptions, rSource, nRefresh);
448cdf0e10cSrcweir }
449cdf0e10cSrcweir 
GetURL()450cdf0e10cSrcweir String	AbstractScLinkedAreaDlg_Impl::GetURL()
451cdf0e10cSrcweir {
452cdf0e10cSrcweir 	return pDlg->GetURL();
453cdf0e10cSrcweir }
GetFilter()454cdf0e10cSrcweir String	AbstractScLinkedAreaDlg_Impl::GetFilter()
455cdf0e10cSrcweir {
456cdf0e10cSrcweir 	return pDlg->GetFilter();
457cdf0e10cSrcweir }
GetOptions()458cdf0e10cSrcweir String	AbstractScLinkedAreaDlg_Impl::GetOptions()
459cdf0e10cSrcweir {
460cdf0e10cSrcweir 	return pDlg->GetOptions();
461cdf0e10cSrcweir }
GetSource()462cdf0e10cSrcweir String	AbstractScLinkedAreaDlg_Impl::GetSource()
463cdf0e10cSrcweir {
464cdf0e10cSrcweir 	return pDlg->GetSource();
465cdf0e10cSrcweir }
GetRefresh()466cdf0e10cSrcweir sal_uLong	AbstractScLinkedAreaDlg_Impl::GetRefresh()
467cdf0e10cSrcweir {
468cdf0e10cSrcweir 	return pDlg->GetRefresh();
469cdf0e10cSrcweir }
470cdf0e10cSrcweir //add for AbstractScLinkedAreaDlg_Impl end
471cdf0e10cSrcweir 
472cdf0e10cSrcweir 
473cdf0e10cSrcweir //add for AbstractScMetricInputDlg_Impl begin
GetInputValue(FieldUnit eUnit) const474cdf0e10cSrcweir long AbstractScMetricInputDlg_Impl::GetInputValue( FieldUnit eUnit ) const
475cdf0e10cSrcweir {
476cdf0e10cSrcweir 
477cdf0e10cSrcweir 	return pDlg->GetInputValue( eUnit );
478cdf0e10cSrcweir }
479cdf0e10cSrcweir //add for AbstractScMetricInputDlg_Impl end
480cdf0e10cSrcweir 
481cdf0e10cSrcweir //add for AbstractScMoveTableDlg_Impl begin
GetSelectedDocument() const482cdf0e10cSrcweir sal_uInt16 AbstractScMoveTableDlg_Impl::GetSelectedDocument() const //add for ScMoveTableDlg
483cdf0e10cSrcweir {
484cdf0e10cSrcweir 	return pDlg->GetSelectedDocument();
485cdf0e10cSrcweir }
486cdf0e10cSrcweir 
GetSelectedTable() const487cdf0e10cSrcweir sal_uInt16	AbstractScMoveTableDlg_Impl::GetSelectedTable() const
488cdf0e10cSrcweir {
489cdf0e10cSrcweir 	return pDlg->GetSelectedTable();
490cdf0e10cSrcweir }
GetCopyTable() const491cdf0e10cSrcweir sal_Bool	AbstractScMoveTableDlg_Impl::GetCopyTable() const
492cdf0e10cSrcweir {
493cdf0e10cSrcweir 	return pDlg->GetCopyTable();
494cdf0e10cSrcweir }
SetCopyTable(sal_Bool bFla)495cdf0e10cSrcweir void	AbstractScMoveTableDlg_Impl::SetCopyTable(sal_Bool bFla)
496cdf0e10cSrcweir {
497cdf0e10cSrcweir 	return pDlg->SetCopyTable( bFla );
498cdf0e10cSrcweir }
EnableCopyTable(sal_Bool bFlag)499cdf0e10cSrcweir void	AbstractScMoveTableDlg_Impl::EnableCopyTable(sal_Bool bFlag)
500cdf0e10cSrcweir {
501cdf0e10cSrcweir 	return pDlg->EnableCopyTable( bFlag);
502cdf0e10cSrcweir }
503cdf0e10cSrcweir //add for AbstractScMoveTableDlg_Impl end
504cdf0e10cSrcweir 
505cdf0e10cSrcweir //add for AbstractScNameCreateDlg_Impl begin
GetFlags() const506cdf0e10cSrcweir sal_uInt16 AbstractScNameCreateDlg_Impl::GetFlags() const  //add for ScNameCreateDlg
507cdf0e10cSrcweir {
508cdf0e10cSrcweir 	return pDlg->GetFlags();
509cdf0e10cSrcweir }
510cdf0e10cSrcweir //add for AbstractScNameCreateDlg_Impl end
511cdf0e10cSrcweir 
512cdf0e10cSrcweir //add for AbstractScNamePasteDlg_Impl begin
GetSelectedName() const513cdf0e10cSrcweir String AbstractScNamePasteDlg_Impl::GetSelectedName() const  //add for ScNamePasteDlg
514cdf0e10cSrcweir {
515cdf0e10cSrcweir 	return pDlg->GetSelectedName();
516cdf0e10cSrcweir }
517cdf0e10cSrcweir 
518cdf0e10cSrcweir //add for AbstractScNamePasteDlg_Impl end
519cdf0e10cSrcweir 
520cdf0e10cSrcweir //add for AbstractScPivotFilterDlg_Impl begin
GetOutputItem()521cdf0e10cSrcweir const ScQueryItem&	 AbstractScPivotFilterDlg_Impl::GetOutputItem()  //add for ScPivotFilterDlg
522cdf0e10cSrcweir {
523cdf0e10cSrcweir 	return pDlg->GetOutputItem();
524cdf0e10cSrcweir }
525cdf0e10cSrcweir //add for AbstractScPivotFilterDlg_Impl end
526cdf0e10cSrcweir 
527cdf0e10cSrcweir //add for AbstractScDPFunctionDlg_Impl begin
GetFuncMask() const528cdf0e10cSrcweir sal_uInt16 AbstractScDPFunctionDlg_Impl::GetFuncMask() const //add for ScDPFunctionDlg
529cdf0e10cSrcweir {
530cdf0e10cSrcweir 	 return pDlg->GetFuncMask();
531cdf0e10cSrcweir }
GetFieldRef() const532cdf0e10cSrcweir ::com::sun::star::sheet::DataPilotFieldReference AbstractScDPFunctionDlg_Impl::GetFieldRef() const
533cdf0e10cSrcweir {
534cdf0e10cSrcweir     return pDlg->GetFieldRef();
535cdf0e10cSrcweir }
536cdf0e10cSrcweir //add for AbstractScDPFunctionDlg_Impl end
537cdf0e10cSrcweir 
538cdf0e10cSrcweir //add for AbstractScDPSubtotalDlg_Impl begin
GetFuncMask() const539cdf0e10cSrcweir sal_uInt16 AbstractScDPSubtotalDlg_Impl::GetFuncMask() const //add for ScDPSubtotalDlg
540cdf0e10cSrcweir {
541cdf0e10cSrcweir      return pDlg->GetFuncMask();
542cdf0e10cSrcweir }
FillLabelData(ScDPLabelData & rLabelData) const543cdf0e10cSrcweir void AbstractScDPSubtotalDlg_Impl::FillLabelData( ScDPLabelData& rLabelData ) const
544cdf0e10cSrcweir {
545cdf0e10cSrcweir     pDlg->FillLabelData( rLabelData );
546cdf0e10cSrcweir }
547cdf0e10cSrcweir //add for AbstractScDPSubtotalDlg_Impl end
548cdf0e10cSrcweir 
GetGroupInfo() const549cdf0e10cSrcweir ScDPNumGroupInfo AbstractScDPNumGroupDlg_Impl::GetGroupInfo() const
550cdf0e10cSrcweir {
551cdf0e10cSrcweir     return pDlg->GetGroupInfo();
552cdf0e10cSrcweir }
553cdf0e10cSrcweir 
GetGroupInfo() const554cdf0e10cSrcweir ScDPNumGroupInfo AbstractScDPDateGroupDlg_Impl::GetGroupInfo() const
555cdf0e10cSrcweir {
556cdf0e10cSrcweir     return pDlg->GetGroupInfo();
557cdf0e10cSrcweir }
558cdf0e10cSrcweir 
GetDatePart() const559cdf0e10cSrcweir sal_Int32 AbstractScDPDateGroupDlg_Impl::GetDatePart() const
560cdf0e10cSrcweir {
561cdf0e10cSrcweir     return pDlg->GetDatePart();
562cdf0e10cSrcweir }
563cdf0e10cSrcweir 
564cdf0e10cSrcweir //add for AbstractScDPShowDetailDlg_Impl begin
GetDimensionName() const565cdf0e10cSrcweir String AbstractScDPShowDetailDlg_Impl::GetDimensionName() const
566cdf0e10cSrcweir {
567cdf0e10cSrcweir      return pDlg->GetDimensionName();
568cdf0e10cSrcweir }
569cdf0e10cSrcweir //add for AbstractScDPShowDetailDlg_Impl end
570cdf0e10cSrcweir 
571cdf0e10cSrcweir //add for AbstractScNewScenarioDlg_Impl begin
SetScenarioData(const String & rName,const String & rComment,const Color & rColor,sal_uInt16 nFlags)572cdf0e10cSrcweir void AbstractScNewScenarioDlg_Impl::SetScenarioData( const String& rName, const String& rComment,
573cdf0e10cSrcweir 							const Color& rColor, sal_uInt16 nFlags )
574cdf0e10cSrcweir {
575cdf0e10cSrcweir 	pDlg->SetScenarioData(rName,rComment, rColor,nFlags);
576cdf0e10cSrcweir }
577cdf0e10cSrcweir 
GetScenarioData(String & rName,String & rComment,Color & rColor,sal_uInt16 & rFlags) const578cdf0e10cSrcweir void AbstractScNewScenarioDlg_Impl::GetScenarioData( String& rName, String& rComment,
579cdf0e10cSrcweir 							Color& rColor, sal_uInt16& rFlags ) const
580cdf0e10cSrcweir {
581cdf0e10cSrcweir 	pDlg->GetScenarioData( rName,rComment,rColor,rFlags);
582cdf0e10cSrcweir }
583cdf0e10cSrcweir 
584cdf0e10cSrcweir //add for AbstractScNewScenarioDlg_Impl end
585cdf0e10cSrcweir 
586cdf0e10cSrcweir //add for  AbstractScShowTabDlg_Impl begin
Insert(const String & rString,sal_Bool bSelected)587cdf0e10cSrcweir void AbstractScShowTabDlg_Impl::Insert( const String& rString, sal_Bool bSelected )  //add for ScShowTabDlg
588cdf0e10cSrcweir {
589cdf0e10cSrcweir 	pDlg->Insert( rString, bSelected);
590cdf0e10cSrcweir }
591cdf0e10cSrcweir 
GetSelectEntryCount() const592cdf0e10cSrcweir sal_uInt16	AbstractScShowTabDlg_Impl::GetSelectEntryCount() const
593cdf0e10cSrcweir {
594cdf0e10cSrcweir 	return pDlg->GetSelectEntryCount();
595cdf0e10cSrcweir }
SetDescription(const String & rTitle,const String & rFixedText,const rtl::OString & sDlgHelpId,const rtl::OString & sLbHelpId)596cdf0e10cSrcweir void	AbstractScShowTabDlg_Impl::SetDescription(
597cdf0e10cSrcweir                 const String& rTitle, const String& rFixedText,
598cdf0e10cSrcweir                 const rtl::OString& sDlgHelpId, const rtl::OString& sLbHelpId )
599cdf0e10cSrcweir {
600cdf0e10cSrcweir 	pDlg->SetDescription( rTitle, rFixedText, sDlgHelpId, sLbHelpId );
601cdf0e10cSrcweir }
GetSelectEntryPos(sal_uInt16 nPos) const602cdf0e10cSrcweir sal_uInt16  AbstractScShowTabDlg_Impl::GetSelectEntryPos(sal_uInt16 nPos) const
603cdf0e10cSrcweir {
604cdf0e10cSrcweir 	return pDlg->GetSelectEntryPos( nPos);
605cdf0e10cSrcweir }
GetSelectEntry(sal_uInt16 nPos) const606cdf0e10cSrcweir String	 AbstractScShowTabDlg_Impl::GetSelectEntry(sal_uInt16 nPos) const
607cdf0e10cSrcweir {
608cdf0e10cSrcweir 		return pDlg->GetSelectEntry(nPos);
609cdf0e10cSrcweir }
610cdf0e10cSrcweir //add for AbstractScShowTabDlg_Impl end
611cdf0e10cSrcweir 
612cdf0e10cSrcweir //add for AbstractScStringInputDlg_Impl begin
GetInputString(String & rString) const613cdf0e10cSrcweir void AbstractScStringInputDlg_Impl::GetInputString( String& rString ) const  //add for ScStringInputDlg
614cdf0e10cSrcweir {
615cdf0e10cSrcweir 	pDlg->GetInputString( rString );
616cdf0e10cSrcweir }
617cdf0e10cSrcweir //add for AbstractScStringInputDlg_Impl end
618cdf0e10cSrcweir 
619cdf0e10cSrcweir //add for AbstractScTabBgColorDlg_Impl begin
GetSelectedColor(Color & rColor) const620cdf0e10cSrcweir void AbstractScTabBgColorDlg_Impl::GetSelectedColor( Color& rColor ) const  //add for ScTabBgColorDlg
621cdf0e10cSrcweir {
622cdf0e10cSrcweir     pDlg->GetSelectedColor( rColor );
623cdf0e10cSrcweir }
624cdf0e10cSrcweir //add for AbstractScTabBgColorDlg_Impl end
625cdf0e10cSrcweir 
626cdf0e10cSrcweir 
627cdf0e10cSrcweir //add for AbstractScImportOptionsDlg_Impl begin
GetImportOptions(ScImportOptions & rOptions) const628cdf0e10cSrcweir void AbstractScImportOptionsDlg_Impl::GetImportOptions( ScImportOptions& rOptions ) const  //add for ScImportOptionsDlg
629cdf0e10cSrcweir {
630cdf0e10cSrcweir 	pDlg->GetImportOptions(rOptions);
631cdf0e10cSrcweir }
632cdf0e10cSrcweir // add for AbstractScImportOptionsDlg_Impl end
633cdf0e10cSrcweir 
634cdf0e10cSrcweir //add for AbstractScLangChooserDlg_Impl begin
GetLanguageType() const635cdf0e10cSrcweir LanguageType AbstractScTextImportOptionsDlg_Impl::GetLanguageType() const
636cdf0e10cSrcweir {
637cdf0e10cSrcweir     return pDlg->getLanguageType();
638cdf0e10cSrcweir }
639cdf0e10cSrcweir 
IsDateConversionSet() const640cdf0e10cSrcweir bool AbstractScTextImportOptionsDlg_Impl::IsDateConversionSet() const
641cdf0e10cSrcweir {
642cdf0e10cSrcweir     return pDlg->isDateConversionSet();
643cdf0e10cSrcweir }
644cdf0e10cSrcweir 
645cdf0e10cSrcweir //add for AbstractScLangChooserDlg_Impl end
646cdf0e10cSrcweir 
647cdf0e10cSrcweir // =========================Factories  for createdialog ===================
648cdf0e10cSrcweir 
649cdf0e10cSrcweir //add for ScImportAsciiDlg begin
CreateScImportAsciiDlg(Window * pParent,String aDatName,SvStream * pInStream,int nId,sal_Unicode cSep)650cdf0e10cSrcweir AbstractScImportAsciiDlg * ScAbstractDialogFactory_Impl::CreateScImportAsciiDlg ( Window* pParent, String aDatName,
651cdf0e10cSrcweir 													SvStream* pInStream, int nId, sal_Unicode cSep )
652cdf0e10cSrcweir {
653cdf0e10cSrcweir 	ScImportAsciiDlg* pDlg=NULL;
654cdf0e10cSrcweir 	switch ( nId )
655cdf0e10cSrcweir 	{
656cdf0e10cSrcweir 		case RID_SCDLG_ASCII :
657cdf0e10cSrcweir 			pDlg = new ScImportAsciiDlg( pParent, aDatName,pInStream, cSep );
658cdf0e10cSrcweir 			break;
659cdf0e10cSrcweir 		default:
660cdf0e10cSrcweir 			break;
661cdf0e10cSrcweir 	}
662cdf0e10cSrcweir 
663cdf0e10cSrcweir 	if ( pDlg )
664cdf0e10cSrcweir 		return new AbstractScImportAsciiDlg_Impl( pDlg );
665cdf0e10cSrcweir 	return 0;
666cdf0e10cSrcweir }
667cdf0e10cSrcweir // ScImportAsciiDlg end
668cdf0e10cSrcweir 
CreateScTextImportOptionsDlg(Window * pParent,int nId)669cdf0e10cSrcweir AbstractScTextImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScTextImportOptionsDlg( Window* pParent, int nId )
670cdf0e10cSrcweir {
671cdf0e10cSrcweir     ScTextImportOptionsDlg* pDlg = NULL;
672cdf0e10cSrcweir     switch (nId)
673cdf0e10cSrcweir     {
674cdf0e10cSrcweir         case RID_SCDLG_TEXT_IMPORT_OPTIONS:
675cdf0e10cSrcweir             pDlg = new ScTextImportOptionsDlg(pParent);
676cdf0e10cSrcweir         break;
677cdf0e10cSrcweir         default:
678cdf0e10cSrcweir             ;
679cdf0e10cSrcweir     }
680cdf0e10cSrcweir 
681cdf0e10cSrcweir     return pDlg ? new AbstractScTextImportOptionsDlg_Impl(pDlg) : NULL;
682cdf0e10cSrcweir }
683cdf0e10cSrcweir 
684cdf0e10cSrcweir //add for ScAutoFormatDlg begin
685cdf0e10cSrcweir 
CreateScAutoFormatDlg(Window * pParent,ScAutoFormat * pAutoFormat,const ScAutoFormatData * pSelFormatData,ScDocument * pDoc,int nId)686cdf0e10cSrcweir AbstractScAutoFormatDlg * ScAbstractDialogFactory_Impl::CreateScAutoFormatDlg( Window*					pParent, //add for ScAutoFormatDlg
687cdf0e10cSrcweir 																ScAutoFormat*				pAutoFormat,
688cdf0e10cSrcweir 																const ScAutoFormatData*    pSelFormatData,
689cdf0e10cSrcweir 																ScDocument*                pDoc,
690cdf0e10cSrcweir 																int nId)
691cdf0e10cSrcweir {
692cdf0e10cSrcweir 	ScAutoFormatDlg* pDlg=NULL;
693cdf0e10cSrcweir 	switch ( nId )
694cdf0e10cSrcweir 	{
695cdf0e10cSrcweir 		case RID_SCDLG_AUTOFORMAT :
696cdf0e10cSrcweir 			pDlg = new ScAutoFormatDlg( pParent, pAutoFormat,pSelFormatData, pDoc );
697cdf0e10cSrcweir 			break;
698cdf0e10cSrcweir 		default:
699cdf0e10cSrcweir 			break;
700cdf0e10cSrcweir 	}
701cdf0e10cSrcweir 
702cdf0e10cSrcweir 	if ( pDlg )
703cdf0e10cSrcweir 		return new AbstractScAutoFormatDlg_Impl( pDlg );
704cdf0e10cSrcweir 	return 0;
705cdf0e10cSrcweir }
706cdf0e10cSrcweir //add for ScAutoFormatDlg end
707cdf0e10cSrcweir 
708cdf0e10cSrcweir //add for ScColRowLabelDlg begin
709cdf0e10cSrcweir 
CreateScColRowLabelDlg(Window * pParent,int nId,sal_Bool bCol,sal_Bool bRow)710cdf0e10cSrcweir AbstractScColRowLabelDlg *  ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(Window* pParent, //add for ScColRowLabelDlg
711cdf0e10cSrcweir 																int nId,
712cdf0e10cSrcweir 																sal_Bool bCol ,
713cdf0e10cSrcweir 																sal_Bool bRow)
714cdf0e10cSrcweir {
715cdf0e10cSrcweir 	ScColRowLabelDlg* pDlg=NULL;
716cdf0e10cSrcweir 	switch ( nId )
717cdf0e10cSrcweir 	{
718cdf0e10cSrcweir 		case RID_SCDLG_CHARTCOLROW :
719cdf0e10cSrcweir 			pDlg = new ScColRowLabelDlg( pParent, bCol,bRow );
720cdf0e10cSrcweir 			break;
721cdf0e10cSrcweir 		default:
722cdf0e10cSrcweir 			break;
723cdf0e10cSrcweir 	}
724cdf0e10cSrcweir 
725cdf0e10cSrcweir 	if ( pDlg )
726cdf0e10cSrcweir 		return new AbstractScColRowLabelDlg_Impl( pDlg );
727cdf0e10cSrcweir 	return 0;
728cdf0e10cSrcweir }
729cdf0e10cSrcweir //add for ScColRowLabelDlg end
730cdf0e10cSrcweir 
731cdf0e10cSrcweir 
732cdf0e10cSrcweir //add for ScColOrRowDlg begin
733cdf0e10cSrcweir 
CreateScColOrRowDlg(Window * pParent,const String & rStrTitle,const String & rStrLabel,int nId,sal_Bool bColDefault)734cdf0e10cSrcweir VclAbstractDialog *  ScAbstractDialogFactory_Impl::CreateScColOrRowDlg(Window*			pParent,
735cdf0e10cSrcweir 													const String&	rStrTitle,
736cdf0e10cSrcweir 													const String&	rStrLabel,
737cdf0e10cSrcweir 													int nId,
738cdf0e10cSrcweir 													sal_Bool				bColDefault)
739cdf0e10cSrcweir {
740cdf0e10cSrcweir 	Dialog * pDlg=NULL;
741cdf0e10cSrcweir 	switch ( nId )
742cdf0e10cSrcweir 	{
743cdf0e10cSrcweir 		case RID_SCDLG_COLORROW :
744cdf0e10cSrcweir 			pDlg = new ScColOrRowDlg( pParent, rStrTitle,rStrLabel,bColDefault );
745cdf0e10cSrcweir 			break;
746cdf0e10cSrcweir 		default:
747cdf0e10cSrcweir 			break;
748cdf0e10cSrcweir 	}
749cdf0e10cSrcweir 
750cdf0e10cSrcweir 	if ( pDlg )
751cdf0e10cSrcweir 		return new VclAbstractDialog_Impl( pDlg );
752cdf0e10cSrcweir 	return 0;
753cdf0e10cSrcweir }
754cdf0e10cSrcweir //add for ScColOrRowDlg end
755cdf0e10cSrcweir 
756cdf0e10cSrcweir //add for ScSortWarningDlg begin
CreateScSortWarningDlg(Window * pParent,const String & rExtendText,const String & rCurrentText,int nId)757cdf0e10cSrcweir VclAbstractDialog * ScAbstractDialogFactory_Impl::CreateScSortWarningDlg( Window* pParent, const String& rExtendText,
758cdf0e10cSrcweir                                                                           const String& rCurrentText, int nId )
759cdf0e10cSrcweir {
760cdf0e10cSrcweir     Dialog * pDlg=NULL;
761cdf0e10cSrcweir     switch ( nId )
762cdf0e10cSrcweir     {
763cdf0e10cSrcweir     case RID_SCDLG_SORT_WARNING:
764cdf0e10cSrcweir         pDlg = new ScSortWarningDlg( pParent, rExtendText, rCurrentText );
765cdf0e10cSrcweir         break;
766cdf0e10cSrcweir     default:
767cdf0e10cSrcweir         break;
768cdf0e10cSrcweir     }
769cdf0e10cSrcweir     if( pDlg )
770cdf0e10cSrcweir         return new VclAbstractDialog_Impl( pDlg );
771cdf0e10cSrcweir     return 0;
772cdf0e10cSrcweir }
773cdf0e10cSrcweir //add for ScSortWarningDlg end
774cdf0e10cSrcweir 
775cdf0e10cSrcweir //add for ScDataPilotDatabaseDlg begin
776cdf0e10cSrcweir 
CreateScDataPilotDatabaseDlg(Window * pParent,int nId)777cdf0e10cSrcweir AbstractScDataPilotDatabaseDlg *  ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg (Window* pParent ,
778cdf0e10cSrcweir 																							  int nId )  //add for ScDataPilotDatabaseDlg
779cdf0e10cSrcweir {
780cdf0e10cSrcweir 	ScDataPilotDatabaseDlg * pDlg=NULL;
781cdf0e10cSrcweir 	switch ( nId )
782cdf0e10cSrcweir 	{
783cdf0e10cSrcweir 		case RID_SCDLG_DAPIDATA :
784cdf0e10cSrcweir 			pDlg = new ScDataPilotDatabaseDlg( pParent );
785cdf0e10cSrcweir 			break;
786cdf0e10cSrcweir 		default:
787cdf0e10cSrcweir 			break;
788cdf0e10cSrcweir 	}
789cdf0e10cSrcweir 
790cdf0e10cSrcweir 	if ( pDlg )
791cdf0e10cSrcweir 		return new AbstractScDataPilotDatabaseDlg_Impl( pDlg );
792cdf0e10cSrcweir 	return 0;
793cdf0e10cSrcweir }
794cdf0e10cSrcweir //add for ScDataPilotDatabaseDlg end
795cdf0e10cSrcweir 
796cdf0e10cSrcweir //add for ScDataPilotSourceTypeDlg begin
CreateScDataPilotSourceTypeDlg(Window * pParent,sal_Bool bEnableExternal,int nId)797cdf0e10cSrcweir AbstractScDataPilotSourceTypeDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg( Window* pParent,
798cdf0e10cSrcweir 																							   sal_Bool bEnableExternal,
799cdf0e10cSrcweir 																							   int nId )
800cdf0e10cSrcweir {
801cdf0e10cSrcweir 	ScDataPilotSourceTypeDlg * pDlg=NULL;
802cdf0e10cSrcweir 	switch ( nId )
803cdf0e10cSrcweir 	{
804cdf0e10cSrcweir 		case RID_SCDLG_DAPITYPE :
805cdf0e10cSrcweir 			pDlg = new ScDataPilotSourceTypeDlg( pParent, bEnableExternal );
806cdf0e10cSrcweir 			break;
807cdf0e10cSrcweir 		default:
808cdf0e10cSrcweir 			break;
809cdf0e10cSrcweir 	}
810cdf0e10cSrcweir 
811cdf0e10cSrcweir 	if ( pDlg )
812cdf0e10cSrcweir 		return new AbstractScDataPilotSourceTypeDlg_Impl( pDlg );
813cdf0e10cSrcweir 	return 0;
814cdf0e10cSrcweir }
815cdf0e10cSrcweir 
816cdf0e10cSrcweir // add for ScDataPilotSourceTypeDlg end
817cdf0e10cSrcweir 
818cdf0e10cSrcweir 
819cdf0e10cSrcweir //add for ScDataPilotServiceDlg begin
CreateScDataPilotServiceDlg(Window * pParent,const com::sun::star::uno::Sequence<rtl::OUString> & rServices,int nId)820cdf0e10cSrcweir AbstractScDataPilotServiceDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotServiceDlg( Window* pParent,
821cdf0e10cSrcweir 																		const com::sun::star::uno::Sequence<rtl::OUString>& rServices,
822cdf0e10cSrcweir 															int nId )
823cdf0e10cSrcweir {
824cdf0e10cSrcweir 	ScDataPilotServiceDlg * pDlg=NULL;
825cdf0e10cSrcweir 	switch ( nId )
826cdf0e10cSrcweir 	{
827cdf0e10cSrcweir 		case RID_SCDLG_DAPISERVICE :
828cdf0e10cSrcweir 			pDlg = new ScDataPilotServiceDlg( pParent, rServices );
829cdf0e10cSrcweir 			break;
830cdf0e10cSrcweir 		default:
831cdf0e10cSrcweir 			break;
832cdf0e10cSrcweir 	}
833cdf0e10cSrcweir 
834cdf0e10cSrcweir 	if ( pDlg )
835cdf0e10cSrcweir 		return new AbstractScDataPilotServiceDlg_Impl( pDlg );
836cdf0e10cSrcweir 	return 0;
837cdf0e10cSrcweir }
838cdf0e10cSrcweir 
839cdf0e10cSrcweir // add for ScDataPilotServiceDlg end
840cdf0e10cSrcweir 
841cdf0e10cSrcweir //add for ScDeleteCellDlg begin
CreateScDeleteCellDlg(Window * pParent,int nId,sal_Bool bDisallowCellMove)842cdf0e10cSrcweir AbstractScDeleteCellDlg* ScAbstractDialogFactory_Impl::CreateScDeleteCellDlg( Window* pParent, int nId,
843cdf0e10cSrcweir 																			 sal_Bool bDisallowCellMove )
844cdf0e10cSrcweir {
845cdf0e10cSrcweir 	ScDeleteCellDlg * pDlg=NULL;
846cdf0e10cSrcweir 	switch ( nId )
847cdf0e10cSrcweir 	{
848cdf0e10cSrcweir 		case RID_SCDLG_DELCELL :
849cdf0e10cSrcweir 			pDlg = new ScDeleteCellDlg( pParent, bDisallowCellMove );
850cdf0e10cSrcweir 			break;
851cdf0e10cSrcweir 		default:
852cdf0e10cSrcweir 			break;
853cdf0e10cSrcweir 	}
854cdf0e10cSrcweir 
855cdf0e10cSrcweir 	if ( pDlg )
856cdf0e10cSrcweir 		return new AbstractScDeleteCellDlg_Impl( pDlg );
857cdf0e10cSrcweir 	return 0;
858cdf0e10cSrcweir }
859cdf0e10cSrcweir 
860cdf0e10cSrcweir //add for ScDeleteCellDlg  end
861cdf0e10cSrcweir 
862cdf0e10cSrcweir //add for ScDeleteContentsDlg begin
CreateScDeleteContentsDlg(Window * pParent,int nId,sal_uInt16 nCheckDefaults)863cdf0e10cSrcweir AbstractScDeleteContentsDlg* ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(Window* pParent,int nId, //add for ScDeleteContentsDlg
864cdf0e10cSrcweir 																 sal_uInt16  nCheckDefaults )
865cdf0e10cSrcweir {
866cdf0e10cSrcweir 	ScDeleteContentsDlg * pDlg=NULL;
867cdf0e10cSrcweir 	switch ( nId )
868cdf0e10cSrcweir 	{
869cdf0e10cSrcweir 		case RID_SCDLG_DELCONT :
870cdf0e10cSrcweir 			pDlg = new ScDeleteContentsDlg( pParent, nCheckDefaults );
871cdf0e10cSrcweir 			break;
872cdf0e10cSrcweir 		default:
873cdf0e10cSrcweir 			break;
874cdf0e10cSrcweir 	}
875cdf0e10cSrcweir 
876cdf0e10cSrcweir 	if ( pDlg )
877cdf0e10cSrcweir 		return new AbstractScDeleteContentsDlg_Impl( pDlg );
878cdf0e10cSrcweir 	return 0;
879cdf0e10cSrcweir }
880cdf0e10cSrcweir 
881cdf0e10cSrcweir //add for ScDeleteContentsDlg  end
882cdf0e10cSrcweir 
883cdf0e10cSrcweir //add for ScFillSeriesDlg begin
CreateScFillSeriesDlg(Window * pParent,ScDocument & rDocument,FillDir eFillDir,FillCmd eFillCmd,FillDateCmd eFillDateCmd,String aStartStr,double fStep,double fMax,sal_uInt16 nPossDir,int nId)884cdf0e10cSrcweir AbstractScFillSeriesDlg* ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg( Window*		pParent, //add for ScFillSeriesDlg
885cdf0e10cSrcweir 															ScDocument&	rDocument,
886cdf0e10cSrcweir 															FillDir		eFillDir,
887cdf0e10cSrcweir 															FillCmd		eFillCmd,
888cdf0e10cSrcweir 															FillDateCmd	eFillDateCmd,
889cdf0e10cSrcweir 															String			aStartStr,
890cdf0e10cSrcweir 															double			fStep,
891cdf0e10cSrcweir 															double			fMax,
892cdf0e10cSrcweir 															sal_uInt16			nPossDir,
893cdf0e10cSrcweir 															int nId)
894cdf0e10cSrcweir {
895cdf0e10cSrcweir 	ScFillSeriesDlg * pDlg=NULL;
896cdf0e10cSrcweir 	switch ( nId )
897cdf0e10cSrcweir 	{
898cdf0e10cSrcweir 		case RID_SCDLG_FILLSERIES :
899cdf0e10cSrcweir 			pDlg = new ScFillSeriesDlg( pParent, rDocument,eFillDir, eFillCmd,eFillDateCmd, aStartStr,fStep,fMax,nPossDir);
900cdf0e10cSrcweir 			break;
901cdf0e10cSrcweir 		default:
902cdf0e10cSrcweir 			break;
903cdf0e10cSrcweir 	}
904cdf0e10cSrcweir 
905cdf0e10cSrcweir 	if ( pDlg )
906cdf0e10cSrcweir 		return new AbstractScFillSeriesDlg_Impl( pDlg );
907cdf0e10cSrcweir 	return 0;
908cdf0e10cSrcweir }
909cdf0e10cSrcweir 
910cdf0e10cSrcweir //add for ScFillSeriesDlg  end
911cdf0e10cSrcweir 
912cdf0e10cSrcweir //add for ScGroupDlg begin
CreateAbstractScGroupDlg(Window * pParent,sal_uInt16 nResId,int nId,sal_Bool bUnGroup,sal_Bool bRows)913cdf0e10cSrcweir AbstractScGroupDlg* ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg( Window* pParent,
914cdf0e10cSrcweir 															sal_uInt16	nResId,
915cdf0e10cSrcweir 															int nId,
916cdf0e10cSrcweir 															sal_Bool	bUnGroup ,
917cdf0e10cSrcweir 															sal_Bool	bRows   )
918cdf0e10cSrcweir {
919cdf0e10cSrcweir 	ScGroupDlg * pDlg=NULL;
920cdf0e10cSrcweir 	switch ( nId )
921cdf0e10cSrcweir 	{
922cdf0e10cSrcweir 		case RID_SCDLG_GRP_KILL :
923cdf0e10cSrcweir 		case RID_SCDLG_GRP_MAKE :
924cdf0e10cSrcweir 			pDlg = new ScGroupDlg( pParent, nResId,bUnGroup, bRows);
925cdf0e10cSrcweir 			break;
926cdf0e10cSrcweir 		default:
927cdf0e10cSrcweir 			break;
928cdf0e10cSrcweir 	}
929cdf0e10cSrcweir 
930cdf0e10cSrcweir 	if ( pDlg )
931cdf0e10cSrcweir 		return new AbstractScGroupDlg_Impl( pDlg );
932cdf0e10cSrcweir 	return 0;
933cdf0e10cSrcweir }
934cdf0e10cSrcweir 
935cdf0e10cSrcweir //add for ScGroupDlg  end
936cdf0e10cSrcweir 
937cdf0e10cSrcweir 
938cdf0e10cSrcweir //add for ScInsertCellDlg begin
CreateScInsertCellDlg(Window * pParent,int nId,sal_Bool bDisallowCellMove)939cdf0e10cSrcweir AbstractScInsertCellDlg * ScAbstractDialogFactory_Impl::CreateScInsertCellDlg( Window* pParent, //add for ScInsertCellDlg
940cdf0e10cSrcweir 																int nId,
941cdf0e10cSrcweir 															sal_Bool bDisallowCellMove )
942cdf0e10cSrcweir {
943cdf0e10cSrcweir 	ScInsertCellDlg * pDlg=NULL;
944cdf0e10cSrcweir 	switch ( nId )
945cdf0e10cSrcweir 	{
946cdf0e10cSrcweir 		case RID_SCDLG_INSCELL :
947cdf0e10cSrcweir 			pDlg = new ScInsertCellDlg( pParent, bDisallowCellMove);
948cdf0e10cSrcweir 			break;
949cdf0e10cSrcweir 		default:
950cdf0e10cSrcweir 			break;
951cdf0e10cSrcweir 	}
952cdf0e10cSrcweir 
953cdf0e10cSrcweir 	if ( pDlg )
954cdf0e10cSrcweir 		return new AbstractScInsertCellDlg_Impl( pDlg );
955cdf0e10cSrcweir 	return 0;
956cdf0e10cSrcweir }
957cdf0e10cSrcweir 
958cdf0e10cSrcweir //add for ScInsertCellDlg end
959cdf0e10cSrcweir 
960cdf0e10cSrcweir //add for ScInsertContentsDlg begin
CreateScInsertContentsDlg(Window * pParent,int nId,sal_uInt16 nCheckDefaults,const String * pStrTitle)961cdf0e10cSrcweir AbstractScInsertContentsDlg * ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg( Window*		pParent,
962cdf0e10cSrcweir 																					int nId,
963cdf0e10cSrcweir 																					sal_uInt16  		nCheckDefaults,
964cdf0e10cSrcweir 																					const String*	pStrTitle )
965cdf0e10cSrcweir {
966cdf0e10cSrcweir 	ScInsertContentsDlg * pDlg=NULL;
967cdf0e10cSrcweir 	switch ( nId )
968cdf0e10cSrcweir 	{
969cdf0e10cSrcweir 		case RID_SCDLG_INSCONT :
970cdf0e10cSrcweir 			pDlg = new ScInsertContentsDlg( pParent, nCheckDefaults,pStrTitle );
971cdf0e10cSrcweir 			break;
972cdf0e10cSrcweir 		default:
973cdf0e10cSrcweir 			break;
974cdf0e10cSrcweir 	}
975cdf0e10cSrcweir 
976cdf0e10cSrcweir 	if ( pDlg )
977cdf0e10cSrcweir 		return new AbstractScInsertContentsDlg_Impl( pDlg );
978cdf0e10cSrcweir 	return 0;
979cdf0e10cSrcweir }
980cdf0e10cSrcweir //add for ScInsertContentsDlg end
981cdf0e10cSrcweir 
982cdf0e10cSrcweir //add for ScInsertTableDlg begin
CreateScInsertTableDlg(Window * pParent,ScViewData & rViewData,SCTAB nTabCount,bool bFromFile,int nId)983cdf0e10cSrcweir AbstractScInsertTableDlg * ScAbstractDialogFactory_Impl::CreateScInsertTableDlg ( Window* pParent, ScViewData& rViewData,
984cdf0e10cSrcweir                                                                 SCTAB nTabCount, bool bFromFile, int nId)
985cdf0e10cSrcweir {
986cdf0e10cSrcweir 	ScInsertTableDlg * pDlg=NULL;
987cdf0e10cSrcweir 	switch ( nId )
988cdf0e10cSrcweir 	{
989cdf0e10cSrcweir 		case RID_SCDLG_INSERT_TABLE :
990cdf0e10cSrcweir             pDlg = new ScInsertTableDlg( pParent, rViewData,nTabCount, bFromFile );
991cdf0e10cSrcweir 			break;
992cdf0e10cSrcweir 		default:
993cdf0e10cSrcweir 			break;
994cdf0e10cSrcweir 	}
995cdf0e10cSrcweir 
996cdf0e10cSrcweir 	if ( pDlg )
997cdf0e10cSrcweir 		return new AbstractScInsertTableDlg_Impl( pDlg );
998cdf0e10cSrcweir 	return 0;
999cdf0e10cSrcweir }
1000cdf0e10cSrcweir //add for ScInsertTableDlg end
1001cdf0e10cSrcweir 
1002cdf0e10cSrcweir // add for ScSelEntryDlg begin
CreateScSelEntryDlg(Window * pParent,sal_uInt16 nResId,const String & aTitle,const String & aLbTitle,List & aEntryList,int nId)1003cdf0e10cSrcweir AbstractScSelEntryDlg * ScAbstractDialogFactory_Impl::CreateScSelEntryDlg ( Window* pParent,
1004cdf0e10cSrcweir 															sal_uInt16	nResId,
1005cdf0e10cSrcweir 														const String& aTitle,
1006cdf0e10cSrcweir 														const String& aLbTitle,
1007cdf0e10cSrcweir 																List& 	aEntryList,
1008cdf0e10cSrcweir 															int nId )
1009cdf0e10cSrcweir {
1010cdf0e10cSrcweir 	ScSelEntryDlg * pDlg=NULL;
1011cdf0e10cSrcweir 	switch ( nId )
1012cdf0e10cSrcweir 	{
1013cdf0e10cSrcweir 		case RID_SCDLG_SELECTDB :
1014cdf0e10cSrcweir 			pDlg = new ScSelEntryDlg( pParent, nResId,aTitle, aLbTitle, aEntryList );
1015cdf0e10cSrcweir 			break;
1016cdf0e10cSrcweir 		default:
1017cdf0e10cSrcweir 			break;
1018cdf0e10cSrcweir 	}
1019cdf0e10cSrcweir 
1020cdf0e10cSrcweir 	if ( pDlg )
1021cdf0e10cSrcweir 		return new AbstractScSelEntryDlg_Impl( pDlg );
1022cdf0e10cSrcweir 	return 0;
1023cdf0e10cSrcweir }
1024cdf0e10cSrcweir // add for ScSelEntryDlg end
1025cdf0e10cSrcweir 
1026cdf0e10cSrcweir //add for ScLinkedAreaDlg begin
CreateScLinkedAreaDlg(Window * pParent,int nId)1027cdf0e10cSrcweir AbstractScLinkedAreaDlg * ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg (  Window* pParent,
1028cdf0e10cSrcweir 																int nId)
1029cdf0e10cSrcweir {
1030cdf0e10cSrcweir 	ScLinkedAreaDlg * pDlg=NULL;
1031cdf0e10cSrcweir 	switch ( nId )
1032cdf0e10cSrcweir 	{
1033cdf0e10cSrcweir 		case RID_SCDLG_LINKAREA :
1034cdf0e10cSrcweir 			pDlg = new ScLinkedAreaDlg( pParent );
1035cdf0e10cSrcweir 			break;
1036cdf0e10cSrcweir 		default:
1037cdf0e10cSrcweir 			break;
1038cdf0e10cSrcweir 	}
1039cdf0e10cSrcweir 
1040cdf0e10cSrcweir 	if ( pDlg )
1041cdf0e10cSrcweir 		return new AbstractScLinkedAreaDlg_Impl( pDlg );
1042cdf0e10cSrcweir 	return 0;
1043cdf0e10cSrcweir }
1044cdf0e10cSrcweir //add for ScLinkedAreaDlg end
1045cdf0e10cSrcweir 
1046cdf0e10cSrcweir //add for ScMetricInputDlg begin
CreateScMetricInputDlg(Window * pParent,sal_uInt16 nResId,long nCurrent,long nDefault,int nId,FieldUnit eFUnit,sal_uInt16 nDecimals,long nMaximum,long nMinimum,long nFirst,long nLast)1047cdf0e10cSrcweir AbstractScMetricInputDlg * ScAbstractDialogFactory_Impl::CreateScMetricInputDlg (  Window*		pParent,
1048cdf0e10cSrcweir 																sal_uInt16		nResId,		// Ableitung fuer jeden Dialog!
1049cdf0e10cSrcweir 																long			nCurrent,
1050cdf0e10cSrcweir 																long			nDefault,
1051cdf0e10cSrcweir 																int nId ,
1052cdf0e10cSrcweir 																FieldUnit		eFUnit,
1053cdf0e10cSrcweir 																sal_uInt16		nDecimals,
1054cdf0e10cSrcweir 																long			nMaximum ,
1055cdf0e10cSrcweir 																long			nMinimum,
1056cdf0e10cSrcweir 																long			nFirst,
1057cdf0e10cSrcweir 																long          nLast )
1058cdf0e10cSrcweir {
1059cdf0e10cSrcweir 	ScMetricInputDlg * pDlg=NULL;
1060cdf0e10cSrcweir 	switch ( nId )
1061cdf0e10cSrcweir 	{
1062cdf0e10cSrcweir 		case RID_SCDLG_ROW_MAN :
1063cdf0e10cSrcweir 		case RID_SCDLG_ROW_OPT :
1064cdf0e10cSrcweir 		case RID_SCDLG_COL_MAN :
1065cdf0e10cSrcweir 		case RID_SCDLG_COL_OPT :
1066cdf0e10cSrcweir 			pDlg = new ScMetricInputDlg( pParent , nResId,nCurrent ,nDefault, eFUnit,
1067cdf0e10cSrcweir 										nDecimals, nMaximum , nMinimum , nFirst, nLast);
1068cdf0e10cSrcweir 			break;
1069cdf0e10cSrcweir 		default:
1070cdf0e10cSrcweir 			break;
1071cdf0e10cSrcweir 	}
1072cdf0e10cSrcweir 
1073cdf0e10cSrcweir 	if ( pDlg )
1074cdf0e10cSrcweir 		return new AbstractScMetricInputDlg_Impl( pDlg );
1075cdf0e10cSrcweir 	return 0;
1076cdf0e10cSrcweir }
1077cdf0e10cSrcweir //add for ScMetricInputDlg end
1078cdf0e10cSrcweir 
1079cdf0e10cSrcweir 
1080cdf0e10cSrcweir //add for  ScMoveTableDlg  begin
CreateScMoveTableDlg(Window * pParent,int nId)1081cdf0e10cSrcweir AbstractScMoveTableDlg * ScAbstractDialogFactory_Impl::CreateScMoveTableDlg(  Window* pParent, int nId )
1082cdf0e10cSrcweir {
1083cdf0e10cSrcweir 	ScMoveTableDlg * pDlg=NULL;
1084cdf0e10cSrcweir 	switch ( nId )
1085cdf0e10cSrcweir 	{
1086cdf0e10cSrcweir 		case RID_SCDLG_MOVETAB :
1087cdf0e10cSrcweir 			pDlg = new ScMoveTableDlg( pParent );
1088cdf0e10cSrcweir 			break;
1089cdf0e10cSrcweir 		default:
1090cdf0e10cSrcweir 			break;
1091cdf0e10cSrcweir 	}
1092cdf0e10cSrcweir 
1093cdf0e10cSrcweir 	if ( pDlg )
1094cdf0e10cSrcweir 		return new AbstractScMoveTableDlg_Impl( pDlg );
1095cdf0e10cSrcweir 	return 0;
1096cdf0e10cSrcweir }
1097cdf0e10cSrcweir //add for  ScMoveTableDlg  end
1098cdf0e10cSrcweir 
1099cdf0e10cSrcweir 
1100cdf0e10cSrcweir //add for ScNameCreateDlg begin
CreateScNameCreateDlg(Window * pParent,sal_uInt16 nFlags,int nId)1101cdf0e10cSrcweir AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg ( Window * pParent, sal_uInt16 nFlags, int nId )
1102cdf0e10cSrcweir {
1103cdf0e10cSrcweir 	ScNameCreateDlg * pDlg=NULL;
1104cdf0e10cSrcweir 	switch ( nId )
1105cdf0e10cSrcweir 	{
1106cdf0e10cSrcweir 		case RID_SCDLG_NAMES_CREATE :
1107cdf0e10cSrcweir 			pDlg = new ScNameCreateDlg( pParent, nFlags );
1108cdf0e10cSrcweir 			break;
1109cdf0e10cSrcweir 		default:
1110cdf0e10cSrcweir 			break;
1111cdf0e10cSrcweir 	}
1112cdf0e10cSrcweir 
1113cdf0e10cSrcweir 	if ( pDlg )
1114cdf0e10cSrcweir 		return new AbstractScNameCreateDlg_Impl( pDlg );
1115cdf0e10cSrcweir 	return 0;
1116cdf0e10cSrcweir }
1117cdf0e10cSrcweir //add for ScNameCreateDlg end
1118cdf0e10cSrcweir 
1119cdf0e10cSrcweir 
1120cdf0e10cSrcweir //add for ScNamePasteDlg begin
CreateScNamePasteDlg(Window * pParent,const ScRangeName * pList,int nId,sal_Bool bInsList)1121cdf0e10cSrcweir  AbstractScNamePasteDlg * ScAbstractDialogFactory_Impl::CreateScNamePasteDlg ( Window * pParent, const ScRangeName* pList,
1122cdf0e10cSrcweir 															int nId , sal_Bool bInsList )
1123cdf0e10cSrcweir {
1124cdf0e10cSrcweir 	ScNamePasteDlg * pDlg=NULL;
1125cdf0e10cSrcweir 	switch ( nId )
1126cdf0e10cSrcweir 	{
1127cdf0e10cSrcweir 		case RID_SCDLG_NAMES_PASTE :
1128cdf0e10cSrcweir 			pDlg = new ScNamePasteDlg( pParent, pList, bInsList );
1129cdf0e10cSrcweir 			break;
1130cdf0e10cSrcweir 		default:
1131cdf0e10cSrcweir 			break;
1132cdf0e10cSrcweir 	}
1133cdf0e10cSrcweir 
1134cdf0e10cSrcweir 	if ( pDlg )
1135cdf0e10cSrcweir 		return new AbstractScNamePasteDlg_Impl( pDlg );
1136cdf0e10cSrcweir 	return 0;
1137cdf0e10cSrcweir }
1138cdf0e10cSrcweir //add for ScNamePasteDlg end
1139cdf0e10cSrcweir 
1140cdf0e10cSrcweir //add for ScPivotFilterDlg begin
CreateScPivotFilterDlg(Window * pParent,const SfxItemSet & rArgSet,sal_uInt16 nSourceTab,int nId)1141cdf0e10cSrcweir AbstractScPivotFilterDlg * ScAbstractDialogFactory_Impl::CreateScPivotFilterDlg ( Window* pParent,
1142cdf0e10cSrcweir 																const SfxItemSet&	rArgSet, sal_uInt16 nSourceTab , int nId )
1143cdf0e10cSrcweir {
1144cdf0e10cSrcweir 	ScPivotFilterDlg * pDlg=NULL;
1145cdf0e10cSrcweir 	switch ( nId )
1146cdf0e10cSrcweir 	{
1147cdf0e10cSrcweir 		case RID_SCDLG_PIVOTFILTER :
1148cdf0e10cSrcweir 			pDlg = new ScPivotFilterDlg( pParent, rArgSet, nSourceTab );
1149cdf0e10cSrcweir 			break;
1150cdf0e10cSrcweir 		default:
1151cdf0e10cSrcweir 			break;
1152cdf0e10cSrcweir 	}
1153cdf0e10cSrcweir 
1154cdf0e10cSrcweir 	if ( pDlg )
1155cdf0e10cSrcweir 		return new AbstractScPivotFilterDlg_Impl( pDlg );
1156cdf0e10cSrcweir 	return 0;
1157cdf0e10cSrcweir }
1158cdf0e10cSrcweir //add for ScPivotFilterDlg end
1159cdf0e10cSrcweir 
1160cdf0e10cSrcweir 
1161cdf0e10cSrcweir //add for ScDPFunctionDlg begin
CreateScDPFunctionDlg(Window * pParent,int nId,const ScDPLabelDataVector & rLabelVec,const ScDPLabelData & rLabelData,const ScPivotFuncData & rFuncData)1162cdf0e10cSrcweir AbstractScDPFunctionDlg * ScAbstractDialogFactory_Impl::CreateScDPFunctionDlg ( Window* pParent,
1163cdf0e10cSrcweir                                                                 int nId,
1164cdf0e10cSrcweir                                                                 const ScDPLabelDataVector& rLabelVec,
1165cdf0e10cSrcweir                                                                 const ScDPLabelData& rLabelData,
1166cdf0e10cSrcweir                                                                 const ScPivotFuncData& rFuncData )
1167cdf0e10cSrcweir {
1168cdf0e10cSrcweir 	ScDPFunctionDlg * pDlg=NULL;
1169cdf0e10cSrcweir 	switch ( nId )
1170cdf0e10cSrcweir 	{
1171cdf0e10cSrcweir         case RID_SCDLG_DPDATAFIELD :
1172cdf0e10cSrcweir             pDlg = new ScDPFunctionDlg( pParent, rLabelVec, rLabelData, rFuncData );
1173cdf0e10cSrcweir 			break;
1174cdf0e10cSrcweir 		default:
1175cdf0e10cSrcweir 			break;
1176cdf0e10cSrcweir 	}
1177cdf0e10cSrcweir 
1178cdf0e10cSrcweir 	if ( pDlg )
1179cdf0e10cSrcweir 		return new AbstractScDPFunctionDlg_Impl( pDlg );
1180cdf0e10cSrcweir 	return 0;
1181cdf0e10cSrcweir }
1182cdf0e10cSrcweir //add for ScDPFunctionDlg end
1183cdf0e10cSrcweir 
1184cdf0e10cSrcweir //add for ScDPSubtotalDlg begin
CreateScDPSubtotalDlg(Window * pParent,int nId,ScDPObject & rDPObj,const ScDPLabelData & rLabelData,const ScPivotFuncData & rFuncData,const ScDPNameVec & rDataFields,bool bEnableLayout)1185cdf0e10cSrcweir AbstractScDPSubtotalDlg * ScAbstractDialogFactory_Impl::CreateScDPSubtotalDlg ( Window* pParent,
1186cdf0e10cSrcweir                                                                 int nId,
1187cdf0e10cSrcweir                                                                 ScDPObject& rDPObj,
1188cdf0e10cSrcweir                                                                 const ScDPLabelData& rLabelData,
1189cdf0e10cSrcweir                                                                 const ScPivotFuncData& rFuncData,
1190cdf0e10cSrcweir                                                                 const ScDPNameVec& rDataFields,
1191cdf0e10cSrcweir                                                                 bool bEnableLayout )
1192cdf0e10cSrcweir {
1193cdf0e10cSrcweir     ScDPSubtotalDlg * pDlg=NULL;
1194cdf0e10cSrcweir     switch ( nId )
1195cdf0e10cSrcweir     {
1196cdf0e10cSrcweir         case RID_SCDLG_PIVOTSUBT :
1197cdf0e10cSrcweir             pDlg = new ScDPSubtotalDlg( pParent, rDPObj, rLabelData, rFuncData, rDataFields, bEnableLayout );
1198cdf0e10cSrcweir             break;
1199cdf0e10cSrcweir         default:
1200cdf0e10cSrcweir             break;
1201cdf0e10cSrcweir     }
1202cdf0e10cSrcweir 
1203cdf0e10cSrcweir     if ( pDlg )
1204cdf0e10cSrcweir         return new AbstractScDPSubtotalDlg_Impl( pDlg );
1205cdf0e10cSrcweir     return 0;
1206cdf0e10cSrcweir }
1207cdf0e10cSrcweir //add for ScDPSubtotalDlg end
1208cdf0e10cSrcweir 
CreateScDPNumGroupDlg(Window * pParent,int nId,const ScDPNumGroupInfo & rInfo)1209cdf0e10cSrcweir AbstractScDPNumGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPNumGroupDlg(
1210cdf0e10cSrcweir         Window* pParent, int nId, const ScDPNumGroupInfo& rInfo )
1211cdf0e10cSrcweir {
1212cdf0e10cSrcweir     if( nId == RID_SCDLG_DPNUMGROUP )
1213cdf0e10cSrcweir         return new AbstractScDPNumGroupDlg_Impl( new ScDPNumGroupDlg( pParent, rInfo ) );
1214cdf0e10cSrcweir     return 0;
1215cdf0e10cSrcweir }
1216cdf0e10cSrcweir 
CreateScDPDateGroupDlg(Window * pParent,int nId,const ScDPNumGroupInfo & rInfo,sal_Int32 nDatePart,const Date & rNullDate)1217cdf0e10cSrcweir AbstractScDPDateGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPDateGroupDlg(
1218cdf0e10cSrcweir         Window* pParent, int nId,
1219cdf0e10cSrcweir         const ScDPNumGroupInfo& rInfo, sal_Int32 nDatePart, const Date& rNullDate )
1220cdf0e10cSrcweir {
1221cdf0e10cSrcweir     if( nId == RID_SCDLG_DPDATEGROUP )
1222cdf0e10cSrcweir         return new AbstractScDPDateGroupDlg_Impl( new ScDPDateGroupDlg( pParent, rInfo, nDatePart, rNullDate ) );
1223cdf0e10cSrcweir     return 0;
1224cdf0e10cSrcweir }
1225cdf0e10cSrcweir 
1226cdf0e10cSrcweir //add for ScDPShowDetailDlg begin
CreateScDPShowDetailDlg(Window * pParent,int nId,ScDPObject & rDPObj,sal_uInt16 nOrient)1227cdf0e10cSrcweir AbstractScDPShowDetailDlg * ScAbstractDialogFactory_Impl::CreateScDPShowDetailDlg (
1228cdf0e10cSrcweir         Window* pParent, int nId, ScDPObject& rDPObj, sal_uInt16 nOrient )
1229cdf0e10cSrcweir {
1230cdf0e10cSrcweir     if( nId == RID_SCDLG_DPSHOWDETAIL )
1231cdf0e10cSrcweir         return new AbstractScDPShowDetailDlg_Impl( new ScDPShowDetailDlg( pParent, rDPObj, nOrient ) );
1232cdf0e10cSrcweir     return 0;
1233cdf0e10cSrcweir }
1234cdf0e10cSrcweir //add for ScDPShowDetailDlg end
1235cdf0e10cSrcweir 
1236cdf0e10cSrcweir //add for ScNewScenarioDlg begin
CreateScNewScenarioDlg(Window * pParent,const String & rName,int nId,sal_Bool bEdit,sal_Bool bSheetProtected)1237cdf0e10cSrcweir AbstractScNewScenarioDlg * ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg ( Window* pParent, const String& rName,
1238cdf0e10cSrcweir 																int nId,
1239cdf0e10cSrcweir 																sal_Bool bEdit , sal_Bool bSheetProtected )
1240cdf0e10cSrcweir {
1241cdf0e10cSrcweir 	ScNewScenarioDlg * pDlg=NULL;
1242cdf0e10cSrcweir 	switch ( nId )
1243cdf0e10cSrcweir 	{
1244cdf0e10cSrcweir 		case RID_SCDLG_NEWSCENARIO :
1245cdf0e10cSrcweir 			pDlg = new ScNewScenarioDlg( pParent, rName, bEdit,bSheetProtected );
1246cdf0e10cSrcweir 			break;
1247cdf0e10cSrcweir 		default:
1248cdf0e10cSrcweir 			break;
1249cdf0e10cSrcweir 	}
1250cdf0e10cSrcweir 
1251cdf0e10cSrcweir 	if ( pDlg )
1252cdf0e10cSrcweir 		return new AbstractScNewScenarioDlg_Impl( pDlg );
1253cdf0e10cSrcweir 	return 0;
1254cdf0e10cSrcweir }
1255cdf0e10cSrcweir //add for ScNewScenarioDlg end
1256cdf0e10cSrcweir 
1257cdf0e10cSrcweir //add for ScShowTabDlg begin
CreateScShowTabDlg(Window * pParent,int nId)1258cdf0e10cSrcweir AbstractScShowTabDlg * ScAbstractDialogFactory_Impl::CreateScShowTabDlg ( Window* pParent, int nId )
1259cdf0e10cSrcweir {
1260cdf0e10cSrcweir 	ScShowTabDlg * pDlg=NULL;
1261cdf0e10cSrcweir 	switch ( nId )
1262cdf0e10cSrcweir 	{
1263cdf0e10cSrcweir 		case RID_SCDLG_SHOW_TAB :
1264cdf0e10cSrcweir 			pDlg = new ScShowTabDlg( pParent);
1265cdf0e10cSrcweir 			break;
1266cdf0e10cSrcweir 		default:
1267cdf0e10cSrcweir 			break;
1268cdf0e10cSrcweir 	}
1269cdf0e10cSrcweir 
1270cdf0e10cSrcweir 	if ( pDlg )
1271cdf0e10cSrcweir 		return new AbstractScShowTabDlg_Impl( pDlg );
1272cdf0e10cSrcweir 	return 0;
1273cdf0e10cSrcweir }
1274cdf0e10cSrcweir 
1275cdf0e10cSrcweir //add for ScShowTabDlg end
1276cdf0e10cSrcweir 
1277cdf0e10cSrcweir 
1278cdf0e10cSrcweir //add for ScStringInputDlg begin
CreateScStringInputDlg(Window * pParent,const String & rTitle,const String & rEditTitle,const String & rDefault,const rtl::OString & sHelpId,const rtl::OString & sEditHelpId,int nId)1279cdf0e10cSrcweir  AbstractScStringInputDlg * ScAbstractDialogFactory_Impl::CreateScStringInputDlg (  Window* pParent,
1280cdf0e10cSrcweir 																const String& rTitle,
1281cdf0e10cSrcweir 																const String& rEditTitle,
1282cdf0e10cSrcweir 																const String& rDefault,
1283cdf0e10cSrcweir 																const rtl::OString& sHelpId, const rtl::OString& sEditHelpId,
1284cdf0e10cSrcweir 																int nId )
1285cdf0e10cSrcweir {
1286cdf0e10cSrcweir 	ScStringInputDlg * pDlg=NULL;
1287cdf0e10cSrcweir 	switch ( nId )
1288cdf0e10cSrcweir 	{
1289cdf0e10cSrcweir 		case RID_SCDLG_STRINPUT :
1290cdf0e10cSrcweir 			pDlg = new ScStringInputDlg( pParent, rTitle, rEditTitle, rDefault, sHelpId, sEditHelpId );
1291cdf0e10cSrcweir 			break;
1292cdf0e10cSrcweir 		default:
1293cdf0e10cSrcweir 			break;
1294cdf0e10cSrcweir 	}
1295cdf0e10cSrcweir 
1296cdf0e10cSrcweir 	if ( pDlg )
1297cdf0e10cSrcweir 		return new AbstractScStringInputDlg_Impl( pDlg );
1298cdf0e10cSrcweir 	return 0;
1299cdf0e10cSrcweir }
1300cdf0e10cSrcweir  //add for ScStringInputDlg end
1301cdf0e10cSrcweir 
1302cdf0e10cSrcweir //add for ScTabBgColorDlg begin
CreateScTabBgColorDlg(Window * pParent,const String & rTitle,const String & rTabBgColorNoColorText,const Color & rDefaultColor,const rtl::OString & sHelpId,int nId)1303cdf0e10cSrcweir AbstractScTabBgColorDlg * ScAbstractDialogFactory_Impl::CreateScTabBgColorDlg (
1304cdf0e10cSrcweir                                                             Window* pParent,
1305cdf0e10cSrcweir                                                             const String& rTitle,
1306cdf0e10cSrcweir                                                             const String& rTabBgColorNoColorText,
1307cdf0e10cSrcweir                                                             const Color& rDefaultColor,
1308cdf0e10cSrcweir                                                             const rtl::OString& sHelpId ,
1309cdf0e10cSrcweir                                                             int nId )
1310cdf0e10cSrcweir {
1311cdf0e10cSrcweir ScTabBgColorDlg * pDlg=NULL;
1312cdf0e10cSrcweir switch ( nId )
1313cdf0e10cSrcweir {
1314cdf0e10cSrcweir     case RID_SCDLG_TAB_BG_COLOR :
1315cdf0e10cSrcweir         pDlg = new ScTabBgColorDlg( pParent, rTitle, rTabBgColorNoColorText, rDefaultColor, sHelpId );
1316cdf0e10cSrcweir         break;
1317cdf0e10cSrcweir     default:
1318cdf0e10cSrcweir         break;
1319cdf0e10cSrcweir }
1320cdf0e10cSrcweir 
1321cdf0e10cSrcweir if ( pDlg )
1322cdf0e10cSrcweir     return new AbstractScTabBgColorDlg_Impl( pDlg );
1323cdf0e10cSrcweir return 0;
1324cdf0e10cSrcweir }
1325cdf0e10cSrcweir //add for ScTabBgColorDlg end
1326cdf0e10cSrcweir 
1327cdf0e10cSrcweir //add for ScImportOptionsDlg begin
CreateScImportOptionsDlg(Window * pParent,int nId,sal_Bool bAscii,const ScImportOptions * pOptions,const String * pStrTitle,sal_Bool bMultiByte,sal_Bool bOnlyDbtoolsEncodings,sal_Bool bImport)1328cdf0e10cSrcweir AbstractScImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg ( Window* 				pParent,
1329cdf0e10cSrcweir 																	int nId,
1330cdf0e10cSrcweir 																	sal_Bool                    bAscii,
1331cdf0e10cSrcweir 																	const ScImportOptions*	pOptions,
1332cdf0e10cSrcweir 																	const String*			pStrTitle,
1333cdf0e10cSrcweir 																	sal_Bool                    bMultiByte,
1334cdf0e10cSrcweir 																	sal_Bool                    bOnlyDbtoolsEncodings,
1335cdf0e10cSrcweir 																	sal_Bool                    bImport )
1336cdf0e10cSrcweir {
1337cdf0e10cSrcweir 	ScImportOptionsDlg * pDlg=NULL;
1338cdf0e10cSrcweir 	switch ( nId )
1339cdf0e10cSrcweir 	{
1340cdf0e10cSrcweir 		case RID_SCDLG_IMPORTOPT :
1341cdf0e10cSrcweir 			pDlg = new ScImportOptionsDlg( pParent, bAscii, pOptions,pStrTitle, bMultiByte,bOnlyDbtoolsEncodings, bImport );
1342cdf0e10cSrcweir 			break;
1343cdf0e10cSrcweir 		default:
1344cdf0e10cSrcweir 			break;
1345cdf0e10cSrcweir 	}
1346cdf0e10cSrcweir 
1347cdf0e10cSrcweir 	if ( pDlg )
1348cdf0e10cSrcweir 		return new AbstractScImportOptionsDlg_Impl( pDlg );
1349cdf0e10cSrcweir 	return 0;
1350cdf0e10cSrcweir }
1351cdf0e10cSrcweir //add for ScImportOptionsDlg end
1352cdf0e10cSrcweir 
1353cdf0e10cSrcweir #if ENABLE_LAYOUT && !LAYOUT_SFX_TABDIALOG_BROKEN
1354cdf0e10cSrcweir #define SfxTabDialog layout::SfxTabDialog
1355cdf0e10cSrcweir #define AbstractTabDialog_Impl layout::AbstractTabDialog_Impl
1356cdf0e10cSrcweir #endif /* ENABLE_LAYOUT */
1357cdf0e10cSrcweir //add for ScAttrDlg begin
CreateScAttrDlg(SfxViewFrame * pFrame,Window * pParent,const SfxItemSet * pCellAttrs,int nId)1358cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScAttrDlg( SfxViewFrame*	 pFrame,
1359cdf0e10cSrcweir 																		Window*			 pParent,
1360cdf0e10cSrcweir 																		const SfxItemSet* pCellAttrs,
1361cdf0e10cSrcweir 																		int nId)
1362cdf0e10cSrcweir {
1363cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1364cdf0e10cSrcweir 	switch ( nId )
1365cdf0e10cSrcweir 	{
1366cdf0e10cSrcweir 		case RID_SCDLG_ATTR :
1367cdf0e10cSrcweir 			pDlg = new ScAttrDlg( pFrame, pParent, pCellAttrs );
1368cdf0e10cSrcweir 			break;
1369cdf0e10cSrcweir 		default:
1370cdf0e10cSrcweir 			break;
1371cdf0e10cSrcweir 	}
1372cdf0e10cSrcweir 
1373cdf0e10cSrcweir 	if ( pDlg )
1374cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1375cdf0e10cSrcweir 	return 0;
1376cdf0e10cSrcweir 
1377cdf0e10cSrcweir }
1378cdf0e10cSrcweir //add for ScAttrDlg end
1379cdf0e10cSrcweir #undef SfxTabDialog
1380cdf0e10cSrcweir #undef AbstractTabDialog_Impl
1381cdf0e10cSrcweir 
1382cdf0e10cSrcweir //add for ScHFEditDlg begin
CreateScHFEditDlg(SfxViewFrame * pFrame,Window * pParent,const SfxItemSet & rCoreSet,const String & rPageStyle,int nId,sal_uInt16 nResId)1383cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScHFEditDlg( SfxViewFrame*		pFrame,
1384cdf0e10cSrcweir 																		Window*			pParent,
1385cdf0e10cSrcweir 																		const SfxItemSet&	rCoreSet,
1386cdf0e10cSrcweir 																		const String&		rPageStyle,
1387cdf0e10cSrcweir 																		int nId,
1388cdf0e10cSrcweir 																		sal_uInt16				nResId )
1389cdf0e10cSrcweir {
1390cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1391cdf0e10cSrcweir 	switch ( nId )
1392cdf0e10cSrcweir 	{
1393cdf0e10cSrcweir 		case RID_SCDLG_HFEDIT :
1394cdf0e10cSrcweir 			pDlg = new ScHFEditDlg( pFrame, pParent, rCoreSet,rPageStyle, nResId );
1395cdf0e10cSrcweir 			break;
1396cdf0e10cSrcweir 		default:
1397cdf0e10cSrcweir 			break;
1398cdf0e10cSrcweir 	}
1399cdf0e10cSrcweir 
1400cdf0e10cSrcweir 	if ( pDlg )
1401cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1402cdf0e10cSrcweir 	return 0;
1403cdf0e10cSrcweir }
1404cdf0e10cSrcweir //add for ScHFEditDlg end
1405cdf0e10cSrcweir 
1406cdf0e10cSrcweir //add for ScStyleDlg begin
CreateScStyleDlg(Window * pParent,SfxStyleSheetBase & rStyleBase,sal_uInt16 nRscId,int nId)1407cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScStyleDlg( Window*				pParent,
1408cdf0e10cSrcweir 																		SfxStyleSheetBase&	rStyleBase,
1409cdf0e10cSrcweir 																		sal_uInt16				nRscId,
1410cdf0e10cSrcweir 																		int nId)
1411cdf0e10cSrcweir {
1412cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1413cdf0e10cSrcweir 	switch ( nId )
1414cdf0e10cSrcweir 	{
1415cdf0e10cSrcweir 		case RID_SCDLG_STYLES_PAGE :
1416cdf0e10cSrcweir 		case RID_SCDLG_STYLES_PAR :
1417cdf0e10cSrcweir 			pDlg = new ScStyleDlg( pParent, rStyleBase, nRscId );
1418cdf0e10cSrcweir 			break;
1419cdf0e10cSrcweir 		default:
1420cdf0e10cSrcweir 			break;
1421cdf0e10cSrcweir 	}
1422cdf0e10cSrcweir 
1423cdf0e10cSrcweir 	if ( pDlg )
1424cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1425cdf0e10cSrcweir 	return 0;
1426cdf0e10cSrcweir }
1427cdf0e10cSrcweir //add for ScStyleDlg end
1428cdf0e10cSrcweir 
1429cdf0e10cSrcweir //add for ScSubTotalDlg begin
CreateScSubTotalDlg(Window * pParent,const SfxItemSet * pArgSet,int nId)1430cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSubTotalDlg( Window*				pParent,
1431cdf0e10cSrcweir 																		const SfxItemSet*	pArgSet,
1432cdf0e10cSrcweir 																		int nId)
1433cdf0e10cSrcweir {
1434cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1435cdf0e10cSrcweir 	switch ( nId )
1436cdf0e10cSrcweir 	{
1437cdf0e10cSrcweir 		case RID_SCDLG_SUBTOTALS :
1438cdf0e10cSrcweir 			pDlg = new ScSubTotalDlg( pParent, pArgSet );
1439cdf0e10cSrcweir 			break;
1440cdf0e10cSrcweir 		default:
1441cdf0e10cSrcweir 			break;
1442cdf0e10cSrcweir 	}
1443cdf0e10cSrcweir 
1444cdf0e10cSrcweir 	if ( pDlg )
1445cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1446cdf0e10cSrcweir 	return 0;
1447cdf0e10cSrcweir }
1448cdf0e10cSrcweir //add for ScSubTotalDlg end
1449cdf0e10cSrcweir 
1450cdf0e10cSrcweir //add for ScCharDlg begin
CreateScCharDlg(Window * pParent,const SfxItemSet * pAttr,const SfxObjectShell * pDocShell,int nId)1451cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr,
1452cdf0e10cSrcweir 													const SfxObjectShell* pDocShell, int nId )
1453cdf0e10cSrcweir {
1454cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1455cdf0e10cSrcweir 	switch ( nId )
1456cdf0e10cSrcweir 	{
1457cdf0e10cSrcweir 		case RID_SCDLG_CHAR :
1458cdf0e10cSrcweir 			pDlg = new ScCharDlg( pParent, pAttr, pDocShell );
1459cdf0e10cSrcweir 			break;
1460cdf0e10cSrcweir 		default:
1461cdf0e10cSrcweir 			break;
1462cdf0e10cSrcweir 	}
1463cdf0e10cSrcweir 
1464cdf0e10cSrcweir 	if ( pDlg )
1465cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1466cdf0e10cSrcweir 	return 0;
1467cdf0e10cSrcweir }
1468cdf0e10cSrcweir //add for ScCharDlg end
1469cdf0e10cSrcweir 
1470cdf0e10cSrcweir //add for ScParagraphDlg begin
CreateScParagraphDlg(Window * pParent,const SfxItemSet * pAttr,int nId)1471cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ,
1472cdf0e10cSrcweir 																			int nId )
1473cdf0e10cSrcweir {
1474cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1475cdf0e10cSrcweir 	switch ( nId )
1476cdf0e10cSrcweir 	{
1477cdf0e10cSrcweir 		case RID_SCDLG_PARAGRAPH :
1478cdf0e10cSrcweir 			pDlg = new ScParagraphDlg( pParent, pAttr );
1479cdf0e10cSrcweir 			break;
1480cdf0e10cSrcweir 		default:
1481cdf0e10cSrcweir 			break;
1482cdf0e10cSrcweir 	}
1483cdf0e10cSrcweir 
1484cdf0e10cSrcweir 	if ( pDlg )
1485cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1486cdf0e10cSrcweir 	return 0;
1487cdf0e10cSrcweir }
1488cdf0e10cSrcweir //add for ScParagraphDlg end
1489cdf0e10cSrcweir 
1490cdf0e10cSrcweir //add for ScValidationDlg begin
CreateScValidationDlg(Window * pParent,const SfxItemSet * pArgSet,int nId,ScTabViewShell * pTabVwSh)1491cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScValidationDlg( Window* pParent,
1492cdf0e10cSrcweir //<!--Modified by PengYunQuan for Validity Cell Range Picker
1493cdf0e10cSrcweir //														const SfxItemSet* pArgSet,int nId  )
1494cdf0e10cSrcweir 														const SfxItemSet* pArgSet,int nId, ScTabViewShell *pTabVwSh  )
1495cdf0e10cSrcweir //-->Modified by PengYunQuan for Validity Cell Range Picke
1496cdf0e10cSrcweir {
1497cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1498cdf0e10cSrcweir 	switch ( nId )
1499cdf0e10cSrcweir 	{
1500cdf0e10cSrcweir 		case TAB_DLG_VALIDATION :
1501cdf0e10cSrcweir 			//<!--Modified by PengYunQuan for Validity Cell Range Picker
1502cdf0e10cSrcweir 			//pDlg = new ScValidationDlg( pParent, pArgSet );
1503cdf0e10cSrcweir 			pDlg = new ScValidationDlg( pParent, pArgSet, pTabVwSh );
1504cdf0e10cSrcweir 			//-->Modified by PengYunQuan for Validity Cell Range Picker
1505cdf0e10cSrcweir 			break;
1506cdf0e10cSrcweir 		default:
1507cdf0e10cSrcweir 			break;
1508cdf0e10cSrcweir 	}
1509cdf0e10cSrcweir 
1510cdf0e10cSrcweir 	if ( pDlg )
1511cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1512cdf0e10cSrcweir 	return 0;
1513cdf0e10cSrcweir }
1514cdf0e10cSrcweir //add for ScValidationDlg end
1515cdf0e10cSrcweir 
1516cdf0e10cSrcweir #if ENABLE_LAYOUT && !LAYOUT_SFX_TABDIALOG_BROKEN
1517cdf0e10cSrcweir #define SfxTabDialog layout::SfxTabDialog
1518cdf0e10cSrcweir #define AbstractTabDialog_Impl layout::AbstractTabDialog_Impl
1519cdf0e10cSrcweir #endif /* ENABLE_LAYOUT */
1520cdf0e10cSrcweir //add for ScSortDlg begin
CreateScSortDlg(Window * pParent,const SfxItemSet * pArgSet,int nId)1521cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSortDlg( Window*			 pParent,
1522cdf0e10cSrcweir 													const SfxItemSet* pArgSet,int nId )
1523cdf0e10cSrcweir {
1524cdf0e10cSrcweir 	SfxTabDialog* pDlg=NULL;
1525cdf0e10cSrcweir 	switch ( nId )
1526cdf0e10cSrcweir 	{
1527cdf0e10cSrcweir 		case RID_SCDLG_SORT :
1528cdf0e10cSrcweir 			pDlg = new ScSortDlg( pParent, pArgSet );
1529cdf0e10cSrcweir 			break;
1530cdf0e10cSrcweir 		default:
1531cdf0e10cSrcweir 			break;
1532cdf0e10cSrcweir 	}
1533cdf0e10cSrcweir 
1534cdf0e10cSrcweir 	if ( pDlg )
1535cdf0e10cSrcweir 		return new AbstractTabDialog_Impl( pDlg );
1536cdf0e10cSrcweir 	return 0;
1537cdf0e10cSrcweir }
1538cdf0e10cSrcweir #undef SfxTabDialog
1539cdf0e10cSrcweir #undef AbstractTabDialog_Impl
1540cdf0e10cSrcweir 
1541cdf0e10cSrcweir //add for ScSortDlg end
1542cdf0e10cSrcweir //------------------ Factories for TabPages--------------------
GetTabPageCreatorFunc(sal_uInt16 nId)1543cdf0e10cSrcweir CreateTabPage ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
1544cdf0e10cSrcweir {
1545cdf0e10cSrcweir 	switch ( nId )
1546cdf0e10cSrcweir 	{
1547cdf0e10cSrcweir 		case RID_SCPAGE_OPREDLINE :
1548cdf0e10cSrcweir 			return ScRedlineOptionsTabPage::Create;
1549cdf0e10cSrcweir             //break;
1550cdf0e10cSrcweir 		case	RID_SCPAGE_CALC :
1551cdf0e10cSrcweir 			return ScTpCalcOptions::Create;
1552cdf0e10cSrcweir             //break;
1553cdf0e10cSrcweir 		case	RID_SCPAGE_PRINT :
1554cdf0e10cSrcweir 			return ScTpPrintOptions::Create;
1555cdf0e10cSrcweir             //break;
1556cdf0e10cSrcweir 		case 	RID_SCPAGE_STAT :
1557cdf0e10cSrcweir 			return ScDocStatPage::Create;
1558cdf0e10cSrcweir             //break;
1559cdf0e10cSrcweir 		case RID_SCPAGE_USERLISTS :
1560cdf0e10cSrcweir 			 return ScTpUserLists::Create;
1561cdf0e10cSrcweir             //break;
1562cdf0e10cSrcweir 		case RID_SCPAGE_CONTENT :
1563cdf0e10cSrcweir 			return ScTpContentOptions::Create;
1564cdf0e10cSrcweir             //break;
1565cdf0e10cSrcweir 		case RID_SCPAGE_LAYOUT :
1566cdf0e10cSrcweir 			return ScTpLayoutOptions::Create;
1567cdf0e10cSrcweir             //break;
1568cdf0e10cSrcweir 
1569cdf0e10cSrcweir 		default:
1570cdf0e10cSrcweir 			break;
1571cdf0e10cSrcweir 	}
1572cdf0e10cSrcweir 
1573cdf0e10cSrcweir 	return 0;
1574cdf0e10cSrcweir }
1575cdf0e10cSrcweir 
GetTabPageRangesFunc(sal_uInt16 nId)1576cdf0e10cSrcweir GetTabPageRanges ScAbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
1577cdf0e10cSrcweir {
1578cdf0e10cSrcweir 	switch ( nId )
1579cdf0e10cSrcweir 	{
1580cdf0e10cSrcweir 	case TP_VALIDATION_VALUES :
1581cdf0e10cSrcweir 			return ScTPValidationValue::GetRanges;
1582cdf0e10cSrcweir             //break;
1583cdf0e10cSrcweir 		default:
1584cdf0e10cSrcweir 			break;
1585cdf0e10cSrcweir 	}
1586cdf0e10cSrcweir 
1587cdf0e10cSrcweir 	return 0;
1588cdf0e10cSrcweir }
1589cdf0e10cSrcweir 
ScDPFunctionDlg_Dummy()1590cdf0e10cSrcweir void ScDPFunctionDlg_Dummy()
1591cdf0e10cSrcweir {
1592cdf0e10cSrcweir     // use ScDPListBoxWrapper to avoid warning (this isn't called)
1593cdf0e10cSrcweir     ListBox* pListBox = NULL;
1594cdf0e10cSrcweir     ScDPListBoxWrapper aWrapper( *pListBox );
1595cdf0e10cSrcweir }
1596cdf0e10cSrcweir 
1597