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