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 "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"
86 #include "datafdlg.hxx" //add for ScDataFormDlg
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
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();
138 const USHORT
* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
140 return pDlg
->GetInputRanges( pItem
);
143 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
145 pDlg
->SetInputSet( pInSet
);
148 void AbstractTabDialog_Impl::SetText( const XubString
& rStr
)
150 pDlg
->SetText( rStr
);
152 String
AbstractTabDialog_Impl::GetText() const
154 return pDlg
->GetText();
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();
173 const USHORT
* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
175 return pDlg
->GetInputRanges( pItem
);
178 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
180 pDlg
->SetInputSet( pInSet
);
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
,
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
;
653 case RID_SCDLG_ASCII
:
654 pDlg
= new ScImportAsciiDlg( pParent
, aDatName
,pInStream
, cSep
);
661 return new AbstractScImportAsciiDlg_Impl( pDlg
);
664 // ScImportAsciiDlg end
666 AbstractScLangChooserDlg
* ScAbstractDialogFactory_Impl::CreateScLangChooserDlg( Window
* pParent
, int nId
)
668 ScLangChooserDlg
* pDlg
= NULL
;
671 case RID_SCDLG_LANG_CHOOSER
:
672 pDlg
= new ScLangChooserDlg(pParent
);
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
,
689 ScAutoFormatDlg
* pDlg
=NULL
;
692 case RID_SCDLG_AUTOFORMAT
:
693 pDlg
= new ScAutoFormatDlg( pParent
, pAutoFormat
,pSelFormatData
, pDoc
);
700 return new AbstractScAutoFormatDlg_Impl( pDlg
);
703 //add for ScAutoFormatDlg end
705 //add for ScColRowLabelDlg begin
707 AbstractScColRowLabelDlg
* ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(Window
* pParent
, //add for ScColRowLabelDlg
712 ScColRowLabelDlg
* pDlg
=NULL
;
715 case RID_SCDLG_CHARTCOLROW
:
716 pDlg
= new ScColRowLabelDlg( pParent
, bCol
,bRow
);
723 return new AbstractScColRowLabelDlg_Impl( pDlg
);
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
,
740 case RID_SCDLG_COLORROW
:
741 pDlg
= new ScColOrRowDlg( pParent
, rStrTitle
,rStrLabel
,bColDefault
);
748 return new VclAbstractDialog_Impl( pDlg
);
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
)
760 case RID_SCDLG_SORT_WARNING
:
761 pDlg
= new ScSortWarningDlg( pParent
, rExtendText
, rCurrentText
);
767 return new VclAbstractDialog_Impl( pDlg
);
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
;
780 case RID_SCDLG_DAPIDATA
:
781 pDlg
= new ScDataPilotDatabaseDlg( pParent
);
788 return new AbstractScDataPilotDatabaseDlg_Impl( pDlg
);
791 //add for ScDataPilotDatabaseDlg end
793 //add for ScDataPilotSourceTypeDlg begin
794 AbstractScDataPilotSourceTypeDlg
* ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg( Window
* pParent
,
795 BOOL bEnableExternal
,
798 ScDataPilotSourceTypeDlg
* pDlg
=NULL
;
801 case RID_SCDLG_DAPITYPE
:
802 pDlg
= new ScDataPilotSourceTypeDlg( pParent
, bEnableExternal
);
809 return new AbstractScDataPilotSourceTypeDlg_Impl( pDlg
);
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
,
821 ScDataPilotServiceDlg
* pDlg
=NULL
;
824 case RID_SCDLG_DAPISERVICE
:
825 pDlg
= new ScDataPilotServiceDlg( pParent
, rServices
);
832 return new AbstractScDataPilotServiceDlg_Impl( pDlg
);
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
;
845 case RID_SCDLG_DELCELL
:
846 pDlg
= new ScDeleteCellDlg( pParent
, bDisallowCellMove
);
853 return new AbstractScDeleteCellDlg_Impl( pDlg
);
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
;
865 case RID_SCDLG_DATAFORM
:
866 pDlg
= new ScDataFormDlg( pParent
, pTabViewShell
);
873 return new AbstractScDataFormDlg_Impl( pDlg
);
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
;
886 case RID_SCDLG_DELCONT
:
887 pDlg
= new ScDeleteContentsDlg( pParent
, nCheckDefaults
);
894 return new AbstractScDeleteContentsDlg_Impl( pDlg
);
898 //add for ScDeleteContentsDlg end
900 //add for ScFillSeriesDlg begin
901 AbstractScFillSeriesDlg
* ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg( Window
* pParent
, //add for ScFillSeriesDlg
902 ScDocument
& rDocument
,
905 FillDateCmd eFillDateCmd
,
912 ScFillSeriesDlg
* pDlg
=NULL
;
915 case RID_SCDLG_FILLSERIES
:
916 pDlg
= new ScFillSeriesDlg( pParent
, rDocument
,eFillDir
, eFillCmd
,eFillDateCmd
, aStartStr
,fStep
,fMax
,nPossDir
);
923 return new AbstractScFillSeriesDlg_Impl( pDlg
);
927 //add for ScFillSeriesDlg end
929 //add for ScGroupDlg begin
930 AbstractScGroupDlg
* ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg( Window
* pParent
,
936 ScGroupDlg
* pDlg
=NULL
;
939 case RID_SCDLG_GRP_KILL
:
940 case RID_SCDLG_GRP_MAKE
:
941 pDlg
= new ScGroupDlg( pParent
, nResId
,bUnGroup
, bRows
);
948 return new AbstractScGroupDlg_Impl( pDlg
);
952 //add for ScGroupDlg end
955 //add for ScInsertCellDlg begin
956 AbstractScInsertCellDlg
* ScAbstractDialogFactory_Impl::CreateScInsertCellDlg( Window
* pParent
, //add for ScInsertCellDlg
958 BOOL bDisallowCellMove
)
960 ScInsertCellDlg
* pDlg
=NULL
;
963 case RID_SCDLG_INSCELL
:
964 pDlg
= new ScInsertCellDlg( pParent
, bDisallowCellMove
);
971 return new AbstractScInsertCellDlg_Impl( pDlg
);
975 //add for ScInsertCellDlg end
977 //add for ScInsertContentsDlg begin
978 AbstractScInsertContentsDlg
* ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg( Window
* pParent
,
980 USHORT nCheckDefaults
,
981 const String
* pStrTitle
)
983 ScInsertContentsDlg
* pDlg
=NULL
;
986 case RID_SCDLG_INSCONT
:
987 pDlg
= new ScInsertContentsDlg( pParent
, nCheckDefaults
,pStrTitle
);
994 return new AbstractScInsertContentsDlg_Impl( pDlg
);
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
;
1006 case RID_SCDLG_INSERT_TABLE
:
1007 pDlg
= new ScInsertTableDlg( pParent
, rViewData
,nTabCount
, bFromFile
);
1014 return new AbstractScInsertTableDlg_Impl( pDlg
);
1017 //add for ScInsertTableDlg end
1019 // add for ScSelEntryDlg begin
1020 AbstractScSelEntryDlg
* ScAbstractDialogFactory_Impl::CreateScSelEntryDlg ( Window
* pParent
,
1022 const String
& aTitle
,
1023 const String
& aLbTitle
,
1027 ScSelEntryDlg
* pDlg
=NULL
;
1030 case RID_SCDLG_SELECTDB
:
1031 pDlg
= new ScSelEntryDlg( pParent
, nResId
,aTitle
, aLbTitle
, aEntryList
);
1038 return new AbstractScSelEntryDlg_Impl( pDlg
);
1041 // add for ScSelEntryDlg end
1043 //add for ScLinkedAreaDlg begin
1044 AbstractScLinkedAreaDlg
* ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg ( Window
* pParent
,
1047 ScLinkedAreaDlg
* pDlg
=NULL
;
1050 case RID_SCDLG_LINKAREA
:
1051 pDlg
= new ScLinkedAreaDlg( pParent
);
1058 return new AbstractScLinkedAreaDlg_Impl( pDlg
);
1061 //add for ScLinkedAreaDlg end
1063 //add for ScMetricInputDlg begin
1064 AbstractScMetricInputDlg
* ScAbstractDialogFactory_Impl::CreateScMetricInputDlg ( Window
* pParent
,
1065 USHORT nResId
, // Ableitung fuer jeden Dialog!
1076 ScMetricInputDlg
* pDlg
=NULL
;
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
);
1091 return new AbstractScMetricInputDlg_Impl( pDlg
);
1094 //add for ScMetricInputDlg end
1097 //add for ScMoveTableDlg begin
1098 AbstractScMoveTableDlg
* ScAbstractDialogFactory_Impl::CreateScMoveTableDlg( Window
* pParent
, int nId
)
1100 ScMoveTableDlg
* pDlg
=NULL
;
1103 case RID_SCDLG_MOVETAB
:
1104 pDlg
= new ScMoveTableDlg( pParent
);
1111 return new AbstractScMoveTableDlg_Impl( pDlg
);
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
;
1123 case RID_SCDLG_NAMES_CREATE
:
1124 pDlg
= new ScNameCreateDlg( pParent
, nFlags
);
1131 return new AbstractScNameCreateDlg_Impl( pDlg
);
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
;
1144 case RID_SCDLG_NAMES_PASTE
:
1145 pDlg
= new ScNamePasteDlg( pParent
, pList
, bInsList
);
1152 return new AbstractScNamePasteDlg_Impl( pDlg
);
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
;
1164 case RID_SCDLG_PIVOTFILTER
:
1165 pDlg
= new ScPivotFilterDlg( pParent
, rArgSet
, nSourceTab
);
1172 return new AbstractScPivotFilterDlg_Impl( pDlg
);
1175 //add for ScPivotFilterDlg end
1178 //add for ScDPFunctionDlg begin
1179 AbstractScDPFunctionDlg
* ScAbstractDialogFactory_Impl::CreateScDPFunctionDlg ( Window
* pParent
,
1181 const ScDPLabelDataVec
& rLabelVec
,
1182 const ScDPLabelData
& rLabelData
,
1183 const ScDPFuncData
& rFuncData
)
1185 ScDPFunctionDlg
* pDlg
=NULL
;
1188 case RID_SCDLG_DPDATAFIELD
:
1189 pDlg
= new ScDPFunctionDlg( pParent
, rLabelVec
, rLabelData
, rFuncData
);
1196 return new AbstractScDPFunctionDlg_Impl( pDlg
);
1199 //add for ScDPFunctionDlg end
1201 //add for ScDPSubtotalDlg begin
1202 AbstractScDPSubtotalDlg
* ScAbstractDialogFactory_Impl::CreateScDPSubtotalDlg ( Window
* pParent
,
1205 const ScDPLabelData
& rLabelData
,
1206 const ScDPFuncData
& rFuncData
,
1207 const ScDPNameVec
& rDataFields
,
1208 bool bEnableLayout
)
1210 ScDPSubtotalDlg
* pDlg
=NULL
;
1213 case RID_SCDLG_PIVOTSUBT
:
1214 pDlg
= new ScDPSubtotalDlg( pParent
, rDPObj
, rLabelData
, rFuncData
, rDataFields
, bEnableLayout
);
1221 return new AbstractScDPSubtotalDlg_Impl( pDlg
);
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
) );
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
) );
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
) );
1251 //add for ScDPShowDetailDlg end
1253 //add for ScNewScenarioDlg begin
1254 AbstractScNewScenarioDlg
* ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg ( Window
* pParent
, const String
& rName
,
1256 BOOL bEdit
, BOOL bSheetProtected
)
1258 ScNewScenarioDlg
* pDlg
=NULL
;
1261 case RID_SCDLG_NEWSCENARIO
:
1262 pDlg
= new ScNewScenarioDlg( pParent
, rName
, bEdit
,bSheetProtected
);
1269 return new AbstractScNewScenarioDlg_Impl( pDlg
);
1272 //add for ScNewScenarioDlg end
1274 //add for ScShowTabDlg begin
1275 AbstractScShowTabDlg
* ScAbstractDialogFactory_Impl::CreateScShowTabDlg ( Window
* pParent
, int nId
)
1277 ScShowTabDlg
* pDlg
=NULL
;
1280 case RID_SCDLG_SHOW_TAB
:
1281 pDlg
= new ScShowTabDlg( pParent
);
1288 return new AbstractScShowTabDlg_Impl( pDlg
);
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
,
1303 ScStringInputDlg
* pDlg
=NULL
;
1306 case RID_SCDLG_STRINPUT
:
1307 pDlg
= new ScStringInputDlg( pParent
, rTitle
, rEditTitle
,rDefault
, nHelpId
);
1314 return new AbstractScStringInputDlg_Impl( pDlg
);
1317 //add for ScStringInputDlg end
1319 //add for ScImportOptionsDlg begin
1320 AbstractScImportOptionsDlg
* ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg ( Window
* pParent
,
1323 const ScImportOptions
* pOptions
,
1324 const String
* pStrTitle
,
1326 BOOL bOnlyDbtoolsEncodings
,
1329 ScImportOptionsDlg
* pDlg
=NULL
;
1332 case RID_SCDLG_IMPORTOPT
:
1333 pDlg
= new ScImportOptionsDlg( pParent
, bAscii
, pOptions
,pStrTitle
, bMultiByte
,bOnlyDbtoolsEncodings
, bImport
);
1340 return new AbstractScImportOptionsDlg_Impl( pDlg
);
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
,
1352 const SfxItemSet
* pCellAttrs
,
1355 SfxTabDialog
* pDlg
=NULL
;
1358 case RID_SCDLG_ATTR
:
1359 pDlg
= new ScAttrDlg( pFrame
, pParent
, pCellAttrs
);
1366 return new AbstractTabDialog_Impl( pDlg
);
1370 //add for ScAttrDlg end
1372 #undef AbstractTabDialog_Impl
1374 //add for ScHFEditDlg begin
1375 SfxAbstractTabDialog
* ScAbstractDialogFactory_Impl::CreateScHFEditDlg( SfxViewFrame
* pFrame
,
1377 const SfxItemSet
& rCoreSet
,
1378 const String
& rPageStyle
,
1382 SfxTabDialog
* pDlg
=NULL
;
1385 case RID_SCDLG_HFEDIT
:
1386 pDlg
= new ScHFEditDlg( pFrame
, pParent
, rCoreSet
,rPageStyle
, nResId
);
1393 return new AbstractTabDialog_Impl( pDlg
);
1396 //add for ScHFEditDlg end
1398 //add for ScStyleDlg begin
1399 SfxAbstractTabDialog
* ScAbstractDialogFactory_Impl::CreateScStyleDlg( Window
* pParent
,
1400 SfxStyleSheetBase
& rStyleBase
,
1404 SfxTabDialog
* pDlg
=NULL
;
1407 case RID_SCDLG_STYLES_PAGE
:
1408 case RID_SCDLG_STYLES_PAR
:
1409 pDlg
= new ScStyleDlg( pParent
, rStyleBase
, nRscId
);
1416 return new AbstractTabDialog_Impl( pDlg
);
1419 //add for ScStyleDlg end
1421 //add for ScSubTotalDlg begin
1422 SfxAbstractTabDialog
* ScAbstractDialogFactory_Impl::CreateScSubTotalDlg( Window
* pParent
,
1423 const SfxItemSet
* pArgSet
,
1426 SfxTabDialog
* pDlg
=NULL
;
1429 case RID_SCDLG_SUBTOTALS
:
1430 pDlg
= new ScSubTotalDlg( pParent
, pArgSet
);
1437 return new AbstractTabDialog_Impl( pDlg
);
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
;
1449 case RID_SCDLG_CHAR
:
1450 pDlg
= new ScCharDlg( pParent
, pAttr
, pDocShell
);
1457 return new AbstractTabDialog_Impl( pDlg
);
1460 //add for ScCharDlg end
1462 //add for ScParagraphDlg begin
1463 SfxAbstractTabDialog
* ScAbstractDialogFactory_Impl::CreateScParagraphDlg( Window
* pParent
, const SfxItemSet
* pAttr
,
1466 SfxTabDialog
* pDlg
=NULL
;
1469 case RID_SCDLG_PARAGRAPH
:
1470 pDlg
= new ScParagraphDlg( pParent
, pAttr
);
1477 return new AbstractTabDialog_Impl( pDlg
);
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
;
1489 case TAB_DLG_VALIDATION
:
1490 pDlg
= new ScValidationDlg( pParent
, pArgSet
);
1497 return new AbstractTabDialog_Impl( pDlg
);
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
;
1513 case RID_SCDLG_SORT
:
1514 pDlg
= new ScSortDlg( pParent
, pArgSet
);
1521 return new AbstractTabDialog_Impl( pDlg
);
1525 #undef AbstractTabDialog_Impl
1527 //add for ScSortDlg end
1528 //------------------ Factories for TabPages--------------------
1529 CreateTabPage
ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc( USHORT nId
)
1533 case RID_SCPAGE_OPREDLINE
:
1534 return ScRedlineOptionsTabPage::Create
;
1536 case RID_SCPAGE_CALC
:
1537 return ScTpCalcOptions::Create
;
1539 case RID_SCPAGE_FORMULA
:
1540 return ScTpFormulaOptions::Create
;
1541 case RID_SCPAGE_PRINT
:
1542 return ScTpPrintOptions::Create
;
1544 case RID_SCPAGE_STAT
:
1545 return ScDocStatPage::Create
;
1547 case RID_SCPAGE_USERLISTS
:
1548 return ScTpUserLists::Create
;
1550 case RID_SCPAGE_CONTENT
:
1551 return ScTpContentOptions::Create
;
1553 case RID_SCPAGE_LAYOUT
:
1554 return ScTpLayoutOptions::Create
;
1564 GetTabPageRanges
ScAbstractDialogFactory_Impl::GetTabPageRangesFunc( USHORT nId
)
1568 case TP_VALIDATION_VALUES
:
1569 return ScTPValidationValue::GetRanges
;
1578 void ScDPFunctionDlg_Dummy()
1580 // use ScDPListBoxWrapper to avoid warning (this isn't called)
1581 ListBox
* pListBox
= NULL
;
1582 ScDPListBoxWrapper
aWrapper( *pListBox
);