update dev300-m57
[ooovba.git] / sc / source / ui / attrdlg / scdlgfact.cxx
blob4ce0f2dc4b844a003d625b9ca25f350eb4083cd5
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 "scuiimoptdlg.hxx" //add for ScImportOptionsDlg
69 #include "attrdlg.hxx" //add for ScAttrDlg
70 #include "hfedtdlg.hxx" //add for ScHFEditDlg
71 #include "styledlg.hxx" //add for ScStyleDlg
72 #include "subtdlg.hxx" //add for ScSubTotalDlg
73 #include "textdlgs.hxx" //add for ScCharDlg, ScParagraphDlg
74 #include "validate.hxx" //add for ScValidationDlg
75 #include "validate.hrc" //add for ScValidationDlg
76 #include "sortdlg.hxx" //add for ScSortDlg
77 #include "langchooser.hxx"
78 #include "opredlin.hxx" //add for ScRedlineOptionsTabPage
79 #include "tpcalc.hxx" //add for ScTpCalcOptions
80 #include "tpprint.hxx" //add for ScTpPrintOptions
81 #include "tpstat.hxx" //add for ScDocStatPage
82 #include "tpusrlst.hxx" //add for ScTpUserLists
83 #include "tpview.hxx" //add for ScTpContentOptions
84 #include "tpformula.hxx"
85 //for dataform
86 #include "datafdlg.hxx" //add for ScDataFormDlg
88 // ause
89 #include "editutil.hxx"
90 #include <sfx2/layout.hxx>
92 IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl); //add for ScColOrRowDlg
93 IMPL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl);//CHINA001 add for ScImportAsciiDlg
94 IMPL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl); //CHINA001 add for ScAutoFormatDlg
95 IMPL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl); //add for ScColRowLabelDlg
96 IMPL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl); //add for ScDataPilotDatabaseDlg
97 IMPL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl); //add for ScDataPilotSourceTypeDlg
98 IMPL_ABSTDLG_BASE(AbstractScDataPilotServiceDlg_Impl); //add for ScDataPilotServiceDlg
99 IMPL_ABSTDLG_BASE(AbstractScDeleteCellDlg_Impl); //add for ScDeleteCellDlg
100 //for dataform
101 IMPL_ABSTDLG_BASE(AbstractScDataFormDlg_Impl); //add for ScDataFormDlg
102 IMPL_ABSTDLG_BASE(AbstractScDeleteContentsDlg_Impl); //add for ScDeleteContentsDlg
103 IMPL_ABSTDLG_BASE(AbstractScFillSeriesDlg_Impl); //add for ScFillSeriesDlg
104 IMPL_ABSTDLG_BASE(AbstractScGroupDlg_Impl); //add for ScGroupDlg
105 IMPL_ABSTDLG_BASE(AbstractScInsertCellDlg_Impl); //add for ScInsertCellDlg
106 IMPL_ABSTDLG_BASE(AbstractScInsertContentsDlg_Impl); //add for ScInsertContentsDlg
107 IMPL_ABSTDLG_BASE(AbstractScInsertTableDlg_Impl); //add for ScInsertTableDlg
108 IMPL_ABSTDLG_BASE(AbstractScSelEntryDlg_Impl); //add for ScSelEntryDlg
109 IMPL_ABSTDLG2_BASE(AbstractScLinkedAreaDlg_Impl); //add for ScLinkedAreaDlg
110 IMPL_ABSTDLG_BASE(AbstractScMetricInputDlg_Impl); //add for ScMetricInputDlg
111 IMPL_ABSTDLG_BASE(AbstractScMoveTableDlg_Impl); //add for ScMoveTableDlg
112 IMPL_ABSTDLG_BASE(AbstractScNameCreateDlg_Impl); //add for ScNameCreateDlg
113 IMPL_ABSTDLG_BASE(AbstractScNamePasteDlg_Impl); //add for ScNamePasteDlg
114 IMPL_ABSTDLG_BASE(AbstractScPivotFilterDlg_Impl); //add for ScPivotFilterDlg
115 IMPL_ABSTDLG_BASE(AbstractScDPFunctionDlg_Impl); //add for ScDPFunctionDlg
116 IMPL_ABSTDLG_BASE(AbstractScDPSubtotalDlg_Impl); //add for ScDPSubtotalDlg
117 IMPL_ABSTDLG_BASE(AbstractScDPNumGroupDlg_Impl);
118 IMPL_ABSTDLG_BASE(AbstractScDPDateGroupDlg_Impl);
119 IMPL_ABSTDLG_BASE(AbstractScDPShowDetailDlg_Impl); //add for ScDPShowDetailDlg
120 IMPL_ABSTDLG_BASE(AbstractScNewScenarioDlg_Impl); //add for ScNewScenarioDlg
121 IMPL_ABSTDLG_BASE(AbstractScShowTabDlg_Impl); //add for ScShowTabDlg
122 IMPL_ABSTDLG_BASE(AbstractScStringInputDlg_Impl); //add for ScStringInputDlg
123 IMPL_ABSTDLG_BASE(AbstractScImportOptionsDlg_Impl); //add for ScImportOptionsDlg
124 IMPL_ABSTDLG_BASE(AbstractScLangChooserDlg_Impl);
125 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for ScAttrDlg, ScHFEditDlg, ScStyleDlg, ScSubTotalDlg,ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg
127 // AbstractTabDialog_Impl begin
128 void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
130 pDlg->SetCurPageId( nId );
133 const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
135 return pDlg->GetOutputItemSet();
137 //add by CHINA001
138 const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
140 return pDlg->GetInputRanges( pItem );
142 //add by CHINA001
143 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
145 pDlg->SetInputSet( pInSet );
147 //From class Window.
148 void AbstractTabDialog_Impl::SetText( const XubString& rStr )
150 pDlg->SetText( rStr );
152 String AbstractTabDialog_Impl::GetText() const
154 return pDlg->GetText();
157 #if ENABLE_LAYOUT
158 namespace layout
160 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for ScAttrDlg, ScHFEditDlg, ScStyleDlg, ScSubTotalDlg,ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg
162 // AbstractTabDialog_Impl begin
163 void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
165 pDlg->SetCurPageId( nId );
168 const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
170 return pDlg->GetOutputItemSet();
172 //add by CHINA001
173 const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
175 return pDlg->GetInputRanges( pItem );
177 //add by CHINA001
178 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
180 pDlg->SetInputSet( pInSet );
182 //From class Window.
183 void AbstractTabDialog_Impl::SetText( const XubString& rStr )
185 pDlg->SetText( rStr );
187 String AbstractTabDialog_Impl::GetText() const
189 return pDlg->GetText();
192 #endif /* ENABLE_LAYOUT */
194 //add for AbstractTabDialog_Impl end
195 // AbstractScImportAsciiDlg_Impl begin
196 void AbstractScImportAsciiDlg_Impl::GetOptions( ScAsciiOptions& rOpt )
198 pDlg->GetOptions( rOpt );
201 void AbstractScImportAsciiDlg_Impl::SetTextToColumnsMode()
203 pDlg->SetTextToColumnsMode();
206 // AbstractScImportAsciiDlg_Impl end
208 //AbstractScAutoFormatDlg_Impl begin
209 USHORT AbstractScAutoFormatDlg_Impl::GetIndex() const
211 return pDlg->GetIndex();
214 String AbstractScAutoFormatDlg_Impl::GetCurrFormatName()
216 return pDlg->GetCurrFormatName();
219 //AbstractScAutoFormatDlg_Impl end
223 //AbstractScColRowLabelDlg_Impl begin
224 BOOL AbstractScColRowLabelDlg_Impl::IsCol()
226 return pDlg->IsCol();
228 BOOL AbstractScColRowLabelDlg_Impl::IsRow()
230 return pDlg->IsRow();
233 //AbstractScColRowLabelDlg_Impl end
236 //AbstractScDataPilotDatabaseDlg_Impl begin
239 void AbstractScDataPilotDatabaseDlg_Impl::GetValues( ScImportSourceDesc& rDesc )
241 pDlg->GetValues(rDesc);
244 //AbstractScDataPilotDatabaseDlg_Impl end
246 //AbstractScDataPilotSourceTypeDlg_Impl begin
248 BOOL AbstractScDataPilotSourceTypeDlg_Impl::IsDatabase() const
250 return pDlg->IsDatabase();
253 BOOL AbstractScDataPilotSourceTypeDlg_Impl::IsExternal() const
255 return pDlg->IsExternal();
258 //AbstractScDataPilotSourceTypeDlg_Impl end
261 // AbstractScDataPilotServiceDlg_Impl begin
262 String AbstractScDataPilotServiceDlg_Impl::GetServiceName() const
264 return pDlg->GetServiceName();
267 String AbstractScDataPilotServiceDlg_Impl::GetParSource() const
269 return pDlg->GetParSource();
271 String AbstractScDataPilotServiceDlg_Impl::GetParName() const
273 return pDlg->GetParName();
275 String AbstractScDataPilotServiceDlg_Impl::GetParUser() const
277 return pDlg->GetParUser();
279 String AbstractScDataPilotServiceDlg_Impl::GetParPass() const
281 return pDlg->GetParPass();
284 //AbstractScDataPilotServiceDlg_Impl end
286 //AbstractScDeleteCellDlg_Impl begin
287 DelCellCmd AbstractScDeleteCellDlg_Impl::GetDelCellCmd() const //add for ScDeleteCellDlg
289 return pDlg->GetDelCellCmd();
291 //AbstractScDeleteCellDlg_Impl end
293 //add for AbstractScDeleteContentsDlg_Impl begin
294 void AbstractScDeleteContentsDlg_Impl::DisableObjects()
296 pDlg->DisableObjects();
298 USHORT AbstractScDeleteContentsDlg_Impl::GetDelContentsCmdBits() const
300 return pDlg->GetDelContentsCmdBits();
302 //add for AbstractScDeleteContentsDlg_Impl end
304 //add for AbstractScFillSeriesDlg_Impl begin
305 FillDir AbstractScFillSeriesDlg_Impl::GetFillDir() const
307 return pDlg->GetFillDir();
310 FillCmd AbstractScFillSeriesDlg_Impl::GetFillCmd() const
312 return pDlg->GetFillCmd();
315 FillDateCmd AbstractScFillSeriesDlg_Impl::GetFillDateCmd() const
317 return pDlg->GetFillDateCmd();
320 double AbstractScFillSeriesDlg_Impl::GetStart() const
322 return pDlg->GetStart();
324 double AbstractScFillSeriesDlg_Impl::GetStep() const
326 return pDlg->GetStep();
328 double AbstractScFillSeriesDlg_Impl::GetMax() const
330 return pDlg->GetMax();
332 String AbstractScFillSeriesDlg_Impl::GetStartStr() const
334 return pDlg->GetStartStr();
336 void AbstractScFillSeriesDlg_Impl::SetEdStartValEnabled(BOOL bFlag)
338 pDlg->SetEdStartValEnabled(bFlag);
340 //add for AbstractScFillSeriesDlg_Impl end
342 //add for AbstractScGroupDlg_Impl begin
343 BOOL AbstractScGroupDlg_Impl::GetColsChecked() const
345 return pDlg->GetColsChecked();
347 //add for AbstractScGroupDlg_Impl end
350 //add for AbstractScInsertCellDlg_Impl begin
351 InsCellCmd AbstractScInsertCellDlg_Impl::GetInsCellCmd() const
353 return pDlg->GetInsCellCmd();
356 //add for AbstractScInsertCellDlg_Impl end
359 //add for AbstractScInsertContentsDlg_Impl begin
360 USHORT AbstractScInsertContentsDlg_Impl::GetInsContentsCmdBits() const
362 return pDlg->GetInsContentsCmdBits();
366 USHORT AbstractScInsertContentsDlg_Impl::GetFormulaCmdBits() const
368 return pDlg->GetFormulaCmdBits();
370 BOOL AbstractScInsertContentsDlg_Impl::IsSkipEmptyCells() const
372 return pDlg->IsSkipEmptyCells();
374 BOOL AbstractScInsertContentsDlg_Impl::IsLink() const
376 return pDlg->IsLink();
378 void AbstractScInsertContentsDlg_Impl::SetFillMode( BOOL bSet )
380 pDlg->SetFillMode( bSet );
383 void AbstractScInsertContentsDlg_Impl::SetOtherDoc( BOOL bSet )
385 pDlg->SetOtherDoc( bSet );
388 BOOL AbstractScInsertContentsDlg_Impl::IsTranspose() const
390 return pDlg->IsTranspose();
392 void AbstractScInsertContentsDlg_Impl::SetChangeTrack( BOOL bSet )
394 pDlg->SetChangeTrack( bSet );
396 void AbstractScInsertContentsDlg_Impl::SetCellShiftDisabled( int nDisable )
398 pDlg->SetCellShiftDisabled( nDisable );
401 InsCellCmd AbstractScInsertContentsDlg_Impl::GetMoveMode()
403 return pDlg->GetMoveMode();
405 //add for AbstractScInsertContentsDlg_Impl end
408 //add for AbstractScInsertTableDlg_Impl begin
409 BOOL AbstractScInsertTableDlg_Impl::GetTablesFromFile()
411 return pDlg->GetTablesFromFile();
414 BOOL AbstractScInsertTableDlg_Impl::GetTablesAsLink()
416 return pDlg->GetTablesAsLink();
418 const String* AbstractScInsertTableDlg_Impl::GetFirstTable( USHORT* pN )
420 return pDlg->GetFirstTable( pN );
422 ScDocShell* AbstractScInsertTableDlg_Impl::GetDocShellTables()
424 return pDlg->GetDocShellTables();
426 BOOL AbstractScInsertTableDlg_Impl::IsTableBefore()
428 return pDlg->IsTableBefore();
430 USHORT AbstractScInsertTableDlg_Impl::GetTableCount()
432 return pDlg->GetTableCount();
434 const String* AbstractScInsertTableDlg_Impl::GetNextTable( USHORT* pN )
436 return pDlg->GetNextTable( pN );
438 //add for AbstractScInsertTableDlg_Impl end
440 //add for AbstractScSelEntryDlg_Impl begin
441 String AbstractScSelEntryDlg_Impl::GetSelectEntry() const
443 return pDlg->GetSelectEntry();
445 //add for AbstractScSelEntryDlg_Impl end
447 //add for AbstractScLinkedAreaDlg_Impl begin
448 void AbstractScLinkedAreaDlg_Impl::InitFromOldLink( const String& rFile, const String& rFilter,
449 const String& rOptions, const String& rSource,
450 ULONG nRefresh )
452 pDlg->InitFromOldLink( rFile, rFilter, rOptions, rSource, nRefresh);
455 String AbstractScLinkedAreaDlg_Impl::GetURL()
457 return pDlg->GetURL();
459 String AbstractScLinkedAreaDlg_Impl::GetFilter()
461 return pDlg->GetFilter();
463 String AbstractScLinkedAreaDlg_Impl::GetOptions()
465 return pDlg->GetOptions();
467 String AbstractScLinkedAreaDlg_Impl::GetSource()
469 return pDlg->GetSource();
471 ULONG AbstractScLinkedAreaDlg_Impl::GetRefresh()
473 return pDlg->GetRefresh();
475 //add for AbstractScLinkedAreaDlg_Impl end
478 //add for AbstractScMetricInputDlg_Impl begin
479 long AbstractScMetricInputDlg_Impl::GetInputValue( FieldUnit eUnit ) const
482 return pDlg->GetInputValue( eUnit );
484 //add for AbstractScMetricInputDlg_Impl end
486 //add for AbstractScMoveTableDlg_Impl begin
487 USHORT AbstractScMoveTableDlg_Impl::GetSelectedDocument() const //add for ScMoveTableDlg
489 return pDlg->GetSelectedDocument();
492 USHORT AbstractScMoveTableDlg_Impl::GetSelectedTable() const
494 return pDlg->GetSelectedTable();
496 BOOL AbstractScMoveTableDlg_Impl::GetCopyTable() const
498 return pDlg->GetCopyTable();
500 void AbstractScMoveTableDlg_Impl::SetCopyTable(BOOL bFla)
502 return pDlg->SetCopyTable( bFla );
504 void AbstractScMoveTableDlg_Impl::EnableCopyTable(BOOL bFlag)
506 return pDlg->EnableCopyTable( bFlag);
508 //add for AbstractScMoveTableDlg_Impl end
510 //add for AbstractScNameCreateDlg_Impl begin
511 USHORT AbstractScNameCreateDlg_Impl::GetFlags() const //add for ScNameCreateDlg
513 return pDlg->GetFlags();
515 //add for AbstractScNameCreateDlg_Impl end
517 //add for AbstractScNamePasteDlg_Impl begin
518 String AbstractScNamePasteDlg_Impl::GetSelectedName() const //add for ScNamePasteDlg
520 return pDlg->GetSelectedName();
523 //add for AbstractScNamePasteDlg_Impl end
525 //add for AbstractScPivotFilterDlg_Impl begin
526 const ScQueryItem& AbstractScPivotFilterDlg_Impl::GetOutputItem() //add for ScPivotFilterDlg
528 return pDlg->GetOutputItem();
530 //add for AbstractScPivotFilterDlg_Impl end
532 //add for AbstractScDPFunctionDlg_Impl begin
533 USHORT AbstractScDPFunctionDlg_Impl::GetFuncMask() const //add for ScDPFunctionDlg
535 return pDlg->GetFuncMask();
537 ::com::sun::star::sheet::DataPilotFieldReference AbstractScDPFunctionDlg_Impl::GetFieldRef() const
539 return pDlg->GetFieldRef();
541 //add for AbstractScDPFunctionDlg_Impl end
543 //add for AbstractScDPSubtotalDlg_Impl begin
544 USHORT AbstractScDPSubtotalDlg_Impl::GetFuncMask() const //add for ScDPSubtotalDlg
546 return pDlg->GetFuncMask();
548 void AbstractScDPSubtotalDlg_Impl::FillLabelData( ScDPLabelData& rLabelData ) const
550 pDlg->FillLabelData( rLabelData );
552 //add for AbstractScDPSubtotalDlg_Impl end
554 ScDPNumGroupInfo AbstractScDPNumGroupDlg_Impl::GetGroupInfo() const
556 return pDlg->GetGroupInfo();
559 ScDPNumGroupInfo AbstractScDPDateGroupDlg_Impl::GetGroupInfo() const
561 return pDlg->GetGroupInfo();
564 sal_Int32 AbstractScDPDateGroupDlg_Impl::GetDatePart() const
566 return pDlg->GetDatePart();
569 //add for AbstractScDPShowDetailDlg_Impl begin
570 String AbstractScDPShowDetailDlg_Impl::GetDimensionName() const
572 return pDlg->GetDimensionName();
574 //add for AbstractScDPShowDetailDlg_Impl end
576 //add for AbstractScNewScenarioDlg_Impl begin
577 void AbstractScNewScenarioDlg_Impl::SetScenarioData( const String& rName, const String& rComment,
578 const Color& rColor, USHORT nFlags )
580 pDlg->SetScenarioData(rName,rComment, rColor,nFlags);
583 void AbstractScNewScenarioDlg_Impl::GetScenarioData( String& rName, String& rComment,
584 Color& rColor, USHORT& rFlags ) const
586 pDlg->GetScenarioData( rName,rComment,rColor,rFlags);
589 //add for AbstractScNewScenarioDlg_Impl end
591 //add for AbstractScShowTabDlg_Impl begin
592 void AbstractScShowTabDlg_Impl::Insert( const String& rString, BOOL bSelected ) //add for ScShowTabDlg
594 pDlg->Insert( rString, bSelected);
597 USHORT AbstractScShowTabDlg_Impl::GetSelectEntryCount() const
599 return pDlg->GetSelectEntryCount();
601 void AbstractScShowTabDlg_Impl::SetDescription(
602 const String& rTitle, const String& rFixedText,
603 ULONG nDlgHelpId, ULONG nLbHelpId )
605 pDlg->SetDescription( rTitle, rFixedText,nDlgHelpId, nLbHelpId );
607 USHORT AbstractScShowTabDlg_Impl::GetSelectEntryPos(USHORT nPos) const
609 return pDlg->GetSelectEntryPos( nPos);
611 String AbstractScShowTabDlg_Impl::GetSelectEntry(USHORT nPos) const
613 return pDlg->GetSelectEntry(nPos);
615 //add for AbstractScShowTabDlg_Impl end
617 //add for AbstractScStringInputDlg_Impl begin
618 void AbstractScStringInputDlg_Impl::GetInputString( String& rString ) const //add for ScStringInputDlg
620 pDlg->GetInputString( rString );
622 //add for AbstractScStringInputDlg_Impl end
624 //add for AbstractScImportOptionsDlg_Impl begin
625 void AbstractScImportOptionsDlg_Impl::GetImportOptions( ScImportOptions& rOptions ) const //add for ScImportOptionsDlg
627 pDlg->GetImportOptions(rOptions);
629 // add for AbstractScImportOptionsDlg_Impl end
631 //add for AbstractScLangChooserDlg_Impl begin
632 LanguageType AbstractScLangChooserDlg_Impl::GetLanguageType() const
634 return pDlg->getLanguageType();
637 bool AbstractScLangChooserDlg_Impl::IsDateConversionSet() const
639 return pDlg->isDateConversionSet();
642 //add for AbstractScLangChooserDlg_Impl end
644 // =========================Factories for createdialog ===================
646 //add for ScImportAsciiDlg begin
647 AbstractScImportAsciiDlg * ScAbstractDialogFactory_Impl::CreateScImportAsciiDlg ( Window* pParent, String aDatName,
648 SvStream* pInStream, int nId, sal_Unicode cSep )
650 ScImportAsciiDlg* pDlg=NULL;
651 switch ( nId )
653 case RID_SCDLG_ASCII :
654 pDlg = new ScImportAsciiDlg( pParent, aDatName,pInStream, cSep );
655 break;
656 default:
657 break;
660 if ( pDlg )
661 return new AbstractScImportAsciiDlg_Impl( pDlg );
662 return 0;
664 // ScImportAsciiDlg end
666 AbstractScLangChooserDlg * ScAbstractDialogFactory_Impl::CreateScLangChooserDlg( Window* pParent, int nId )
668 ScLangChooserDlg* pDlg = NULL;
669 switch (nId)
671 case RID_SCDLG_LANG_CHOOSER:
672 pDlg = new ScLangChooserDlg(pParent);
673 break;
674 default:
678 return pDlg ? new AbstractScLangChooserDlg_Impl(pDlg) : NULL;
681 //add for ScAutoFormatDlg begin
683 AbstractScAutoFormatDlg * ScAbstractDialogFactory_Impl::CreateScAutoFormatDlg( Window* pParent, //add for ScAutoFormatDlg
684 ScAutoFormat* pAutoFormat,
685 const ScAutoFormatData* pSelFormatData,
686 ScDocument* pDoc,
687 int nId)
689 ScAutoFormatDlg* pDlg=NULL;
690 switch ( nId )
692 case RID_SCDLG_AUTOFORMAT :
693 pDlg = new ScAutoFormatDlg( pParent, pAutoFormat,pSelFormatData, pDoc );
694 break;
695 default:
696 break;
699 if ( pDlg )
700 return new AbstractScAutoFormatDlg_Impl( pDlg );
701 return 0;
703 //add for ScAutoFormatDlg end
705 //add for ScColRowLabelDlg begin
707 AbstractScColRowLabelDlg * ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(Window* pParent, //add for ScColRowLabelDlg
708 int nId,
709 BOOL bCol ,
710 BOOL bRow)
712 ScColRowLabelDlg* pDlg=NULL;
713 switch ( nId )
715 case RID_SCDLG_CHARTCOLROW :
716 pDlg = new ScColRowLabelDlg( pParent, bCol,bRow );
717 break;
718 default:
719 break;
722 if ( pDlg )
723 return new AbstractScColRowLabelDlg_Impl( pDlg );
724 return 0;
726 //add for ScColRowLabelDlg end
729 //add for ScColOrRowDlg begin
731 VclAbstractDialog * ScAbstractDialogFactory_Impl::CreateScColOrRowDlg(Window* pParent,
732 const String& rStrTitle,
733 const String& rStrLabel,
734 int nId,
735 BOOL bColDefault)
737 Dialog * pDlg=NULL;
738 switch ( nId )
740 case RID_SCDLG_COLORROW :
741 pDlg = new ScColOrRowDlg( pParent, rStrTitle,rStrLabel,bColDefault );
742 break;
743 default:
744 break;
747 if ( pDlg )
748 return new VclAbstractDialog_Impl( pDlg );
749 return 0;
751 //add for ScColOrRowDlg end
753 //add for ScSortWarningDlg begin
754 VclAbstractDialog * ScAbstractDialogFactory_Impl::CreateScSortWarningDlg( Window* pParent, const String& rExtendText,
755 const String& rCurrentText, int nId )
757 Dialog * pDlg=NULL;
758 switch ( nId )
760 case RID_SCDLG_SORT_WARNING:
761 pDlg = new ScSortWarningDlg( pParent, rExtendText, rCurrentText );
762 break;
763 default:
764 break;
766 if( pDlg )
767 return new VclAbstractDialog_Impl( pDlg );
768 return 0;
770 //add for ScSortWarningDlg end
772 //add for ScDataPilotDatabaseDlg begin
774 AbstractScDataPilotDatabaseDlg * ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg (Window* pParent ,
775 int nId ) //add for ScDataPilotDatabaseDlg
777 ScDataPilotDatabaseDlg * pDlg=NULL;
778 switch ( nId )
780 case RID_SCDLG_DAPIDATA :
781 pDlg = new ScDataPilotDatabaseDlg( pParent );
782 break;
783 default:
784 break;
787 if ( pDlg )
788 return new AbstractScDataPilotDatabaseDlg_Impl( pDlg );
789 return 0;
791 //add for ScDataPilotDatabaseDlg end
793 //add for ScDataPilotSourceTypeDlg begin
794 AbstractScDataPilotSourceTypeDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg( Window* pParent,
795 BOOL bEnableExternal,
796 int nId )
798 ScDataPilotSourceTypeDlg * pDlg=NULL;
799 switch ( nId )
801 case RID_SCDLG_DAPITYPE :
802 pDlg = new ScDataPilotSourceTypeDlg( pParent, bEnableExternal );
803 break;
804 default:
805 break;
808 if ( pDlg )
809 return new AbstractScDataPilotSourceTypeDlg_Impl( pDlg );
810 return 0;
813 // add for ScDataPilotSourceTypeDlg end
816 //add for ScDataPilotServiceDlg begin
817 AbstractScDataPilotServiceDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotServiceDlg( Window* pParent,
818 const com::sun::star::uno::Sequence<rtl::OUString>& rServices,
819 int nId )
821 ScDataPilotServiceDlg * pDlg=NULL;
822 switch ( nId )
824 case RID_SCDLG_DAPISERVICE :
825 pDlg = new ScDataPilotServiceDlg( pParent, rServices );
826 break;
827 default:
828 break;
831 if ( pDlg )
832 return new AbstractScDataPilotServiceDlg_Impl( pDlg );
833 return 0;
836 // add for ScDataPilotServiceDlg end
838 //add for ScDeleteCellDlg begin
839 AbstractScDeleteCellDlg* ScAbstractDialogFactory_Impl::CreateScDeleteCellDlg( Window* pParent, int nId,
840 BOOL bDisallowCellMove )
842 ScDeleteCellDlg * pDlg=NULL;
843 switch ( nId )
845 case RID_SCDLG_DELCELL :
846 pDlg = new ScDeleteCellDlg( pParent, bDisallowCellMove );
847 break;
848 default:
849 break;
852 if ( pDlg )
853 return new AbstractScDeleteCellDlg_Impl( pDlg );
854 return 0;
857 //add for ScDeleteCellDlg end
859 //add for ScDataFormDlg begin
860 AbstractScDataFormDlg* ScAbstractDialogFactory_Impl::CreateScDataFormDlg( Window* pParent, int nId, ScTabViewShell* pTabViewShell )
862 ScDataFormDlg * pDlg=NULL;
863 switch ( nId )
865 case RID_SCDLG_DATAFORM :
866 pDlg = new ScDataFormDlg( pParent, pTabViewShell);
867 break;
868 default:
869 break;
872 if ( pDlg )
873 return new AbstractScDataFormDlg_Impl( pDlg );
874 return 0;
877 //add for ScDataFormDlg end
879 //add for ScDeleteContentsDlg begin
880 AbstractScDeleteContentsDlg* ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(Window* pParent,int nId, //add for ScDeleteContentsDlg
881 USHORT nCheckDefaults )
883 ScDeleteContentsDlg * pDlg=NULL;
884 switch ( nId )
886 case RID_SCDLG_DELCONT :
887 pDlg = new ScDeleteContentsDlg( pParent, nCheckDefaults );
888 break;
889 default:
890 break;
893 if ( pDlg )
894 return new AbstractScDeleteContentsDlg_Impl( pDlg );
895 return 0;
898 //add for ScDeleteContentsDlg end
900 //add for ScFillSeriesDlg begin
901 AbstractScFillSeriesDlg* ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg( Window* pParent, //add for ScFillSeriesDlg
902 ScDocument& rDocument,
903 FillDir eFillDir,
904 FillCmd eFillCmd,
905 FillDateCmd eFillDateCmd,
906 String aStartStr,
907 double fStep,
908 double fMax,
909 USHORT nPossDir,
910 int nId)
912 ScFillSeriesDlg * pDlg=NULL;
913 switch ( nId )
915 case RID_SCDLG_FILLSERIES :
916 pDlg = new ScFillSeriesDlg( pParent, rDocument,eFillDir, eFillCmd,eFillDateCmd, aStartStr,fStep,fMax,nPossDir);
917 break;
918 default:
919 break;
922 if ( pDlg )
923 return new AbstractScFillSeriesDlg_Impl( pDlg );
924 return 0;
927 //add for ScFillSeriesDlg end
929 //add for ScGroupDlg begin
930 AbstractScGroupDlg* ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg( Window* pParent,
931 USHORT nResId,
932 int nId,
933 BOOL bUnGroup ,
934 BOOL bRows )
936 ScGroupDlg * pDlg=NULL;
937 switch ( nId )
939 case RID_SCDLG_GRP_KILL :
940 case RID_SCDLG_GRP_MAKE :
941 pDlg = new ScGroupDlg( pParent, nResId,bUnGroup, bRows);
942 break;
943 default:
944 break;
947 if ( pDlg )
948 return new AbstractScGroupDlg_Impl( pDlg );
949 return 0;
952 //add for ScGroupDlg end
955 //add for ScInsertCellDlg begin
956 AbstractScInsertCellDlg * ScAbstractDialogFactory_Impl::CreateScInsertCellDlg( Window* pParent, //add for ScInsertCellDlg
957 int nId,
958 BOOL bDisallowCellMove )
960 ScInsertCellDlg * pDlg=NULL;
961 switch ( nId )
963 case RID_SCDLG_INSCELL :
964 pDlg = new ScInsertCellDlg( pParent, bDisallowCellMove);
965 break;
966 default:
967 break;
970 if ( pDlg )
971 return new AbstractScInsertCellDlg_Impl( pDlg );
972 return 0;
975 //add for ScInsertCellDlg end
977 //add for ScInsertContentsDlg begin
978 AbstractScInsertContentsDlg * ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg( Window* pParent,
979 int nId,
980 USHORT nCheckDefaults,
981 const String* pStrTitle )
983 ScInsertContentsDlg * pDlg=NULL;
984 switch ( nId )
986 case RID_SCDLG_INSCONT :
987 pDlg = new ScInsertContentsDlg( pParent, nCheckDefaults,pStrTitle );
988 break;
989 default:
990 break;
993 if ( pDlg )
994 return new AbstractScInsertContentsDlg_Impl( pDlg );
995 return 0;
997 //add for ScInsertContentsDlg end
999 //add for ScInsertTableDlg begin
1000 AbstractScInsertTableDlg * ScAbstractDialogFactory_Impl::CreateScInsertTableDlg ( Window* pParent, ScViewData& rViewData,
1001 SCTAB nTabCount, bool bFromFile, int nId)
1003 ScInsertTableDlg * pDlg=NULL;
1004 switch ( nId )
1006 case RID_SCDLG_INSERT_TABLE :
1007 pDlg = new ScInsertTableDlg( pParent, rViewData,nTabCount, bFromFile );
1008 break;
1009 default:
1010 break;
1013 if ( pDlg )
1014 return new AbstractScInsertTableDlg_Impl( pDlg );
1015 return 0;
1017 //add for ScInsertTableDlg end
1019 // add for ScSelEntryDlg begin
1020 AbstractScSelEntryDlg * ScAbstractDialogFactory_Impl::CreateScSelEntryDlg ( Window* pParent,
1021 USHORT nResId,
1022 const String& aTitle,
1023 const String& aLbTitle,
1024 List& aEntryList,
1025 int nId )
1027 ScSelEntryDlg * pDlg=NULL;
1028 switch ( nId )
1030 case RID_SCDLG_SELECTDB :
1031 pDlg = new ScSelEntryDlg( pParent, nResId,aTitle, aLbTitle, aEntryList );
1032 break;
1033 default:
1034 break;
1037 if ( pDlg )
1038 return new AbstractScSelEntryDlg_Impl( pDlg );
1039 return 0;
1041 // add for ScSelEntryDlg end
1043 //add for ScLinkedAreaDlg begin
1044 AbstractScLinkedAreaDlg * ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg ( Window* pParent,
1045 int nId)
1047 ScLinkedAreaDlg * pDlg=NULL;
1048 switch ( nId )
1050 case RID_SCDLG_LINKAREA :
1051 pDlg = new ScLinkedAreaDlg( pParent );
1052 break;
1053 default:
1054 break;
1057 if ( pDlg )
1058 return new AbstractScLinkedAreaDlg_Impl( pDlg );
1059 return 0;
1061 //add for ScLinkedAreaDlg end
1063 //add for ScMetricInputDlg begin
1064 AbstractScMetricInputDlg * ScAbstractDialogFactory_Impl::CreateScMetricInputDlg ( Window* pParent,
1065 USHORT nResId, // Ableitung fuer jeden Dialog!
1066 long nCurrent,
1067 long nDefault,
1068 int nId ,
1069 FieldUnit eFUnit,
1070 USHORT nDecimals,
1071 long nMaximum ,
1072 long nMinimum,
1073 long nFirst,
1074 long nLast )
1076 ScMetricInputDlg * pDlg=NULL;
1077 switch ( nId )
1079 case RID_SCDLG_ROW_MAN :
1080 case RID_SCDLG_ROW_OPT :
1081 case RID_SCDLG_COL_MAN :
1082 case RID_SCDLG_COL_OPT :
1083 pDlg = new ScMetricInputDlg( pParent , nResId,nCurrent ,nDefault, eFUnit,
1084 nDecimals, nMaximum , nMinimum , nFirst, nLast);
1085 break;
1086 default:
1087 break;
1090 if ( pDlg )
1091 return new AbstractScMetricInputDlg_Impl( pDlg );
1092 return 0;
1094 //add for ScMetricInputDlg end
1097 //add for ScMoveTableDlg begin
1098 AbstractScMoveTableDlg * ScAbstractDialogFactory_Impl::CreateScMoveTableDlg( Window* pParent, int nId )
1100 ScMoveTableDlg * pDlg=NULL;
1101 switch ( nId )
1103 case RID_SCDLG_MOVETAB :
1104 pDlg = new ScMoveTableDlg( pParent );
1105 break;
1106 default:
1107 break;
1110 if ( pDlg )
1111 return new AbstractScMoveTableDlg_Impl( pDlg );
1112 return 0;
1114 //add for ScMoveTableDlg end
1117 //add for ScNameCreateDlg begin
1118 AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg ( Window * pParent, USHORT nFlags, int nId )
1120 ScNameCreateDlg * pDlg=NULL;
1121 switch ( nId )
1123 case RID_SCDLG_NAMES_CREATE :
1124 pDlg = new ScNameCreateDlg( pParent, nFlags );
1125 break;
1126 default:
1127 break;
1130 if ( pDlg )
1131 return new AbstractScNameCreateDlg_Impl( pDlg );
1132 return 0;
1134 //add for ScNameCreateDlg end
1137 //add for ScNamePasteDlg begin
1138 AbstractScNamePasteDlg * ScAbstractDialogFactory_Impl::CreateScNamePasteDlg ( Window * pParent, const ScRangeName* pList,
1139 int nId , BOOL bInsList )
1141 ScNamePasteDlg * pDlg=NULL;
1142 switch ( nId )
1144 case RID_SCDLG_NAMES_PASTE :
1145 pDlg = new ScNamePasteDlg( pParent, pList, bInsList );
1146 break;
1147 default:
1148 break;
1151 if ( pDlg )
1152 return new AbstractScNamePasteDlg_Impl( pDlg );
1153 return 0;
1155 //add for ScNamePasteDlg end
1157 //add for ScPivotFilterDlg begin
1158 AbstractScPivotFilterDlg * ScAbstractDialogFactory_Impl::CreateScPivotFilterDlg ( Window* pParent,
1159 const SfxItemSet& rArgSet, USHORT nSourceTab , int nId )
1161 ScPivotFilterDlg * pDlg=NULL;
1162 switch ( nId )
1164 case RID_SCDLG_PIVOTFILTER :
1165 pDlg = new ScPivotFilterDlg( pParent, rArgSet, nSourceTab );
1166 break;
1167 default:
1168 break;
1171 if ( pDlg )
1172 return new AbstractScPivotFilterDlg_Impl( pDlg );
1173 return 0;
1175 //add for ScPivotFilterDlg end
1178 //add for ScDPFunctionDlg begin
1179 AbstractScDPFunctionDlg * ScAbstractDialogFactory_Impl::CreateScDPFunctionDlg ( Window* pParent,
1180 int nId,
1181 const ScDPLabelDataVec& rLabelVec,
1182 const ScDPLabelData& rLabelData,
1183 const ScDPFuncData& rFuncData )
1185 ScDPFunctionDlg * pDlg=NULL;
1186 switch ( nId )
1188 case RID_SCDLG_DPDATAFIELD :
1189 pDlg = new ScDPFunctionDlg( pParent, rLabelVec, rLabelData, rFuncData );
1190 break;
1191 default:
1192 break;
1195 if ( pDlg )
1196 return new AbstractScDPFunctionDlg_Impl( pDlg );
1197 return 0;
1199 //add for ScDPFunctionDlg end
1201 //add for ScDPSubtotalDlg begin
1202 AbstractScDPSubtotalDlg * ScAbstractDialogFactory_Impl::CreateScDPSubtotalDlg ( Window* pParent,
1203 int nId,
1204 ScDPObject& rDPObj,
1205 const ScDPLabelData& rLabelData,
1206 const ScDPFuncData& rFuncData,
1207 const ScDPNameVec& rDataFields,
1208 bool bEnableLayout )
1210 ScDPSubtotalDlg * pDlg=NULL;
1211 switch ( nId )
1213 case RID_SCDLG_PIVOTSUBT :
1214 pDlg = new ScDPSubtotalDlg( pParent, rDPObj, rLabelData, rFuncData, rDataFields, bEnableLayout );
1215 break;
1216 default:
1217 break;
1220 if ( pDlg )
1221 return new AbstractScDPSubtotalDlg_Impl( pDlg );
1222 return 0;
1224 //add for ScDPSubtotalDlg end
1226 AbstractScDPNumGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPNumGroupDlg(
1227 Window* pParent, int nId, const ScDPNumGroupInfo& rInfo )
1229 if( nId == RID_SCDLG_DPNUMGROUP )
1230 return new AbstractScDPNumGroupDlg_Impl( new ScDPNumGroupDlg( pParent, rInfo ) );
1231 return 0;
1234 AbstractScDPDateGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPDateGroupDlg(
1235 Window* pParent, int nId,
1236 const ScDPNumGroupInfo& rInfo, sal_Int32 nDatePart, const Date& rNullDate )
1238 if( nId == RID_SCDLG_DPDATEGROUP )
1239 return new AbstractScDPDateGroupDlg_Impl( new ScDPDateGroupDlg( pParent, rInfo, nDatePart, rNullDate ) );
1240 return 0;
1243 //add for ScDPShowDetailDlg begin
1244 AbstractScDPShowDetailDlg * ScAbstractDialogFactory_Impl::CreateScDPShowDetailDlg (
1245 Window* pParent, int nId, ScDPObject& rDPObj, USHORT nOrient )
1247 if( nId == RID_SCDLG_DPSHOWDETAIL )
1248 return new AbstractScDPShowDetailDlg_Impl( new ScDPShowDetailDlg( pParent, rDPObj, nOrient ) );
1249 return 0;
1251 //add for ScDPShowDetailDlg end
1253 //add for ScNewScenarioDlg begin
1254 AbstractScNewScenarioDlg * ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg ( Window* pParent, const String& rName,
1255 int nId,
1256 BOOL bEdit , BOOL bSheetProtected )
1258 ScNewScenarioDlg * pDlg=NULL;
1259 switch ( nId )
1261 case RID_SCDLG_NEWSCENARIO :
1262 pDlg = new ScNewScenarioDlg( pParent, rName, bEdit,bSheetProtected );
1263 break;
1264 default:
1265 break;
1268 if ( pDlg )
1269 return new AbstractScNewScenarioDlg_Impl( pDlg );
1270 return 0;
1272 //add for ScNewScenarioDlg end
1274 //add for ScShowTabDlg begin
1275 AbstractScShowTabDlg * ScAbstractDialogFactory_Impl::CreateScShowTabDlg ( Window* pParent, int nId )
1277 ScShowTabDlg * pDlg=NULL;
1278 switch ( nId )
1280 case RID_SCDLG_SHOW_TAB :
1281 pDlg = new ScShowTabDlg( pParent);
1282 break;
1283 default:
1284 break;
1287 if ( pDlg )
1288 return new AbstractScShowTabDlg_Impl( pDlg );
1289 return 0;
1292 //add for ScShowTabDlg end
1295 //add for ScStringInputDlg begin
1296 AbstractScStringInputDlg * ScAbstractDialogFactory_Impl::CreateScStringInputDlg ( Window* pParent,
1297 const String& rTitle,
1298 const String& rEditTitle,
1299 const String& rDefault,
1300 ULONG nHelpId ,
1301 int nId )
1303 ScStringInputDlg * pDlg=NULL;
1304 switch ( nId )
1306 case RID_SCDLG_STRINPUT :
1307 pDlg = new ScStringInputDlg( pParent, rTitle, rEditTitle,rDefault, nHelpId );
1308 break;
1309 default:
1310 break;
1313 if ( pDlg )
1314 return new AbstractScStringInputDlg_Impl( pDlg );
1315 return 0;
1317 //add for ScStringInputDlg end
1319 //add for ScImportOptionsDlg begin
1320 AbstractScImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg ( Window* pParent,
1321 int nId,
1322 BOOL bAscii,
1323 const ScImportOptions* pOptions,
1324 const String* pStrTitle,
1325 BOOL bMultiByte,
1326 BOOL bOnlyDbtoolsEncodings,
1327 BOOL bImport )
1329 ScImportOptionsDlg * pDlg=NULL;
1330 switch ( nId )
1332 case RID_SCDLG_IMPORTOPT :
1333 pDlg = new ScImportOptionsDlg( pParent, bAscii, pOptions,pStrTitle, bMultiByte,bOnlyDbtoolsEncodings, bImport );
1334 break;
1335 default:
1336 break;
1339 if ( pDlg )
1340 return new AbstractScImportOptionsDlg_Impl( pDlg );
1341 return 0;
1343 //add for ScImportOptionsDlg end
1345 #if ENABLE_LAYOUT && !LAYOUT_SFX_TABDIALOG_BROKEN
1346 #define SfxTabDialog layout::SfxTabDialog
1347 #define AbstractTabDialog_Impl layout::AbstractTabDialog_Impl
1348 #endif /* ENABLE_LAYOUT */
1349 //add for ScAttrDlg begin
1350 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScAttrDlg( SfxViewFrame* pFrame,
1351 Window* pParent,
1352 const SfxItemSet* pCellAttrs,
1353 int nId)
1355 SfxTabDialog* pDlg=NULL;
1356 switch ( nId )
1358 case RID_SCDLG_ATTR :
1359 pDlg = new ScAttrDlg( pFrame, pParent, pCellAttrs );
1360 break;
1361 default:
1362 break;
1365 if ( pDlg )
1366 return new AbstractTabDialog_Impl( pDlg );
1367 return 0;
1370 //add for ScAttrDlg end
1371 #undef SfxTabDialog
1372 #undef AbstractTabDialog_Impl
1374 //add for ScHFEditDlg begin
1375 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScHFEditDlg( SfxViewFrame* pFrame,
1376 Window* pParent,
1377 const SfxItemSet& rCoreSet,
1378 const String& rPageStyle,
1379 int nId,
1380 USHORT nResId )
1382 SfxTabDialog* pDlg=NULL;
1383 switch ( nId )
1385 case RID_SCDLG_HFEDIT :
1386 pDlg = new ScHFEditDlg( pFrame, pParent, rCoreSet,rPageStyle, nResId );
1387 break;
1388 default:
1389 break;
1392 if ( pDlg )
1393 return new AbstractTabDialog_Impl( pDlg );
1394 return 0;
1396 //add for ScHFEditDlg end
1398 //add for ScStyleDlg begin
1399 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScStyleDlg( Window* pParent,
1400 SfxStyleSheetBase& rStyleBase,
1401 USHORT nRscId,
1402 int nId)
1404 SfxTabDialog* pDlg=NULL;
1405 switch ( nId )
1407 case RID_SCDLG_STYLES_PAGE :
1408 case RID_SCDLG_STYLES_PAR :
1409 pDlg = new ScStyleDlg( pParent, rStyleBase, nRscId );
1410 break;
1411 default:
1412 break;
1415 if ( pDlg )
1416 return new AbstractTabDialog_Impl( pDlg );
1417 return 0;
1419 //add for ScStyleDlg end
1421 //add for ScSubTotalDlg begin
1422 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSubTotalDlg( Window* pParent,
1423 const SfxItemSet* pArgSet,
1424 int nId)
1426 SfxTabDialog* pDlg=NULL;
1427 switch ( nId )
1429 case RID_SCDLG_SUBTOTALS :
1430 pDlg = new ScSubTotalDlg( pParent, pArgSet );
1431 break;
1432 default:
1433 break;
1436 if ( pDlg )
1437 return new AbstractTabDialog_Impl( pDlg );
1438 return 0;
1440 //add for ScSubTotalDlg end
1442 //add for ScCharDlg begin
1443 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr,
1444 const SfxObjectShell* pDocShell, int nId )
1446 SfxTabDialog* pDlg=NULL;
1447 switch ( nId )
1449 case RID_SCDLG_CHAR :
1450 pDlg = new ScCharDlg( pParent, pAttr, pDocShell );
1451 break;
1452 default:
1453 break;
1456 if ( pDlg )
1457 return new AbstractTabDialog_Impl( pDlg );
1458 return 0;
1460 //add for ScCharDlg end
1462 //add for ScParagraphDlg begin
1463 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ,
1464 int nId )
1466 SfxTabDialog* pDlg=NULL;
1467 switch ( nId )
1469 case RID_SCDLG_PARAGRAPH :
1470 pDlg = new ScParagraphDlg( pParent, pAttr );
1471 break;
1472 default:
1473 break;
1476 if ( pDlg )
1477 return new AbstractTabDialog_Impl( pDlg );
1478 return 0;
1480 //add for ScParagraphDlg end
1482 //add for ScValidationDlg begin
1483 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScValidationDlg( Window* pParent,
1484 const SfxItemSet* pArgSet,int nId )
1486 SfxTabDialog* pDlg=NULL;
1487 switch ( nId )
1489 case TAB_DLG_VALIDATION :
1490 pDlg = new ScValidationDlg( pParent, pArgSet );
1491 break;
1492 default:
1493 break;
1496 if ( pDlg )
1497 return new AbstractTabDialog_Impl( pDlg );
1498 return 0;
1500 //add for ScValidationDlg end
1502 #if ENABLE_LAYOUT && !LAYOUT_SFX_TABDIALOG_BROKEN
1503 #define SfxTabDialog layout::SfxTabDialog
1504 #define AbstractTabDialog_Impl layout::AbstractTabDialog_Impl
1505 #endif /* ENABLE_LAYOUT */
1506 //add for ScSortDlg begin
1507 SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSortDlg( Window* pParent,
1508 const SfxItemSet* pArgSet,int nId )
1510 SfxTabDialog* pDlg=NULL;
1511 switch ( nId )
1513 case RID_SCDLG_SORT :
1514 pDlg = new ScSortDlg( pParent, pArgSet );
1515 break;
1516 default:
1517 break;
1520 if ( pDlg )
1521 return new AbstractTabDialog_Impl( pDlg );
1522 return 0;
1524 #undef SfxTabDialog
1525 #undef AbstractTabDialog_Impl
1527 //add for ScSortDlg end
1528 //------------------ Factories for TabPages--------------------
1529 CreateTabPage ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc( USHORT nId )
1531 switch ( nId )
1533 case RID_SCPAGE_OPREDLINE :
1534 return ScRedlineOptionsTabPage::Create;
1535 //break;
1536 case RID_SCPAGE_CALC :
1537 return ScTpCalcOptions::Create;
1538 //break;
1539 case RID_SCPAGE_FORMULA:
1540 return ScTpFormulaOptions::Create;
1541 case RID_SCPAGE_PRINT :
1542 return ScTpPrintOptions::Create;
1543 //break;
1544 case RID_SCPAGE_STAT :
1545 return ScDocStatPage::Create;
1546 //break;
1547 case RID_SCPAGE_USERLISTS :
1548 return ScTpUserLists::Create;
1549 //break;
1550 case RID_SCPAGE_CONTENT :
1551 return ScTpContentOptions::Create;
1552 //break;
1553 case RID_SCPAGE_LAYOUT :
1554 return ScTpLayoutOptions::Create;
1555 //break;
1557 default:
1558 break;
1561 return 0;
1564 GetTabPageRanges ScAbstractDialogFactory_Impl::GetTabPageRangesFunc( USHORT nId )
1566 switch ( nId )
1568 case TP_VALIDATION_VALUES :
1569 return ScTPValidationValue::GetRanges;
1570 //break;
1571 default:
1572 break;
1575 return 0;
1578 void ScDPFunctionDlg_Dummy()
1580 // use ScDPListBoxWrapper to avoid warning (this isn't called)
1581 ListBox* pListBox = NULL;
1582 ScDPListBoxWrapper aWrapper( *pListBox );