1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _SC_DLGFACT_HXX 24 #define _SC_DLGFACT_HXX 25 26 // include --------------------------------------------------------------- 27 #include "scabstdlg.hxx" //CHINA001 28 class Dialog; 29 class ScImportAsciiDlg; 30 class ScAutoFormatDlg; 31 class ScColRowLabelDlg; 32 class ScDataPilotDatabaseDlg; 33 class ScDataPilotSourceTypeDlg; 34 class ScDataPilotServiceDlg; 35 class ScDeleteCellDlg; 36 class ScDeleteContentsDlg; 37 class ScFillSeriesDlg; 38 class ScGroupDlg; 39 class ScInsertCellDlg; 40 class ScInsertContentsDlg; 41 class ScInsertTableDlg; 42 class ScSelEntryDlg; 43 class ScLinkedAreaDlg; 44 class ScMetricInputDlg; 45 class ScMoveTableDlg; 46 class ScNameCreateDlg; 47 class ScNamePasteDlg; 48 class ScPivotFilterDlg; 49 class ScDPFunctionDlg; 50 class ScDPSubtotalDlg; 51 class ScDPNumGroupDlg; 52 class ScDPDateGroupDlg; 53 class ScDPShowDetailDlg; 54 class ScNewScenarioDlg; 55 class ScShowTabDlg; 56 class ScStringInputDlg; 57 class ScTabBgColorDlg; 58 class ScImportOptionsDlg; 59 class SfxTabDialog; 60 class ScSortWarningDlg; 61 class ScTextImportOptionsDlg; 62 63 #define DECL_ABSTDLG_BASE(Class,DialogClass) \ 64 DialogClass* pDlg; \ 65 public: \ 66 Class( DialogClass* p) \ 67 : pDlg(p) \ 68 {} \ 69 virtual ~Class(); \ 70 virtual short Execute() ; 71 // virtual void Show( sal_Bool bVisible = sal_True, sal_uInt16 nFlags = 0 ) 72 73 #define DECL_ABSTDLG2_BASE(Class,DialogClass) \ 74 DialogClass* pDlg; \ 75 public: \ 76 Class( DialogClass* p) \ 77 : pDlg(p) \ 78 {} \ 79 virtual ~Class(); \ 80 virtual void StartExecuteModal( const Link& rEndDialogHdl ); \ 81 long GetResult(); 82 83 #define IMPL_ABSTDLG_BASE(Class) \ 84 Class::~Class() \ 85 { \ 86 delete pDlg; \ 87 } \ 88 short Class::Execute() \ 89 { \ 90 return pDlg->Execute(); \ 91 } 92 93 #define IMPL_ABSTDLG2_BASE(Class) \ 94 Class::~Class() \ 95 { \ 96 delete pDlg; \ 97 } \ 98 void Class::StartExecuteModal( const Link& rEndDialogHdl ) \ 99 { \ 100 pDlg->StartExecuteModal( rEndDialogHdl ) ; \ 101 } \ 102 long Class::GetResult() \ 103 { \ 104 return pDlg->GetResult(); \ 105 } 106 107 class VclAbstractDialog_Impl : public VclAbstractDialog //add for ScColOrRowDlg 108 { 109 DECL_ABSTDLG_BASE(VclAbstractDialog_Impl,Dialog) 110 }; 111 112 class AbstractScImportAsciiDlg_Impl : public AbstractScImportAsciiDlg //add for ScImportAsciiDlg 113 { 114 DECL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl, ScImportAsciiDlg) 115 virtual void GetOptions( ScAsciiOptions& rOpt ); 116 virtual void SetTextToColumnsMode(); 117 virtual void SaveParameters(); 118 }; 119 120 class AbstractScAutoFormatDlg_Impl : public AbstractScAutoFormatDlg //add for ScAutoFormatDlg 121 { 122 DECL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl, ScAutoFormatDlg) 123 virtual sal_uInt16 GetIndex() const; 124 virtual String GetCurrFormatName(); 125 }; 126 127 class AbstractScColRowLabelDlg_Impl : public AbstractScColRowLabelDlg //add for ScColRowLabelDlg 128 { 129 DECL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl,ScColRowLabelDlg) 130 virtual sal_Bool IsCol(); 131 virtual sal_Bool IsRow(); 132 }; 133 134 class AbstractScDataPilotDatabaseDlg_Impl :public AbstractScDataPilotDatabaseDlg //add for ScDataPilotDatabaseDlg 135 { 136 DECL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl, ScDataPilotDatabaseDlg) 137 virtual void GetValues( ScImportSourceDesc& rDesc ); 138 }; 139 140 class AbstractScDataPilotSourceTypeDlg_Impl :public AbstractScDataPilotSourceTypeDlg //add for ScDataPilotSourceTypeDlg 141 { 142 DECL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl, ScDataPilotSourceTypeDlg) 143 virtual sal_Bool IsDatabase() const; 144 virtual sal_Bool IsExternal() const; 145 }; 146 147 class AbstractScDataPilotServiceDlg_Impl : public AbstractScDataPilotServiceDlg //add for ScDataPilotServiceDlg 148 { 149 DECL_ABSTDLG_BASE(AbstractScDataPilotServiceDlg_Impl, ScDataPilotServiceDlg) 150 virtual String GetServiceName() const; 151 virtual String GetParSource() const; 152 virtual String GetParName() const; 153 virtual String GetParUser() const; 154 virtual String GetParPass() const; 155 }; 156 157 class AbstractScDeleteCellDlg_Impl : public AbstractScDeleteCellDlg //add for ScDeleteCellDlg 158 { 159 DECL_ABSTDLG_BASE(AbstractScDeleteCellDlg_Impl,ScDeleteCellDlg) 160 virtual DelCellCmd GetDelCellCmd() const; 161 }; 162 163 class AbstractScDeleteContentsDlg_Impl : public AbstractScDeleteContentsDlg //add for ScDeleteContentsDlg 164 { 165 DECL_ABSTDLG_BASE( AbstractScDeleteContentsDlg_Impl,ScDeleteContentsDlg) 166 virtual void DisableObjects(); 167 virtual sal_uInt16 GetDelContentsCmdBits() const; 168 }; 169 170 class AbstractScFillSeriesDlg_Impl:public AbstractScFillSeriesDlg //add for ScFillSeriesDlg 171 { 172 DECL_ABSTDLG_BASE(AbstractScFillSeriesDlg_Impl, ScFillSeriesDlg) 173 virtual FillDir GetFillDir() const; 174 virtual FillCmd GetFillCmd() const; 175 virtual FillDateCmd GetFillDateCmd() const; 176 virtual double GetStart() const; 177 virtual double GetStep() const; 178 virtual double GetMax() const; 179 virtual String GetStartStr() const; 180 virtual void SetEdStartValEnabled(sal_Bool bFlag=sal_False); 181 }; 182 183 class AbstractScGroupDlg_Impl : public AbstractScGroupDlg //add for ScGroupDlg 184 { 185 DECL_ABSTDLG_BASE( AbstractScGroupDlg_Impl, ScGroupDlg) 186 virtual sal_Bool GetColsChecked() const; 187 }; 188 189 class AbstractScInsertCellDlg_Impl : public AbstractScInsertCellDlg //add for ScInsertCellDlg 190 { 191 DECL_ABSTDLG_BASE( AbstractScInsertCellDlg_Impl, ScInsertCellDlg) 192 virtual InsCellCmd GetInsCellCmd() const ; 193 }; 194 195 class AbstractScInsertContentsDlg_Impl : public AbstractScInsertContentsDlg //add for ScInsertContentsDlg 196 { 197 DECL_ABSTDLG_BASE(AbstractScInsertContentsDlg_Impl, ScInsertContentsDlg) 198 virtual sal_uInt16 GetInsContentsCmdBits() const; 199 virtual sal_uInt16 GetFormulaCmdBits() const; 200 virtual sal_Bool IsSkipEmptyCells() const; 201 virtual sal_Bool IsLink() const; 202 virtual void SetFillMode( sal_Bool bSet ); 203 virtual void SetOtherDoc( sal_Bool bSet ); 204 virtual sal_Bool IsTranspose() const; 205 virtual void SetChangeTrack( sal_Bool bSet ); 206 virtual void SetCellShiftDisabled( int nDisable ); 207 virtual InsCellCmd GetMoveMode(); 208 }; 209 210 class AbstractScInsertTableDlg_Impl : public AbstractScInsertTableDlg //add for ScInsertTableDlg 211 { 212 DECL_ABSTDLG_BASE( AbstractScInsertTableDlg_Impl, ScInsertTableDlg) 213 virtual sal_Bool GetTablesFromFile(); 214 virtual sal_Bool GetTablesAsLink(); 215 virtual const String* GetFirstTable( sal_uInt16* pN = NULL ); 216 virtual ScDocShell* GetDocShellTables(); 217 virtual sal_Bool IsTableBefore(); 218 virtual sal_uInt16 GetTableCount(); 219 virtual const String* GetNextTable( sal_uInt16* pN = NULL ); 220 221 }; 222 223 class AbstractScSelEntryDlg_Impl : public AbstractScSelEntryDlg //add for ScSelEntryDlg 224 { 225 DECL_ABSTDLG_BASE( AbstractScSelEntryDlg_Impl, ScSelEntryDlg ) 226 virtual String GetSelectEntry() const; 227 }; 228 229 class AbstractScLinkedAreaDlg_Impl : public AbstractScLinkedAreaDlg //add for ScLinkedAreaDlg 230 { 231 DECL_ABSTDLG2_BASE( AbstractScLinkedAreaDlg_Impl, ScLinkedAreaDlg) 232 233 virtual void InitFromOldLink( const String& rFile, const String& rFilter, 234 const String& rOptions, const String& rSource, 235 sal_uLong nRefresh ); 236 virtual String GetURL(); 237 virtual String GetFilter(); // may be empty 238 virtual String GetOptions(); // filter options 239 virtual String GetSource(); // separated by ";" 240 virtual sal_uLong GetRefresh(); // 0 if disabled 241 }; 242 243 class AbstractScMetricInputDlg_Impl : public AbstractScMetricInputDlg //add for ScMetricInputDlg 244 { 245 DECL_ABSTDLG_BASE( AbstractScMetricInputDlg_Impl, ScMetricInputDlg) 246 virtual long GetInputValue( FieldUnit eUnit = FUNIT_TWIP ) const; 247 }; 248 249 class AbstractScMoveTableDlg_Impl : public AbstractScMoveTableDlg //add for ScMoveTableDlg 250 { 251 DECL_ABSTDLG_BASE( AbstractScMoveTableDlg_Impl, ScMoveTableDlg) 252 virtual sal_uInt16 GetSelectedDocument () const; 253 virtual sal_uInt16 GetSelectedTable () const; 254 virtual sal_Bool GetCopyTable () const; 255 virtual void SetCopyTable (sal_Bool bFlag=sal_True); 256 virtual void EnableCopyTable (sal_Bool bFlag=sal_True); 257 }; 258 259 class AbstractScNameCreateDlg_Impl : public AbstractScNameCreateDlg //add for ScNameCreateDlg 260 { 261 DECL_ABSTDLG_BASE( AbstractScNameCreateDlg_Impl, ScNameCreateDlg) 262 virtual sal_uInt16 GetFlags() const; 263 }; 264 265 class AbstractScNamePasteDlg_Impl : public AbstractScNamePasteDlg //add for ScNamePasteDlg 266 { 267 DECL_ABSTDLG_BASE( AbstractScNamePasteDlg_Impl, ScNamePasteDlg ) 268 virtual String GetSelectedName() const; 269 }; 270 271 class AbstractScPivotFilterDlg_Impl : public AbstractScPivotFilterDlg //add for ScPivotFilterDlg 272 { 273 DECL_ABSTDLG_BASE( AbstractScPivotFilterDlg_Impl, ScPivotFilterDlg) 274 virtual const ScQueryItem& GetOutputItem(); 275 }; 276 277 class AbstractScDPFunctionDlg_Impl : public AbstractScDPFunctionDlg //add for ScDPFunctionDlg 278 { 279 DECL_ABSTDLG_BASE( AbstractScDPFunctionDlg_Impl, ScDPFunctionDlg) 280 virtual sal_uInt16 GetFuncMask() const; 281 virtual ::com::sun::star::sheet::DataPilotFieldReference GetFieldRef() const; 282 }; 283 284 class AbstractScDPSubtotalDlg_Impl : public AbstractScDPSubtotalDlg //add for ScDPSubtotalDlg 285 { 286 DECL_ABSTDLG_BASE( AbstractScDPSubtotalDlg_Impl, ScDPSubtotalDlg) 287 virtual sal_uInt16 GetFuncMask() const; 288 virtual void FillLabelData( ScDPLabelData& rLabelData ) const; 289 }; 290 291 class AbstractScDPNumGroupDlg_Impl : public AbstractScDPNumGroupDlg 292 { 293 DECL_ABSTDLG_BASE( AbstractScDPNumGroupDlg_Impl, ScDPNumGroupDlg ) 294 virtual ScDPNumGroupInfo GetGroupInfo() const; 295 }; 296 297 class AbstractScDPDateGroupDlg_Impl : public AbstractScDPDateGroupDlg 298 { 299 DECL_ABSTDLG_BASE( AbstractScDPDateGroupDlg_Impl, ScDPDateGroupDlg ) 300 virtual ScDPNumGroupInfo GetGroupInfo() const; 301 virtual sal_Int32 GetDatePart() const; 302 }; 303 304 class AbstractScDPShowDetailDlg_Impl : public AbstractScDPShowDetailDlg 305 { 306 DECL_ABSTDLG_BASE( AbstractScDPShowDetailDlg_Impl, ScDPShowDetailDlg) 307 virtual String GetDimensionName() const; 308 }; 309 310 class AbstractScNewScenarioDlg_Impl : public AbstractScNewScenarioDlg //add for ScNewScenarioDlg 311 { 312 DECL_ABSTDLG_BASE( AbstractScNewScenarioDlg_Impl, ScNewScenarioDlg ) 313 virtual void SetScenarioData( const String& rName, const String& rComment, 314 const Color& rColor, sal_uInt16 nFlags ); 315 316 virtual void GetScenarioData( String& rName, String& rComment, 317 Color& rColor, sal_uInt16& rFlags ) const; 318 }; 319 320 class AbstractScShowTabDlg_Impl : public AbstractScShowTabDlg //add for ScShowTabDlg 321 { 322 DECL_ABSTDLG_BASE(AbstractScShowTabDlg_Impl,ScShowTabDlg) 323 virtual void Insert( const String& rString, sal_Bool bSelected ); 324 virtual sal_uInt16 GetSelectEntryCount() const; 325 virtual void SetDescription(const String& rTitle, const String& rFixedText, const rtl::OString& sDlgHelpId, const rtl::OString& sLbHelpId ); 326 virtual String GetSelectEntry(sal_uInt16 nPos) const; 327 virtual sal_uInt16 GetSelectEntryPos(sal_uInt16 nPos) const; 328 }; 329 330 class AbstractScStringInputDlg_Impl : public AbstractScStringInputDlg //add for ScStringInputDlg 331 { 332 DECL_ABSTDLG_BASE( AbstractScStringInputDlg_Impl, ScStringInputDlg ) 333 virtual void GetInputString( String& rString ) const; 334 }; 335 336 class AbstractScTabBgColorDlg_Impl : public AbstractScTabBgColorDlg //add for ScTabBgColorDlg 337 { 338 DECL_ABSTDLG_BASE( AbstractScTabBgColorDlg_Impl, ScTabBgColorDlg ) 339 virtual void GetSelectedColor( Color& rColor ) const; 340 }; 341 342 class AbstractScImportOptionsDlg_Impl : public AbstractScImportOptionsDlg //add for ScImportOptionsDlg 343 { 344 DECL_ABSTDLG_BASE( AbstractScImportOptionsDlg_Impl, ScImportOptionsDlg) 345 virtual void GetImportOptions( ScImportOptions& rOptions ) const; 346 }; 347 348 class AbstractScTextImportOptionsDlg_Impl : public AbstractScTextImportOptionsDlg 349 { 350 DECL_ABSTDLG_BASE( AbstractScTextImportOptionsDlg_Impl, ScTextImportOptionsDlg) 351 virtual LanguageType GetLanguageType() const; 352 virtual bool IsDateConversionSet() const; 353 }; 354 355 //add for ScAttrDlg , ScHFEditDlg, ScStyleDlg, ScSubTotalDlg, ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg 356 class AbstractTabDialog_Impl : public SfxAbstractTabDialog 357 { 358 DECL_ABSTDLG_BASE( AbstractTabDialog_Impl,SfxTabDialog ) 359 virtual void SetCurPageId( sal_uInt16 nId ); 360 virtual const SfxItemSet* GetOutputItemSet() const; 361 virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem ); //add by CHINA001 362 virtual void SetInputSet( const SfxItemSet* pInSet ); //add by CHINA001 363 //From class Window. 364 virtual void SetText( const XubString& rStr ); //add by CHINA001 365 virtual String GetText() const; //add by CHINA001 366 }; 367 #if ENABLE_LAYOUT 368 namespace layout 369 { 370 //add for ScAttrDlg , ScHFEditDlg, ScStyleDlg, ScSubTotalDlg, ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg 371 class AbstractTabDialog_Impl : public SfxAbstractTabDialog 372 { 373 DECL_ABSTDLG_BASE( AbstractTabDialog_Impl,SfxTabDialog ) 374 virtual void SetCurPageId( sal_uInt16 nId ); 375 virtual const SfxItemSet* GetOutputItemSet() const; 376 virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem ); //add by CHINA001 377 virtual void SetInputSet( const SfxItemSet* pInSet ); //add by CHINA001 378 //From class Window. 379 virtual void SetText( const XubString& rStr ); //add by CHINA001 380 virtual String GetText() const; //add by CHINA001 381 }; 382 } // end namespace layout 383 #endif /* ENABLE_LAYOUT */ 384 //------------------------------------------------------------------------ 385 //AbstractDialogFactory_Impl implementations 386 class ScAbstractDialogFactory_Impl : public ScAbstractDialogFactory 387 { 388 389 public: 390 //CHINA001 AbstractSwSaveLabelDlg* CreateSwSaveLabelDlg(SwLabFmtPage* pParent, SwLabRec& rRec, int nId ); 391 392 virtual AbstractScImportAsciiDlg * CreateScImportAsciiDlg( Window* pParent, String aDatName, //add for ScImportAsciiDlg 393 SvStream* pInStream, int nId, 394 sal_Unicode cSep = '\t'); 395 396 virtual AbstractScTextImportOptionsDlg * CreateScTextImportOptionsDlg( Window* pParent, int nId ); 397 398 virtual AbstractScAutoFormatDlg * CreateScAutoFormatDlg( Window* pParent, //add for ScAutoFormatDlg 399 ScAutoFormat* pAutoFormat, 400 const ScAutoFormatData* pSelFormatData, 401 ScDocument* pDoc, 402 int nId); 403 virtual AbstractScColRowLabelDlg * CreateScColRowLabelDlg (Window* pParent, //add for ScColRowLabelDlg 404 int nId, 405 sal_Bool bCol = sal_False, 406 sal_Bool bRow = sal_False); 407 408 virtual VclAbstractDialog * CreateScColOrRowDlg( Window* pParent, //add for ScColOrRowDlg 409 const String& rStrTitle, 410 const String& rStrLabel, 411 int nId, 412 sal_Bool bColDefault = sal_True ); 413 414 virtual VclAbstractDialog * CreateScSortWarningDlg( Window* pParent, const String& rExtendText, const String& rCurrentText, int nId ); 415 416 virtual AbstractScDataPilotDatabaseDlg * CreateScDataPilotDatabaseDlg (Window* pParent ,int nId ); //add for ScDataPilotDatabaseDlg 417 418 virtual AbstractScDataPilotSourceTypeDlg * CreateScDataPilotSourceTypeDlg ( Window* pParent, sal_Bool bEnableExternal, int nId ) ; //add for ScDataPilotSourceTypeDlg 419 420 virtual AbstractScDataPilotServiceDlg * CreateScDataPilotServiceDlg( Window* pParent, //add for ScDataPilotServiceDlg 421 const com::sun::star::uno::Sequence<rtl::OUString>& rServices, 422 int nId ); 423 virtual AbstractScDeleteCellDlg * CreateScDeleteCellDlg( Window* pParent, int nId, 424 sal_Bool bDisallowCellMove = sal_False ); //add for ScDeleteCellDlg 425 426 virtual AbstractScDeleteContentsDlg * CreateScDeleteContentsDlg(Window* pParent,int nId, //add for ScDeleteContentsDlg 427 sal_uInt16 nCheckDefaults = 0 ); 428 429 virtual AbstractScFillSeriesDlg * CreateScFillSeriesDlg( Window* pParent, //add for ScFillSeriesDlg 430 ScDocument& rDocument, 431 FillDir eFillDir, 432 FillCmd eFillCmd, 433 FillDateCmd eFillDateCmd, 434 String aStartStr, 435 double fStep, 436 double fMax, 437 sal_uInt16 nPossDir, 438 int nId); 439 virtual AbstractScGroupDlg * CreateAbstractScGroupDlg( Window* pParent, //add for ScGroupDlg 440 sal_uInt16 nResId, 441 int nId, 442 sal_Bool bUnGroup = sal_False, 443 sal_Bool bRows = sal_True ); 444 445 virtual AbstractScInsertCellDlg * CreateScInsertCellDlg( Window* pParent, //add for ScInsertCellDlg 446 int nId, 447 sal_Bool bDisallowCellMove = sal_False ); 448 449 virtual AbstractScInsertContentsDlg * CreateScInsertContentsDlg( Window* pParent, //add for ScInsertContentsDlg 450 int nId, 451 sal_uInt16 nCheckDefaults = 0, 452 const String* pStrTitle = NULL ); 453 454 virtual AbstractScInsertTableDlg * CreateScInsertTableDlg ( Window* pParent, ScViewData& rViewData, //add for ScInsertTableDlg 455 SCTAB nTabCount, bool bFromFile, int nId); 456 457 virtual AbstractScSelEntryDlg * CreateScSelEntryDlg ( Window* pParent, // add for ScSelEntryDlg 458 sal_uInt16 nResId, 459 const String& aTitle, 460 const String& aLbTitle, 461 List& aEntryList, 462 int nId ); 463 464 virtual AbstractScLinkedAreaDlg * CreateScLinkedAreaDlg ( Window* pParent, //add for ScLinkedAreaDlg 465 int nId); 466 467 virtual AbstractScMetricInputDlg * CreateScMetricInputDlg ( Window* pParent, //add for ScMetricInputDlg 468 sal_uInt16 nResId, // Ableitung fuer jeden Dialog! 469 long nCurrent, 470 long nDefault, 471 int nId , 472 FieldUnit eFUnit = FUNIT_MM, 473 sal_uInt16 nDecimals = 2, 474 long nMaximum = 1000, 475 long nMinimum = 0, 476 long nFirst = 1, 477 long nLast = 100 ); 478 479 virtual AbstractScMoveTableDlg * CreateScMoveTableDlg( Window* pParent, int nId ); //add for ScMoveTableDlg 480 virtual AbstractScNameCreateDlg * CreateScNameCreateDlg ( Window * pParent, sal_uInt16 nFlags, int nId ); //add for ScNameCreateDlg 481 482 virtual AbstractScNamePasteDlg * CreateScNamePasteDlg ( Window * pParent, const ScRangeName* pList, //add for ScNamePasteDlg 483 int nId , sal_Bool bInsList=sal_True ); 484 485 virtual AbstractScPivotFilterDlg * CreateScPivotFilterDlg ( Window* pParent, //add for ScPivotFilterDlg 486 const SfxItemSet& rArgSet, sal_uInt16 nSourceTab , int nId ); 487 488 virtual AbstractScDPFunctionDlg * CreateScDPFunctionDlg( Window* pParent, int nId, 489 const ScDPLabelDataVector& rLabelVec, 490 const ScDPLabelData& rLabelData, 491 const ScPivotFuncData& rFuncData ); 492 493 virtual AbstractScDPSubtotalDlg * CreateScDPSubtotalDlg( Window* pParent, int nId, 494 ScDPObject& rDPObj, 495 const ScDPLabelData& rLabelData, 496 const ScPivotFuncData& rFuncData, 497 const ScDPNameVec& rDataFields, 498 bool bEnableLayout ); 499 500 virtual AbstractScDPNumGroupDlg * CreateScDPNumGroupDlg( Window* pParent, 501 int nId, 502 const ScDPNumGroupInfo& rInfo ); 503 504 virtual AbstractScDPDateGroupDlg * CreateScDPDateGroupDlg( Window* pParent, 505 int nId, 506 const ScDPNumGroupInfo& rInfo, 507 sal_Int32 nDatePart, 508 const Date& rNullDate ); 509 510 virtual AbstractScDPShowDetailDlg * CreateScDPShowDetailDlg( Window* pParent, int nId, 511 ScDPObject& rDPObj, 512 sal_uInt16 nOrient ); 513 514 virtual AbstractScNewScenarioDlg * CreateScNewScenarioDlg ( Window* pParent, const String& rName, //add for ScNewScenarioDlg 515 int nId, 516 sal_Bool bEdit = sal_False, sal_Bool bSheetProtected = sal_False ); 517 virtual AbstractScShowTabDlg * CreateScShowTabDlg ( Window* pParent, int nId ); //add for ScShowTabDlg 518 519 virtual AbstractScStringInputDlg * CreateScStringInputDlg ( Window* pParent, //add for ScStringInputDlg 520 const String& rTitle, 521 const String& rEditTitle, 522 const String& rDefault, 523 const rtl::OString& sHelpId, const rtl::OString& sEditHelpId, 524 int nId ); 525 526 virtual AbstractScTabBgColorDlg * CreateScTabBgColorDlg ( Window* pParent, //add for ScStringInputDlg 527 const String& rTitle, //Dialog Title 528 const String& rTabBgColorNoColorText, //Label for no tab color 529 const Color& rDefaultColor, //Currently selected Color 530 const rtl::OString& sHelpId , 531 int nId ); 532 533 virtual AbstractScImportOptionsDlg * CreateScImportOptionsDlg ( Window* pParent, //add for ScImportOptionsDlg 534 int nId, 535 sal_Bool bAscii = sal_True, 536 const ScImportOptions* pOptions = NULL, 537 const String* pStrTitle = NULL, 538 sal_Bool bMultiByte = sal_False, 539 sal_Bool bOnlyDbtoolsEncodings = sal_False, 540 sal_Bool bImport = sal_True ); 541 virtual SfxAbstractTabDialog * CreateScAttrDlg( SfxViewFrame* pFrame, //add for ScAttrDlg 542 Window* pParent, 543 const SfxItemSet* pCellAttrs, 544 int nId); 545 546 virtual SfxAbstractTabDialog * CreateScHFEditDlg( SfxViewFrame* pFrame, //add for ScHFEditDlg 547 Window* pParent, 548 const SfxItemSet& rCoreSet, 549 const String& rPageStyle, 550 int nId, 551 sal_uInt16 nResId = RID_SCDLG_HFEDIT ); 552 553 virtual SfxAbstractTabDialog * CreateScStyleDlg( Window* pParent,//add for ScStyleDlg 554 SfxStyleSheetBase& rStyleBase, 555 sal_uInt16 nRscId, 556 int nId); 557 558 virtual SfxAbstractTabDialog * CreateScSubTotalDlg( Window* pParent, //add for ScSubTotalDlg 559 const SfxItemSet* pArgSet, 560 int nId); 561 virtual SfxAbstractTabDialog * CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr,//add for ScCharDlg 562 const SfxObjectShell* pDocShell, int nId ); 563 564 virtual SfxAbstractTabDialog * CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ,//add for ScParagraphDlg 565 int nId ); 566 567 virtual SfxAbstractTabDialog * CreateScValidationDlg( Window* pParent, //add for ScValidationDlg 568 //<!--Modified by PengYunQuan for Validity Cell Range Picker 569 // const SfxItemSet* pArgSet,int nId ); 570 const SfxItemSet* pArgSet,int nId, ScTabViewShell *pTabVwSh ); 571 //-->Modified by PengYunQuan for Validity Cell Range Picker 572 573 virtual SfxAbstractTabDialog * CreateScSortDlg( Window* pParent, //add for ScSortDlg 574 const SfxItemSet* pArgSet,int nId ); 575 // For TabPage 576 virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ); 577 578 virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId ); 579 580 }; 581 582 //CHINA001 struct ScDialogsResMgr 583 //CHINA001 { 584 //CHINA001 static ResMgr* GetResMgr(); 585 //CHINA001 }; 586 587 #endif 588 589 590