Update ooo320-m1
[ooovba.git] / sc / source / ui / attrdlg / scdlgfact.cxx
blob26fe4bebe0641fa91ce7c61c32f8506641eac164
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: scdlgfact.cxx,v $
10 * $Revision: 1.14 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sc.hxx"
34 #if ! ENABLE_LAYOUT_EXPERIMENTAL
35 #undef ENABLE_LAYOUT
36 #endif
38 #undef SC_DLLIMPLEMENTATION
40 #include "scdlgfact.hxx"
42 #include "sc.hrc" //CHINA001
43 #include "scuiasciiopt.hxx" //add for ScImportAsciiDlg
44 #include "scuiautofmt.hxx" //add for ScAutoFormatDlg
45 #include "corodlg.hxx" //add for ScColRowLabelDlg
46 #include "crdlg.hxx" //add for ScColOrRowDlg
47 #include "dapidata.hxx" //add for ScDataPilotDatabaseDlg
48 #include "dapitype.hxx" //add for ScDataPilotSourceTypeDlg, ScDataPilotServiceDlg
49 #include "delcldlg.hxx" //add for ScDeleteCellDlg
50 #include "delcodlg.hxx" //add for ScDeleteContentsDlg
51 #include "filldlg.hxx" //add for ScFillSeriesDlg
52 #include "groupdlg.hxx" //add for ScGroupDlg
53 #include "inscldlg.hxx" //add for ScInsertCellDlg
54 #include "inscodlg.hxx" //add for ScInsertContentsDlg
55 #include "instbdlg.hxx" //add for ScInsertTableDlg
56 #include "lbseldlg.hxx" //add for ScSelEntryDlg
57 #include "linkarea.hxx" //add for ScLinkedAreaDlg
58 #include "mtrindlg.hxx" //add for ScMetricInputDlg
59 #include "mvtabdlg.hxx" //add for ScMoveTableDlg
60 #include "namecrea.hxx" //add for ScNameCreateDlg
61 #include "namepast.hxx" //add for ScNamePasteDlg
62 #include "pfiltdlg.hxx" //add for ScPivotFilterDlg
63 #include "pvfundlg.hxx" //add for ScDPFunctionDlg
64 #include "dpgroupdlg.hxx"
65 #include "scendlg.hxx" //add for ScNewScenarioDlg
66 #include "shtabdlg.hxx" //add for ScShowTabDlg
67 #include "strindlg.hxx" //add for ScStringInputDlg
68 #include "tabbgcolordlg.hxx"//add for ScTabBgColorDlg
69 #include "scuiimoptdlg.hxx" //add for ScImportOptionsDlg
70 #include "attrdlg.hxx" //add for ScAttrDlg
71 #include "hfedtdlg.hxx" //add for ScHFEditDlg
72 #include "styledlg.hxx" //add for ScStyleDlg
73 #include "subtdlg.hxx" //add for ScSubTotalDlg
74 #include "textdlgs.hxx" //add for ScCharDlg, ScParagraphDlg
75 #include "validate.hxx" //add for ScValidationDlg
76 #include "validate.hrc" //add for ScValidationDlg
77 #include "sortdlg.hxx" //add for ScSortDlg
78 #include "textimportoptions.hxx"
79 #include "opredlin.hxx" //add for ScRedlineOptionsTabPage
80 #include "tpcalc.hxx" //add for ScTpCalcOptions
81 #include "tpprint.hxx" //add for ScTpPrintOptions
82 #include "tpstat.hxx" //add for ScDocStatPage
83 #include "tpusrlst.hxx" //add for ScTpUserLists
84 #include "tpview.hxx" //add for ScTpContentOptions
85 #include "tpformula.hxx"
86 //for dataform
87 #include "datafdlg.hxx" //add for ScDataFormDlg
89 // ause
90 #include "editutil.hxx"
91 #include <sfx2/layout.hxx>
93 IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl); //add for ScColOrRowDlg
94 IMPL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl);//CHINA001 add for ScImportAsciiDlg
95 IMPL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl); //CHINA001 add for ScAutoFormatDlg
96 IMPL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl); //add for ScColRowLabelDlg
97 IMPL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl); //add for ScDataPilotDatabaseDlg
98 IMPL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl); //add for ScDataPilotSourceTypeDlg
99 IMPL_ABSTDLG_BASE(AbstractScDataPilotServiceDlg_Impl); //add for ScDataPilotServiceDlg
100 IMPL_ABSTDLG_BASE(AbstractScDeleteCellDlg_Impl); //add for ScDeleteCellDlg
101 //for dataform
102 IMPL_ABSTDLG_BASE(AbstractScDataFormDlg_Impl); //add for ScDataFormDlg
103 IMPL_ABSTDLG_BASE(AbstractScDeleteContentsDlg_Impl); //add for ScDeleteContentsDlg
104 IMPL_ABSTDLG_BASE(AbstractScFillSeriesDlg_Impl); //add for ScFillSeriesDlg
105 IMPL_ABSTDLG_BASE(AbstractScGroupDlg_Impl); //add for ScGroupDlg
106 IMPL_ABSTDLG_BASE(AbstractScInsertCellDlg_Impl); //add for ScInsertCellDlg
107 IMPL_ABSTDLG_BASE(AbstractScInsertContentsDlg_Impl); //add for ScInsertContentsDlg
108 IMPL_ABSTDLG_BASE(AbstractScInsertTableDlg_Impl); //add for ScInsertTableDlg
109 IMPL_ABSTDLG_BASE(AbstractScSelEntryDlg_Impl); //add for ScSelEntryDlg
110 IMPL_ABSTDLG2_BASE(AbstractScLinkedAreaDlg_Impl); //add for ScLinkedAreaDlg
111 IMPL_ABSTDLG_BASE(AbstractScMetricInputDlg_Impl); //add for ScMetricInputDlg
112 IMPL_ABSTDLG_BASE(AbstractScMoveTableDlg_Impl); //add for ScMoveTableDlg
113 IMPL_ABSTDLG_BASE(AbstractScNameCreateDlg_Impl); //add for ScNameCreateDlg
114 IMPL_ABSTDLG_BASE(AbstractScNamePasteDlg_Impl); //add for ScNamePasteDlg
115 IMPL_ABSTDLG_BASE(AbstractScPivotFilterDlg_Impl); //add for ScPivotFilterDlg
116 IMPL_ABSTDLG_BASE(AbstractScDPFunctionDlg_Impl); //add for ScDPFunctionDlg
117 IMPL_ABSTDLG_BASE(AbstractScDPSubtotalDlg_Impl); //add for ScDPSubtotalDlg
118 IMPL_ABSTDLG_BASE(AbstractScDPNumGroupDlg_Impl);
119 IMPL_ABSTDLG_BASE(AbstractScDPDateGroupDlg_Impl);
120 IMPL_ABSTDLG_BASE(AbstractScDPShowDetailDlg_Impl); //add for ScDPShowDetailDlg
121 IMPL_ABSTDLG_BASE(AbstractScNewScenarioDlg_Impl); //add for ScNewScenarioDlg
122 IMPL_ABSTDLG_BASE(AbstractScShowTabDlg_Impl); //add for ScShowTabDlg
123 IMPL_ABSTDLG_BASE(AbstractScStringInputDlg_Impl); //add for ScStringInputDlg
124 IMPL_ABSTDLG_BASE(AbstractScTabBgColorDlg_Impl); //add for ScTabBgColorDlg
125 IMPL_ABSTDLG_BASE(AbstractScImportOptionsDlg_Impl); //add for ScImportOptionsDlg
126 IMPL_ABSTDLG_BASE(AbstractScTextImportOptionsDlg_Impl);
127 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for ScAttrDlg, ScHFEditDlg, ScStyleDlg, ScSubTotalDlg,ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg
129 // AbstractTabDialog_Impl begin
130 void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
132 pDlg->SetCurPageId( nId );
135 const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
137 return pDlg->GetOutputItemSet();
139 //add by CHINA001
140 const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
142 return pDlg->GetInputRanges( pItem );
144 //add by CHINA001
145 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
147 pDlg->SetInputSet( pInSet );
149 //From class Window.
150 void AbstractTabDialog_Impl::SetText( const XubString& rStr )
152 pDlg->SetText( rStr );
154 String AbstractTabDialog_Impl::GetText() const
156 return pDlg->GetText();
159 #if ENABLE_LAYOUT
160 namespace layout
162 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for ScAttrDlg, ScHFEditDlg, ScStyleDlg, ScSubTotalDlg,ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg
164 // AbstractTabDialog_Impl begin
165 void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
167 pDlg->SetCurPageId( nId );
170 const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
172 return pDlg->GetOutputItemSet();
174 //add by CHINA001
175 const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
177 return pDlg->GetInputRanges( pItem );
179 //add by CHINA001
180 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
182 pDlg->SetInputSet( pInSet );
184 //From class Window.
185 void AbstractTabDialog_Impl::SetText( const XubString& rStr )
187 pDlg->SetText( rStr );
189 String AbstractTabDialog_Impl::GetText() const
191 return pDlg->GetText();
194 #endif /* ENABLE_LAYOUT */
196 //add for AbstractTabDialog_Impl end
197 // AbstractScImportAsciiDlg_Impl begin
198 void AbstractScImportAsciiDlg_Impl::GetOptions( ScAsciiOptions& rOpt )
200 pDlg->GetOptions( rOpt );
203 void AbstractScImportAsciiDlg_Impl::SetTextToColumnsMode()
205 pDlg->SetTextToColumnsMode();
208 // AbstractScImportAsciiDlg_Impl end
210 //AbstractScAutoFormatDlg_Impl begin
211 USHORT AbstractScAutoFormatDlg_Impl::GetIndex() const
213 return pDlg->GetIndex();
216 String AbstractScAutoFormatDlg_Impl::GetCurrFormatName()
218 return pDlg->GetCurrFormatName();
221 //AbstractScAutoFormatDlg_Impl end
225 //AbstractScColRowLabelDlg_Impl begin
226 BOOL AbstractScColRowLabelDlg_Impl::IsCol()
228 return pDlg->IsCol();
230 BOOL AbstractScColRowLabelDlg_Impl::IsRow()
232 return pDlg->IsRow();
235 //AbstractScColRowLabelDlg_Impl end
238 //AbstractScDataPilotDatabaseDlg_Impl begin
241 void AbstractScDataPilotDatabaseDlg_Impl::GetValues( ScImportSourceDesc& rDesc )
243 pDlg->GetValues(rDesc);
246 //AbstractScDataPilotDatabaseDlg_Impl end
248 //AbstractScDataPilotSourceTypeDlg_Impl begin
250 BOOL AbstractScDataPilotSourceTypeDlg_Impl::IsDatabase() const
252 return pDlg->IsDatabase();
255 BOOL AbstractScDataPilotSourceTypeDlg_Impl::IsExternal() const
257 return pDlg->IsExternal();
260 //AbstractScDataPilotSourceTypeDlg_Impl end
263 // AbstractScDataPilotServiceDlg_Impl begin
264 String AbstractScDataPilotServiceDlg_Impl::GetServiceName() const
266 return pDlg->GetServiceName();
269 String AbstractScDataPilotServiceDlg_Impl::GetParSource() const
271 return pDlg->GetParSource();
273 String AbstractScDataPilotServiceDlg_Impl::GetParName() const
275 return pDlg->GetParName();
277 String AbstractScDataPilotServiceDlg_Impl::GetParUser() const
279 return pDlg->GetParUser();
281 String AbstractScDataPilotServiceDlg_Impl::GetParPass() const
283 return pDlg->GetParPass();
286 //AbstractScDataPilotServiceDlg_Impl end
288 //AbstractScDeleteCellDlg_Impl begin
289 DelCellCmd AbstractScDeleteCellDlg_Impl::GetDelCellCmd() const //add for ScDeleteCellDlg
291 return pDlg->GetDelCellCmd();
293 //AbstractScDeleteCellDlg_Impl end
295 //add for AbstractScDeleteContentsDlg_Impl begin
296 void AbstractScDeleteContentsDlg_Impl::DisableObjects()
298 pDlg->DisableObjects();
300 USHORT AbstractScDeleteContentsDlg_Impl::GetDelContentsCmdBits() const
302 return pDlg->GetDelContentsCmdBits();
304 //add for AbstractScDeleteContentsDlg_Impl end
306 //add for AbstractScFillSeriesDlg_Impl begin
307 FillDir AbstractScFillSeriesDlg_Impl::GetFillDir() const
309 return pDlg->GetFillDir();
312 FillCmd AbstractScFillSeriesDlg_Impl::GetFillCmd() const
314 return pDlg->GetFillCmd();
317 FillDateCmd AbstractScFillSeriesDlg_Impl::GetFillDateCmd() const
319 return pDlg->GetFillDateCmd();
322 double AbstractScFillSeriesDlg_Impl::GetStart() const
324 return pDlg->GetStart();
326 double AbstractScFillSeriesDlg_Impl::GetStep() const
328 return pDlg->GetStep();
330 double AbstractScFillSeriesDlg_Impl::GetMax() const
332 return pDlg->GetMax();
334 String AbstractScFillSeriesDlg_Impl::GetStartStr() const
336 return pDlg->GetStartStr();
338 void AbstractScFillSeriesDlg_Impl::SetEdStartValEnabled(BOOL bFlag)
340 pDlg->SetEdStartValEnabled(bFlag);
342 //add for AbstractScFillSeriesDlg_Impl end
344 //add for AbstractScGroupDlg_Impl begin
345 BOOL AbstractScGroupDlg_Impl::GetColsChecked() const
347 return pDlg->GetColsChecked();
349 //add for AbstractScGroupDlg_Impl end
352 //add for AbstractScInsertCellDlg_Impl begin
353 InsCellCmd AbstractScInsertCellDlg_Impl::GetInsCellCmd() const
355 return pDlg->GetInsCellCmd();
358 //add for AbstractScInsertCellDlg_Impl end
361 //add for AbstractScInsertContentsDlg_Impl begin
362 USHORT AbstractScInsertContentsDlg_Impl::GetInsContentsCmdBits() const
364 return pDlg->GetInsContentsCmdBits();
368 USHORT AbstractScInsertContentsDlg_Impl::GetFormulaCmdBits() const
370 return pDlg->GetFormulaCmdBits();
372 BOOL AbstractScInsertContentsDlg_Impl::IsSkipEmptyCells() const
374 return pDlg->IsSkipEmptyCells();
376 BOOL AbstractScInsertContentsDlg_Impl::IsLink() const
378 return pDlg->IsLink();
380 void AbstractScInsertContentsDlg_Impl::SetFillMode( BOOL bSet )
382 pDlg->SetFillMode( bSet );
385 void AbstractScInsertContentsDlg_Impl::SetOtherDoc( BOOL bSet )
387 pDlg->SetOtherDoc( bSet );
390 BOOL AbstractScInsertContentsDlg_Impl::IsTranspose() const
392 return pDlg->IsTranspose();
394 void AbstractScInsertContentsDlg_Impl::SetChangeTrack( BOOL bSet )
396 pDlg->SetChangeTrack( bSet );
398 void AbstractScInsertContentsDlg_Impl::SetCellShiftDisabled( int nDisable )
400 pDlg->SetCellShiftDisabled( nDisable );
403 InsCellCmd AbstractScInsertContentsDlg_Impl::GetMoveMode()
405 return pDlg->GetMoveMode();
407 //add for AbstractScInsertContentsDlg_Impl end
410 //add for AbstractScInsertTableDlg_Impl begin
411 BOOL AbstractScInsertTableDlg_Impl::GetTablesFromFile()
413 return pDlg->GetTablesFromFile();
416 BOOL AbstractScInsertTableDlg_Impl::GetTablesAsLink()
418 return pDlg->GetTablesAsLink();
420 const String* AbstractScInsertTableDlg_Impl::GetFirstTable( USHORT* pN )
422 return pDlg->GetFirstTable( pN );
424 ScDocShell* AbstractScInsertTableDlg_Impl::GetDocShellTables()
426 return pDlg->GetDocShellTables();
428 BOOL AbstractScInsertTableDlg_Impl::IsTableBefore()
430 return pDlg->IsTableBefore();
432 USHORT AbstractScInsertTableDlg_Impl::GetTableCount()
434 return pDlg->GetTableCount();
436 const String* AbstractScInsertTableDlg_Impl::GetNextTable( USHORT* pN )
438 return pDlg->GetNextTable( pN );
440 //add for AbstractScInsertTableDlg_Impl end
442 //add for AbstractScSelEntryDlg_Impl begin
443 String AbstractScSelEntryDlg_Impl::GetSelectEntry() const
445 return pDlg->GetSelectEntry();
447 //add for AbstractScSelEntryDlg_Impl end
449 //add for AbstractScLinkedAreaDlg_Impl begin
450 void AbstractScLinkedAreaDlg_Impl::InitFromOldLink( const String& rFile, const String& rFilter,
451 const String& rOptions, const String& rSource,
452 ULONG nRefresh )
454 pDlg->InitFromOldLink( rFile, rFilter, rOptions, rSource, nRefresh);
457 String AbstractScLinkedAreaDlg_Impl::GetURL()
459 return pDlg->GetURL();
461 String AbstractScLinkedAreaDlg_Impl::GetFilter()
463 return pDlg->GetFilter();
465 String AbstractScLinkedAreaDlg_Impl::GetOptions()
467 return pDlg->GetOptions();
469 String AbstractScLinkedAreaDlg_Impl::GetSource()
471 return pDlg->GetSource();
473 ULONG AbstractScLinkedAreaDlg_Impl::GetRefresh()
475 return pDlg->GetRefresh();
477 //add for AbstractScLinkedAreaDlg_Impl end
480 //add for AbstractScMetricInputDlg_Impl begin
481 long AbstractScMetricInputDlg_Impl::GetInputValue( FieldUnit eUnit ) const
484 return pDlg->GetInputValue( eUnit );
486 //add for AbstractScMetricInputDlg_Impl end
488 //add for AbstractScMoveTableDlg_Impl begin
489 USHORT AbstractScMoveTableDlg_Impl::GetSelectedDocument() const //add for ScMoveTableDlg
491 return pDlg->GetSelectedDocument();
494 USHORT AbstractScMoveTableDlg_Impl::GetSelectedTable() const
496 return pDlg->GetSelectedTable();
498 BOOL AbstractScMoveTableDlg_Impl::GetCopyTable() const
500 return pDlg->GetCopyTable();
502 void AbstractScMoveTableDlg_Impl::SetCopyTable(BOOL bFla)
504 return pDlg->SetCopyTable( bFla );
506 void AbstractScMoveTableDlg_Impl::EnableCopyTable(BOOL bFlag)
508 return pDlg->EnableCopyTable( bFlag);
510 //add for AbstractScMoveTableDlg_Impl end
512 //add for AbstractScNameCreateDlg_Impl begin
513 USHORT AbstractScNameCreateDlg_Impl::GetFlags() const //add for ScNameCreateDlg
515 return pDlg->GetFlags();
517 //add for AbstractScNameCreateDlg_Impl end
519 //add for AbstractScNamePasteDlg_Impl begin
520 String AbstractScNamePasteDlg_Impl::GetSelectedName() const //add for ScNamePasteDlg
522 return pDlg->GetSelectedName();
525 //add for AbstractScNamePasteDlg_Impl end
527 //add for AbstractScPivotFilterDlg_Impl begin
528 const ScQueryItem& AbstractScPivotFilterDlg_Impl::GetOutputItem() //add for ScPivotFilterDlg
530 return pDlg->GetOutputItem();
532 //add for AbstractScPivotFilterDlg_Impl end
534 //add for AbstractScDPFunctionDlg_Impl begin
535 USHORT AbstractScDPFunctionDlg_Impl::GetFuncMask() const //add for ScDPFunctionDlg
537 return pDlg->GetFuncMask();
539 ::com::sun::star::sheet::DataPilotFieldReference AbstractScDPFunctionDlg_Impl::GetFieldRef() const
541 return pDlg->GetFieldRef();
543 //add for AbstractScDPFunctionDlg_Impl end
545 //add for AbstractScDPSubtotalDlg_Impl begin
546 USHORT AbstractScDPSubtotalDlg_Impl::GetFuncMask() const //add for ScDPSubtotalDlg
548 return pDlg->GetFuncMask();
550 void AbstractScDPSubtotalDlg_Impl::FillLabelData( ScDPLabelData& rLabelData ) const
552 pDlg->FillLabelData( rLabelData );
554 //add for AbstractScDPSubtotalDlg_Impl end
556 ScDPNumGroupInfo AbstractScDPNumGroupDlg_Impl::GetGroupInfo() const
558 return pDlg->GetGroupInfo();
561 ScDPNumGroupInfo AbstractScDPDateGroupDlg_Impl::GetGroupInfo() const
563 return pDlg->GetGroupInfo();
566 sal_Int32 AbstractScDPDateGroupDlg_Impl::GetDatePart() const
568 return pDlg->GetDatePart();
571 //add for AbstractScDPShowDetailDlg_Impl begin
572 String AbstractScDPShowDetailDlg_Impl::GetDimensionName() const
574 return pDlg->GetDimensionName();
576 //add for AbstractScDPShowDetailDlg_Impl end
578 //add for AbstractScNewScenarioDlg_Impl begin
579 void AbstractScNewScenarioDlg_Impl::SetScenarioData( const String& rName, const String& rComment,
580 const Color& rColor, USHORT nFlags )
582 pDlg->SetScenarioData(rName,rComment, rColor,nFlags);
585 void AbstractScNewScenarioDlg_Impl::GetScenarioData( String& rName, String& rComment,
586 Color& rColor, USHORT& rFlags ) const
588 pDlg->GetScenarioData( rName,rComment,rColor,rFlags);
591 //add for AbstractScNewScenarioDlg_Impl end
593 //add for AbstractScShowTabDlg_Impl begin
594 void AbstractScShowTabDlg_Impl::Insert( const String& rString, BOOL bSelected ) //add for ScShowTabDlg
596 pDlg->Insert( rString, bSelected);
599 USHORT AbstractScShowTabDlg_Impl::GetSelectEntryCount() const
601 return pDlg->GetSelectEntryCount();
603 void AbstractScShowTabDlg_Impl::SetDescription(
604 const String& rTitle, const String& rFixedText,
605 ULONG nDlgHelpId, ULONG nLbHelpId )
607 pDlg->SetDescription( rTitle, rFixedText,nDlgHelpId, nLbHelpId );
609 USHORT AbstractScShowTabDlg_Impl::GetSelectEntryPos(USHORT nPos) const
611 return pDlg->GetSelectEntryPos( nPos);
613 String AbstractScShowTabDlg_Impl::GetSelectEntry(USHORT nPos) const
615 return pDlg->GetSelectEntry(nPos);
617 //add for AbstractScShowTabDlg_Impl end
619 //add for AbstractScStringInputDlg_Impl begin
620 void AbstractScStringInputDlg_Impl::GetInputString( String& rString ) const //add for ScStringInputDlg
622 pDlg->GetInputString( rString );
624 //add for AbstractScStringInputDlg_Impl end
626 //add for AbstractScTabBgColorDlg_Impl begin
627 void AbstractScTabBgColorDlg_Impl::GetSelectedColor( Color& rColor ) const //add for ScTabBgColorDlg
629 pDlg->GetSelectedColor( rColor );
631 //add for AbstractScTabBgColorDlg_Impl end
634 //add for AbstractScImportOptionsDlg_Impl begin
635 void AbstractScImportOptionsDlg_Impl::GetImportOptions( ScImportOptions& rOptions ) const //add for ScImportOptionsDlg
637 pDlg->GetImportOptions(rOptions);
639 // add for AbstractScImportOptionsDlg_Impl end
641 //add for AbstractScLangChooserDlg_Impl begin
642 LanguageType AbstractScTextImportOptionsDlg_Impl::GetLanguageType() const
644 return pDlg->getLanguageType();
647 bool AbstractScTextImportOptionsDlg_Impl::IsDateConversionSet() const
649 return pDlg->isDateConversionSet();
652 //add for AbstractScLangChooserDlg_Impl end
654 // =========================Factories for createdialog ===================
656 //add for ScImportAsciiDlg begin
657 AbstractScImportAsciiDlg * ScAbstractDialogFactory_Impl::CreateScImportAsciiDlg ( Window* pParent, String aDatName,
658 SvStream* pInStream, int nId, sal_Unicode cSep )
660 ScImportAsciiDlg* pDlg=NULL;
661 switch ( nId )
663 case RID_SCDLG_ASCII :
664 pDlg = new ScImportAsciiDlg( pParent, aDatName,pInStream, cSep );
665 break;
666 default:
667 break;
670 if ( pDlg )
671 return new AbstractScImportAsciiDlg_Impl( pDlg );
672 return 0;
674 // ScImportAsciiDlg end
676 AbstractScTextImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScTextImportOptionsDlg( Window* pParent, int nId )
678 ScTextImportOptionsDlg* pDlg = NULL;
679 switch (nId)
681 case RID_SCDLG_TEXT_IMPORT_OPTIONS:
682 pDlg = new ScTextImportOptionsDlg(pParent);
683 break;
684 default:
688 return pDlg ? new AbstractScTextImportOptionsDlg_Impl(pDlg) : NULL;
691 //add for ScAutoFormatDlg begin
693 AbstractScAutoFormatDlg * ScAbstractDialogFactory_Impl::CreateScAutoFormatDlg( Window* pParent, //add for ScAutoFormatDlg
694 ScAutoFormat* pAutoFormat,
695 const ScAutoFormatData* pSelFormatData,
696 ScDocument* pDoc,
697 int nId)
699 ScAutoFormatDlg* pDlg=NULL;
700 switch ( nId )
702 case RID_SCDLG_AUTOFORMAT :
703 pDlg = new ScAutoFormatDlg( pParent, pAutoFormat,pSelFormatData, pDoc );
704 break;
705 default:
706 break;
709 if ( pDlg )
710 return new AbstractScAutoFormatDlg_Impl( pDlg );
711 return 0;
713 //add for ScAutoFormatDlg end
715 //add for ScColRowLabelDlg begin
717 AbstractScColRowLabelDlg * ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(Window* pParent, //add for ScColRowLabelDlg
718 int nId,
719 BOOL bCol ,
720 BOOL bRow)
722 ScColRowLabelDlg* pDlg=NULL;
723 switch ( nId )
725 case RID_SCDLG_CHARTCOLROW :
726 pDlg = new ScColRowLabelDlg( pParent, bCol,bRow );
727 break;
728 default:
729 break;
732 if ( pDlg )
733 return new AbstractScColRowLabelDlg_Impl( pDlg );
734 return 0;
736 //add for ScColRowLabelDlg end
739 //add for ScColOrRowDlg begin
741 VclAbstractDialog * ScAbstractDialogFactory_Impl::CreateScColOrRowDlg(Window* pParent,
742 const String& rStrTitle,
743 const String& rStrLabel,
744 int nId,
745 BOOL bColDefault)
747 Dialog * pDlg=NULL;
748 switch ( nId )
750 case RID_SCDLG_COLORROW :
751 pDlg = new ScColOrRowDlg( pParent, rStrTitle,rStrLabel,bColDefault );
752 break;
753 default:
754 break;
757 if ( pDlg )
758 return new VclAbstractDialog_Impl( pDlg );
759 return 0;
761 //add for ScColOrRowDlg end
763 //add for ScSortWarningDlg begin
764 VclAbstractDialog * ScAbstractDialogFactory_Impl::CreateScSortWarningDlg( Window* pParent, const String& rExtendText,
765 const String& rCurrentText, int nId )
767 Dialog * pDlg=NULL;
768 switch ( nId )
770 case RID_SCDLG_SORT_WARNING:
771 pDlg = new ScSortWarningDlg( pParent, rExtendText, rCurrentText );
772 break;
773 default:
774 break;
776 if( pDlg )
777 return new VclAbstractDialog_Impl( pDlg );
778 return 0;
780 //add for ScSortWarningDlg end
782 //add for ScDataPilotDatabaseDlg begin
784 AbstractScDataPilotDatabaseDlg * ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg (Window* pParent ,
785 int nId ) //add for ScDataPilotDatabaseDlg
787 ScDataPilotDatabaseDlg * pDlg=NULL;
788 switch ( nId )
790 case RID_SCDLG_DAPIDATA :
791 pDlg = new ScDataPilotDatabaseDlg( pParent );
792 break;
793 default:
794 break;
797 if ( pDlg )
798 return new AbstractScDataPilotDatabaseDlg_Impl( pDlg );
799 return 0;
801 //add for ScDataPilotDatabaseDlg end
803 //add for ScDataPilotSourceTypeDlg begin
804 AbstractScDataPilotSourceTypeDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg( Window* pParent,
805 BOOL bEnableExternal,
806 int nId )
808 ScDataPilotSourceTypeDlg * pDlg=NULL;
809 switch ( nId )
811 case RID_SCDLG_DAPITYPE :
812 pDlg = new ScDataPilotSourceTypeDlg( pParent, bEnableExternal );
813 break;
814 default:
815 break;
818 if ( pDlg )
819 return new AbstractScDataPilotSourceTypeDlg_Impl( pDlg );
820 return 0;
823 // add for ScDataPilotSourceTypeDlg end
826 //add for ScDataPilotServiceDlg begin
827 AbstractScDataPilotServiceDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotServiceDlg( Window* pParent,
828 const com::sun::star::uno::Sequence<rtl::OUString>& rServices,
829 int nId )
831 ScDataPilotServiceDlg * pDlg=NULL;
832 switch ( nId )
834 case RID_SCDLG_DAPISERVICE :
835 pDlg = new ScDataPilotServiceDlg( pParent, rServices );
836 break;
837 default:
838 break;
841 if ( pDlg )
842 return new AbstractScDataPilotServiceDlg_Impl( pDlg );
843 return 0;
846 // add for ScDataPilotServiceDlg end
848 //add for ScDeleteCellDlg begin
849 AbstractScDeleteCellDlg* ScAbstractDialogFactory_Impl::CreateScDeleteCellDlg( Window* pParent, int nId,
850 BOOL bDisallowCellMove )
852 ScDeleteCellDlg * pDlg=NULL;
853 switch ( nId )
855 case RID_SCDLG_DELCELL :
856 pDlg = new ScDeleteCellDlg( pParent, bDisallowCellMove );
857 break;
858 default:
859 break;
862 if ( pDlg )
863 return new AbstractScDeleteCellDlg_Impl( pDlg );
864 return 0;
867 //add for ScDeleteCellDlg end
869 //add for ScDataFormDlg begin
870 AbstractScDataFormDlg* ScAbstractDialogFactory_Impl::CreateScDataFormDlg( Window* pParent, int nId, ScTabViewShell* pTabViewShell )
872 ScDataFormDlg * pDlg=NULL;
873 switch ( nId )
875 case RID_SCDLG_DATAFORM :
876 pDlg = new ScDataFormDlg( pParent, pTabViewShell);
877 break;
878 default:
879 break;
882 if ( pDlg )
883 return new AbstractScDataFormDlg_Impl( pDlg );
884 return 0;
887 //add for ScDataFormDlg end
889 //add for ScDeleteContentsDlg begin
890 AbstractScDeleteContentsDlg* ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(Window* pParent,int nId, //add for ScDeleteContentsDlg
891 USHORT nCheckDefaults )
893 ScDeleteContentsDlg * pDlg=NULL;
894 switch ( nId )
896 case RID_SCDLG_DELCONT :
897 pDlg = new ScDeleteContentsDlg( pParent, nCheckDefaults );
898 break;
899 default:
900 break;
903 if ( pDlg )
904 return new AbstractScDeleteContentsDlg_Impl( pDlg );
905 return 0;
908 //add for ScDeleteContentsDlg end
910 //add for ScFillSeriesDlg begin
911 AbstractScFillSeriesDlg* ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg( Window* pParent, //add for ScFillSeriesDlg
912 ScDocument& rDocument,
913 FillDir eFillDir,
914 FillCmd eFillCmd,
915 FillDateCmd eFillDateCmd,
916 String aStartStr,
917 double fStep,
918 double fMax,
919 USHORT nPossDir,
920 int nId)
922 ScFillSeriesDlg * pDlg=NULL;
923 switch ( nId )
925 case RID_SCDLG_FILLSERIES :
926 pDlg = new ScFillSeriesDlg( pParent, rDocument,eFillDir, eFillCmd,eFillDateCmd, aStartStr,fStep,fMax,nPossDir);
927 break;
928 default:
929 break;
932 if ( pDlg )
933 return new AbstractScFillSeriesDlg_Impl( pDlg );
934 return 0;
937 //add for ScFillSeriesDlg end
939 //add for ScGroupDlg begin
940 AbstractScGroupDlg* ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg( Window* pParent,
941 USHORT nResId,
942 int nId,
943 BOOL bUnGroup ,
944 BOOL bRows )
946 ScGroupDlg * pDlg=NULL;
947 switch ( nId )
949 case RID_SCDLG_GRP_KILL :
950 case RID_SCDLG_GRP_MAKE :
951 pDlg = new ScGroupDlg( pParent, nResId,bUnGroup, bRows);
952 break;
953 default:
954 break;
957 if ( pDlg )
958 return new AbstractScGroupDlg_Impl( pDlg );
959 return 0;
962 //add for ScGroupDlg end
965 //add for ScInsertCellDlg begin
966 AbstractScInsertCellDlg * ScAbstractDialogFactory_Impl::CreateScInsertCellDlg( Window* pParent, //add for ScInsertCellDlg
967 int nId,
968 BOOL bDisallowCellMove )
970 ScInsertCellDlg * pDlg=NULL;
971 switch ( nId )
973 case RID_SCDLG_INSCELL :
974 pDlg = new ScInsertCellDlg( pParent, bDisallowCellMove);
975 break;
976 default:
977 break;
980 if ( pDlg )
981 return new AbstractScInsertCellDlg_Impl( pDlg );
982 return 0;
985 //add for ScInsertCellDlg end
987 //add for ScInsertContentsDlg begin
988 AbstractScInsertContentsDlg * ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg( Window* pParent,
989 int nId,
990 USHORT nCheckDefaults,
991 const String* pStrTitle )
993 ScInsertContentsDlg * pDlg=NULL;
994 switch ( nId )
996 case RID_SCDLG_INSCONT :
997 pDlg = new ScInsertContentsDlg( pParent, nCheckDefaults,pStrTitle );
998 break;
999 default:
1000 break;
1003 if ( pDlg )
1004 return new AbstractScInsertContentsDlg_Impl( pDlg );
1005 return 0;
1007 //add for ScInsertContentsDlg end
1009 //add for ScInsertTableDlg begin
1010 AbstractScInsertTableDlg * ScAbstractDialogFactory_Impl::CreateScInsertTableDlg ( Window* pParent, ScViewData& rViewData,
1011 SCTAB nTabCount, bool bFromFile, int nId)
1013 ScInsertTableDlg * pDlg=NULL;
1014 switch ( nId )
1016 case RID_SCDLG_INSERT_TABLE :
1017 pDlg = new ScInsertTableDlg( pParent, rViewData,nTabCount, bFromFile );
1018 break;
1019 default:
1020 break;
1023 if ( pDlg )
1024 return new AbstractScInsertTableDlg_Impl( pDlg );
1025 return 0;
1027 //add for ScInsertTableDlg end
1029 // add for ScSelEntryDlg begin
1030 AbstractScSelEntryDlg * ScAbstractDialogFactory_Impl::CreateScSelEntryDlg ( Window* pParent,
1031 USHORT nResId,
1032 const String& aTitle,
1033 const String& aLbTitle,
1034 List& aEntryList,
1035 int nId )
1037 ScSelEntryDlg * pDlg=NULL;
1038 switch ( nId )
1040 case RID_SCDLG_SELECTDB :
1041 pDlg = new ScSelEntryDlg( pParent, nResId,aTitle, aLbTitle, aEntryList );
1042 break;
1043 default:
1044 break;
1047 if ( pDlg )
1048 return new AbstractScSelEntryDlg_Impl( pDlg );
1049 return 0;
1051 // add for ScSelEntryDlg end
1053 //add for ScLinkedAreaDlg begin
1054 AbstractScLinkedAreaDlg * ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg ( Window* pParent,
1055 int nId)
1057 ScLinkedAreaDlg * pDlg=NULL;
1058 switch ( nId )
1060 case RID_SCDLG_LINKAREA :
1061 pDlg = new ScLinkedAreaDlg( pParent );
1062 break;
1063 default:
1064 break;
1067 if ( pDlg )
1068 return new AbstractScLinkedAreaDlg_Impl( pDlg );
1069 return 0;
1071 //add for ScLinkedAreaDlg end
1073 //add for ScMetricInputDlg begin
1074 AbstractScMetricInputDlg * ScAbstractDialogFactory_Impl::CreateScMetricInputDlg ( Window* pParent,
1075 USHORT nResId, // Ableitung fuer jeden Dialog!
1076 long nCurrent,
1077 long nDefault,
1078 int nId ,
1079 FieldUnit eFUnit,
1080 USHORT nDecimals,
1081 long nMaximum ,
1082 long nMinimum,
1083 long nFirst,
1084 long nLast )
1086 ScMetricInputDlg * pDlg=NULL;
1087 switch ( nId )
1089 case RID_SCDLG_ROW_MAN :
1090 case RID_SCDLG_ROW_OPT :
1091 case RID_SCDLG_COL_MAN :
1092 case RID_SCDLG_COL_OPT :
1093 pDlg = new ScMetricInputDlg( pParent , nResId,nCurrent ,nDefault, eFUnit,
1094 nDecimals, nMaximum , nMinimum , nFirst, nLast);
1095 break;
1096 default:
1097 break;
1100 if ( pDlg )
1101 return new AbstractScMetricInputDlg_Impl( pDlg );
1102 return 0;
1104 //add for ScMetricInputDlg end
1107 //add for ScMoveTableDlg begin
1108 AbstractScMoveTableDlg * ScAbstractDialogFactory_Impl::CreateScMoveTableDlg( Window* pParent, int nId )
1110 ScMoveTableDlg * pDlg=NULL;
1111 switch ( nId )
1113 case RID_SCDLG_MOVETAB :
1114 pDlg = new ScMoveTableDlg( pParent );
1115 break;
1116 default:
1117 break;
1120 if ( pDlg )
1121 return new AbstractScMoveTableDlg_Impl( pDlg );
1122 return 0;
1124 //add for ScMoveTableDlg end
1127 //add for ScNameCreateDlg begin
1128 AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg ( Window * pParent, USHORT nFlags, int nId )
1130 ScNameCreateDlg * pDlg=NULL;
1131 switch ( nId )
1133 case RID_SCDLG_NAMES_CREATE :
1134 pDlg = new ScNameCreateDlg( pParent, nFlags );
1135 break;
1136 default:
1137 break;
1140 if ( pDlg )
1141 return new AbstractScNameCreateDlg_Impl( pDlg );
1142 return 0;
1144 //add for ScNameCreateDlg end
1147 //add for ScNamePasteDlg begin
1148 AbstractScNamePasteDlg * ScAbstractDialogFactory_Impl::CreateScNamePasteDlg ( Window * pParent, const ScRangeName* pList,
1149 int nId , BOOL bInsList )
1151 ScNamePasteDlg * pDlg=NULL;
1152 switch ( nId )
1154 case RID_SCDLG_NAMES_PASTE :
1155 pDlg = new ScNamePasteDlg( pParent, pList, bInsList );
1156 break;
1157 default:
1158 break;
1161 if ( pDlg )
1162 return new AbstractScNamePasteDlg_Impl( pDlg );
1163 return 0;
1165 //add for ScNamePasteDlg end
1167 //add for ScPivotFilterDlg begin
1168 AbstractScPivotFilterDlg * ScAbstractDialogFactory_Impl::CreateScPivotFilterDlg ( Window* pParent,
1169 const SfxItemSet& rArgSet, USHORT nSourceTab , int nId )
1171 ScPivotFilterDlg * pDlg=NULL;
1172 switch ( nId )
1174 case RID_SCDLG_PIVOTFILTER :
1175 pDlg = new ScPivotFilterDlg( pParent, rArgSet, nSourceTab );
1176 break;
1177 default:
1178 break;
1181 if ( pDlg )
1182 return new AbstractScPivotFilterDlg_Impl( pDlg );
1183 return 0;
1185 //add for ScPivotFilterDlg end
1188 //add for ScDPFunctionDlg begin
1189 AbstractScDPFunctionDlg * ScAbstractDialogFactory_Impl::CreateScDPFunctionDlg ( Window* pParent,
1190 int nId,
1191 const ScDPLabelDataVec& rLabelVec,
1192 const ScDPLabelData& rLabelData,
1193 const ScDPFuncData& rFuncData )
1195 ScDPFunctionDlg * pDlg=NULL;
1196 switch ( nId )
1198 case RID_SCDLG_DPDATAFIELD :
1199 pDlg = new ScDPFunctionDlg( pParent, rLabelVec, rLabelData, rFuncData );
1200 break;
1201 default:
1202 break;
1205 if ( pDlg )
1206 return new AbstractScDPFunctionDlg_Impl( pDlg );
1207 return 0;
1209 //add for ScDPFunctionDlg end
1211 //add for ScDPSubtotalDlg begin
1212 AbstractScDPSubtotalDlg * ScAbstractDialogFactory_Impl::CreateScDPSubtotalDlg ( Window* pParent,
1213 int nId,
1214 ScDPObject& rDPObj,
1215 const ScDPLabelData& rLabelData,
1216 const ScDPFuncData& rFuncData,
1217 const ScDPNameVec& rDataFields,
1218 bool bEnableLayout )
1220 ScDPSubtotalDlg * pDlg=NULL;
1221 switch ( nId )
1223 case RID_SCDLG_PIVOTSUBT :
1224 pDlg = new ScDPSubtotalDlg( pParent, rDPObj, rLabelData, rFuncData, rDataFields, bEnableLayout );
1225 break;
1226 default:
1227 break;
1230 if ( pDlg )
1231 return new AbstractScDPSubtotalDlg_Impl( pDlg );
1232 return 0;
1234 //add for ScDPSubtotalDlg end
1236 AbstractScDPNumGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPNumGroupDlg(
1237 Window* pParent, int nId, const ScDPNumGroupInfo& rInfo )
1239 if( nId == RID_SCDLG_DPNUMGROUP )
1240 return new AbstractScDPNumGroupDlg_Impl( new ScDPNumGroupDlg( pParent, rInfo ) );
1241 return 0;
1244 AbstractScDPDateGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPDateGroupDlg(
1245 Window* pParent, int nId,
1246 const ScDPNumGroupInfo& rInfo, sal_Int32 nDatePart, const Date& rNullDate )
1248 if( nId == RID_SCDLG_DPDATEGROUP )
1249 return new AbstractScDPDateGroupDlg_Impl( new ScDPDateGroupDlg( pParent, rInfo, nDatePart, rNullDate ) );
1250 return 0;
1253 //add for ScDPShowDetailDlg begin
1254 AbstractScDPShowDetailDlg * ScAbstractDialogFactory_Impl::CreateScDPShowDetailDlg (
1255 Window* pParent, int nId, ScDPObject& rDPObj, USHORT nOrient )
1257 if( nId == RID_SCDLG_DPSHOWDETAIL )
1258 return new AbstractScDPShowDetailDlg_Impl( new ScDPShowDetailDlg( pParent, rDPObj, nOrient ) );
1259 return 0;
1261 //add for ScDPShowDetailDlg end
1263 //add for ScNewScenarioDlg begin
1264 AbstractScNewScenarioDlg * ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg ( Window* pParent, const String& rName,
1265 int nId,
1266 BOOL bEdit , BOOL bSheetProtected )
1268 ScNewScenarioDlg * pDlg=NULL;
1269 switch ( nId )
1271 case RID_SCDLG_NEWSCENARIO :
1272 pDlg = new ScNewScenarioDlg( pParent, rName, bEdit,bSheetProtected );
1273 break;
1274 default:
1275 break;
1278 if ( pDlg )
1279 return new AbstractScNewScenarioDlg_Impl( pDlg );
1280 return 0;
1282 //add for ScNewScenarioDlg end
1284 //add for ScShowTabDlg begin
1285 AbstractScShowTabDlg * ScAbstractDialogFactory_Impl::CreateScShowTabDlg ( Window* pParent, int nId )
1287 ScShowTabDlg * pDlg=NULL;
1288 switch ( nId )
1290 case RID_SCDLG_SHOW_TAB :
1291 pDlg = new ScShowTabDlg( pParent);
1292 break;
1293 default:
1294 break;
1297 if ( pDlg )
1298 return new AbstractScShowTabDlg_Impl( pDlg );
1299 return 0;
1302 //add for ScShowTabDlg end
1305 //add for ScStringInputDlg begin
1306 AbstractScStringInputDlg * ScAbstractDialogFactory_Impl::CreateScStringInputDlg ( Window* pParent,
1307 const String& rTitle,
1308 const String& rEditTitle,
1309 const String& rDefault,
1310 ULONG nHelpId ,
1311 int nId )
1313 ScStringInputDlg * pDlg=NULL;
1314 switch ( nId )
1316 case RID_SCDLG_STRINPUT :
1317 pDlg = new ScStringInputDlg( pParent, rTitle, rEditTitle,rDefault, nHelpId );
1318 break;
1319 default:
1320 break;
1323 if ( pDlg )
1324 return new AbstractScStringInputDlg_Impl( pDlg );
1325 return 0;
1327 //add for ScStringInputDlg end
1329 //add for ScTabBgColorDlg begin
1330 AbstractScTabBgColorDlg * ScAbstractDialogFactory_Impl::CreateScTabBgColorDlg (
1331 Window* pParent,
1332 const String& rTitle,
1333 const String& rTabBgColorNoColorText,
1334 const Color& rDefaultColor,
1335 ULONG nHelpId ,
1336 int nId )
1338 ScTabBgColorDlg * pDlg=NULL;
1339 switch ( nId )
1341 case RID_SCDLG_TAB_BG_COLOR :
1342 pDlg = new ScTabBgColorDlg( pParent, rTitle, rTabBgColorNoColorText, rDefaultColor, nHelpId );
1343 break;
1344 default:
1345 break;
1348 if ( pDlg )
1349 return new AbstractScTabBgColorDlg_Impl( pDlg );
1350 return 0;
1352 //add for ScTabBgColorDlg end
1354 //add for ScImportOptionsDlg begin
1355 AbstractScImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg ( Window* pParent,
1356 int nId,
1357 BOOL bAscii,
1358 const ScImportOptions* pOptions,
1359 const String* pStrTitle,
1360 BOOL bMultiByte,
1361 BOOL bOnlyDbtoolsEncodings,
1362 BOOL bImport )
1364 ScImportOptionsDlg * pDlg=NULL;
1365 switch ( nId )
1367 case RID_SCDLG_IMPORTOPT :
1368 pDlg = new ScImportOptionsDlg( pParent, bAscii, pOptions,pStrTitle, bMultiByte,bOnlyDbtoolsEncodings, bImport );
1369 break;
1370 default:
1371 break;
1374 if ( pDlg )
1375 return new AbstractScImportOptionsDlg_Impl( pDlg );
1376 return 0;
1378 //add for ScImportOptionsDlg end
1380 #if ENABLE_LAYOUT && !LAYOUT_SFX_TABDIALOG_BROKEN
1381 #define SfxTabDialog layout::SfxTabDialog
1382 #define AbstractTabDialog_Impl layout::AbstractTabDialog_Impl
1383 #endif /* ENABLE_LAYOUT */
1384 //add for ScAttrDlg begin
1385 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScAttrDlg( SfxViewFrame* pFrame,
1386 Window* pParent,
1387 const SfxItemSet* pCellAttrs,
1388 int nId)
1390 SfxTabDialog* pDlg=NULL;
1391 switch ( nId )
1393 case RID_SCDLG_ATTR :
1394 pDlg = new ScAttrDlg( pFrame, pParent, pCellAttrs );
1395 break;
1396 default:
1397 break;
1400 if ( pDlg )
1401 return new AbstractTabDialog_Impl( pDlg );
1402 return 0;
1405 //add for ScAttrDlg end
1406 #undef SfxTabDialog
1407 #undef AbstractTabDialog_Impl
1409 //add for ScHFEditDlg begin
1410 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScHFEditDlg( SfxViewFrame* pFrame,
1411 Window* pParent,
1412 const SfxItemSet& rCoreSet,
1413 const String& rPageStyle,
1414 int nId,
1415 USHORT nResId )
1417 SfxTabDialog* pDlg=NULL;
1418 switch ( nId )
1420 case RID_SCDLG_HFEDIT :
1421 pDlg = new ScHFEditDlg( pFrame, pParent, rCoreSet,rPageStyle, nResId );
1422 break;
1423 default:
1424 break;
1427 if ( pDlg )
1428 return new AbstractTabDialog_Impl( pDlg );
1429 return 0;
1431 //add for ScHFEditDlg end
1433 //add for ScStyleDlg begin
1434 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScStyleDlg( Window* pParent,
1435 SfxStyleSheetBase& rStyleBase,
1436 USHORT nRscId,
1437 int nId)
1439 SfxTabDialog* pDlg=NULL;
1440 switch ( nId )
1442 case RID_SCDLG_STYLES_PAGE :
1443 case RID_SCDLG_STYLES_PAR :
1444 pDlg = new ScStyleDlg( pParent, rStyleBase, nRscId );
1445 break;
1446 default:
1447 break;
1450 if ( pDlg )
1451 return new AbstractTabDialog_Impl( pDlg );
1452 return 0;
1454 //add for ScStyleDlg end
1456 //add for ScSubTotalDlg begin
1457 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSubTotalDlg( Window* pParent,
1458 const SfxItemSet* pArgSet,
1459 int nId)
1461 SfxTabDialog* pDlg=NULL;
1462 switch ( nId )
1464 case RID_SCDLG_SUBTOTALS :
1465 pDlg = new ScSubTotalDlg( pParent, pArgSet );
1466 break;
1467 default:
1468 break;
1471 if ( pDlg )
1472 return new AbstractTabDialog_Impl( pDlg );
1473 return 0;
1475 //add for ScSubTotalDlg end
1477 //add for ScCharDlg begin
1478 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr,
1479 const SfxObjectShell* pDocShell, int nId )
1481 SfxTabDialog* pDlg=NULL;
1482 switch ( nId )
1484 case RID_SCDLG_CHAR :
1485 pDlg = new ScCharDlg( pParent, pAttr, pDocShell );
1486 break;
1487 default:
1488 break;
1491 if ( pDlg )
1492 return new AbstractTabDialog_Impl( pDlg );
1493 return 0;
1495 //add for ScCharDlg end
1497 //add for ScParagraphDlg begin
1498 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ,
1499 int nId )
1501 SfxTabDialog* pDlg=NULL;
1502 switch ( nId )
1504 case RID_SCDLG_PARAGRAPH :
1505 pDlg = new ScParagraphDlg( pParent, pAttr );
1506 break;
1507 default:
1508 break;
1511 if ( pDlg )
1512 return new AbstractTabDialog_Impl( pDlg );
1513 return 0;
1515 //add for ScParagraphDlg end
1517 //add for ScValidationDlg begin
1518 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScValidationDlg( Window* pParent,
1519 const SfxItemSet* pArgSet,int nId )
1521 SfxTabDialog* pDlg=NULL;
1522 switch ( nId )
1524 case TAB_DLG_VALIDATION :
1525 pDlg = new ScValidationDlg( pParent, pArgSet );
1526 break;
1527 default:
1528 break;
1531 if ( pDlg )
1532 return new AbstractTabDialog_Impl( pDlg );
1533 return 0;
1535 //add for ScValidationDlg end
1537 #if ENABLE_LAYOUT && !LAYOUT_SFX_TABDIALOG_BROKEN
1538 #define SfxTabDialog layout::SfxTabDialog
1539 #define AbstractTabDialog_Impl layout::AbstractTabDialog_Impl
1540 #endif /* ENABLE_LAYOUT */
1541 //add for ScSortDlg begin
1542 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSortDlg( Window* pParent,
1543 const SfxItemSet* pArgSet,int nId )
1545 SfxTabDialog* pDlg=NULL;
1546 switch ( nId )
1548 case RID_SCDLG_SORT :
1549 pDlg = new ScSortDlg( pParent, pArgSet );
1550 break;
1551 default:
1552 break;
1555 if ( pDlg )
1556 return new AbstractTabDialog_Impl( pDlg );
1557 return 0;
1559 #undef SfxTabDialog
1560 #undef AbstractTabDialog_Impl
1562 //add for ScSortDlg end
1563 //------------------ Factories for TabPages--------------------
1564 CreateTabPage ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc( USHORT nId )
1566 switch ( nId )
1568 case RID_SCPAGE_OPREDLINE :
1569 return ScRedlineOptionsTabPage::Create;
1570 //break;
1571 case RID_SCPAGE_CALC :
1572 return ScTpCalcOptions::Create;
1573 //break;
1574 case RID_SCPAGE_FORMULA:
1575 return ScTpFormulaOptions::Create;
1576 case RID_SCPAGE_PRINT :
1577 return ScTpPrintOptions::Create;
1578 //break;
1579 case RID_SCPAGE_STAT :
1580 return ScDocStatPage::Create;
1581 //break;
1582 case RID_SCPAGE_USERLISTS :
1583 return ScTpUserLists::Create;
1584 //break;
1585 case RID_SCPAGE_CONTENT :
1586 return ScTpContentOptions::Create;
1587 //break;
1588 case RID_SCPAGE_LAYOUT :
1589 return ScTpLayoutOptions::Create;
1590 //break;
1592 default:
1593 break;
1596 return 0;
1599 GetTabPageRanges ScAbstractDialogFactory_Impl::GetTabPageRangesFunc( USHORT nId )
1601 switch ( nId )
1603 case TP_VALIDATION_VALUES :
1604 return ScTPValidationValue::GetRanges;
1605 //break;
1606 default:
1607 break;
1610 return 0;
1613 void ScDPFunctionDlg_Dummy()
1615 // use ScDPListBoxWrapper to avoid warning (this isn't called)
1616 ListBox* pListBox = NULL;
1617 ScDPListBoxWrapper aWrapper( *pListBox );