1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29*cdf0e10cSrcweir #include "precompiled_sc.hxx" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #if ! ENABLE_LAYOUT_EXPERIMENTAL 32*cdf0e10cSrcweir #undef ENABLE_LAYOUT 33*cdf0e10cSrcweir #endif 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir #undef SC_DLLIMPLEMENTATION 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir #include "scdlgfact.hxx" 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir #include "sc.hrc" //CHINA001 40*cdf0e10cSrcweir #include "scuiasciiopt.hxx" //add for ScImportAsciiDlg 41*cdf0e10cSrcweir #include "scuiautofmt.hxx" //add for ScAutoFormatDlg 42*cdf0e10cSrcweir #include "corodlg.hxx" //add for ScColRowLabelDlg 43*cdf0e10cSrcweir #include "crdlg.hxx" //add for ScColOrRowDlg 44*cdf0e10cSrcweir #include "dapidata.hxx" //add for ScDataPilotDatabaseDlg 45*cdf0e10cSrcweir #include "dapitype.hxx" //add for ScDataPilotSourceTypeDlg, ScDataPilotServiceDlg 46*cdf0e10cSrcweir #include "delcldlg.hxx" //add for ScDeleteCellDlg 47*cdf0e10cSrcweir #include "delcodlg.hxx" //add for ScDeleteContentsDlg 48*cdf0e10cSrcweir #include "filldlg.hxx" //add for ScFillSeriesDlg 49*cdf0e10cSrcweir #include "groupdlg.hxx" //add for ScGroupDlg 50*cdf0e10cSrcweir #include "inscldlg.hxx" //add for ScInsertCellDlg 51*cdf0e10cSrcweir #include "inscodlg.hxx" //add for ScInsertContentsDlg 52*cdf0e10cSrcweir #include "instbdlg.hxx" //add for ScInsertTableDlg 53*cdf0e10cSrcweir #include "lbseldlg.hxx" //add for ScSelEntryDlg 54*cdf0e10cSrcweir #include "linkarea.hxx" //add for ScLinkedAreaDlg 55*cdf0e10cSrcweir #include "mtrindlg.hxx" //add for ScMetricInputDlg 56*cdf0e10cSrcweir #include "mvtabdlg.hxx" //add for ScMoveTableDlg 57*cdf0e10cSrcweir #include "namecrea.hxx" //add for ScNameCreateDlg 58*cdf0e10cSrcweir #include "namepast.hxx" //add for ScNamePasteDlg 59*cdf0e10cSrcweir #include "pfiltdlg.hxx" //add for ScPivotFilterDlg 60*cdf0e10cSrcweir #include "pvfundlg.hxx" //add for ScDPFunctionDlg 61*cdf0e10cSrcweir #include "dpgroupdlg.hxx" 62*cdf0e10cSrcweir #include "scendlg.hxx" //add for ScNewScenarioDlg 63*cdf0e10cSrcweir #include "shtabdlg.hxx" //add for ScShowTabDlg 64*cdf0e10cSrcweir #include "strindlg.hxx" //add for ScStringInputDlg 65*cdf0e10cSrcweir #include "tabbgcolordlg.hxx"//add for ScTabBgColorDlg 66*cdf0e10cSrcweir #include "scuiimoptdlg.hxx" //add for ScImportOptionsDlg 67*cdf0e10cSrcweir #include "attrdlg.hxx" //add for ScAttrDlg 68*cdf0e10cSrcweir #include "hfedtdlg.hxx" //add for ScHFEditDlg 69*cdf0e10cSrcweir #include "styledlg.hxx" //add for ScStyleDlg 70*cdf0e10cSrcweir #include "subtdlg.hxx" //add for ScSubTotalDlg 71*cdf0e10cSrcweir #include "textdlgs.hxx" //add for ScCharDlg, ScParagraphDlg 72*cdf0e10cSrcweir #include "validate.hxx" //add for ScValidationDlg 73*cdf0e10cSrcweir #include "validate.hrc" //add for ScValidationDlg 74*cdf0e10cSrcweir #include "sortdlg.hxx" //add for ScSortDlg 75*cdf0e10cSrcweir #include "textimportoptions.hxx" 76*cdf0e10cSrcweir #include "opredlin.hxx" //add for ScRedlineOptionsTabPage 77*cdf0e10cSrcweir #include "tpcalc.hxx" //add for ScTpCalcOptions 78*cdf0e10cSrcweir #include "tpprint.hxx" //add for ScTpPrintOptions 79*cdf0e10cSrcweir #include "tpstat.hxx" //add for ScDocStatPage 80*cdf0e10cSrcweir #include "tpusrlst.hxx" //add for ScTpUserLists 81*cdf0e10cSrcweir #include "tpview.hxx" //add for ScTpContentOptions 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir // ause 84*cdf0e10cSrcweir #include "editutil.hxx" 85*cdf0e10cSrcweir #include <sfx2/layout.hxx> 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl); //add for ScColOrRowDlg 88*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl);//CHINA001 add for ScImportAsciiDlg 89*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl); //CHINA001 add for ScAutoFormatDlg 90*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl); //add for ScColRowLabelDlg 91*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl); //add for ScDataPilotDatabaseDlg 92*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl); //add for ScDataPilotSourceTypeDlg 93*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDataPilotServiceDlg_Impl); //add for ScDataPilotServiceDlg 94*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDeleteCellDlg_Impl); //add for ScDeleteCellDlg 95*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDeleteContentsDlg_Impl); //add for ScDeleteContentsDlg 96*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScFillSeriesDlg_Impl); //add for ScFillSeriesDlg 97*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScGroupDlg_Impl); //add for ScGroupDlg 98*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScInsertCellDlg_Impl); //add for ScInsertCellDlg 99*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScInsertContentsDlg_Impl); //add for ScInsertContentsDlg 100*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScInsertTableDlg_Impl); //add for ScInsertTableDlg 101*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScSelEntryDlg_Impl); //add for ScSelEntryDlg 102*cdf0e10cSrcweir IMPL_ABSTDLG2_BASE(AbstractScLinkedAreaDlg_Impl); //add for ScLinkedAreaDlg 103*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScMetricInputDlg_Impl); //add for ScMetricInputDlg 104*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScMoveTableDlg_Impl); //add for ScMoveTableDlg 105*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScNameCreateDlg_Impl); //add for ScNameCreateDlg 106*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScNamePasteDlg_Impl); //add for ScNamePasteDlg 107*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScPivotFilterDlg_Impl); //add for ScPivotFilterDlg 108*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDPFunctionDlg_Impl); //add for ScDPFunctionDlg 109*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDPSubtotalDlg_Impl); //add for ScDPSubtotalDlg 110*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDPNumGroupDlg_Impl); 111*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDPDateGroupDlg_Impl); 112*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScDPShowDetailDlg_Impl); //add for ScDPShowDetailDlg 113*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScNewScenarioDlg_Impl); //add for ScNewScenarioDlg 114*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScShowTabDlg_Impl); //add for ScShowTabDlg 115*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScStringInputDlg_Impl); //add for ScStringInputDlg 116*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScTabBgColorDlg_Impl); //add for ScTabBgColorDlg 117*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScImportOptionsDlg_Impl); //add for ScImportOptionsDlg 118*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScTextImportOptionsDlg_Impl); 119*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for ScAttrDlg, ScHFEditDlg, ScStyleDlg, ScSubTotalDlg,ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir // AbstractTabDialog_Impl begin 122*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) 123*cdf0e10cSrcweir { 124*cdf0e10cSrcweir pDlg->SetCurPageId( nId ); 125*cdf0e10cSrcweir } 126*cdf0e10cSrcweir 127*cdf0e10cSrcweir const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const 128*cdf0e10cSrcweir { 129*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 130*cdf0e10cSrcweir } 131*cdf0e10cSrcweir //add by CHINA001 132*cdf0e10cSrcweir const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) 133*cdf0e10cSrcweir { 134*cdf0e10cSrcweir return pDlg->GetInputRanges( pItem ); 135*cdf0e10cSrcweir } 136*cdf0e10cSrcweir //add by CHINA001 137*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) 138*cdf0e10cSrcweir { 139*cdf0e10cSrcweir pDlg->SetInputSet( pInSet ); 140*cdf0e10cSrcweir } 141*cdf0e10cSrcweir //From class Window. 142*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetText( const XubString& rStr ) 143*cdf0e10cSrcweir { 144*cdf0e10cSrcweir pDlg->SetText( rStr ); 145*cdf0e10cSrcweir } 146*cdf0e10cSrcweir String AbstractTabDialog_Impl::GetText() const 147*cdf0e10cSrcweir { 148*cdf0e10cSrcweir return pDlg->GetText(); 149*cdf0e10cSrcweir } 150*cdf0e10cSrcweir 151*cdf0e10cSrcweir #if ENABLE_LAYOUT 152*cdf0e10cSrcweir namespace layout 153*cdf0e10cSrcweir { 154*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for ScAttrDlg, ScHFEditDlg, ScStyleDlg, ScSubTotalDlg,ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir // AbstractTabDialog_Impl begin 157*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) 158*cdf0e10cSrcweir { 159*cdf0e10cSrcweir pDlg->SetCurPageId( nId ); 160*cdf0e10cSrcweir } 161*cdf0e10cSrcweir 162*cdf0e10cSrcweir const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const 163*cdf0e10cSrcweir { 164*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 165*cdf0e10cSrcweir } 166*cdf0e10cSrcweir //add by CHINA001 167*cdf0e10cSrcweir const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) 168*cdf0e10cSrcweir { 169*cdf0e10cSrcweir return pDlg->GetInputRanges( pItem ); 170*cdf0e10cSrcweir } 171*cdf0e10cSrcweir //add by CHINA001 172*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) 173*cdf0e10cSrcweir { 174*cdf0e10cSrcweir pDlg->SetInputSet( pInSet ); 175*cdf0e10cSrcweir } 176*cdf0e10cSrcweir //From class Window. 177*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetText( const XubString& rStr ) 178*cdf0e10cSrcweir { 179*cdf0e10cSrcweir pDlg->SetText( rStr ); 180*cdf0e10cSrcweir } 181*cdf0e10cSrcweir String AbstractTabDialog_Impl::GetText() const 182*cdf0e10cSrcweir { 183*cdf0e10cSrcweir return pDlg->GetText(); 184*cdf0e10cSrcweir } 185*cdf0e10cSrcweir } 186*cdf0e10cSrcweir #endif /* ENABLE_LAYOUT */ 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir //add for AbstractTabDialog_Impl end 189*cdf0e10cSrcweir // AbstractScImportAsciiDlg_Impl begin 190*cdf0e10cSrcweir void AbstractScImportAsciiDlg_Impl::GetOptions( ScAsciiOptions& rOpt ) 191*cdf0e10cSrcweir { 192*cdf0e10cSrcweir pDlg->GetOptions( rOpt ); 193*cdf0e10cSrcweir } 194*cdf0e10cSrcweir 195*cdf0e10cSrcweir void AbstractScImportAsciiDlg_Impl::SetTextToColumnsMode() 196*cdf0e10cSrcweir { 197*cdf0e10cSrcweir pDlg->SetTextToColumnsMode(); 198*cdf0e10cSrcweir } 199*cdf0e10cSrcweir 200*cdf0e10cSrcweir void AbstractScImportAsciiDlg_Impl::SaveParameters() 201*cdf0e10cSrcweir { 202*cdf0e10cSrcweir pDlg->SaveParameters(); 203*cdf0e10cSrcweir } 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir // AbstractScImportAsciiDlg_Impl end 206*cdf0e10cSrcweir 207*cdf0e10cSrcweir //AbstractScAutoFormatDlg_Impl begin 208*cdf0e10cSrcweir sal_uInt16 AbstractScAutoFormatDlg_Impl::GetIndex() const 209*cdf0e10cSrcweir { 210*cdf0e10cSrcweir return pDlg->GetIndex(); 211*cdf0e10cSrcweir } 212*cdf0e10cSrcweir 213*cdf0e10cSrcweir String AbstractScAutoFormatDlg_Impl::GetCurrFormatName() 214*cdf0e10cSrcweir { 215*cdf0e10cSrcweir return pDlg->GetCurrFormatName(); 216*cdf0e10cSrcweir } 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir //AbstractScAutoFormatDlg_Impl end 219*cdf0e10cSrcweir 220*cdf0e10cSrcweir 221*cdf0e10cSrcweir 222*cdf0e10cSrcweir //AbstractScColRowLabelDlg_Impl begin 223*cdf0e10cSrcweir sal_Bool AbstractScColRowLabelDlg_Impl::IsCol() 224*cdf0e10cSrcweir { 225*cdf0e10cSrcweir return pDlg->IsCol(); 226*cdf0e10cSrcweir } 227*cdf0e10cSrcweir sal_Bool AbstractScColRowLabelDlg_Impl::IsRow() 228*cdf0e10cSrcweir { 229*cdf0e10cSrcweir return pDlg->IsRow(); 230*cdf0e10cSrcweir } 231*cdf0e10cSrcweir 232*cdf0e10cSrcweir //AbstractScColRowLabelDlg_Impl end 233*cdf0e10cSrcweir 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir //AbstractScDataPilotDatabaseDlg_Impl begin 236*cdf0e10cSrcweir 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir void AbstractScDataPilotDatabaseDlg_Impl::GetValues( ScImportSourceDesc& rDesc ) 239*cdf0e10cSrcweir { 240*cdf0e10cSrcweir pDlg->GetValues(rDesc); 241*cdf0e10cSrcweir } 242*cdf0e10cSrcweir 243*cdf0e10cSrcweir //AbstractScDataPilotDatabaseDlg_Impl end 244*cdf0e10cSrcweir 245*cdf0e10cSrcweir //AbstractScDataPilotSourceTypeDlg_Impl begin 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir sal_Bool AbstractScDataPilotSourceTypeDlg_Impl::IsDatabase() const 248*cdf0e10cSrcweir { 249*cdf0e10cSrcweir return pDlg->IsDatabase(); 250*cdf0e10cSrcweir } 251*cdf0e10cSrcweir 252*cdf0e10cSrcweir sal_Bool AbstractScDataPilotSourceTypeDlg_Impl::IsExternal() const 253*cdf0e10cSrcweir { 254*cdf0e10cSrcweir return pDlg->IsExternal(); 255*cdf0e10cSrcweir } 256*cdf0e10cSrcweir 257*cdf0e10cSrcweir //AbstractScDataPilotSourceTypeDlg_Impl end 258*cdf0e10cSrcweir 259*cdf0e10cSrcweir 260*cdf0e10cSrcweir // AbstractScDataPilotServiceDlg_Impl begin 261*cdf0e10cSrcweir String AbstractScDataPilotServiceDlg_Impl::GetServiceName() const 262*cdf0e10cSrcweir { 263*cdf0e10cSrcweir return pDlg->GetServiceName(); 264*cdf0e10cSrcweir } 265*cdf0e10cSrcweir 266*cdf0e10cSrcweir String AbstractScDataPilotServiceDlg_Impl::GetParSource() const 267*cdf0e10cSrcweir { 268*cdf0e10cSrcweir return pDlg->GetParSource(); 269*cdf0e10cSrcweir } 270*cdf0e10cSrcweir String AbstractScDataPilotServiceDlg_Impl::GetParName() const 271*cdf0e10cSrcweir { 272*cdf0e10cSrcweir return pDlg->GetParName(); 273*cdf0e10cSrcweir } 274*cdf0e10cSrcweir String AbstractScDataPilotServiceDlg_Impl::GetParUser() const 275*cdf0e10cSrcweir { 276*cdf0e10cSrcweir return pDlg->GetParUser(); 277*cdf0e10cSrcweir } 278*cdf0e10cSrcweir String AbstractScDataPilotServiceDlg_Impl::GetParPass() const 279*cdf0e10cSrcweir { 280*cdf0e10cSrcweir return pDlg->GetParPass(); 281*cdf0e10cSrcweir } 282*cdf0e10cSrcweir 283*cdf0e10cSrcweir //AbstractScDataPilotServiceDlg_Impl end 284*cdf0e10cSrcweir 285*cdf0e10cSrcweir //AbstractScDeleteCellDlg_Impl begin 286*cdf0e10cSrcweir DelCellCmd AbstractScDeleteCellDlg_Impl::GetDelCellCmd() const //add for ScDeleteCellDlg 287*cdf0e10cSrcweir { 288*cdf0e10cSrcweir return pDlg->GetDelCellCmd(); 289*cdf0e10cSrcweir } 290*cdf0e10cSrcweir //AbstractScDeleteCellDlg_Impl end 291*cdf0e10cSrcweir 292*cdf0e10cSrcweir //add for AbstractScDeleteContentsDlg_Impl begin 293*cdf0e10cSrcweir void AbstractScDeleteContentsDlg_Impl::DisableObjects() 294*cdf0e10cSrcweir { 295*cdf0e10cSrcweir pDlg->DisableObjects(); 296*cdf0e10cSrcweir } 297*cdf0e10cSrcweir sal_uInt16 AbstractScDeleteContentsDlg_Impl::GetDelContentsCmdBits() const 298*cdf0e10cSrcweir { 299*cdf0e10cSrcweir return pDlg->GetDelContentsCmdBits(); 300*cdf0e10cSrcweir } 301*cdf0e10cSrcweir //add for AbstractScDeleteContentsDlg_Impl end 302*cdf0e10cSrcweir 303*cdf0e10cSrcweir //add for AbstractScFillSeriesDlg_Impl begin 304*cdf0e10cSrcweir FillDir AbstractScFillSeriesDlg_Impl::GetFillDir() const 305*cdf0e10cSrcweir { 306*cdf0e10cSrcweir return pDlg->GetFillDir(); 307*cdf0e10cSrcweir } 308*cdf0e10cSrcweir 309*cdf0e10cSrcweir FillCmd AbstractScFillSeriesDlg_Impl::GetFillCmd() const 310*cdf0e10cSrcweir { 311*cdf0e10cSrcweir return pDlg->GetFillCmd(); 312*cdf0e10cSrcweir } 313*cdf0e10cSrcweir 314*cdf0e10cSrcweir FillDateCmd AbstractScFillSeriesDlg_Impl::GetFillDateCmd() const 315*cdf0e10cSrcweir { 316*cdf0e10cSrcweir return pDlg->GetFillDateCmd(); 317*cdf0e10cSrcweir } 318*cdf0e10cSrcweir 319*cdf0e10cSrcweir double AbstractScFillSeriesDlg_Impl::GetStart() const 320*cdf0e10cSrcweir { 321*cdf0e10cSrcweir return pDlg->GetStart(); 322*cdf0e10cSrcweir } 323*cdf0e10cSrcweir double AbstractScFillSeriesDlg_Impl::GetStep() const 324*cdf0e10cSrcweir { 325*cdf0e10cSrcweir return pDlg->GetStep(); 326*cdf0e10cSrcweir } 327*cdf0e10cSrcweir double AbstractScFillSeriesDlg_Impl::GetMax() const 328*cdf0e10cSrcweir { 329*cdf0e10cSrcweir return pDlg->GetMax(); 330*cdf0e10cSrcweir } 331*cdf0e10cSrcweir String AbstractScFillSeriesDlg_Impl::GetStartStr() const 332*cdf0e10cSrcweir { 333*cdf0e10cSrcweir return pDlg->GetStartStr(); 334*cdf0e10cSrcweir } 335*cdf0e10cSrcweir void AbstractScFillSeriesDlg_Impl::SetEdStartValEnabled(sal_Bool bFlag) 336*cdf0e10cSrcweir { 337*cdf0e10cSrcweir pDlg->SetEdStartValEnabled(bFlag); 338*cdf0e10cSrcweir } 339*cdf0e10cSrcweir //add for AbstractScFillSeriesDlg_Impl end 340*cdf0e10cSrcweir 341*cdf0e10cSrcweir //add for AbstractScGroupDlg_Impl begin 342*cdf0e10cSrcweir sal_Bool AbstractScGroupDlg_Impl::GetColsChecked() const 343*cdf0e10cSrcweir { 344*cdf0e10cSrcweir return pDlg->GetColsChecked(); 345*cdf0e10cSrcweir } 346*cdf0e10cSrcweir //add for AbstractScGroupDlg_Impl end 347*cdf0e10cSrcweir 348*cdf0e10cSrcweir 349*cdf0e10cSrcweir //add for AbstractScInsertCellDlg_Impl begin 350*cdf0e10cSrcweir InsCellCmd AbstractScInsertCellDlg_Impl::GetInsCellCmd() const 351*cdf0e10cSrcweir { 352*cdf0e10cSrcweir return pDlg->GetInsCellCmd(); 353*cdf0e10cSrcweir } 354*cdf0e10cSrcweir 355*cdf0e10cSrcweir //add for AbstractScInsertCellDlg_Impl end 356*cdf0e10cSrcweir 357*cdf0e10cSrcweir 358*cdf0e10cSrcweir //add for AbstractScInsertContentsDlg_Impl begin 359*cdf0e10cSrcweir sal_uInt16 AbstractScInsertContentsDlg_Impl::GetInsContentsCmdBits() const 360*cdf0e10cSrcweir { 361*cdf0e10cSrcweir return pDlg->GetInsContentsCmdBits(); 362*cdf0e10cSrcweir } 363*cdf0e10cSrcweir 364*cdf0e10cSrcweir 365*cdf0e10cSrcweir sal_uInt16 AbstractScInsertContentsDlg_Impl::GetFormulaCmdBits() const 366*cdf0e10cSrcweir { 367*cdf0e10cSrcweir return pDlg->GetFormulaCmdBits(); 368*cdf0e10cSrcweir } 369*cdf0e10cSrcweir sal_Bool AbstractScInsertContentsDlg_Impl::IsSkipEmptyCells() const 370*cdf0e10cSrcweir { 371*cdf0e10cSrcweir return pDlg->IsSkipEmptyCells(); 372*cdf0e10cSrcweir } 373*cdf0e10cSrcweir sal_Bool AbstractScInsertContentsDlg_Impl::IsLink() const 374*cdf0e10cSrcweir { 375*cdf0e10cSrcweir return pDlg->IsLink(); 376*cdf0e10cSrcweir } 377*cdf0e10cSrcweir void AbstractScInsertContentsDlg_Impl::SetFillMode( sal_Bool bSet ) 378*cdf0e10cSrcweir { 379*cdf0e10cSrcweir pDlg->SetFillMode( bSet ); 380*cdf0e10cSrcweir } 381*cdf0e10cSrcweir 382*cdf0e10cSrcweir void AbstractScInsertContentsDlg_Impl::SetOtherDoc( sal_Bool bSet ) 383*cdf0e10cSrcweir { 384*cdf0e10cSrcweir pDlg->SetOtherDoc( bSet ); 385*cdf0e10cSrcweir } 386*cdf0e10cSrcweir 387*cdf0e10cSrcweir sal_Bool AbstractScInsertContentsDlg_Impl::IsTranspose() const 388*cdf0e10cSrcweir { 389*cdf0e10cSrcweir return pDlg->IsTranspose(); 390*cdf0e10cSrcweir } 391*cdf0e10cSrcweir void AbstractScInsertContentsDlg_Impl::SetChangeTrack( sal_Bool bSet ) 392*cdf0e10cSrcweir { 393*cdf0e10cSrcweir pDlg->SetChangeTrack( bSet ); 394*cdf0e10cSrcweir } 395*cdf0e10cSrcweir void AbstractScInsertContentsDlg_Impl::SetCellShiftDisabled( int nDisable ) 396*cdf0e10cSrcweir { 397*cdf0e10cSrcweir pDlg->SetCellShiftDisabled( nDisable ); 398*cdf0e10cSrcweir } 399*cdf0e10cSrcweir 400*cdf0e10cSrcweir InsCellCmd AbstractScInsertContentsDlg_Impl::GetMoveMode() 401*cdf0e10cSrcweir { 402*cdf0e10cSrcweir return pDlg->GetMoveMode(); 403*cdf0e10cSrcweir } 404*cdf0e10cSrcweir //add for AbstractScInsertContentsDlg_Impl end 405*cdf0e10cSrcweir 406*cdf0e10cSrcweir 407*cdf0e10cSrcweir //add for AbstractScInsertTableDlg_Impl begin 408*cdf0e10cSrcweir sal_Bool AbstractScInsertTableDlg_Impl::GetTablesFromFile() 409*cdf0e10cSrcweir { 410*cdf0e10cSrcweir return pDlg->GetTablesFromFile(); 411*cdf0e10cSrcweir } 412*cdf0e10cSrcweir 413*cdf0e10cSrcweir sal_Bool AbstractScInsertTableDlg_Impl::GetTablesAsLink() 414*cdf0e10cSrcweir { 415*cdf0e10cSrcweir return pDlg->GetTablesAsLink(); 416*cdf0e10cSrcweir } 417*cdf0e10cSrcweir const String* AbstractScInsertTableDlg_Impl::GetFirstTable( sal_uInt16* pN ) 418*cdf0e10cSrcweir { 419*cdf0e10cSrcweir return pDlg->GetFirstTable( pN ); 420*cdf0e10cSrcweir } 421*cdf0e10cSrcweir ScDocShell* AbstractScInsertTableDlg_Impl::GetDocShellTables() 422*cdf0e10cSrcweir { 423*cdf0e10cSrcweir return pDlg->GetDocShellTables(); 424*cdf0e10cSrcweir } 425*cdf0e10cSrcweir sal_Bool AbstractScInsertTableDlg_Impl::IsTableBefore() 426*cdf0e10cSrcweir { 427*cdf0e10cSrcweir return pDlg->IsTableBefore(); 428*cdf0e10cSrcweir } 429*cdf0e10cSrcweir sal_uInt16 AbstractScInsertTableDlg_Impl::GetTableCount() 430*cdf0e10cSrcweir { 431*cdf0e10cSrcweir return pDlg->GetTableCount(); 432*cdf0e10cSrcweir } 433*cdf0e10cSrcweir const String* AbstractScInsertTableDlg_Impl::GetNextTable( sal_uInt16* pN ) 434*cdf0e10cSrcweir { 435*cdf0e10cSrcweir return pDlg->GetNextTable( pN ); 436*cdf0e10cSrcweir } 437*cdf0e10cSrcweir //add for AbstractScInsertTableDlg_Impl end 438*cdf0e10cSrcweir 439*cdf0e10cSrcweir //add for AbstractScSelEntryDlg_Impl begin 440*cdf0e10cSrcweir String AbstractScSelEntryDlg_Impl::GetSelectEntry() const 441*cdf0e10cSrcweir { 442*cdf0e10cSrcweir return pDlg->GetSelectEntry(); 443*cdf0e10cSrcweir } 444*cdf0e10cSrcweir //add for AbstractScSelEntryDlg_Impl end 445*cdf0e10cSrcweir 446*cdf0e10cSrcweir //add for AbstractScLinkedAreaDlg_Impl begin 447*cdf0e10cSrcweir void AbstractScLinkedAreaDlg_Impl::InitFromOldLink( const String& rFile, const String& rFilter, 448*cdf0e10cSrcweir const String& rOptions, const String& rSource, 449*cdf0e10cSrcweir sal_uLong nRefresh ) 450*cdf0e10cSrcweir { 451*cdf0e10cSrcweir pDlg->InitFromOldLink( rFile, rFilter, rOptions, rSource, nRefresh); 452*cdf0e10cSrcweir } 453*cdf0e10cSrcweir 454*cdf0e10cSrcweir String AbstractScLinkedAreaDlg_Impl::GetURL() 455*cdf0e10cSrcweir { 456*cdf0e10cSrcweir return pDlg->GetURL(); 457*cdf0e10cSrcweir } 458*cdf0e10cSrcweir String AbstractScLinkedAreaDlg_Impl::GetFilter() 459*cdf0e10cSrcweir { 460*cdf0e10cSrcweir return pDlg->GetFilter(); 461*cdf0e10cSrcweir } 462*cdf0e10cSrcweir String AbstractScLinkedAreaDlg_Impl::GetOptions() 463*cdf0e10cSrcweir { 464*cdf0e10cSrcweir return pDlg->GetOptions(); 465*cdf0e10cSrcweir } 466*cdf0e10cSrcweir String AbstractScLinkedAreaDlg_Impl::GetSource() 467*cdf0e10cSrcweir { 468*cdf0e10cSrcweir return pDlg->GetSource(); 469*cdf0e10cSrcweir } 470*cdf0e10cSrcweir sal_uLong AbstractScLinkedAreaDlg_Impl::GetRefresh() 471*cdf0e10cSrcweir { 472*cdf0e10cSrcweir return pDlg->GetRefresh(); 473*cdf0e10cSrcweir } 474*cdf0e10cSrcweir //add for AbstractScLinkedAreaDlg_Impl end 475*cdf0e10cSrcweir 476*cdf0e10cSrcweir 477*cdf0e10cSrcweir //add for AbstractScMetricInputDlg_Impl begin 478*cdf0e10cSrcweir long AbstractScMetricInputDlg_Impl::GetInputValue( FieldUnit eUnit ) const 479*cdf0e10cSrcweir { 480*cdf0e10cSrcweir 481*cdf0e10cSrcweir return pDlg->GetInputValue( eUnit ); 482*cdf0e10cSrcweir } 483*cdf0e10cSrcweir //add for AbstractScMetricInputDlg_Impl end 484*cdf0e10cSrcweir 485*cdf0e10cSrcweir //add for AbstractScMoveTableDlg_Impl begin 486*cdf0e10cSrcweir sal_uInt16 AbstractScMoveTableDlg_Impl::GetSelectedDocument() const //add for ScMoveTableDlg 487*cdf0e10cSrcweir { 488*cdf0e10cSrcweir return pDlg->GetSelectedDocument(); 489*cdf0e10cSrcweir } 490*cdf0e10cSrcweir 491*cdf0e10cSrcweir sal_uInt16 AbstractScMoveTableDlg_Impl::GetSelectedTable() const 492*cdf0e10cSrcweir { 493*cdf0e10cSrcweir return pDlg->GetSelectedTable(); 494*cdf0e10cSrcweir } 495*cdf0e10cSrcweir sal_Bool AbstractScMoveTableDlg_Impl::GetCopyTable() const 496*cdf0e10cSrcweir { 497*cdf0e10cSrcweir return pDlg->GetCopyTable(); 498*cdf0e10cSrcweir } 499*cdf0e10cSrcweir void AbstractScMoveTableDlg_Impl::SetCopyTable(sal_Bool bFla) 500*cdf0e10cSrcweir { 501*cdf0e10cSrcweir return pDlg->SetCopyTable( bFla ); 502*cdf0e10cSrcweir } 503*cdf0e10cSrcweir void AbstractScMoveTableDlg_Impl::EnableCopyTable(sal_Bool bFlag) 504*cdf0e10cSrcweir { 505*cdf0e10cSrcweir return pDlg->EnableCopyTable( bFlag); 506*cdf0e10cSrcweir } 507*cdf0e10cSrcweir //add for AbstractScMoveTableDlg_Impl end 508*cdf0e10cSrcweir 509*cdf0e10cSrcweir //add for AbstractScNameCreateDlg_Impl begin 510*cdf0e10cSrcweir sal_uInt16 AbstractScNameCreateDlg_Impl::GetFlags() const //add for ScNameCreateDlg 511*cdf0e10cSrcweir { 512*cdf0e10cSrcweir return pDlg->GetFlags(); 513*cdf0e10cSrcweir } 514*cdf0e10cSrcweir //add for AbstractScNameCreateDlg_Impl end 515*cdf0e10cSrcweir 516*cdf0e10cSrcweir //add for AbstractScNamePasteDlg_Impl begin 517*cdf0e10cSrcweir String AbstractScNamePasteDlg_Impl::GetSelectedName() const //add for ScNamePasteDlg 518*cdf0e10cSrcweir { 519*cdf0e10cSrcweir return pDlg->GetSelectedName(); 520*cdf0e10cSrcweir } 521*cdf0e10cSrcweir 522*cdf0e10cSrcweir //add for AbstractScNamePasteDlg_Impl end 523*cdf0e10cSrcweir 524*cdf0e10cSrcweir //add for AbstractScPivotFilterDlg_Impl begin 525*cdf0e10cSrcweir const ScQueryItem& AbstractScPivotFilterDlg_Impl::GetOutputItem() //add for ScPivotFilterDlg 526*cdf0e10cSrcweir { 527*cdf0e10cSrcweir return pDlg->GetOutputItem(); 528*cdf0e10cSrcweir } 529*cdf0e10cSrcweir //add for AbstractScPivotFilterDlg_Impl end 530*cdf0e10cSrcweir 531*cdf0e10cSrcweir //add for AbstractScDPFunctionDlg_Impl begin 532*cdf0e10cSrcweir sal_uInt16 AbstractScDPFunctionDlg_Impl::GetFuncMask() const //add for ScDPFunctionDlg 533*cdf0e10cSrcweir { 534*cdf0e10cSrcweir return pDlg->GetFuncMask(); 535*cdf0e10cSrcweir } 536*cdf0e10cSrcweir ::com::sun::star::sheet::DataPilotFieldReference AbstractScDPFunctionDlg_Impl::GetFieldRef() const 537*cdf0e10cSrcweir { 538*cdf0e10cSrcweir return pDlg->GetFieldRef(); 539*cdf0e10cSrcweir } 540*cdf0e10cSrcweir //add for AbstractScDPFunctionDlg_Impl end 541*cdf0e10cSrcweir 542*cdf0e10cSrcweir //add for AbstractScDPSubtotalDlg_Impl begin 543*cdf0e10cSrcweir sal_uInt16 AbstractScDPSubtotalDlg_Impl::GetFuncMask() const //add for ScDPSubtotalDlg 544*cdf0e10cSrcweir { 545*cdf0e10cSrcweir return pDlg->GetFuncMask(); 546*cdf0e10cSrcweir } 547*cdf0e10cSrcweir void AbstractScDPSubtotalDlg_Impl::FillLabelData( ScDPLabelData& rLabelData ) const 548*cdf0e10cSrcweir { 549*cdf0e10cSrcweir pDlg->FillLabelData( rLabelData ); 550*cdf0e10cSrcweir } 551*cdf0e10cSrcweir //add for AbstractScDPSubtotalDlg_Impl end 552*cdf0e10cSrcweir 553*cdf0e10cSrcweir ScDPNumGroupInfo AbstractScDPNumGroupDlg_Impl::GetGroupInfo() const 554*cdf0e10cSrcweir { 555*cdf0e10cSrcweir return pDlg->GetGroupInfo(); 556*cdf0e10cSrcweir } 557*cdf0e10cSrcweir 558*cdf0e10cSrcweir ScDPNumGroupInfo AbstractScDPDateGroupDlg_Impl::GetGroupInfo() const 559*cdf0e10cSrcweir { 560*cdf0e10cSrcweir return pDlg->GetGroupInfo(); 561*cdf0e10cSrcweir } 562*cdf0e10cSrcweir 563*cdf0e10cSrcweir sal_Int32 AbstractScDPDateGroupDlg_Impl::GetDatePart() const 564*cdf0e10cSrcweir { 565*cdf0e10cSrcweir return pDlg->GetDatePart(); 566*cdf0e10cSrcweir } 567*cdf0e10cSrcweir 568*cdf0e10cSrcweir //add for AbstractScDPShowDetailDlg_Impl begin 569*cdf0e10cSrcweir String AbstractScDPShowDetailDlg_Impl::GetDimensionName() const 570*cdf0e10cSrcweir { 571*cdf0e10cSrcweir return pDlg->GetDimensionName(); 572*cdf0e10cSrcweir } 573*cdf0e10cSrcweir //add for AbstractScDPShowDetailDlg_Impl end 574*cdf0e10cSrcweir 575*cdf0e10cSrcweir //add for AbstractScNewScenarioDlg_Impl begin 576*cdf0e10cSrcweir void AbstractScNewScenarioDlg_Impl::SetScenarioData( const String& rName, const String& rComment, 577*cdf0e10cSrcweir const Color& rColor, sal_uInt16 nFlags ) 578*cdf0e10cSrcweir { 579*cdf0e10cSrcweir pDlg->SetScenarioData(rName,rComment, rColor,nFlags); 580*cdf0e10cSrcweir } 581*cdf0e10cSrcweir 582*cdf0e10cSrcweir void AbstractScNewScenarioDlg_Impl::GetScenarioData( String& rName, String& rComment, 583*cdf0e10cSrcweir Color& rColor, sal_uInt16& rFlags ) const 584*cdf0e10cSrcweir { 585*cdf0e10cSrcweir pDlg->GetScenarioData( rName,rComment,rColor,rFlags); 586*cdf0e10cSrcweir } 587*cdf0e10cSrcweir 588*cdf0e10cSrcweir //add for AbstractScNewScenarioDlg_Impl end 589*cdf0e10cSrcweir 590*cdf0e10cSrcweir //add for AbstractScShowTabDlg_Impl begin 591*cdf0e10cSrcweir void AbstractScShowTabDlg_Impl::Insert( const String& rString, sal_Bool bSelected ) //add for ScShowTabDlg 592*cdf0e10cSrcweir { 593*cdf0e10cSrcweir pDlg->Insert( rString, bSelected); 594*cdf0e10cSrcweir } 595*cdf0e10cSrcweir 596*cdf0e10cSrcweir sal_uInt16 AbstractScShowTabDlg_Impl::GetSelectEntryCount() const 597*cdf0e10cSrcweir { 598*cdf0e10cSrcweir return pDlg->GetSelectEntryCount(); 599*cdf0e10cSrcweir } 600*cdf0e10cSrcweir void AbstractScShowTabDlg_Impl::SetDescription( 601*cdf0e10cSrcweir const String& rTitle, const String& rFixedText, 602*cdf0e10cSrcweir const rtl::OString& sDlgHelpId, const rtl::OString& sLbHelpId ) 603*cdf0e10cSrcweir { 604*cdf0e10cSrcweir pDlg->SetDescription( rTitle, rFixedText, sDlgHelpId, sLbHelpId ); 605*cdf0e10cSrcweir } 606*cdf0e10cSrcweir sal_uInt16 AbstractScShowTabDlg_Impl::GetSelectEntryPos(sal_uInt16 nPos) const 607*cdf0e10cSrcweir { 608*cdf0e10cSrcweir return pDlg->GetSelectEntryPos( nPos); 609*cdf0e10cSrcweir } 610*cdf0e10cSrcweir String AbstractScShowTabDlg_Impl::GetSelectEntry(sal_uInt16 nPos) const 611*cdf0e10cSrcweir { 612*cdf0e10cSrcweir return pDlg->GetSelectEntry(nPos); 613*cdf0e10cSrcweir } 614*cdf0e10cSrcweir //add for AbstractScShowTabDlg_Impl end 615*cdf0e10cSrcweir 616*cdf0e10cSrcweir //add for AbstractScStringInputDlg_Impl begin 617*cdf0e10cSrcweir void AbstractScStringInputDlg_Impl::GetInputString( String& rString ) const //add for ScStringInputDlg 618*cdf0e10cSrcweir { 619*cdf0e10cSrcweir pDlg->GetInputString( rString ); 620*cdf0e10cSrcweir } 621*cdf0e10cSrcweir //add for AbstractScStringInputDlg_Impl end 622*cdf0e10cSrcweir 623*cdf0e10cSrcweir //add for AbstractScTabBgColorDlg_Impl begin 624*cdf0e10cSrcweir void AbstractScTabBgColorDlg_Impl::GetSelectedColor( Color& rColor ) const //add for ScTabBgColorDlg 625*cdf0e10cSrcweir { 626*cdf0e10cSrcweir pDlg->GetSelectedColor( rColor ); 627*cdf0e10cSrcweir } 628*cdf0e10cSrcweir //add for AbstractScTabBgColorDlg_Impl end 629*cdf0e10cSrcweir 630*cdf0e10cSrcweir 631*cdf0e10cSrcweir //add for AbstractScImportOptionsDlg_Impl begin 632*cdf0e10cSrcweir void AbstractScImportOptionsDlg_Impl::GetImportOptions( ScImportOptions& rOptions ) const //add for ScImportOptionsDlg 633*cdf0e10cSrcweir { 634*cdf0e10cSrcweir pDlg->GetImportOptions(rOptions); 635*cdf0e10cSrcweir } 636*cdf0e10cSrcweir // add for AbstractScImportOptionsDlg_Impl end 637*cdf0e10cSrcweir 638*cdf0e10cSrcweir //add for AbstractScLangChooserDlg_Impl begin 639*cdf0e10cSrcweir LanguageType AbstractScTextImportOptionsDlg_Impl::GetLanguageType() const 640*cdf0e10cSrcweir { 641*cdf0e10cSrcweir return pDlg->getLanguageType(); 642*cdf0e10cSrcweir } 643*cdf0e10cSrcweir 644*cdf0e10cSrcweir bool AbstractScTextImportOptionsDlg_Impl::IsDateConversionSet() const 645*cdf0e10cSrcweir { 646*cdf0e10cSrcweir return pDlg->isDateConversionSet(); 647*cdf0e10cSrcweir } 648*cdf0e10cSrcweir 649*cdf0e10cSrcweir //add for AbstractScLangChooserDlg_Impl end 650*cdf0e10cSrcweir 651*cdf0e10cSrcweir // =========================Factories for createdialog =================== 652*cdf0e10cSrcweir 653*cdf0e10cSrcweir //add for ScImportAsciiDlg begin 654*cdf0e10cSrcweir AbstractScImportAsciiDlg * ScAbstractDialogFactory_Impl::CreateScImportAsciiDlg ( Window* pParent, String aDatName, 655*cdf0e10cSrcweir SvStream* pInStream, int nId, sal_Unicode cSep ) 656*cdf0e10cSrcweir { 657*cdf0e10cSrcweir ScImportAsciiDlg* pDlg=NULL; 658*cdf0e10cSrcweir switch ( nId ) 659*cdf0e10cSrcweir { 660*cdf0e10cSrcweir case RID_SCDLG_ASCII : 661*cdf0e10cSrcweir pDlg = new ScImportAsciiDlg( pParent, aDatName,pInStream, cSep ); 662*cdf0e10cSrcweir break; 663*cdf0e10cSrcweir default: 664*cdf0e10cSrcweir break; 665*cdf0e10cSrcweir } 666*cdf0e10cSrcweir 667*cdf0e10cSrcweir if ( pDlg ) 668*cdf0e10cSrcweir return new AbstractScImportAsciiDlg_Impl( pDlg ); 669*cdf0e10cSrcweir return 0; 670*cdf0e10cSrcweir } 671*cdf0e10cSrcweir // ScImportAsciiDlg end 672*cdf0e10cSrcweir 673*cdf0e10cSrcweir AbstractScTextImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScTextImportOptionsDlg( Window* pParent, int nId ) 674*cdf0e10cSrcweir { 675*cdf0e10cSrcweir ScTextImportOptionsDlg* pDlg = NULL; 676*cdf0e10cSrcweir switch (nId) 677*cdf0e10cSrcweir { 678*cdf0e10cSrcweir case RID_SCDLG_TEXT_IMPORT_OPTIONS: 679*cdf0e10cSrcweir pDlg = new ScTextImportOptionsDlg(pParent); 680*cdf0e10cSrcweir break; 681*cdf0e10cSrcweir default: 682*cdf0e10cSrcweir ; 683*cdf0e10cSrcweir } 684*cdf0e10cSrcweir 685*cdf0e10cSrcweir return pDlg ? new AbstractScTextImportOptionsDlg_Impl(pDlg) : NULL; 686*cdf0e10cSrcweir } 687*cdf0e10cSrcweir 688*cdf0e10cSrcweir //add for ScAutoFormatDlg begin 689*cdf0e10cSrcweir 690*cdf0e10cSrcweir AbstractScAutoFormatDlg * ScAbstractDialogFactory_Impl::CreateScAutoFormatDlg( Window* pParent, //add for ScAutoFormatDlg 691*cdf0e10cSrcweir ScAutoFormat* pAutoFormat, 692*cdf0e10cSrcweir const ScAutoFormatData* pSelFormatData, 693*cdf0e10cSrcweir ScDocument* pDoc, 694*cdf0e10cSrcweir int nId) 695*cdf0e10cSrcweir { 696*cdf0e10cSrcweir ScAutoFormatDlg* pDlg=NULL; 697*cdf0e10cSrcweir switch ( nId ) 698*cdf0e10cSrcweir { 699*cdf0e10cSrcweir case RID_SCDLG_AUTOFORMAT : 700*cdf0e10cSrcweir pDlg = new ScAutoFormatDlg( pParent, pAutoFormat,pSelFormatData, pDoc ); 701*cdf0e10cSrcweir break; 702*cdf0e10cSrcweir default: 703*cdf0e10cSrcweir break; 704*cdf0e10cSrcweir } 705*cdf0e10cSrcweir 706*cdf0e10cSrcweir if ( pDlg ) 707*cdf0e10cSrcweir return new AbstractScAutoFormatDlg_Impl( pDlg ); 708*cdf0e10cSrcweir return 0; 709*cdf0e10cSrcweir } 710*cdf0e10cSrcweir //add for ScAutoFormatDlg end 711*cdf0e10cSrcweir 712*cdf0e10cSrcweir //add for ScColRowLabelDlg begin 713*cdf0e10cSrcweir 714*cdf0e10cSrcweir AbstractScColRowLabelDlg * ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(Window* pParent, //add for ScColRowLabelDlg 715*cdf0e10cSrcweir int nId, 716*cdf0e10cSrcweir sal_Bool bCol , 717*cdf0e10cSrcweir sal_Bool bRow) 718*cdf0e10cSrcweir { 719*cdf0e10cSrcweir ScColRowLabelDlg* pDlg=NULL; 720*cdf0e10cSrcweir switch ( nId ) 721*cdf0e10cSrcweir { 722*cdf0e10cSrcweir case RID_SCDLG_CHARTCOLROW : 723*cdf0e10cSrcweir pDlg = new ScColRowLabelDlg( pParent, bCol,bRow ); 724*cdf0e10cSrcweir break; 725*cdf0e10cSrcweir default: 726*cdf0e10cSrcweir break; 727*cdf0e10cSrcweir } 728*cdf0e10cSrcweir 729*cdf0e10cSrcweir if ( pDlg ) 730*cdf0e10cSrcweir return new AbstractScColRowLabelDlg_Impl( pDlg ); 731*cdf0e10cSrcweir return 0; 732*cdf0e10cSrcweir } 733*cdf0e10cSrcweir //add for ScColRowLabelDlg end 734*cdf0e10cSrcweir 735*cdf0e10cSrcweir 736*cdf0e10cSrcweir //add for ScColOrRowDlg begin 737*cdf0e10cSrcweir 738*cdf0e10cSrcweir VclAbstractDialog * ScAbstractDialogFactory_Impl::CreateScColOrRowDlg(Window* pParent, 739*cdf0e10cSrcweir const String& rStrTitle, 740*cdf0e10cSrcweir const String& rStrLabel, 741*cdf0e10cSrcweir int nId, 742*cdf0e10cSrcweir sal_Bool bColDefault) 743*cdf0e10cSrcweir { 744*cdf0e10cSrcweir Dialog * pDlg=NULL; 745*cdf0e10cSrcweir switch ( nId ) 746*cdf0e10cSrcweir { 747*cdf0e10cSrcweir case RID_SCDLG_COLORROW : 748*cdf0e10cSrcweir pDlg = new ScColOrRowDlg( pParent, rStrTitle,rStrLabel,bColDefault ); 749*cdf0e10cSrcweir break; 750*cdf0e10cSrcweir default: 751*cdf0e10cSrcweir break; 752*cdf0e10cSrcweir } 753*cdf0e10cSrcweir 754*cdf0e10cSrcweir if ( pDlg ) 755*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 756*cdf0e10cSrcweir return 0; 757*cdf0e10cSrcweir } 758*cdf0e10cSrcweir //add for ScColOrRowDlg end 759*cdf0e10cSrcweir 760*cdf0e10cSrcweir //add for ScSortWarningDlg begin 761*cdf0e10cSrcweir VclAbstractDialog * ScAbstractDialogFactory_Impl::CreateScSortWarningDlg( Window* pParent, const String& rExtendText, 762*cdf0e10cSrcweir const String& rCurrentText, int nId ) 763*cdf0e10cSrcweir { 764*cdf0e10cSrcweir Dialog * pDlg=NULL; 765*cdf0e10cSrcweir switch ( nId ) 766*cdf0e10cSrcweir { 767*cdf0e10cSrcweir case RID_SCDLG_SORT_WARNING: 768*cdf0e10cSrcweir pDlg = new ScSortWarningDlg( pParent, rExtendText, rCurrentText ); 769*cdf0e10cSrcweir break; 770*cdf0e10cSrcweir default: 771*cdf0e10cSrcweir break; 772*cdf0e10cSrcweir } 773*cdf0e10cSrcweir if( pDlg ) 774*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 775*cdf0e10cSrcweir return 0; 776*cdf0e10cSrcweir } 777*cdf0e10cSrcweir //add for ScSortWarningDlg end 778*cdf0e10cSrcweir 779*cdf0e10cSrcweir //add for ScDataPilotDatabaseDlg begin 780*cdf0e10cSrcweir 781*cdf0e10cSrcweir AbstractScDataPilotDatabaseDlg * ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg (Window* pParent , 782*cdf0e10cSrcweir int nId ) //add for ScDataPilotDatabaseDlg 783*cdf0e10cSrcweir { 784*cdf0e10cSrcweir ScDataPilotDatabaseDlg * pDlg=NULL; 785*cdf0e10cSrcweir switch ( nId ) 786*cdf0e10cSrcweir { 787*cdf0e10cSrcweir case RID_SCDLG_DAPIDATA : 788*cdf0e10cSrcweir pDlg = new ScDataPilotDatabaseDlg( pParent ); 789*cdf0e10cSrcweir break; 790*cdf0e10cSrcweir default: 791*cdf0e10cSrcweir break; 792*cdf0e10cSrcweir } 793*cdf0e10cSrcweir 794*cdf0e10cSrcweir if ( pDlg ) 795*cdf0e10cSrcweir return new AbstractScDataPilotDatabaseDlg_Impl( pDlg ); 796*cdf0e10cSrcweir return 0; 797*cdf0e10cSrcweir } 798*cdf0e10cSrcweir //add for ScDataPilotDatabaseDlg end 799*cdf0e10cSrcweir 800*cdf0e10cSrcweir //add for ScDataPilotSourceTypeDlg begin 801*cdf0e10cSrcweir AbstractScDataPilotSourceTypeDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg( Window* pParent, 802*cdf0e10cSrcweir sal_Bool bEnableExternal, 803*cdf0e10cSrcweir int nId ) 804*cdf0e10cSrcweir { 805*cdf0e10cSrcweir ScDataPilotSourceTypeDlg * pDlg=NULL; 806*cdf0e10cSrcweir switch ( nId ) 807*cdf0e10cSrcweir { 808*cdf0e10cSrcweir case RID_SCDLG_DAPITYPE : 809*cdf0e10cSrcweir pDlg = new ScDataPilotSourceTypeDlg( pParent, bEnableExternal ); 810*cdf0e10cSrcweir break; 811*cdf0e10cSrcweir default: 812*cdf0e10cSrcweir break; 813*cdf0e10cSrcweir } 814*cdf0e10cSrcweir 815*cdf0e10cSrcweir if ( pDlg ) 816*cdf0e10cSrcweir return new AbstractScDataPilotSourceTypeDlg_Impl( pDlg ); 817*cdf0e10cSrcweir return 0; 818*cdf0e10cSrcweir } 819*cdf0e10cSrcweir 820*cdf0e10cSrcweir // add for ScDataPilotSourceTypeDlg end 821*cdf0e10cSrcweir 822*cdf0e10cSrcweir 823*cdf0e10cSrcweir //add for ScDataPilotServiceDlg begin 824*cdf0e10cSrcweir AbstractScDataPilotServiceDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotServiceDlg( Window* pParent, 825*cdf0e10cSrcweir const com::sun::star::uno::Sequence<rtl::OUString>& rServices, 826*cdf0e10cSrcweir int nId ) 827*cdf0e10cSrcweir { 828*cdf0e10cSrcweir ScDataPilotServiceDlg * pDlg=NULL; 829*cdf0e10cSrcweir switch ( nId ) 830*cdf0e10cSrcweir { 831*cdf0e10cSrcweir case RID_SCDLG_DAPISERVICE : 832*cdf0e10cSrcweir pDlg = new ScDataPilotServiceDlg( pParent, rServices ); 833*cdf0e10cSrcweir break; 834*cdf0e10cSrcweir default: 835*cdf0e10cSrcweir break; 836*cdf0e10cSrcweir } 837*cdf0e10cSrcweir 838*cdf0e10cSrcweir if ( pDlg ) 839*cdf0e10cSrcweir return new AbstractScDataPilotServiceDlg_Impl( pDlg ); 840*cdf0e10cSrcweir return 0; 841*cdf0e10cSrcweir } 842*cdf0e10cSrcweir 843*cdf0e10cSrcweir // add for ScDataPilotServiceDlg end 844*cdf0e10cSrcweir 845*cdf0e10cSrcweir //add for ScDeleteCellDlg begin 846*cdf0e10cSrcweir AbstractScDeleteCellDlg* ScAbstractDialogFactory_Impl::CreateScDeleteCellDlg( Window* pParent, int nId, 847*cdf0e10cSrcweir sal_Bool bDisallowCellMove ) 848*cdf0e10cSrcweir { 849*cdf0e10cSrcweir ScDeleteCellDlg * pDlg=NULL; 850*cdf0e10cSrcweir switch ( nId ) 851*cdf0e10cSrcweir { 852*cdf0e10cSrcweir case RID_SCDLG_DELCELL : 853*cdf0e10cSrcweir pDlg = new ScDeleteCellDlg( pParent, bDisallowCellMove ); 854*cdf0e10cSrcweir break; 855*cdf0e10cSrcweir default: 856*cdf0e10cSrcweir break; 857*cdf0e10cSrcweir } 858*cdf0e10cSrcweir 859*cdf0e10cSrcweir if ( pDlg ) 860*cdf0e10cSrcweir return new AbstractScDeleteCellDlg_Impl( pDlg ); 861*cdf0e10cSrcweir return 0; 862*cdf0e10cSrcweir } 863*cdf0e10cSrcweir 864*cdf0e10cSrcweir //add for ScDeleteCellDlg end 865*cdf0e10cSrcweir 866*cdf0e10cSrcweir //add for ScDeleteContentsDlg begin 867*cdf0e10cSrcweir AbstractScDeleteContentsDlg* ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(Window* pParent,int nId, //add for ScDeleteContentsDlg 868*cdf0e10cSrcweir sal_uInt16 nCheckDefaults ) 869*cdf0e10cSrcweir { 870*cdf0e10cSrcweir ScDeleteContentsDlg * pDlg=NULL; 871*cdf0e10cSrcweir switch ( nId ) 872*cdf0e10cSrcweir { 873*cdf0e10cSrcweir case RID_SCDLG_DELCONT : 874*cdf0e10cSrcweir pDlg = new ScDeleteContentsDlg( pParent, nCheckDefaults ); 875*cdf0e10cSrcweir break; 876*cdf0e10cSrcweir default: 877*cdf0e10cSrcweir break; 878*cdf0e10cSrcweir } 879*cdf0e10cSrcweir 880*cdf0e10cSrcweir if ( pDlg ) 881*cdf0e10cSrcweir return new AbstractScDeleteContentsDlg_Impl( pDlg ); 882*cdf0e10cSrcweir return 0; 883*cdf0e10cSrcweir } 884*cdf0e10cSrcweir 885*cdf0e10cSrcweir //add for ScDeleteContentsDlg end 886*cdf0e10cSrcweir 887*cdf0e10cSrcweir //add for ScFillSeriesDlg begin 888*cdf0e10cSrcweir AbstractScFillSeriesDlg* ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg( Window* pParent, //add for ScFillSeriesDlg 889*cdf0e10cSrcweir ScDocument& rDocument, 890*cdf0e10cSrcweir FillDir eFillDir, 891*cdf0e10cSrcweir FillCmd eFillCmd, 892*cdf0e10cSrcweir FillDateCmd eFillDateCmd, 893*cdf0e10cSrcweir String aStartStr, 894*cdf0e10cSrcweir double fStep, 895*cdf0e10cSrcweir double fMax, 896*cdf0e10cSrcweir sal_uInt16 nPossDir, 897*cdf0e10cSrcweir int nId) 898*cdf0e10cSrcweir { 899*cdf0e10cSrcweir ScFillSeriesDlg * pDlg=NULL; 900*cdf0e10cSrcweir switch ( nId ) 901*cdf0e10cSrcweir { 902*cdf0e10cSrcweir case RID_SCDLG_FILLSERIES : 903*cdf0e10cSrcweir pDlg = new ScFillSeriesDlg( pParent, rDocument,eFillDir, eFillCmd,eFillDateCmd, aStartStr,fStep,fMax,nPossDir); 904*cdf0e10cSrcweir break; 905*cdf0e10cSrcweir default: 906*cdf0e10cSrcweir break; 907*cdf0e10cSrcweir } 908*cdf0e10cSrcweir 909*cdf0e10cSrcweir if ( pDlg ) 910*cdf0e10cSrcweir return new AbstractScFillSeriesDlg_Impl( pDlg ); 911*cdf0e10cSrcweir return 0; 912*cdf0e10cSrcweir } 913*cdf0e10cSrcweir 914*cdf0e10cSrcweir //add for ScFillSeriesDlg end 915*cdf0e10cSrcweir 916*cdf0e10cSrcweir //add for ScGroupDlg begin 917*cdf0e10cSrcweir AbstractScGroupDlg* ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg( Window* pParent, 918*cdf0e10cSrcweir sal_uInt16 nResId, 919*cdf0e10cSrcweir int nId, 920*cdf0e10cSrcweir sal_Bool bUnGroup , 921*cdf0e10cSrcweir sal_Bool bRows ) 922*cdf0e10cSrcweir { 923*cdf0e10cSrcweir ScGroupDlg * pDlg=NULL; 924*cdf0e10cSrcweir switch ( nId ) 925*cdf0e10cSrcweir { 926*cdf0e10cSrcweir case RID_SCDLG_GRP_KILL : 927*cdf0e10cSrcweir case RID_SCDLG_GRP_MAKE : 928*cdf0e10cSrcweir pDlg = new ScGroupDlg( pParent, nResId,bUnGroup, bRows); 929*cdf0e10cSrcweir break; 930*cdf0e10cSrcweir default: 931*cdf0e10cSrcweir break; 932*cdf0e10cSrcweir } 933*cdf0e10cSrcweir 934*cdf0e10cSrcweir if ( pDlg ) 935*cdf0e10cSrcweir return new AbstractScGroupDlg_Impl( pDlg ); 936*cdf0e10cSrcweir return 0; 937*cdf0e10cSrcweir } 938*cdf0e10cSrcweir 939*cdf0e10cSrcweir //add for ScGroupDlg end 940*cdf0e10cSrcweir 941*cdf0e10cSrcweir 942*cdf0e10cSrcweir //add for ScInsertCellDlg begin 943*cdf0e10cSrcweir AbstractScInsertCellDlg * ScAbstractDialogFactory_Impl::CreateScInsertCellDlg( Window* pParent, //add for ScInsertCellDlg 944*cdf0e10cSrcweir int nId, 945*cdf0e10cSrcweir sal_Bool bDisallowCellMove ) 946*cdf0e10cSrcweir { 947*cdf0e10cSrcweir ScInsertCellDlg * pDlg=NULL; 948*cdf0e10cSrcweir switch ( nId ) 949*cdf0e10cSrcweir { 950*cdf0e10cSrcweir case RID_SCDLG_INSCELL : 951*cdf0e10cSrcweir pDlg = new ScInsertCellDlg( pParent, bDisallowCellMove); 952*cdf0e10cSrcweir break; 953*cdf0e10cSrcweir default: 954*cdf0e10cSrcweir break; 955*cdf0e10cSrcweir } 956*cdf0e10cSrcweir 957*cdf0e10cSrcweir if ( pDlg ) 958*cdf0e10cSrcweir return new AbstractScInsertCellDlg_Impl( pDlg ); 959*cdf0e10cSrcweir return 0; 960*cdf0e10cSrcweir } 961*cdf0e10cSrcweir 962*cdf0e10cSrcweir //add for ScInsertCellDlg end 963*cdf0e10cSrcweir 964*cdf0e10cSrcweir //add for ScInsertContentsDlg begin 965*cdf0e10cSrcweir AbstractScInsertContentsDlg * ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg( Window* pParent, 966*cdf0e10cSrcweir int nId, 967*cdf0e10cSrcweir sal_uInt16 nCheckDefaults, 968*cdf0e10cSrcweir const String* pStrTitle ) 969*cdf0e10cSrcweir { 970*cdf0e10cSrcweir ScInsertContentsDlg * pDlg=NULL; 971*cdf0e10cSrcweir switch ( nId ) 972*cdf0e10cSrcweir { 973*cdf0e10cSrcweir case RID_SCDLG_INSCONT : 974*cdf0e10cSrcweir pDlg = new ScInsertContentsDlg( pParent, nCheckDefaults,pStrTitle ); 975*cdf0e10cSrcweir break; 976*cdf0e10cSrcweir default: 977*cdf0e10cSrcweir break; 978*cdf0e10cSrcweir } 979*cdf0e10cSrcweir 980*cdf0e10cSrcweir if ( pDlg ) 981*cdf0e10cSrcweir return new AbstractScInsertContentsDlg_Impl( pDlg ); 982*cdf0e10cSrcweir return 0; 983*cdf0e10cSrcweir } 984*cdf0e10cSrcweir //add for ScInsertContentsDlg end 985*cdf0e10cSrcweir 986*cdf0e10cSrcweir //add for ScInsertTableDlg begin 987*cdf0e10cSrcweir AbstractScInsertTableDlg * ScAbstractDialogFactory_Impl::CreateScInsertTableDlg ( Window* pParent, ScViewData& rViewData, 988*cdf0e10cSrcweir SCTAB nTabCount, bool bFromFile, int nId) 989*cdf0e10cSrcweir { 990*cdf0e10cSrcweir ScInsertTableDlg * pDlg=NULL; 991*cdf0e10cSrcweir switch ( nId ) 992*cdf0e10cSrcweir { 993*cdf0e10cSrcweir case RID_SCDLG_INSERT_TABLE : 994*cdf0e10cSrcweir pDlg = new ScInsertTableDlg( pParent, rViewData,nTabCount, bFromFile ); 995*cdf0e10cSrcweir break; 996*cdf0e10cSrcweir default: 997*cdf0e10cSrcweir break; 998*cdf0e10cSrcweir } 999*cdf0e10cSrcweir 1000*cdf0e10cSrcweir if ( pDlg ) 1001*cdf0e10cSrcweir return new AbstractScInsertTableDlg_Impl( pDlg ); 1002*cdf0e10cSrcweir return 0; 1003*cdf0e10cSrcweir } 1004*cdf0e10cSrcweir //add for ScInsertTableDlg end 1005*cdf0e10cSrcweir 1006*cdf0e10cSrcweir // add for ScSelEntryDlg begin 1007*cdf0e10cSrcweir AbstractScSelEntryDlg * ScAbstractDialogFactory_Impl::CreateScSelEntryDlg ( Window* pParent, 1008*cdf0e10cSrcweir sal_uInt16 nResId, 1009*cdf0e10cSrcweir const String& aTitle, 1010*cdf0e10cSrcweir const String& aLbTitle, 1011*cdf0e10cSrcweir List& aEntryList, 1012*cdf0e10cSrcweir int nId ) 1013*cdf0e10cSrcweir { 1014*cdf0e10cSrcweir ScSelEntryDlg * pDlg=NULL; 1015*cdf0e10cSrcweir switch ( nId ) 1016*cdf0e10cSrcweir { 1017*cdf0e10cSrcweir case RID_SCDLG_SELECTDB : 1018*cdf0e10cSrcweir pDlg = new ScSelEntryDlg( pParent, nResId,aTitle, aLbTitle, aEntryList ); 1019*cdf0e10cSrcweir break; 1020*cdf0e10cSrcweir default: 1021*cdf0e10cSrcweir break; 1022*cdf0e10cSrcweir } 1023*cdf0e10cSrcweir 1024*cdf0e10cSrcweir if ( pDlg ) 1025*cdf0e10cSrcweir return new AbstractScSelEntryDlg_Impl( pDlg ); 1026*cdf0e10cSrcweir return 0; 1027*cdf0e10cSrcweir } 1028*cdf0e10cSrcweir // add for ScSelEntryDlg end 1029*cdf0e10cSrcweir 1030*cdf0e10cSrcweir //add for ScLinkedAreaDlg begin 1031*cdf0e10cSrcweir AbstractScLinkedAreaDlg * ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg ( Window* pParent, 1032*cdf0e10cSrcweir int nId) 1033*cdf0e10cSrcweir { 1034*cdf0e10cSrcweir ScLinkedAreaDlg * pDlg=NULL; 1035*cdf0e10cSrcweir switch ( nId ) 1036*cdf0e10cSrcweir { 1037*cdf0e10cSrcweir case RID_SCDLG_LINKAREA : 1038*cdf0e10cSrcweir pDlg = new ScLinkedAreaDlg( pParent ); 1039*cdf0e10cSrcweir break; 1040*cdf0e10cSrcweir default: 1041*cdf0e10cSrcweir break; 1042*cdf0e10cSrcweir } 1043*cdf0e10cSrcweir 1044*cdf0e10cSrcweir if ( pDlg ) 1045*cdf0e10cSrcweir return new AbstractScLinkedAreaDlg_Impl( pDlg ); 1046*cdf0e10cSrcweir return 0; 1047*cdf0e10cSrcweir } 1048*cdf0e10cSrcweir //add for ScLinkedAreaDlg end 1049*cdf0e10cSrcweir 1050*cdf0e10cSrcweir //add for ScMetricInputDlg begin 1051*cdf0e10cSrcweir AbstractScMetricInputDlg * ScAbstractDialogFactory_Impl::CreateScMetricInputDlg ( Window* pParent, 1052*cdf0e10cSrcweir sal_uInt16 nResId, // Ableitung fuer jeden Dialog! 1053*cdf0e10cSrcweir long nCurrent, 1054*cdf0e10cSrcweir long nDefault, 1055*cdf0e10cSrcweir int nId , 1056*cdf0e10cSrcweir FieldUnit eFUnit, 1057*cdf0e10cSrcweir sal_uInt16 nDecimals, 1058*cdf0e10cSrcweir long nMaximum , 1059*cdf0e10cSrcweir long nMinimum, 1060*cdf0e10cSrcweir long nFirst, 1061*cdf0e10cSrcweir long nLast ) 1062*cdf0e10cSrcweir { 1063*cdf0e10cSrcweir ScMetricInputDlg * pDlg=NULL; 1064*cdf0e10cSrcweir switch ( nId ) 1065*cdf0e10cSrcweir { 1066*cdf0e10cSrcweir case RID_SCDLG_ROW_MAN : 1067*cdf0e10cSrcweir case RID_SCDLG_ROW_OPT : 1068*cdf0e10cSrcweir case RID_SCDLG_COL_MAN : 1069*cdf0e10cSrcweir case RID_SCDLG_COL_OPT : 1070*cdf0e10cSrcweir pDlg = new ScMetricInputDlg( pParent , nResId,nCurrent ,nDefault, eFUnit, 1071*cdf0e10cSrcweir nDecimals, nMaximum , nMinimum , nFirst, nLast); 1072*cdf0e10cSrcweir break; 1073*cdf0e10cSrcweir default: 1074*cdf0e10cSrcweir break; 1075*cdf0e10cSrcweir } 1076*cdf0e10cSrcweir 1077*cdf0e10cSrcweir if ( pDlg ) 1078*cdf0e10cSrcweir return new AbstractScMetricInputDlg_Impl( pDlg ); 1079*cdf0e10cSrcweir return 0; 1080*cdf0e10cSrcweir } 1081*cdf0e10cSrcweir //add for ScMetricInputDlg end 1082*cdf0e10cSrcweir 1083*cdf0e10cSrcweir 1084*cdf0e10cSrcweir //add for ScMoveTableDlg begin 1085*cdf0e10cSrcweir AbstractScMoveTableDlg * ScAbstractDialogFactory_Impl::CreateScMoveTableDlg( Window* pParent, int nId ) 1086*cdf0e10cSrcweir { 1087*cdf0e10cSrcweir ScMoveTableDlg * pDlg=NULL; 1088*cdf0e10cSrcweir switch ( nId ) 1089*cdf0e10cSrcweir { 1090*cdf0e10cSrcweir case RID_SCDLG_MOVETAB : 1091*cdf0e10cSrcweir pDlg = new ScMoveTableDlg( pParent ); 1092*cdf0e10cSrcweir break; 1093*cdf0e10cSrcweir default: 1094*cdf0e10cSrcweir break; 1095*cdf0e10cSrcweir } 1096*cdf0e10cSrcweir 1097*cdf0e10cSrcweir if ( pDlg ) 1098*cdf0e10cSrcweir return new AbstractScMoveTableDlg_Impl( pDlg ); 1099*cdf0e10cSrcweir return 0; 1100*cdf0e10cSrcweir } 1101*cdf0e10cSrcweir //add for ScMoveTableDlg end 1102*cdf0e10cSrcweir 1103*cdf0e10cSrcweir 1104*cdf0e10cSrcweir //add for ScNameCreateDlg begin 1105*cdf0e10cSrcweir AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg ( Window * pParent, sal_uInt16 nFlags, int nId ) 1106*cdf0e10cSrcweir { 1107*cdf0e10cSrcweir ScNameCreateDlg * pDlg=NULL; 1108*cdf0e10cSrcweir switch ( nId ) 1109*cdf0e10cSrcweir { 1110*cdf0e10cSrcweir case RID_SCDLG_NAMES_CREATE : 1111*cdf0e10cSrcweir pDlg = new ScNameCreateDlg( pParent, nFlags ); 1112*cdf0e10cSrcweir break; 1113*cdf0e10cSrcweir default: 1114*cdf0e10cSrcweir break; 1115*cdf0e10cSrcweir } 1116*cdf0e10cSrcweir 1117*cdf0e10cSrcweir if ( pDlg ) 1118*cdf0e10cSrcweir return new AbstractScNameCreateDlg_Impl( pDlg ); 1119*cdf0e10cSrcweir return 0; 1120*cdf0e10cSrcweir } 1121*cdf0e10cSrcweir //add for ScNameCreateDlg end 1122*cdf0e10cSrcweir 1123*cdf0e10cSrcweir 1124*cdf0e10cSrcweir //add for ScNamePasteDlg begin 1125*cdf0e10cSrcweir AbstractScNamePasteDlg * ScAbstractDialogFactory_Impl::CreateScNamePasteDlg ( Window * pParent, const ScRangeName* pList, 1126*cdf0e10cSrcweir int nId , sal_Bool bInsList ) 1127*cdf0e10cSrcweir { 1128*cdf0e10cSrcweir ScNamePasteDlg * pDlg=NULL; 1129*cdf0e10cSrcweir switch ( nId ) 1130*cdf0e10cSrcweir { 1131*cdf0e10cSrcweir case RID_SCDLG_NAMES_PASTE : 1132*cdf0e10cSrcweir pDlg = new ScNamePasteDlg( pParent, pList, bInsList ); 1133*cdf0e10cSrcweir break; 1134*cdf0e10cSrcweir default: 1135*cdf0e10cSrcweir break; 1136*cdf0e10cSrcweir } 1137*cdf0e10cSrcweir 1138*cdf0e10cSrcweir if ( pDlg ) 1139*cdf0e10cSrcweir return new AbstractScNamePasteDlg_Impl( pDlg ); 1140*cdf0e10cSrcweir return 0; 1141*cdf0e10cSrcweir } 1142*cdf0e10cSrcweir //add for ScNamePasteDlg end 1143*cdf0e10cSrcweir 1144*cdf0e10cSrcweir //add for ScPivotFilterDlg begin 1145*cdf0e10cSrcweir AbstractScPivotFilterDlg * ScAbstractDialogFactory_Impl::CreateScPivotFilterDlg ( Window* pParent, 1146*cdf0e10cSrcweir const SfxItemSet& rArgSet, sal_uInt16 nSourceTab , int nId ) 1147*cdf0e10cSrcweir { 1148*cdf0e10cSrcweir ScPivotFilterDlg * pDlg=NULL; 1149*cdf0e10cSrcweir switch ( nId ) 1150*cdf0e10cSrcweir { 1151*cdf0e10cSrcweir case RID_SCDLG_PIVOTFILTER : 1152*cdf0e10cSrcweir pDlg = new ScPivotFilterDlg( pParent, rArgSet, nSourceTab ); 1153*cdf0e10cSrcweir break; 1154*cdf0e10cSrcweir default: 1155*cdf0e10cSrcweir break; 1156*cdf0e10cSrcweir } 1157*cdf0e10cSrcweir 1158*cdf0e10cSrcweir if ( pDlg ) 1159*cdf0e10cSrcweir return new AbstractScPivotFilterDlg_Impl( pDlg ); 1160*cdf0e10cSrcweir return 0; 1161*cdf0e10cSrcweir } 1162*cdf0e10cSrcweir //add for ScPivotFilterDlg end 1163*cdf0e10cSrcweir 1164*cdf0e10cSrcweir 1165*cdf0e10cSrcweir //add for ScDPFunctionDlg begin 1166*cdf0e10cSrcweir AbstractScDPFunctionDlg * ScAbstractDialogFactory_Impl::CreateScDPFunctionDlg ( Window* pParent, 1167*cdf0e10cSrcweir int nId, 1168*cdf0e10cSrcweir const ScDPLabelDataVector& rLabelVec, 1169*cdf0e10cSrcweir const ScDPLabelData& rLabelData, 1170*cdf0e10cSrcweir const ScPivotFuncData& rFuncData ) 1171*cdf0e10cSrcweir { 1172*cdf0e10cSrcweir ScDPFunctionDlg * pDlg=NULL; 1173*cdf0e10cSrcweir switch ( nId ) 1174*cdf0e10cSrcweir { 1175*cdf0e10cSrcweir case RID_SCDLG_DPDATAFIELD : 1176*cdf0e10cSrcweir pDlg = new ScDPFunctionDlg( pParent, rLabelVec, rLabelData, rFuncData ); 1177*cdf0e10cSrcweir break; 1178*cdf0e10cSrcweir default: 1179*cdf0e10cSrcweir break; 1180*cdf0e10cSrcweir } 1181*cdf0e10cSrcweir 1182*cdf0e10cSrcweir if ( pDlg ) 1183*cdf0e10cSrcweir return new AbstractScDPFunctionDlg_Impl( pDlg ); 1184*cdf0e10cSrcweir return 0; 1185*cdf0e10cSrcweir } 1186*cdf0e10cSrcweir //add for ScDPFunctionDlg end 1187*cdf0e10cSrcweir 1188*cdf0e10cSrcweir //add for ScDPSubtotalDlg begin 1189*cdf0e10cSrcweir AbstractScDPSubtotalDlg * ScAbstractDialogFactory_Impl::CreateScDPSubtotalDlg ( Window* pParent, 1190*cdf0e10cSrcweir int nId, 1191*cdf0e10cSrcweir ScDPObject& rDPObj, 1192*cdf0e10cSrcweir const ScDPLabelData& rLabelData, 1193*cdf0e10cSrcweir const ScPivotFuncData& rFuncData, 1194*cdf0e10cSrcweir const ScDPNameVec& rDataFields, 1195*cdf0e10cSrcweir bool bEnableLayout ) 1196*cdf0e10cSrcweir { 1197*cdf0e10cSrcweir ScDPSubtotalDlg * pDlg=NULL; 1198*cdf0e10cSrcweir switch ( nId ) 1199*cdf0e10cSrcweir { 1200*cdf0e10cSrcweir case RID_SCDLG_PIVOTSUBT : 1201*cdf0e10cSrcweir pDlg = new ScDPSubtotalDlg( pParent, rDPObj, rLabelData, rFuncData, rDataFields, bEnableLayout ); 1202*cdf0e10cSrcweir break; 1203*cdf0e10cSrcweir default: 1204*cdf0e10cSrcweir break; 1205*cdf0e10cSrcweir } 1206*cdf0e10cSrcweir 1207*cdf0e10cSrcweir if ( pDlg ) 1208*cdf0e10cSrcweir return new AbstractScDPSubtotalDlg_Impl( pDlg ); 1209*cdf0e10cSrcweir return 0; 1210*cdf0e10cSrcweir } 1211*cdf0e10cSrcweir //add for ScDPSubtotalDlg end 1212*cdf0e10cSrcweir 1213*cdf0e10cSrcweir AbstractScDPNumGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPNumGroupDlg( 1214*cdf0e10cSrcweir Window* pParent, int nId, const ScDPNumGroupInfo& rInfo ) 1215*cdf0e10cSrcweir { 1216*cdf0e10cSrcweir if( nId == RID_SCDLG_DPNUMGROUP ) 1217*cdf0e10cSrcweir return new AbstractScDPNumGroupDlg_Impl( new ScDPNumGroupDlg( pParent, rInfo ) ); 1218*cdf0e10cSrcweir return 0; 1219*cdf0e10cSrcweir } 1220*cdf0e10cSrcweir 1221*cdf0e10cSrcweir AbstractScDPDateGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPDateGroupDlg( 1222*cdf0e10cSrcweir Window* pParent, int nId, 1223*cdf0e10cSrcweir const ScDPNumGroupInfo& rInfo, sal_Int32 nDatePart, const Date& rNullDate ) 1224*cdf0e10cSrcweir { 1225*cdf0e10cSrcweir if( nId == RID_SCDLG_DPDATEGROUP ) 1226*cdf0e10cSrcweir return new AbstractScDPDateGroupDlg_Impl( new ScDPDateGroupDlg( pParent, rInfo, nDatePart, rNullDate ) ); 1227*cdf0e10cSrcweir return 0; 1228*cdf0e10cSrcweir } 1229*cdf0e10cSrcweir 1230*cdf0e10cSrcweir //add for ScDPShowDetailDlg begin 1231*cdf0e10cSrcweir AbstractScDPShowDetailDlg * ScAbstractDialogFactory_Impl::CreateScDPShowDetailDlg ( 1232*cdf0e10cSrcweir Window* pParent, int nId, ScDPObject& rDPObj, sal_uInt16 nOrient ) 1233*cdf0e10cSrcweir { 1234*cdf0e10cSrcweir if( nId == RID_SCDLG_DPSHOWDETAIL ) 1235*cdf0e10cSrcweir return new AbstractScDPShowDetailDlg_Impl( new ScDPShowDetailDlg( pParent, rDPObj, nOrient ) ); 1236*cdf0e10cSrcweir return 0; 1237*cdf0e10cSrcweir } 1238*cdf0e10cSrcweir //add for ScDPShowDetailDlg end 1239*cdf0e10cSrcweir 1240*cdf0e10cSrcweir //add for ScNewScenarioDlg begin 1241*cdf0e10cSrcweir AbstractScNewScenarioDlg * ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg ( Window* pParent, const String& rName, 1242*cdf0e10cSrcweir int nId, 1243*cdf0e10cSrcweir sal_Bool bEdit , sal_Bool bSheetProtected ) 1244*cdf0e10cSrcweir { 1245*cdf0e10cSrcweir ScNewScenarioDlg * pDlg=NULL; 1246*cdf0e10cSrcweir switch ( nId ) 1247*cdf0e10cSrcweir { 1248*cdf0e10cSrcweir case RID_SCDLG_NEWSCENARIO : 1249*cdf0e10cSrcweir pDlg = new ScNewScenarioDlg( pParent, rName, bEdit,bSheetProtected ); 1250*cdf0e10cSrcweir break; 1251*cdf0e10cSrcweir default: 1252*cdf0e10cSrcweir break; 1253*cdf0e10cSrcweir } 1254*cdf0e10cSrcweir 1255*cdf0e10cSrcweir if ( pDlg ) 1256*cdf0e10cSrcweir return new AbstractScNewScenarioDlg_Impl( pDlg ); 1257*cdf0e10cSrcweir return 0; 1258*cdf0e10cSrcweir } 1259*cdf0e10cSrcweir //add for ScNewScenarioDlg end 1260*cdf0e10cSrcweir 1261*cdf0e10cSrcweir //add for ScShowTabDlg begin 1262*cdf0e10cSrcweir AbstractScShowTabDlg * ScAbstractDialogFactory_Impl::CreateScShowTabDlg ( Window* pParent, int nId ) 1263*cdf0e10cSrcweir { 1264*cdf0e10cSrcweir ScShowTabDlg * pDlg=NULL; 1265*cdf0e10cSrcweir switch ( nId ) 1266*cdf0e10cSrcweir { 1267*cdf0e10cSrcweir case RID_SCDLG_SHOW_TAB : 1268*cdf0e10cSrcweir pDlg = new ScShowTabDlg( pParent); 1269*cdf0e10cSrcweir break; 1270*cdf0e10cSrcweir default: 1271*cdf0e10cSrcweir break; 1272*cdf0e10cSrcweir } 1273*cdf0e10cSrcweir 1274*cdf0e10cSrcweir if ( pDlg ) 1275*cdf0e10cSrcweir return new AbstractScShowTabDlg_Impl( pDlg ); 1276*cdf0e10cSrcweir return 0; 1277*cdf0e10cSrcweir } 1278*cdf0e10cSrcweir 1279*cdf0e10cSrcweir //add for ScShowTabDlg end 1280*cdf0e10cSrcweir 1281*cdf0e10cSrcweir 1282*cdf0e10cSrcweir //add for ScStringInputDlg begin 1283*cdf0e10cSrcweir AbstractScStringInputDlg * ScAbstractDialogFactory_Impl::CreateScStringInputDlg ( Window* pParent, 1284*cdf0e10cSrcweir const String& rTitle, 1285*cdf0e10cSrcweir const String& rEditTitle, 1286*cdf0e10cSrcweir const String& rDefault, 1287*cdf0e10cSrcweir const rtl::OString& sHelpId, const rtl::OString& sEditHelpId, 1288*cdf0e10cSrcweir int nId ) 1289*cdf0e10cSrcweir { 1290*cdf0e10cSrcweir ScStringInputDlg * pDlg=NULL; 1291*cdf0e10cSrcweir switch ( nId ) 1292*cdf0e10cSrcweir { 1293*cdf0e10cSrcweir case RID_SCDLG_STRINPUT : 1294*cdf0e10cSrcweir pDlg = new ScStringInputDlg( pParent, rTitle, rEditTitle, rDefault, sHelpId, sEditHelpId ); 1295*cdf0e10cSrcweir break; 1296*cdf0e10cSrcweir default: 1297*cdf0e10cSrcweir break; 1298*cdf0e10cSrcweir } 1299*cdf0e10cSrcweir 1300*cdf0e10cSrcweir if ( pDlg ) 1301*cdf0e10cSrcweir return new AbstractScStringInputDlg_Impl( pDlg ); 1302*cdf0e10cSrcweir return 0; 1303*cdf0e10cSrcweir } 1304*cdf0e10cSrcweir //add for ScStringInputDlg end 1305*cdf0e10cSrcweir 1306*cdf0e10cSrcweir //add for ScTabBgColorDlg begin 1307*cdf0e10cSrcweir AbstractScTabBgColorDlg * ScAbstractDialogFactory_Impl::CreateScTabBgColorDlg ( 1308*cdf0e10cSrcweir Window* pParent, 1309*cdf0e10cSrcweir const String& rTitle, 1310*cdf0e10cSrcweir const String& rTabBgColorNoColorText, 1311*cdf0e10cSrcweir const Color& rDefaultColor, 1312*cdf0e10cSrcweir const rtl::OString& sHelpId , 1313*cdf0e10cSrcweir int nId ) 1314*cdf0e10cSrcweir { 1315*cdf0e10cSrcweir ScTabBgColorDlg * pDlg=NULL; 1316*cdf0e10cSrcweir switch ( nId ) 1317*cdf0e10cSrcweir { 1318*cdf0e10cSrcweir case RID_SCDLG_TAB_BG_COLOR : 1319*cdf0e10cSrcweir pDlg = new ScTabBgColorDlg( pParent, rTitle, rTabBgColorNoColorText, rDefaultColor, sHelpId ); 1320*cdf0e10cSrcweir break; 1321*cdf0e10cSrcweir default: 1322*cdf0e10cSrcweir break; 1323*cdf0e10cSrcweir } 1324*cdf0e10cSrcweir 1325*cdf0e10cSrcweir if ( pDlg ) 1326*cdf0e10cSrcweir return new AbstractScTabBgColorDlg_Impl( pDlg ); 1327*cdf0e10cSrcweir return 0; 1328*cdf0e10cSrcweir } 1329*cdf0e10cSrcweir //add for ScTabBgColorDlg end 1330*cdf0e10cSrcweir 1331*cdf0e10cSrcweir //add for ScImportOptionsDlg begin 1332*cdf0e10cSrcweir AbstractScImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg ( Window* pParent, 1333*cdf0e10cSrcweir int nId, 1334*cdf0e10cSrcweir sal_Bool bAscii, 1335*cdf0e10cSrcweir const ScImportOptions* pOptions, 1336*cdf0e10cSrcweir const String* pStrTitle, 1337*cdf0e10cSrcweir sal_Bool bMultiByte, 1338*cdf0e10cSrcweir sal_Bool bOnlyDbtoolsEncodings, 1339*cdf0e10cSrcweir sal_Bool bImport ) 1340*cdf0e10cSrcweir { 1341*cdf0e10cSrcweir ScImportOptionsDlg * pDlg=NULL; 1342*cdf0e10cSrcweir switch ( nId ) 1343*cdf0e10cSrcweir { 1344*cdf0e10cSrcweir case RID_SCDLG_IMPORTOPT : 1345*cdf0e10cSrcweir pDlg = new ScImportOptionsDlg( pParent, bAscii, pOptions,pStrTitle, bMultiByte,bOnlyDbtoolsEncodings, bImport ); 1346*cdf0e10cSrcweir break; 1347*cdf0e10cSrcweir default: 1348*cdf0e10cSrcweir break; 1349*cdf0e10cSrcweir } 1350*cdf0e10cSrcweir 1351*cdf0e10cSrcweir if ( pDlg ) 1352*cdf0e10cSrcweir return new AbstractScImportOptionsDlg_Impl( pDlg ); 1353*cdf0e10cSrcweir return 0; 1354*cdf0e10cSrcweir } 1355*cdf0e10cSrcweir //add for ScImportOptionsDlg end 1356*cdf0e10cSrcweir 1357*cdf0e10cSrcweir #if ENABLE_LAYOUT && !LAYOUT_SFX_TABDIALOG_BROKEN 1358*cdf0e10cSrcweir #define SfxTabDialog layout::SfxTabDialog 1359*cdf0e10cSrcweir #define AbstractTabDialog_Impl layout::AbstractTabDialog_Impl 1360*cdf0e10cSrcweir #endif /* ENABLE_LAYOUT */ 1361*cdf0e10cSrcweir //add for ScAttrDlg begin 1362*cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScAttrDlg( SfxViewFrame* pFrame, 1363*cdf0e10cSrcweir Window* pParent, 1364*cdf0e10cSrcweir const SfxItemSet* pCellAttrs, 1365*cdf0e10cSrcweir int nId) 1366*cdf0e10cSrcweir { 1367*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1368*cdf0e10cSrcweir switch ( nId ) 1369*cdf0e10cSrcweir { 1370*cdf0e10cSrcweir case RID_SCDLG_ATTR : 1371*cdf0e10cSrcweir pDlg = new ScAttrDlg( pFrame, pParent, pCellAttrs ); 1372*cdf0e10cSrcweir break; 1373*cdf0e10cSrcweir default: 1374*cdf0e10cSrcweir break; 1375*cdf0e10cSrcweir } 1376*cdf0e10cSrcweir 1377*cdf0e10cSrcweir if ( pDlg ) 1378*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1379*cdf0e10cSrcweir return 0; 1380*cdf0e10cSrcweir 1381*cdf0e10cSrcweir } 1382*cdf0e10cSrcweir //add for ScAttrDlg end 1383*cdf0e10cSrcweir #undef SfxTabDialog 1384*cdf0e10cSrcweir #undef AbstractTabDialog_Impl 1385*cdf0e10cSrcweir 1386*cdf0e10cSrcweir //add for ScHFEditDlg begin 1387*cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScHFEditDlg( SfxViewFrame* pFrame, 1388*cdf0e10cSrcweir Window* pParent, 1389*cdf0e10cSrcweir const SfxItemSet& rCoreSet, 1390*cdf0e10cSrcweir const String& rPageStyle, 1391*cdf0e10cSrcweir int nId, 1392*cdf0e10cSrcweir sal_uInt16 nResId ) 1393*cdf0e10cSrcweir { 1394*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1395*cdf0e10cSrcweir switch ( nId ) 1396*cdf0e10cSrcweir { 1397*cdf0e10cSrcweir case RID_SCDLG_HFEDIT : 1398*cdf0e10cSrcweir pDlg = new ScHFEditDlg( pFrame, pParent, rCoreSet,rPageStyle, nResId ); 1399*cdf0e10cSrcweir break; 1400*cdf0e10cSrcweir default: 1401*cdf0e10cSrcweir break; 1402*cdf0e10cSrcweir } 1403*cdf0e10cSrcweir 1404*cdf0e10cSrcweir if ( pDlg ) 1405*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1406*cdf0e10cSrcweir return 0; 1407*cdf0e10cSrcweir } 1408*cdf0e10cSrcweir //add for ScHFEditDlg end 1409*cdf0e10cSrcweir 1410*cdf0e10cSrcweir //add for ScStyleDlg begin 1411*cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScStyleDlg( Window* pParent, 1412*cdf0e10cSrcweir SfxStyleSheetBase& rStyleBase, 1413*cdf0e10cSrcweir sal_uInt16 nRscId, 1414*cdf0e10cSrcweir int nId) 1415*cdf0e10cSrcweir { 1416*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1417*cdf0e10cSrcweir switch ( nId ) 1418*cdf0e10cSrcweir { 1419*cdf0e10cSrcweir case RID_SCDLG_STYLES_PAGE : 1420*cdf0e10cSrcweir case RID_SCDLG_STYLES_PAR : 1421*cdf0e10cSrcweir pDlg = new ScStyleDlg( pParent, rStyleBase, nRscId ); 1422*cdf0e10cSrcweir break; 1423*cdf0e10cSrcweir default: 1424*cdf0e10cSrcweir break; 1425*cdf0e10cSrcweir } 1426*cdf0e10cSrcweir 1427*cdf0e10cSrcweir if ( pDlg ) 1428*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1429*cdf0e10cSrcweir return 0; 1430*cdf0e10cSrcweir } 1431*cdf0e10cSrcweir //add for ScStyleDlg end 1432*cdf0e10cSrcweir 1433*cdf0e10cSrcweir //add for ScSubTotalDlg begin 1434*cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSubTotalDlg( Window* pParent, 1435*cdf0e10cSrcweir const SfxItemSet* pArgSet, 1436*cdf0e10cSrcweir int nId) 1437*cdf0e10cSrcweir { 1438*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1439*cdf0e10cSrcweir switch ( nId ) 1440*cdf0e10cSrcweir { 1441*cdf0e10cSrcweir case RID_SCDLG_SUBTOTALS : 1442*cdf0e10cSrcweir pDlg = new ScSubTotalDlg( pParent, pArgSet ); 1443*cdf0e10cSrcweir break; 1444*cdf0e10cSrcweir default: 1445*cdf0e10cSrcweir break; 1446*cdf0e10cSrcweir } 1447*cdf0e10cSrcweir 1448*cdf0e10cSrcweir if ( pDlg ) 1449*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1450*cdf0e10cSrcweir return 0; 1451*cdf0e10cSrcweir } 1452*cdf0e10cSrcweir //add for ScSubTotalDlg end 1453*cdf0e10cSrcweir 1454*cdf0e10cSrcweir //add for ScCharDlg begin 1455*cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr, 1456*cdf0e10cSrcweir const SfxObjectShell* pDocShell, int nId ) 1457*cdf0e10cSrcweir { 1458*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1459*cdf0e10cSrcweir switch ( nId ) 1460*cdf0e10cSrcweir { 1461*cdf0e10cSrcweir case RID_SCDLG_CHAR : 1462*cdf0e10cSrcweir pDlg = new ScCharDlg( pParent, pAttr, pDocShell ); 1463*cdf0e10cSrcweir break; 1464*cdf0e10cSrcweir default: 1465*cdf0e10cSrcweir break; 1466*cdf0e10cSrcweir } 1467*cdf0e10cSrcweir 1468*cdf0e10cSrcweir if ( pDlg ) 1469*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1470*cdf0e10cSrcweir return 0; 1471*cdf0e10cSrcweir } 1472*cdf0e10cSrcweir //add for ScCharDlg end 1473*cdf0e10cSrcweir 1474*cdf0e10cSrcweir //add for ScParagraphDlg begin 1475*cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr , 1476*cdf0e10cSrcweir int nId ) 1477*cdf0e10cSrcweir { 1478*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1479*cdf0e10cSrcweir switch ( nId ) 1480*cdf0e10cSrcweir { 1481*cdf0e10cSrcweir case RID_SCDLG_PARAGRAPH : 1482*cdf0e10cSrcweir pDlg = new ScParagraphDlg( pParent, pAttr ); 1483*cdf0e10cSrcweir break; 1484*cdf0e10cSrcweir default: 1485*cdf0e10cSrcweir break; 1486*cdf0e10cSrcweir } 1487*cdf0e10cSrcweir 1488*cdf0e10cSrcweir if ( pDlg ) 1489*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1490*cdf0e10cSrcweir return 0; 1491*cdf0e10cSrcweir } 1492*cdf0e10cSrcweir //add for ScParagraphDlg end 1493*cdf0e10cSrcweir 1494*cdf0e10cSrcweir //add for ScValidationDlg begin 1495*cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScValidationDlg( Window* pParent, 1496*cdf0e10cSrcweir //<!--Modified by PengYunQuan for Validity Cell Range Picker 1497*cdf0e10cSrcweir // const SfxItemSet* pArgSet,int nId ) 1498*cdf0e10cSrcweir const SfxItemSet* pArgSet,int nId, ScTabViewShell *pTabVwSh ) 1499*cdf0e10cSrcweir //-->Modified by PengYunQuan for Validity Cell Range Picke 1500*cdf0e10cSrcweir { 1501*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1502*cdf0e10cSrcweir switch ( nId ) 1503*cdf0e10cSrcweir { 1504*cdf0e10cSrcweir case TAB_DLG_VALIDATION : 1505*cdf0e10cSrcweir //<!--Modified by PengYunQuan for Validity Cell Range Picker 1506*cdf0e10cSrcweir //pDlg = new ScValidationDlg( pParent, pArgSet ); 1507*cdf0e10cSrcweir pDlg = new ScValidationDlg( pParent, pArgSet, pTabVwSh ); 1508*cdf0e10cSrcweir //-->Modified by PengYunQuan for Validity Cell Range Picker 1509*cdf0e10cSrcweir break; 1510*cdf0e10cSrcweir default: 1511*cdf0e10cSrcweir break; 1512*cdf0e10cSrcweir } 1513*cdf0e10cSrcweir 1514*cdf0e10cSrcweir if ( pDlg ) 1515*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1516*cdf0e10cSrcweir return 0; 1517*cdf0e10cSrcweir } 1518*cdf0e10cSrcweir //add for ScValidationDlg end 1519*cdf0e10cSrcweir 1520*cdf0e10cSrcweir #if ENABLE_LAYOUT && !LAYOUT_SFX_TABDIALOG_BROKEN 1521*cdf0e10cSrcweir #define SfxTabDialog layout::SfxTabDialog 1522*cdf0e10cSrcweir #define AbstractTabDialog_Impl layout::AbstractTabDialog_Impl 1523*cdf0e10cSrcweir #endif /* ENABLE_LAYOUT */ 1524*cdf0e10cSrcweir //add for ScSortDlg begin 1525*cdf0e10cSrcweir SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSortDlg( Window* pParent, 1526*cdf0e10cSrcweir const SfxItemSet* pArgSet,int nId ) 1527*cdf0e10cSrcweir { 1528*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1529*cdf0e10cSrcweir switch ( nId ) 1530*cdf0e10cSrcweir { 1531*cdf0e10cSrcweir case RID_SCDLG_SORT : 1532*cdf0e10cSrcweir pDlg = new ScSortDlg( pParent, pArgSet ); 1533*cdf0e10cSrcweir break; 1534*cdf0e10cSrcweir default: 1535*cdf0e10cSrcweir break; 1536*cdf0e10cSrcweir } 1537*cdf0e10cSrcweir 1538*cdf0e10cSrcweir if ( pDlg ) 1539*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1540*cdf0e10cSrcweir return 0; 1541*cdf0e10cSrcweir } 1542*cdf0e10cSrcweir #undef SfxTabDialog 1543*cdf0e10cSrcweir #undef AbstractTabDialog_Impl 1544*cdf0e10cSrcweir 1545*cdf0e10cSrcweir //add for ScSortDlg end 1546*cdf0e10cSrcweir //------------------ Factories for TabPages-------------------- 1547*cdf0e10cSrcweir CreateTabPage ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId ) 1548*cdf0e10cSrcweir { 1549*cdf0e10cSrcweir switch ( nId ) 1550*cdf0e10cSrcweir { 1551*cdf0e10cSrcweir case RID_SCPAGE_OPREDLINE : 1552*cdf0e10cSrcweir return ScRedlineOptionsTabPage::Create; 1553*cdf0e10cSrcweir //break; 1554*cdf0e10cSrcweir case RID_SCPAGE_CALC : 1555*cdf0e10cSrcweir return ScTpCalcOptions::Create; 1556*cdf0e10cSrcweir //break; 1557*cdf0e10cSrcweir case RID_SCPAGE_PRINT : 1558*cdf0e10cSrcweir return ScTpPrintOptions::Create; 1559*cdf0e10cSrcweir //break; 1560*cdf0e10cSrcweir case RID_SCPAGE_STAT : 1561*cdf0e10cSrcweir return ScDocStatPage::Create; 1562*cdf0e10cSrcweir //break; 1563*cdf0e10cSrcweir case RID_SCPAGE_USERLISTS : 1564*cdf0e10cSrcweir return ScTpUserLists::Create; 1565*cdf0e10cSrcweir //break; 1566*cdf0e10cSrcweir case RID_SCPAGE_CONTENT : 1567*cdf0e10cSrcweir return ScTpContentOptions::Create; 1568*cdf0e10cSrcweir //break; 1569*cdf0e10cSrcweir case RID_SCPAGE_LAYOUT : 1570*cdf0e10cSrcweir return ScTpLayoutOptions::Create; 1571*cdf0e10cSrcweir //break; 1572*cdf0e10cSrcweir 1573*cdf0e10cSrcweir default: 1574*cdf0e10cSrcweir break; 1575*cdf0e10cSrcweir } 1576*cdf0e10cSrcweir 1577*cdf0e10cSrcweir return 0; 1578*cdf0e10cSrcweir } 1579*cdf0e10cSrcweir 1580*cdf0e10cSrcweir GetTabPageRanges ScAbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId ) 1581*cdf0e10cSrcweir { 1582*cdf0e10cSrcweir switch ( nId ) 1583*cdf0e10cSrcweir { 1584*cdf0e10cSrcweir case TP_VALIDATION_VALUES : 1585*cdf0e10cSrcweir return ScTPValidationValue::GetRanges; 1586*cdf0e10cSrcweir //break; 1587*cdf0e10cSrcweir default: 1588*cdf0e10cSrcweir break; 1589*cdf0e10cSrcweir } 1590*cdf0e10cSrcweir 1591*cdf0e10cSrcweir return 0; 1592*cdf0e10cSrcweir } 1593*cdf0e10cSrcweir 1594*cdf0e10cSrcweir void ScDPFunctionDlg_Dummy() 1595*cdf0e10cSrcweir { 1596*cdf0e10cSrcweir // use ScDPListBoxWrapper to avoid warning (this isn't called) 1597*cdf0e10cSrcweir ListBox* pListBox = NULL; 1598*cdf0e10cSrcweir ScDPListBoxWrapper aWrapper( *pListBox ); 1599*cdf0e10cSrcweir } 1600*cdf0e10cSrcweir 1601