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 $
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
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"
87 #include "datafdlg.hxx" //add for ScDataFormDlg
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
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();
140 const USHORT
* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
142 return pDlg
->GetInputRanges( pItem
);
145 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
147 pDlg
->SetInputSet( pInSet
);
150 void AbstractTabDialog_Impl::SetText( const XubString
& rStr
)
152 pDlg
->SetText( rStr
);
154 String
AbstractTabDialog_Impl::GetText() const
156 return pDlg
->GetText();
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();
175 const USHORT
* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
177 return pDlg
->GetInputRanges( pItem
);
180 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
182 pDlg
->SetInputSet( pInSet
);
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
,
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
;
663 case RID_SCDLG_ASCII
:
664 pDlg
= new ScImportAsciiDlg( pParent
, aDatName
,pInStream
, cSep
);
671 return new AbstractScImportAsciiDlg_Impl( pDlg
);
674 // ScImportAsciiDlg end
676 AbstractScTextImportOptionsDlg
* ScAbstractDialogFactory_Impl::CreateScTextImportOptionsDlg( Window
* pParent
, int nId
)
678 ScTextImportOptionsDlg
* pDlg
= NULL
;
681 case RID_SCDLG_TEXT_IMPORT_OPTIONS
:
682 pDlg
= new ScTextImportOptionsDlg(pParent
);
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
,
699 ScAutoFormatDlg
* pDlg
=NULL
;
702 case RID_SCDLG_AUTOFORMAT
:
703 pDlg
= new ScAutoFormatDlg( pParent
, pAutoFormat
,pSelFormatData
, pDoc
);
710 return new AbstractScAutoFormatDlg_Impl( pDlg
);
713 //add for ScAutoFormatDlg end
715 //add for ScColRowLabelDlg begin
717 AbstractScColRowLabelDlg
* ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(Window
* pParent
, //add for ScColRowLabelDlg
722 ScColRowLabelDlg
* pDlg
=NULL
;
725 case RID_SCDLG_CHARTCOLROW
:
726 pDlg
= new ScColRowLabelDlg( pParent
, bCol
,bRow
);
733 return new AbstractScColRowLabelDlg_Impl( pDlg
);
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
,
750 case RID_SCDLG_COLORROW
:
751 pDlg
= new ScColOrRowDlg( pParent
, rStrTitle
,rStrLabel
,bColDefault
);
758 return new VclAbstractDialog_Impl( pDlg
);
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
)
770 case RID_SCDLG_SORT_WARNING
:
771 pDlg
= new ScSortWarningDlg( pParent
, rExtendText
, rCurrentText
);
777 return new VclAbstractDialog_Impl( pDlg
);
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
;
790 case RID_SCDLG_DAPIDATA
:
791 pDlg
= new ScDataPilotDatabaseDlg( pParent
);
798 return new AbstractScDataPilotDatabaseDlg_Impl( pDlg
);
801 //add for ScDataPilotDatabaseDlg end
803 //add for ScDataPilotSourceTypeDlg begin
804 AbstractScDataPilotSourceTypeDlg
* ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg( Window
* pParent
,
805 BOOL bEnableExternal
,
808 ScDataPilotSourceTypeDlg
* pDlg
=NULL
;
811 case RID_SCDLG_DAPITYPE
:
812 pDlg
= new ScDataPilotSourceTypeDlg( pParent
, bEnableExternal
);
819 return new AbstractScDataPilotSourceTypeDlg_Impl( pDlg
);
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
,
831 ScDataPilotServiceDlg
* pDlg
=NULL
;
834 case RID_SCDLG_DAPISERVICE
:
835 pDlg
= new ScDataPilotServiceDlg( pParent
, rServices
);
842 return new AbstractScDataPilotServiceDlg_Impl( pDlg
);
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
;
855 case RID_SCDLG_DELCELL
:
856 pDlg
= new ScDeleteCellDlg( pParent
, bDisallowCellMove
);
863 return new AbstractScDeleteCellDlg_Impl( pDlg
);
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
;
875 case RID_SCDLG_DATAFORM
:
876 pDlg
= new ScDataFormDlg( pParent
, pTabViewShell
);
883 return new AbstractScDataFormDlg_Impl( pDlg
);
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
;
896 case RID_SCDLG_DELCONT
:
897 pDlg
= new ScDeleteContentsDlg( pParent
, nCheckDefaults
);
904 return new AbstractScDeleteContentsDlg_Impl( pDlg
);
908 //add for ScDeleteContentsDlg end
910 //add for ScFillSeriesDlg begin
911 AbstractScFillSeriesDlg
* ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg( Window
* pParent
, //add for ScFillSeriesDlg
912 ScDocument
& rDocument
,
915 FillDateCmd eFillDateCmd
,
922 ScFillSeriesDlg
* pDlg
=NULL
;
925 case RID_SCDLG_FILLSERIES
:
926 pDlg
= new ScFillSeriesDlg( pParent
, rDocument
,eFillDir
, eFillCmd
,eFillDateCmd
, aStartStr
,fStep
,fMax
,nPossDir
);
933 return new AbstractScFillSeriesDlg_Impl( pDlg
);
937 //add for ScFillSeriesDlg end
939 //add for ScGroupDlg begin
940 AbstractScGroupDlg
* ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg( Window
* pParent
,
946 ScGroupDlg
* pDlg
=NULL
;
949 case RID_SCDLG_GRP_KILL
:
950 case RID_SCDLG_GRP_MAKE
:
951 pDlg
= new ScGroupDlg( pParent
, nResId
,bUnGroup
, bRows
);
958 return new AbstractScGroupDlg_Impl( pDlg
);
962 //add for ScGroupDlg end
965 //add for ScInsertCellDlg begin
966 AbstractScInsertCellDlg
* ScAbstractDialogFactory_Impl::CreateScInsertCellDlg( Window
* pParent
, //add for ScInsertCellDlg
968 BOOL bDisallowCellMove
)
970 ScInsertCellDlg
* pDlg
=NULL
;
973 case RID_SCDLG_INSCELL
:
974 pDlg
= new ScInsertCellDlg( pParent
, bDisallowCellMove
);
981 return new AbstractScInsertCellDlg_Impl( pDlg
);
985 //add for ScInsertCellDlg end
987 //add for ScInsertContentsDlg begin
988 AbstractScInsertContentsDlg
* ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg( Window
* pParent
,
990 USHORT nCheckDefaults
,
991 const String
* pStrTitle
)
993 ScInsertContentsDlg
* pDlg
=NULL
;
996 case RID_SCDLG_INSCONT
:
997 pDlg
= new ScInsertContentsDlg( pParent
, nCheckDefaults
,pStrTitle
);
1004 return new AbstractScInsertContentsDlg_Impl( pDlg
);
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
;
1016 case RID_SCDLG_INSERT_TABLE
:
1017 pDlg
= new ScInsertTableDlg( pParent
, rViewData
,nTabCount
, bFromFile
);
1024 return new AbstractScInsertTableDlg_Impl( pDlg
);
1027 //add for ScInsertTableDlg end
1029 // add for ScSelEntryDlg begin
1030 AbstractScSelEntryDlg
* ScAbstractDialogFactory_Impl::CreateScSelEntryDlg ( Window
* pParent
,
1032 const String
& aTitle
,
1033 const String
& aLbTitle
,
1037 ScSelEntryDlg
* pDlg
=NULL
;
1040 case RID_SCDLG_SELECTDB
:
1041 pDlg
= new ScSelEntryDlg( pParent
, nResId
,aTitle
, aLbTitle
, aEntryList
);
1048 return new AbstractScSelEntryDlg_Impl( pDlg
);
1051 // add for ScSelEntryDlg end
1053 //add for ScLinkedAreaDlg begin
1054 AbstractScLinkedAreaDlg
* ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg ( Window
* pParent
,
1057 ScLinkedAreaDlg
* pDlg
=NULL
;
1060 case RID_SCDLG_LINKAREA
:
1061 pDlg
= new ScLinkedAreaDlg( pParent
);
1068 return new AbstractScLinkedAreaDlg_Impl( pDlg
);
1071 //add for ScLinkedAreaDlg end
1073 //add for ScMetricInputDlg begin
1074 AbstractScMetricInputDlg
* ScAbstractDialogFactory_Impl::CreateScMetricInputDlg ( Window
* pParent
,
1075 USHORT nResId
, // Ableitung fuer jeden Dialog!
1086 ScMetricInputDlg
* pDlg
=NULL
;
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
);
1101 return new AbstractScMetricInputDlg_Impl( pDlg
);
1104 //add for ScMetricInputDlg end
1107 //add for ScMoveTableDlg begin
1108 AbstractScMoveTableDlg
* ScAbstractDialogFactory_Impl::CreateScMoveTableDlg( Window
* pParent
, int nId
)
1110 ScMoveTableDlg
* pDlg
=NULL
;
1113 case RID_SCDLG_MOVETAB
:
1114 pDlg
= new ScMoveTableDlg( pParent
);
1121 return new AbstractScMoveTableDlg_Impl( pDlg
);
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
;
1133 case RID_SCDLG_NAMES_CREATE
:
1134 pDlg
= new ScNameCreateDlg( pParent
, nFlags
);
1141 return new AbstractScNameCreateDlg_Impl( pDlg
);
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
;
1154 case RID_SCDLG_NAMES_PASTE
:
1155 pDlg
= new ScNamePasteDlg( pParent
, pList
, bInsList
);
1162 return new AbstractScNamePasteDlg_Impl( pDlg
);
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
;
1174 case RID_SCDLG_PIVOTFILTER
:
1175 pDlg
= new ScPivotFilterDlg( pParent
, rArgSet
, nSourceTab
);
1182 return new AbstractScPivotFilterDlg_Impl( pDlg
);
1185 //add for ScPivotFilterDlg end
1188 //add for ScDPFunctionDlg begin
1189 AbstractScDPFunctionDlg
* ScAbstractDialogFactory_Impl::CreateScDPFunctionDlg ( Window
* pParent
,
1191 const ScDPLabelDataVec
& rLabelVec
,
1192 const ScDPLabelData
& rLabelData
,
1193 const ScDPFuncData
& rFuncData
)
1195 ScDPFunctionDlg
* pDlg
=NULL
;
1198 case RID_SCDLG_DPDATAFIELD
:
1199 pDlg
= new ScDPFunctionDlg( pParent
, rLabelVec
, rLabelData
, rFuncData
);
1206 return new AbstractScDPFunctionDlg_Impl( pDlg
);
1209 //add for ScDPFunctionDlg end
1211 //add for ScDPSubtotalDlg begin
1212 AbstractScDPSubtotalDlg
* ScAbstractDialogFactory_Impl::CreateScDPSubtotalDlg ( Window
* pParent
,
1215 const ScDPLabelData
& rLabelData
,
1216 const ScDPFuncData
& rFuncData
,
1217 const ScDPNameVec
& rDataFields
,
1218 bool bEnableLayout
)
1220 ScDPSubtotalDlg
* pDlg
=NULL
;
1223 case RID_SCDLG_PIVOTSUBT
:
1224 pDlg
= new ScDPSubtotalDlg( pParent
, rDPObj
, rLabelData
, rFuncData
, rDataFields
, bEnableLayout
);
1231 return new AbstractScDPSubtotalDlg_Impl( pDlg
);
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
) );
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
) );
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
) );
1261 //add for ScDPShowDetailDlg end
1263 //add for ScNewScenarioDlg begin
1264 AbstractScNewScenarioDlg
* ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg ( Window
* pParent
, const String
& rName
,
1266 BOOL bEdit
, BOOL bSheetProtected
)
1268 ScNewScenarioDlg
* pDlg
=NULL
;
1271 case RID_SCDLG_NEWSCENARIO
:
1272 pDlg
= new ScNewScenarioDlg( pParent
, rName
, bEdit
,bSheetProtected
);
1279 return new AbstractScNewScenarioDlg_Impl( pDlg
);
1282 //add for ScNewScenarioDlg end
1284 //add for ScShowTabDlg begin
1285 AbstractScShowTabDlg
* ScAbstractDialogFactory_Impl::CreateScShowTabDlg ( Window
* pParent
, int nId
)
1287 ScShowTabDlg
* pDlg
=NULL
;
1290 case RID_SCDLG_SHOW_TAB
:
1291 pDlg
= new ScShowTabDlg( pParent
);
1298 return new AbstractScShowTabDlg_Impl( pDlg
);
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
,
1313 ScStringInputDlg
* pDlg
=NULL
;
1316 case RID_SCDLG_STRINPUT
:
1317 pDlg
= new ScStringInputDlg( pParent
, rTitle
, rEditTitle
,rDefault
, nHelpId
);
1324 return new AbstractScStringInputDlg_Impl( pDlg
);
1327 //add for ScStringInputDlg end
1329 //add for ScTabBgColorDlg begin
1330 AbstractScTabBgColorDlg
* ScAbstractDialogFactory_Impl::CreateScTabBgColorDlg (
1332 const String
& rTitle
,
1333 const String
& rTabBgColorNoColorText
,
1334 const Color
& rDefaultColor
,
1338 ScTabBgColorDlg
* pDlg
=NULL
;
1341 case RID_SCDLG_TAB_BG_COLOR
:
1342 pDlg
= new ScTabBgColorDlg( pParent
, rTitle
, rTabBgColorNoColorText
, rDefaultColor
, nHelpId
);
1349 return new AbstractScTabBgColorDlg_Impl( pDlg
);
1352 //add for ScTabBgColorDlg end
1354 //add for ScImportOptionsDlg begin
1355 AbstractScImportOptionsDlg
* ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg ( Window
* pParent
,
1358 const ScImportOptions
* pOptions
,
1359 const String
* pStrTitle
,
1361 BOOL bOnlyDbtoolsEncodings
,
1364 ScImportOptionsDlg
* pDlg
=NULL
;
1367 case RID_SCDLG_IMPORTOPT
:
1368 pDlg
= new ScImportOptionsDlg( pParent
, bAscii
, pOptions
,pStrTitle
, bMultiByte
,bOnlyDbtoolsEncodings
, bImport
);
1375 return new AbstractScImportOptionsDlg_Impl( pDlg
);
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
,
1387 const SfxItemSet
* pCellAttrs
,
1390 SfxTabDialog
* pDlg
=NULL
;
1393 case RID_SCDLG_ATTR
:
1394 pDlg
= new ScAttrDlg( pFrame
, pParent
, pCellAttrs
);
1401 return new AbstractTabDialog_Impl( pDlg
);
1405 //add for ScAttrDlg end
1407 #undef AbstractTabDialog_Impl
1409 //add for ScHFEditDlg begin
1410 SfxAbstractTabDialog
* ScAbstractDialogFactory_Impl::CreateScHFEditDlg( SfxViewFrame
* pFrame
,
1412 const SfxItemSet
& rCoreSet
,
1413 const String
& rPageStyle
,
1417 SfxTabDialog
* pDlg
=NULL
;
1420 case RID_SCDLG_HFEDIT
:
1421 pDlg
= new ScHFEditDlg( pFrame
, pParent
, rCoreSet
,rPageStyle
, nResId
);
1428 return new AbstractTabDialog_Impl( pDlg
);
1431 //add for ScHFEditDlg end
1433 //add for ScStyleDlg begin
1434 SfxAbstractTabDialog
* ScAbstractDialogFactory_Impl::CreateScStyleDlg( Window
* pParent
,
1435 SfxStyleSheetBase
& rStyleBase
,
1439 SfxTabDialog
* pDlg
=NULL
;
1442 case RID_SCDLG_STYLES_PAGE
:
1443 case RID_SCDLG_STYLES_PAR
:
1444 pDlg
= new ScStyleDlg( pParent
, rStyleBase
, nRscId
);
1451 return new AbstractTabDialog_Impl( pDlg
);
1454 //add for ScStyleDlg end
1456 //add for ScSubTotalDlg begin
1457 SfxAbstractTabDialog
* ScAbstractDialogFactory_Impl::CreateScSubTotalDlg( Window
* pParent
,
1458 const SfxItemSet
* pArgSet
,
1461 SfxTabDialog
* pDlg
=NULL
;
1464 case RID_SCDLG_SUBTOTALS
:
1465 pDlg
= new ScSubTotalDlg( pParent
, pArgSet
);
1472 return new AbstractTabDialog_Impl( pDlg
);
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
;
1484 case RID_SCDLG_CHAR
:
1485 pDlg
= new ScCharDlg( pParent
, pAttr
, pDocShell
);
1492 return new AbstractTabDialog_Impl( pDlg
);
1495 //add for ScCharDlg end
1497 //add for ScParagraphDlg begin
1498 SfxAbstractTabDialog
* ScAbstractDialogFactory_Impl::CreateScParagraphDlg( Window
* pParent
, const SfxItemSet
* pAttr
,
1501 SfxTabDialog
* pDlg
=NULL
;
1504 case RID_SCDLG_PARAGRAPH
:
1505 pDlg
= new ScParagraphDlg( pParent
, pAttr
);
1512 return new AbstractTabDialog_Impl( pDlg
);
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
;
1524 case TAB_DLG_VALIDATION
:
1525 pDlg
= new ScValidationDlg( pParent
, pArgSet
);
1532 return new AbstractTabDialog_Impl( pDlg
);
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
;
1548 case RID_SCDLG_SORT
:
1549 pDlg
= new ScSortDlg( pParent
, pArgSet
);
1556 return new AbstractTabDialog_Impl( pDlg
);
1560 #undef AbstractTabDialog_Impl
1562 //add for ScSortDlg end
1563 //------------------ Factories for TabPages--------------------
1564 CreateTabPage
ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc( USHORT nId
)
1568 case RID_SCPAGE_OPREDLINE
:
1569 return ScRedlineOptionsTabPage::Create
;
1571 case RID_SCPAGE_CALC
:
1572 return ScTpCalcOptions::Create
;
1574 case RID_SCPAGE_FORMULA
:
1575 return ScTpFormulaOptions::Create
;
1576 case RID_SCPAGE_PRINT
:
1577 return ScTpPrintOptions::Create
;
1579 case RID_SCPAGE_STAT
:
1580 return ScDocStatPage::Create
;
1582 case RID_SCPAGE_USERLISTS
:
1583 return ScTpUserLists::Create
;
1585 case RID_SCPAGE_CONTENT
:
1586 return ScTpContentOptions::Create
;
1588 case RID_SCPAGE_LAYOUT
:
1589 return ScTpLayoutOptions::Create
;
1599 GetTabPageRanges
ScAbstractDialogFactory_Impl::GetTabPageRangesFunc( USHORT nId
)
1603 case TP_VALIDATION_VALUES
:
1604 return ScTPValidationValue::GetRanges
;
1613 void ScDPFunctionDlg_Dummy()
1615 // use ScDPListBoxWrapper to avoid warning (this isn't called)
1616 ListBox
* pListBox
= NULL
;
1617 ScDPListBoxWrapper
aWrapper( *pListBox
);