update dev300-m58
[ooovba.git] / sc / source / ui / attrdlg / scdlgfact.hxx
blob611a10701284d99cbfea3844e1e25eef49b310f9
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: scdlgfact.hxx,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 ************************************************************************/
30 #ifndef _SC_DLGFACT_HXX
31 #define _SC_DLGFACT_HXX
33 // include ---------------------------------------------------------------
34 #include "scabstdlg.hxx" //CHINA001
35 class Dialog;
36 class ScImportAsciiDlg;
37 class ScAutoFormatDlg;
38 class ScColRowLabelDlg;
39 class ScDataPilotDatabaseDlg;
40 class ScDataPilotSourceTypeDlg;
41 class ScDataPilotServiceDlg;
42 class ScDeleteCellDlg;
43 class ScDataFormDlg;
44 class ScDeleteContentsDlg;
45 class ScFillSeriesDlg;
46 class ScGroupDlg;
47 class ScInsertCellDlg;
48 class ScInsertContentsDlg;
49 class ScInsertTableDlg;
50 class ScSelEntryDlg;
51 class ScLinkedAreaDlg;
52 class ScMetricInputDlg;
53 class ScMoveTableDlg;
54 class ScNameCreateDlg;
55 class ScNamePasteDlg;
56 class ScPivotFilterDlg;
57 class ScDPFunctionDlg;
58 class ScDPSubtotalDlg;
59 class ScDPNumGroupDlg;
60 class ScDPDateGroupDlg;
61 class ScDPShowDetailDlg;
62 class ScNewScenarioDlg;
63 class ScShowTabDlg;
64 class ScStringInputDlg;
65 class ScTabBgColorDlg;
66 class ScImportOptionsDlg;
67 class SfxTabDialog;
68 class ScSortWarningDlg;
69 class ScTextImportOptionsDlg;
71 #define DECL_ABSTDLG_BASE(Class,DialogClass) \
72 DialogClass* pDlg; \
73 public: \
74 Class( DialogClass* p) \
75 : pDlg(p) \
76 {} \
77 virtual ~Class(); \
78 virtual short Execute() ;
79 // virtual void Show( BOOL bVisible = TRUE, USHORT nFlags = 0 )
81 #define DECL_ABSTDLG2_BASE(Class,DialogClass) \
82 DialogClass* pDlg; \
83 public: \
84 Class( DialogClass* p) \
85 : pDlg(p) \
86 {} \
87 virtual ~Class(); \
88 virtual void StartExecuteModal( const Link& rEndDialogHdl ); \
89 long GetResult();
91 #define IMPL_ABSTDLG_BASE(Class) \
92 Class::~Class() \
93 { \
94 delete pDlg; \
95 } \
96 short Class::Execute() \
97 { \
98 return pDlg->Execute(); \
101 #define IMPL_ABSTDLG2_BASE(Class) \
102 Class::~Class() \
104 delete pDlg; \
106 void Class::StartExecuteModal( const Link& rEndDialogHdl ) \
108 pDlg->StartExecuteModal( rEndDialogHdl ) ; \
110 long Class::GetResult() \
112 return pDlg->GetResult(); \
115 class VclAbstractDialog_Impl : public VclAbstractDialog //add for ScColOrRowDlg
117 DECL_ABSTDLG_BASE(VclAbstractDialog_Impl,Dialog)
120 class AbstractScImportAsciiDlg_Impl : public AbstractScImportAsciiDlg //add for ScImportAsciiDlg
122 DECL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl, ScImportAsciiDlg)
123 virtual void GetOptions( ScAsciiOptions& rOpt );
124 virtual void SetTextToColumnsMode();
127 class AbstractScAutoFormatDlg_Impl : public AbstractScAutoFormatDlg //add for ScAutoFormatDlg
129 DECL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl, ScAutoFormatDlg)
130 virtual USHORT GetIndex() const;
131 virtual String GetCurrFormatName();
134 class AbstractScColRowLabelDlg_Impl : public AbstractScColRowLabelDlg //add for ScColRowLabelDlg
136 DECL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl,ScColRowLabelDlg)
137 virtual BOOL IsCol();
138 virtual BOOL IsRow();
141 class AbstractScDataPilotDatabaseDlg_Impl :public AbstractScDataPilotDatabaseDlg //add for ScDataPilotDatabaseDlg
143 DECL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl, ScDataPilotDatabaseDlg)
144 virtual void GetValues( ScImportSourceDesc& rDesc );
147 class AbstractScDataPilotSourceTypeDlg_Impl :public AbstractScDataPilotSourceTypeDlg //add for ScDataPilotSourceTypeDlg
149 DECL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl, ScDataPilotSourceTypeDlg)
150 virtual BOOL IsDatabase() const;
151 virtual BOOL IsExternal() const;
154 class AbstractScDataPilotServiceDlg_Impl : public AbstractScDataPilotServiceDlg //add for ScDataPilotServiceDlg
156 DECL_ABSTDLG_BASE(AbstractScDataPilotServiceDlg_Impl, ScDataPilotServiceDlg)
157 virtual String GetServiceName() const;
158 virtual String GetParSource() const;
159 virtual String GetParName() const;
160 virtual String GetParUser() const;
161 virtual String GetParPass() const;
164 class AbstractScDeleteCellDlg_Impl : public AbstractScDeleteCellDlg //add for ScDeleteCellDlg
166 DECL_ABSTDLG_BASE(AbstractScDeleteCellDlg_Impl,ScDeleteCellDlg)
167 virtual DelCellCmd GetDelCellCmd() const;
170 //for dataform
171 class AbstractScDataFormDlg_Impl : public AbstractScDataFormDlg //add for ScDataFormDlg
173 DECL_ABSTDLG_BASE(AbstractScDataFormDlg_Impl,ScDataFormDlg);
176 class AbstractScDeleteContentsDlg_Impl : public AbstractScDeleteContentsDlg //add for ScDeleteContentsDlg
178 DECL_ABSTDLG_BASE( AbstractScDeleteContentsDlg_Impl,ScDeleteContentsDlg)
179 virtual void DisableObjects();
180 virtual USHORT GetDelContentsCmdBits() const;
183 class AbstractScFillSeriesDlg_Impl:public AbstractScFillSeriesDlg //add for ScFillSeriesDlg
185 DECL_ABSTDLG_BASE(AbstractScFillSeriesDlg_Impl, ScFillSeriesDlg)
186 virtual FillDir GetFillDir() const;
187 virtual FillCmd GetFillCmd() const;
188 virtual FillDateCmd GetFillDateCmd() const;
189 virtual double GetStart() const;
190 virtual double GetStep() const;
191 virtual double GetMax() const;
192 virtual String GetStartStr() const;
193 virtual void SetEdStartValEnabled(BOOL bFlag=FALSE);
196 class AbstractScGroupDlg_Impl : public AbstractScGroupDlg //add for ScGroupDlg
198 DECL_ABSTDLG_BASE( AbstractScGroupDlg_Impl, ScGroupDlg)
199 virtual BOOL GetColsChecked() const;
202 class AbstractScInsertCellDlg_Impl : public AbstractScInsertCellDlg //add for ScInsertCellDlg
204 DECL_ABSTDLG_BASE( AbstractScInsertCellDlg_Impl, ScInsertCellDlg)
205 virtual InsCellCmd GetInsCellCmd() const ;
208 class AbstractScInsertContentsDlg_Impl : public AbstractScInsertContentsDlg //add for ScInsertContentsDlg
210 DECL_ABSTDLG_BASE(AbstractScInsertContentsDlg_Impl, ScInsertContentsDlg)
211 virtual USHORT GetInsContentsCmdBits() const;
212 virtual USHORT GetFormulaCmdBits() const;
213 virtual BOOL IsSkipEmptyCells() const;
214 virtual BOOL IsLink() const;
215 virtual void SetFillMode( BOOL bSet );
216 virtual void SetOtherDoc( BOOL bSet );
217 virtual BOOL IsTranspose() const;
218 virtual void SetChangeTrack( BOOL bSet );
219 virtual void SetCellShiftDisabled( int nDisable );
220 virtual InsCellCmd GetMoveMode();
223 class AbstractScInsertTableDlg_Impl : public AbstractScInsertTableDlg //add for ScInsertTableDlg
225 DECL_ABSTDLG_BASE( AbstractScInsertTableDlg_Impl, ScInsertTableDlg)
226 virtual BOOL GetTablesFromFile();
227 virtual BOOL GetTablesAsLink();
228 virtual const String* GetFirstTable( USHORT* pN = NULL );
229 virtual ScDocShell* GetDocShellTables();
230 virtual BOOL IsTableBefore();
231 virtual USHORT GetTableCount();
232 virtual const String* GetNextTable( USHORT* pN = NULL );
236 class AbstractScSelEntryDlg_Impl : public AbstractScSelEntryDlg //add for ScSelEntryDlg
238 DECL_ABSTDLG_BASE( AbstractScSelEntryDlg_Impl, ScSelEntryDlg )
239 virtual String GetSelectEntry() const;
242 class AbstractScLinkedAreaDlg_Impl : public AbstractScLinkedAreaDlg //add for ScLinkedAreaDlg
244 DECL_ABSTDLG2_BASE( AbstractScLinkedAreaDlg_Impl, ScLinkedAreaDlg)
246 virtual void InitFromOldLink( const String& rFile, const String& rFilter,
247 const String& rOptions, const String& rSource,
248 ULONG nRefresh );
249 virtual String GetURL();
250 virtual String GetFilter(); // may be empty
251 virtual String GetOptions(); // filter options
252 virtual String GetSource(); // separated by ";"
253 virtual ULONG GetRefresh(); // 0 if disabled
256 class AbstractScMetricInputDlg_Impl : public AbstractScMetricInputDlg //add for ScMetricInputDlg
258 DECL_ABSTDLG_BASE( AbstractScMetricInputDlg_Impl, ScMetricInputDlg)
259 virtual long GetInputValue( FieldUnit eUnit = FUNIT_TWIP ) const;
262 class AbstractScMoveTableDlg_Impl : public AbstractScMoveTableDlg //add for ScMoveTableDlg
264 DECL_ABSTDLG_BASE( AbstractScMoveTableDlg_Impl, ScMoveTableDlg)
265 virtual USHORT GetSelectedDocument () const;
266 virtual USHORT GetSelectedTable () const;
267 virtual BOOL GetCopyTable () const;
268 virtual void SetCopyTable (BOOL bFlag=TRUE);
269 virtual void EnableCopyTable (BOOL bFlag=TRUE);
272 class AbstractScNameCreateDlg_Impl : public AbstractScNameCreateDlg //add for ScNameCreateDlg
274 DECL_ABSTDLG_BASE( AbstractScNameCreateDlg_Impl, ScNameCreateDlg)
275 virtual USHORT GetFlags() const;
278 class AbstractScNamePasteDlg_Impl : public AbstractScNamePasteDlg //add for ScNamePasteDlg
280 DECL_ABSTDLG_BASE( AbstractScNamePasteDlg_Impl, ScNamePasteDlg )
281 virtual String GetSelectedName() const;
284 class AbstractScPivotFilterDlg_Impl : public AbstractScPivotFilterDlg //add for ScPivotFilterDlg
286 DECL_ABSTDLG_BASE( AbstractScPivotFilterDlg_Impl, ScPivotFilterDlg)
287 virtual const ScQueryItem& GetOutputItem();
290 class AbstractScDPFunctionDlg_Impl : public AbstractScDPFunctionDlg //add for ScDPFunctionDlg
292 DECL_ABSTDLG_BASE( AbstractScDPFunctionDlg_Impl, ScDPFunctionDlg)
293 virtual USHORT GetFuncMask() const;
294 virtual ::com::sun::star::sheet::DataPilotFieldReference GetFieldRef() const;
297 class AbstractScDPSubtotalDlg_Impl : public AbstractScDPSubtotalDlg //add for ScDPSubtotalDlg
299 DECL_ABSTDLG_BASE( AbstractScDPSubtotalDlg_Impl, ScDPSubtotalDlg)
300 virtual USHORT GetFuncMask() const;
301 virtual void FillLabelData( ScDPLabelData& rLabelData ) const;
304 class AbstractScDPNumGroupDlg_Impl : public AbstractScDPNumGroupDlg
306 DECL_ABSTDLG_BASE( AbstractScDPNumGroupDlg_Impl, ScDPNumGroupDlg )
307 virtual ScDPNumGroupInfo GetGroupInfo() const;
310 class AbstractScDPDateGroupDlg_Impl : public AbstractScDPDateGroupDlg
312 DECL_ABSTDLG_BASE( AbstractScDPDateGroupDlg_Impl, ScDPDateGroupDlg )
313 virtual ScDPNumGroupInfo GetGroupInfo() const;
314 virtual sal_Int32 GetDatePart() const;
317 class AbstractScDPShowDetailDlg_Impl : public AbstractScDPShowDetailDlg
319 DECL_ABSTDLG_BASE( AbstractScDPShowDetailDlg_Impl, ScDPShowDetailDlg)
320 virtual String GetDimensionName() const;
323 class AbstractScNewScenarioDlg_Impl : public AbstractScNewScenarioDlg //add for ScNewScenarioDlg
325 DECL_ABSTDLG_BASE( AbstractScNewScenarioDlg_Impl, ScNewScenarioDlg )
326 virtual void SetScenarioData( const String& rName, const String& rComment,
327 const Color& rColor, USHORT nFlags );
329 virtual void GetScenarioData( String& rName, String& rComment,
330 Color& rColor, USHORT& rFlags ) const;
333 class AbstractScShowTabDlg_Impl : public AbstractScShowTabDlg //add for ScShowTabDlg
335 DECL_ABSTDLG_BASE(AbstractScShowTabDlg_Impl,ScShowTabDlg)
336 virtual void Insert( const String& rString, BOOL bSelected );
337 virtual USHORT GetSelectEntryCount() const;
338 virtual void SetDescription(const String& rTitle, const String& rFixedText,ULONG nDlgHelpId, ULONG nLbHelpId );
339 virtual String GetSelectEntry(USHORT nPos) const;
340 virtual USHORT GetSelectEntryPos(USHORT nPos) const;
343 class AbstractScStringInputDlg_Impl : public AbstractScStringInputDlg //add for ScStringInputDlg
345 DECL_ABSTDLG_BASE( AbstractScStringInputDlg_Impl, ScStringInputDlg )
346 virtual void GetInputString( String& rString ) const;
349 class AbstractScTabBgColorDlg_Impl : public AbstractScTabBgColorDlg //add for ScTabBgColorDlg
351 DECL_ABSTDLG_BASE( AbstractScTabBgColorDlg_Impl, ScTabBgColorDlg )
352 virtual void GetSelectedColor( Color& rColor ) const;
355 class AbstractScImportOptionsDlg_Impl : public AbstractScImportOptionsDlg //add for ScImportOptionsDlg
357 DECL_ABSTDLG_BASE( AbstractScImportOptionsDlg_Impl, ScImportOptionsDlg)
358 virtual void GetImportOptions( ScImportOptions& rOptions ) const;
361 class AbstractScTextImportOptionsDlg_Impl : public AbstractScTextImportOptionsDlg
363 DECL_ABSTDLG_BASE( AbstractScTextImportOptionsDlg_Impl, ScTextImportOptionsDlg)
364 virtual LanguageType GetLanguageType() const;
365 virtual bool IsDateConversionSet() const;
368 //add for ScAttrDlg , ScHFEditDlg, ScStyleDlg, ScSubTotalDlg, ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg
369 class AbstractTabDialog_Impl : public SfxAbstractTabDialog
371 DECL_ABSTDLG_BASE( AbstractTabDialog_Impl,SfxTabDialog )
372 virtual void SetCurPageId( USHORT nId );
373 virtual const SfxItemSet* GetOutputItemSet() const;
374 virtual const USHORT* GetInputRanges( const SfxItemPool& pItem ); //add by CHINA001
375 virtual void SetInputSet( const SfxItemSet* pInSet ); //add by CHINA001
376 //From class Window.
377 virtual void SetText( const XubString& rStr ); //add by CHINA001
378 virtual String GetText() const; //add by CHINA001
380 #if ENABLE_LAYOUT
381 namespace layout
383 //add for ScAttrDlg , ScHFEditDlg, ScStyleDlg, ScSubTotalDlg, ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg
384 class AbstractTabDialog_Impl : public SfxAbstractTabDialog
386 DECL_ABSTDLG_BASE( AbstractTabDialog_Impl,SfxTabDialog )
387 virtual void SetCurPageId( USHORT nId );
388 virtual const SfxItemSet* GetOutputItemSet() const;
389 virtual const USHORT* GetInputRanges( const SfxItemPool& pItem ); //add by CHINA001
390 virtual void SetInputSet( const SfxItemSet* pInSet ); //add by CHINA001
391 //From class Window.
392 virtual void SetText( const XubString& rStr ); //add by CHINA001
393 virtual String GetText() const; //add by CHINA001
395 } // end namespace layout
396 #endif /* ENABLE_LAYOUT */
397 //------------------------------------------------------------------------
398 //AbstractDialogFactory_Impl implementations
399 class ScAbstractDialogFactory_Impl : public ScAbstractDialogFactory
402 public:
403 //CHINA001 AbstractSwSaveLabelDlg* CreateSwSaveLabelDlg(SwLabFmtPage* pParent, SwLabRec& rRec, int nId );
405 virtual AbstractScImportAsciiDlg * CreateScImportAsciiDlg( Window* pParent, String aDatName, //add for ScImportAsciiDlg
406 SvStream* pInStream, int nId,
407 sal_Unicode cSep = '\t');
409 virtual AbstractScTextImportOptionsDlg * CreateScTextImportOptionsDlg( Window* pParent, int nId );
411 virtual AbstractScAutoFormatDlg * CreateScAutoFormatDlg( Window* pParent, //add for ScAutoFormatDlg
412 ScAutoFormat* pAutoFormat,
413 const ScAutoFormatData* pSelFormatData,
414 ScDocument* pDoc,
415 int nId);
416 virtual AbstractScColRowLabelDlg * CreateScColRowLabelDlg (Window* pParent, //add for ScColRowLabelDlg
417 int nId,
418 BOOL bCol = FALSE,
419 BOOL bRow = FALSE);
421 virtual VclAbstractDialog * CreateScColOrRowDlg( Window* pParent, //add for ScColOrRowDlg
422 const String& rStrTitle,
423 const String& rStrLabel,
424 int nId,
425 BOOL bColDefault = TRUE );
427 virtual VclAbstractDialog * CreateScSortWarningDlg( Window* pParent, const String& rExtendText, const String& rCurrentText, int nId );
429 virtual AbstractScDataPilotDatabaseDlg * CreateScDataPilotDatabaseDlg (Window* pParent ,int nId ); //add for ScDataPilotDatabaseDlg
431 virtual AbstractScDataPilotSourceTypeDlg * CreateScDataPilotSourceTypeDlg ( Window* pParent, BOOL bEnableExternal, int nId ) ; //add for ScDataPilotSourceTypeDlg
433 virtual AbstractScDataPilotServiceDlg * CreateScDataPilotServiceDlg( Window* pParent, //add for ScDataPilotServiceDlg
434 const com::sun::star::uno::Sequence<rtl::OUString>& rServices,
435 int nId );
436 virtual AbstractScDeleteCellDlg * CreateScDeleteCellDlg( Window* pParent, int nId,
437 BOOL bDisallowCellMove = FALSE ); //add for ScDeleteCellDlg
439 //for dataform
440 virtual AbstractScDataFormDlg * CreateScDataFormDlg( Window* pParent, int nId, ScTabViewShell* pTabViewShell); //add for ScDeleteCellDlg
442 virtual AbstractScDeleteContentsDlg * CreateScDeleteContentsDlg(Window* pParent,int nId, //add for ScDeleteContentsDlg
443 USHORT nCheckDefaults = 0 );
445 virtual AbstractScFillSeriesDlg * CreateScFillSeriesDlg( Window* pParent, //add for ScFillSeriesDlg
446 ScDocument& rDocument,
447 FillDir eFillDir,
448 FillCmd eFillCmd,
449 FillDateCmd eFillDateCmd,
450 String aStartStr,
451 double fStep,
452 double fMax,
453 USHORT nPossDir,
454 int nId);
455 virtual AbstractScGroupDlg * CreateAbstractScGroupDlg( Window* pParent, //add for ScGroupDlg
456 USHORT nResId,
457 int nId,
458 BOOL bUnGroup = FALSE,
459 BOOL bRows = TRUE );
461 virtual AbstractScInsertCellDlg * CreateScInsertCellDlg( Window* pParent, //add for ScInsertCellDlg
462 int nId,
463 BOOL bDisallowCellMove = FALSE );
465 virtual AbstractScInsertContentsDlg * CreateScInsertContentsDlg( Window* pParent, //add for ScInsertContentsDlg
466 int nId,
467 USHORT nCheckDefaults = 0,
468 const String* pStrTitle = NULL );
470 virtual AbstractScInsertTableDlg * CreateScInsertTableDlg ( Window* pParent, ScViewData& rViewData, //add for ScInsertTableDlg
471 SCTAB nTabCount, bool bFromFile, int nId);
473 virtual AbstractScSelEntryDlg * CreateScSelEntryDlg ( Window* pParent, // add for ScSelEntryDlg
474 USHORT nResId,
475 const String& aTitle,
476 const String& aLbTitle,
477 List& aEntryList,
478 int nId );
480 virtual AbstractScLinkedAreaDlg * CreateScLinkedAreaDlg ( Window* pParent, //add for ScLinkedAreaDlg
481 int nId);
483 virtual AbstractScMetricInputDlg * CreateScMetricInputDlg ( Window* pParent, //add for ScMetricInputDlg
484 USHORT nResId, // Ableitung fuer jeden Dialog!
485 long nCurrent,
486 long nDefault,
487 int nId ,
488 FieldUnit eFUnit = FUNIT_MM,
489 USHORT nDecimals = 2,
490 long nMaximum = 1000,
491 long nMinimum = 0,
492 long nFirst = 1,
493 long nLast = 100 );
495 virtual AbstractScMoveTableDlg * CreateScMoveTableDlg( Window* pParent, int nId ); //add for ScMoveTableDlg
496 virtual AbstractScNameCreateDlg * CreateScNameCreateDlg ( Window * pParent, USHORT nFlags, int nId ); //add for ScNameCreateDlg
498 virtual AbstractScNamePasteDlg * CreateScNamePasteDlg ( Window * pParent, const ScRangeName* pList, //add for ScNamePasteDlg
499 int nId , BOOL bInsList=TRUE );
501 virtual AbstractScPivotFilterDlg * CreateScPivotFilterDlg ( Window* pParent, //add for ScPivotFilterDlg
502 const SfxItemSet& rArgSet, USHORT nSourceTab , int nId );
504 virtual AbstractScDPFunctionDlg * CreateScDPFunctionDlg( Window* pParent, int nId,
505 const ScDPLabelDataVec& rLabelVec,
506 const ScDPLabelData& rLabelData,
507 const ScDPFuncData& rFuncData );
509 virtual AbstractScDPSubtotalDlg * CreateScDPSubtotalDlg( Window* pParent, int nId,
510 ScDPObject& rDPObj,
511 const ScDPLabelData& rLabelData,
512 const ScDPFuncData& rFuncData,
513 const ScDPNameVec& rDataFields,
514 bool bEnableLayout );
516 virtual AbstractScDPNumGroupDlg * CreateScDPNumGroupDlg( Window* pParent,
517 int nId,
518 const ScDPNumGroupInfo& rInfo );
520 virtual AbstractScDPDateGroupDlg * CreateScDPDateGroupDlg( Window* pParent,
521 int nId,
522 const ScDPNumGroupInfo& rInfo,
523 sal_Int32 nDatePart,
524 const Date& rNullDate );
526 virtual AbstractScDPShowDetailDlg * CreateScDPShowDetailDlg( Window* pParent, int nId,
527 ScDPObject& rDPObj,
528 USHORT nOrient );
530 virtual AbstractScNewScenarioDlg * CreateScNewScenarioDlg ( Window* pParent, const String& rName, //add for ScNewScenarioDlg
531 int nId,
532 BOOL bEdit = FALSE, BOOL bSheetProtected = FALSE );
533 virtual AbstractScShowTabDlg * CreateScShowTabDlg ( Window* pParent, int nId ); //add for ScShowTabDlg
535 virtual AbstractScStringInputDlg * CreateScStringInputDlg ( Window* pParent, //add for ScStringInputDlg
536 const String& rTitle,
537 const String& rEditTitle,
538 const String& rDefault,
539 ULONG nHelpId ,
540 int nId );
542 virtual AbstractScTabBgColorDlg * CreateScTabBgColorDlg ( Window* pParent, //add for ScStringInputDlg
543 const String& rTitle, //Dialog Title
544 const String& rTabBgColorNoColorText, //Label for no tab color
545 const Color& rDefaultColor, //Currently selected Color
546 ULONG nHelpId ,
547 int nId );
549 virtual AbstractScImportOptionsDlg * CreateScImportOptionsDlg ( Window* pParent, //add for ScImportOptionsDlg
550 int nId,
551 BOOL bAscii = TRUE,
552 const ScImportOptions* pOptions = NULL,
553 const String* pStrTitle = NULL,
554 BOOL bMultiByte = FALSE,
555 BOOL bOnlyDbtoolsEncodings = FALSE,
556 BOOL bImport = TRUE );
557 virtual SfxAbstractTabDialog * CreateScAttrDlg( SfxViewFrame* pFrame, //add for ScAttrDlg
558 Window* pParent,
559 const SfxItemSet* pCellAttrs,
560 int nId);
562 virtual SfxAbstractTabDialog * CreateScHFEditDlg( SfxViewFrame* pFrame, //add for ScHFEditDlg
563 Window* pParent,
564 const SfxItemSet& rCoreSet,
565 const String& rPageStyle,
566 int nId,
567 USHORT nResId = RID_SCDLG_HFEDIT );
569 virtual SfxAbstractTabDialog * CreateScStyleDlg( Window* pParent,//add for ScStyleDlg
570 SfxStyleSheetBase& rStyleBase,
571 USHORT nRscId,
572 int nId);
574 virtual SfxAbstractTabDialog * CreateScSubTotalDlg( Window* pParent, //add for ScSubTotalDlg
575 const SfxItemSet* pArgSet,
576 int nId);
577 virtual SfxAbstractTabDialog * CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr,//add for ScCharDlg
578 const SfxObjectShell* pDocShell, int nId );
580 virtual SfxAbstractTabDialog * CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ,//add for ScParagraphDlg
581 int nId );
583 virtual SfxAbstractTabDialog * CreateScValidationDlg( Window* pParent, //add for ScValidationDlg
584 const SfxItemSet* pArgSet,int nId );
586 virtual SfxAbstractTabDialog * CreateScSortDlg( Window* pParent, //add for ScSortDlg
587 const SfxItemSet* pArgSet,int nId );
588 // For TabPage
589 virtual CreateTabPage GetTabPageCreatorFunc( USHORT nId );
591 virtual GetTabPageRanges GetTabPageRangesFunc( USHORT nId );
595 //CHINA001 struct ScDialogsResMgr
596 //CHINA001 {
597 //CHINA001 static ResMgr* GetResMgr();
598 //CHINA001 };
600 #endif