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_sw.hxx" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #ifdef SW_DLLIMPLEMENTATION 32*cdf0e10cSrcweir #undef SW_DLLIMPLEMENTATION 33*cdf0e10cSrcweir #endif 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir #include "swdlgfact.hxx" 36*cdf0e10cSrcweir #include <svl/style.hxx> 37*cdf0e10cSrcweir #ifndef _SVX_SVXIDS_HRC 38*cdf0e10cSrcweir #include <svx/svxids.hrc> 39*cdf0e10cSrcweir #endif 40*cdf0e10cSrcweir #include "dialog.hrc" 41*cdf0e10cSrcweir #include "misc.hrc" 42*cdf0e10cSrcweir #include "chrdlg.hrc" 43*cdf0e10cSrcweir #include "fldui.hrc" 44*cdf0e10cSrcweir #include "table.hrc" 45*cdf0e10cSrcweir #include "frmui.hrc" 46*cdf0e10cSrcweir #include "dbui.hrc" 47*cdf0e10cSrcweir #include "globals.hrc" 48*cdf0e10cSrcweir #include "fldui.hrc" 49*cdf0e10cSrcweir #include "envelp.hrc" 50*cdf0e10cSrcweir #include "dochdl.hrc" 51*cdf0e10cSrcweir #include <index.hrc> 52*cdf0e10cSrcweir #include <regionsw.hrc> 53*cdf0e10cSrcweir #include <fmtui.hrc> 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir #include <wordcountdialog.hxx> 56*cdf0e10cSrcweir #include "abstract.hxx" // add for SwInsertAbstractDlg 57*cdf0e10cSrcweir #include "addrdlg.hxx" // add for SwAddrDlg 58*cdf0e10cSrcweir #include "ascfldlg.hxx" // add for SwAsciiFilterDlg 59*cdf0e10cSrcweir #include "bookmark.hxx" //add for SwInsertBookmarkDlg 60*cdf0e10cSrcweir #include "break.hxx" //add for SwBreakDlg 61*cdf0e10cSrcweir #include "changedb.hxx" //add for SwChangeDBDlg 62*cdf0e10cSrcweir #include "chrdlg.hxx" // add for SwCharDlg 63*cdf0e10cSrcweir #include "convert.hxx" //add for SwConvertTableDlg 64*cdf0e10cSrcweir #include "cption.hxx" //add for SwCaptionDialog 65*cdf0e10cSrcweir #include "dbinsdlg.hxx" //add for SwInsertDBColAutoPilot 66*cdf0e10cSrcweir #include "docfnote.hxx" //add for SwFootNoteOptionDlg 67*cdf0e10cSrcweir #include "docstdlg.hxx" //add for SwDocStatPage 68*cdf0e10cSrcweir #include "DropDownFieldDialog.hxx" //add for DropDownFieldDialog 69*cdf0e10cSrcweir #include "envlop.hxx" //add for SwEnvDlg 70*cdf0e10cSrcweir #include "label.hxx" //add for SwLabDlg 71*cdf0e10cSrcweir #include "drpcps.hxx" //add for SwDropCapsDlg 72*cdf0e10cSrcweir #include "swuipardlg.hxx" //add for SwParaDlg 73*cdf0e10cSrcweir #include "pattern.hxx" //add for SwBackgroundDlg 74*cdf0e10cSrcweir #include "rowht.hxx" //add for SwTableHeightDlg 75*cdf0e10cSrcweir #include "selglos.hxx" //add for SwSelGlossaryDlg 76*cdf0e10cSrcweir #include "splittbl.hxx" //add for SwSplitTblDlg 77*cdf0e10cSrcweir #include "srtdlg.hxx" //add for SwSortDlg 78*cdf0e10cSrcweir #include "tautofmt.hxx" //add for SwAutoFormatDlg 79*cdf0e10cSrcweir #include "tblnumfm.hxx" //add for SwNumFmtDlg 80*cdf0e10cSrcweir #include "uiborder.hxx" //add for SwBorderDlg 81*cdf0e10cSrcweir #include "wrap.hxx" //add for SwWrapDlg 82*cdf0e10cSrcweir #include "colwd.hxx" //add for SwTableWidthDlg 83*cdf0e10cSrcweir #include "tabledlg.hxx" //add for SwTableTabDlg 84*cdf0e10cSrcweir #include "fldtdlg.hxx" //add for SwFldDlg 85*cdf0e10cSrcweir #include "fldedt.hxx" //add for SwFldEditDlg 86*cdf0e10cSrcweir #include "swrenamexnameddlg.hxx" //add for SwRenameXNamedDlg 87*cdf0e10cSrcweir #include "swmodalredlineacceptdlg.hxx" //add for SwModalRedlineAcceptDlg 88*cdf0e10cSrcweir #include <frmdlg.hxx> //add for SwFrmDlg 89*cdf0e10cSrcweir #include <tmpdlg.hxx> //add for SwTemplateDlg 90*cdf0e10cSrcweir #include <glossary.hxx> //add for SwGlossaryDlg 91*cdf0e10cSrcweir #include <inpdlg.hxx> //add for SwFldInputDlg 92*cdf0e10cSrcweir #include <insfnote.hxx> //add for SwInsFootNoteDlg 93*cdf0e10cSrcweir #include <insrule.hxx> //add for SwInsertGrfRulerDlg 94*cdf0e10cSrcweir #include <instable.hxx> //add for SwInsTableDlg 95*cdf0e10cSrcweir #include <javaedit.hxx> //add for SwJavaEditDialog 96*cdf0e10cSrcweir #include <linenum.hxx> //add for SwLineNumberingDlg 97*cdf0e10cSrcweir #include <mailmrge.hxx> //add for SwMailMergeDlg, SwMailMergeCreateFromDlg, SwMailMergeFieldConnectionsDlg 98*cdf0e10cSrcweir #include <mergetbl.hxx> //add for SwMergeTblDlg 99*cdf0e10cSrcweir #include <multmrk.hxx> //add for SwMultiTOXMarkDlg 100*cdf0e10cSrcweir #include <num.hxx> //add for SwSvxNumBulletTabDialog 101*cdf0e10cSrcweir #include <outline.hxx> //add for SwOutlineTabDialog 102*cdf0e10cSrcweir #include <column.hxx> //add for SwColumnDlg 103*cdf0e10cSrcweir #include <cnttab.hxx> //add for SwMultiTOXTabDialog 104*cdf0e10cSrcweir #include <swuicnttab.hxx> //add for SwMultiTOXTabDialog 105*cdf0e10cSrcweir #include <regionsw.hxx> //add for SwEditRegionDlg, SwInsertSectionTabDialog 106*cdf0e10cSrcweir #include <optcomp.hxx> //add for SwCompatibilityOptPage 107*cdf0e10cSrcweir #include <optload.hxx> //add for SwLoadOptPage 108*cdf0e10cSrcweir #include <optpage.hxx> //add for OptPage 109*cdf0e10cSrcweir #include <swuiidxmrk.hxx> //add for SwIndexMarkDlg, SwAuthMarkDlg, SwIndexMarkModalDlg, SwAuthMarkModalDlg 110*cdf0e10cSrcweir #include <svx/dialogs.hrc> 111*cdf0e10cSrcweir #include <mailmergewizard.hxx> 112*cdf0e10cSrcweir #include <mailconfigpage.hxx> 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir using namespace ::com::sun::star; 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwWordCountDialog_Impl); 117*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwInsertAbstractDlg_Impl); 118*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl); 119*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwAsciiFilterDlg_Impl); 120*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl); 121*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSplitTableDialog_Impl); 122*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwBreakDlg_Impl); //add for SwBreakDlg 123*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for SwCharDlg, SwFootNoteOptionDlg, SwEnvDlg SwParaDlg SwTableTabDlg 124*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwConvertTableDlg_Impl); //add for SwConvertTableDlg 125*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwInsertDBColAutoPilot_Impl); //add for SwInsertDBColAutoPilot 126*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractDropDownFieldDialog_Impl); //add for DropDownFieldDialog 127*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstarctSwLabDlg_Impl);//add for SwLabDlg 128*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstarctSwSelGlossaryDlg_Impl);//add for SwSelGlossaryDlg 129*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwAutoFormatDlg_Impl); //add for SwAutoFormatDlg 130*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwFldDlg_Impl); //add for SwFldDlg 131*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwRenameXNamedDlg_Impl); //add for SwRenameXNamedDlg 132*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSwModalRedlineAcceptDlg_Impl); //add for SwModalRedlineAcceptDlg 133*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractGlossaryDlg_Impl); 134*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractFldInputDlg_Impl); 135*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractInsFootNoteDlg_Impl); 136*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractInsertGrfRulerDlg_Impl); 137*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractInsTableDlg_Impl); 138*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractJavaEditDialog_Impl); 139*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractMailMergeDlg_Impl); 140*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractMailMergeCreateFromDlg_Impl); 141*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractMailMergeFieldConnectionsDlg_Impl); 142*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractMultiTOXTabDialog_Impl); 143*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractEditRegionDlg_Impl); 144*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractInsertSectionTabDialog_Impl); 145*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractIndexMarkFloatDlg_Impl); 146*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractAuthMarkFloatDlg_Impl); 147*cdf0e10cSrcweir 148*cdf0e10cSrcweir // AbstractTabDialog_Impl begin 149*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) 150*cdf0e10cSrcweir { 151*cdf0e10cSrcweir pDlg->SetCurPageId( nId ); 152*cdf0e10cSrcweir } 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const 155*cdf0e10cSrcweir { 156*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 157*cdf0e10cSrcweir } 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) 160*cdf0e10cSrcweir { 161*cdf0e10cSrcweir return pDlg->GetInputRanges( pItem ); 162*cdf0e10cSrcweir } 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) 165*cdf0e10cSrcweir { 166*cdf0e10cSrcweir pDlg->SetInputSet( pInSet ); 167*cdf0e10cSrcweir } 168*cdf0e10cSrcweir //From class Window. 169*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetText( const XubString& rStr ) 170*cdf0e10cSrcweir { 171*cdf0e10cSrcweir pDlg->SetText( rStr ); 172*cdf0e10cSrcweir } 173*cdf0e10cSrcweir String AbstractTabDialog_Impl::GetText() const 174*cdf0e10cSrcweir { 175*cdf0e10cSrcweir return pDlg->GetText(); 176*cdf0e10cSrcweir } 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir //add for AbstractTabDialog_Impl end 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir void AbstractSwWordCountDialog_Impl::SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc) 181*cdf0e10cSrcweir { 182*cdf0e10cSrcweir pDlg->SetValues(rCurrent, rDoc); 183*cdf0e10cSrcweir } 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir //add for SwInsertAbstractDlg begin 186*cdf0e10cSrcweir sal_uInt8 AbstractSwInsertAbstractDlg_Impl::GetLevel() const 187*cdf0e10cSrcweir { 188*cdf0e10cSrcweir return pDlg->GetLevel(); 189*cdf0e10cSrcweir } 190*cdf0e10cSrcweir sal_uInt8 AbstractSwInsertAbstractDlg_Impl::GetPara() const 191*cdf0e10cSrcweir { 192*cdf0e10cSrcweir return pDlg->GetPara(); 193*cdf0e10cSrcweir } 194*cdf0e10cSrcweir //add for SwInsertAbstractDlg end 195*cdf0e10cSrcweir 196*cdf0e10cSrcweir //add for SwAddrDlg, SwDropCapsDlg ,SwBackgroundDlg, SwNumFmtDlg SwBorderDlg SwWrapDlg SwFldEditDlg begin 197*cdf0e10cSrcweir const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const 198*cdf0e10cSrcweir { 199*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 200*cdf0e10cSrcweir } 201*cdf0e10cSrcweir 202*cdf0e10cSrcweir void AbstractSfxDialog_Impl::SetText( const XubString& rStr ) 203*cdf0e10cSrcweir { 204*cdf0e10cSrcweir pDlg->SetText( rStr ); 205*cdf0e10cSrcweir } 206*cdf0e10cSrcweir String AbstractSfxDialog_Impl::GetText() const 207*cdf0e10cSrcweir { 208*cdf0e10cSrcweir return pDlg->GetText(); 209*cdf0e10cSrcweir } 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir //add for SwAddrDlg, SwDropCapsDlg ,SwBackgroundDlg, SwNumFmtDlg SwBorderDlg SwWrapDlg SwFldEditDlg end 212*cdf0e10cSrcweir 213*cdf0e10cSrcweir //add for SwAsciiFilterDlg begin 214*cdf0e10cSrcweir void AbstractSwAsciiFilterDlg_Impl::FillOptions( SwAsciiOptions& rOptions ) 215*cdf0e10cSrcweir { 216*cdf0e10cSrcweir pDlg->FillOptions(rOptions); 217*cdf0e10cSrcweir } 218*cdf0e10cSrcweir //add for SwAsciiFilterDlg end 219*cdf0e10cSrcweir 220*cdf0e10cSrcweir //add for SwSplitTblDlg 221*cdf0e10cSrcweir sal_uInt16 AbstractSplitTableDialog_Impl::GetSplitMode() 222*cdf0e10cSrcweir { 223*cdf0e10cSrcweir return pDlg->GetSplitMode(); 224*cdf0e10cSrcweir } 225*cdf0e10cSrcweir //add for SwBreakDlg begin 226*cdf0e10cSrcweir String AbstractSwBreakDlg_Impl::GetTemplateName() 227*cdf0e10cSrcweir { 228*cdf0e10cSrcweir return pDlg->GetTemplateName(); 229*cdf0e10cSrcweir } 230*cdf0e10cSrcweir 231*cdf0e10cSrcweir sal_uInt16 AbstractSwBreakDlg_Impl:: GetKind() 232*cdf0e10cSrcweir { 233*cdf0e10cSrcweir return pDlg->GetKind(); 234*cdf0e10cSrcweir } 235*cdf0e10cSrcweir 236*cdf0e10cSrcweir sal_uInt16 AbstractSwBreakDlg_Impl:: GetPageNumber() 237*cdf0e10cSrcweir { 238*cdf0e10cSrcweir return pDlg->GetPageNumber(); 239*cdf0e10cSrcweir } 240*cdf0e10cSrcweir //add for SwBreakDlg end 241*cdf0e10cSrcweir 242*cdf0e10cSrcweir //add for SwConvertTableDlg begin 243*cdf0e10cSrcweir void AbstractSwConvertTableDlg_Impl::GetValues( sal_Unicode& rDelim,SwInsertTableOptions& rInsTblFlags, 244*cdf0e10cSrcweir SwTableAutoFmt *& prTAFmt ) 245*cdf0e10cSrcweir { 246*cdf0e10cSrcweir pDlg->GetValues(rDelim,rInsTblFlags, prTAFmt); 247*cdf0e10cSrcweir } 248*cdf0e10cSrcweir //add for SwConvertTableDlg end 249*cdf0e10cSrcweir 250*cdf0e10cSrcweir //add for SwInsertDBColAutoPilot begin 251*cdf0e10cSrcweir void AbstractSwInsertDBColAutoPilot_Impl::DataToDoc( const uno::Sequence< uno::Any >& rSelection, 252*cdf0e10cSrcweir uno::Reference< sdbc::XDataSource> rxSource, 253*cdf0e10cSrcweir uno::Reference< sdbc::XConnection> xConnection, 254*cdf0e10cSrcweir uno::Reference< sdbc::XResultSet > xResultSet) 255*cdf0e10cSrcweir { 256*cdf0e10cSrcweir pDlg->DataToDoc(rSelection, rxSource, xConnection, xResultSet); 257*cdf0e10cSrcweir } 258*cdf0e10cSrcweir //add for SwInsertDBColAutoPilot end 259*cdf0e10cSrcweir 260*cdf0e10cSrcweir // add for DropDownFieldDialog begin 261*cdf0e10cSrcweir ByteString AbstractDropDownFieldDialog_Impl::GetWindowState( sal_uLong nMask ) const 262*cdf0e10cSrcweir { 263*cdf0e10cSrcweir return pDlg->GetWindowState(nMask); 264*cdf0e10cSrcweir } 265*cdf0e10cSrcweir void AbstractDropDownFieldDialog_Impl::SetWindowState( const ByteString& rStr ) 266*cdf0e10cSrcweir { 267*cdf0e10cSrcweir pDlg->SetWindowState(rStr); 268*cdf0e10cSrcweir } 269*cdf0e10cSrcweir //add for DropDownFieldDialog end 270*cdf0e10cSrcweir 271*cdf0e10cSrcweir //add for SwLabDlg begin 272*cdf0e10cSrcweir 273*cdf0e10cSrcweir void AbstarctSwLabDlg_Impl::SetCurPageId( sal_uInt16 nId ) 274*cdf0e10cSrcweir { 275*cdf0e10cSrcweir pDlg->SetCurPageId( nId ); 276*cdf0e10cSrcweir } 277*cdf0e10cSrcweir 278*cdf0e10cSrcweir const SfxItemSet* AbstarctSwLabDlg_Impl::GetOutputItemSet() const 279*cdf0e10cSrcweir { 280*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 281*cdf0e10cSrcweir } 282*cdf0e10cSrcweir 283*cdf0e10cSrcweir const sal_uInt16* AbstarctSwLabDlg_Impl::GetInputRanges(const SfxItemPool& pItem ) 284*cdf0e10cSrcweir { 285*cdf0e10cSrcweir return pDlg->GetInputRanges( pItem ); 286*cdf0e10cSrcweir } 287*cdf0e10cSrcweir 288*cdf0e10cSrcweir void AbstarctSwLabDlg_Impl::SetInputSet( const SfxItemSet* pInSet ) 289*cdf0e10cSrcweir { 290*cdf0e10cSrcweir pDlg->SetInputSet( pInSet ); 291*cdf0e10cSrcweir } 292*cdf0e10cSrcweir 293*cdf0e10cSrcweir void AbstarctSwLabDlg_Impl::SetText( const XubString& rStr ) 294*cdf0e10cSrcweir { 295*cdf0e10cSrcweir pDlg->SetText( rStr ); 296*cdf0e10cSrcweir } 297*cdf0e10cSrcweir String AbstarctSwLabDlg_Impl::GetText() const 298*cdf0e10cSrcweir { 299*cdf0e10cSrcweir return pDlg->GetText(); 300*cdf0e10cSrcweir } 301*cdf0e10cSrcweir const String& AbstarctSwLabDlg_Impl::GetBusinessCardStr() const 302*cdf0e10cSrcweir { 303*cdf0e10cSrcweir return pDlg->GetBusinessCardStr(); 304*cdf0e10cSrcweir } 305*cdf0e10cSrcweir Printer * AbstarctSwLabDlg_Impl::GetPrt() 306*cdf0e10cSrcweir { 307*cdf0e10cSrcweir return pDlg->GetPrt(); 308*cdf0e10cSrcweir } 309*cdf0e10cSrcweir //add for SwLabDlg end 310*cdf0e10cSrcweir 311*cdf0e10cSrcweir 312*cdf0e10cSrcweir //add for SwSelGlossaryDlg begin 313*cdf0e10cSrcweir 314*cdf0e10cSrcweir void AbstarctSwSelGlossaryDlg_Impl::InsertGlos(const String &rRegion, const String &rGlosName) 315*cdf0e10cSrcweir { 316*cdf0e10cSrcweir pDlg->InsertGlos( rRegion, rGlosName ); 317*cdf0e10cSrcweir } 318*cdf0e10cSrcweir sal_uInt16 AbstarctSwSelGlossaryDlg_Impl::GetSelectedIdx() const 319*cdf0e10cSrcweir { 320*cdf0e10cSrcweir return pDlg->GetSelectedIdx(); 321*cdf0e10cSrcweir } 322*cdf0e10cSrcweir void AbstarctSwSelGlossaryDlg_Impl::SelectEntryPos(sal_uInt16 nIdx) 323*cdf0e10cSrcweir { 324*cdf0e10cSrcweir pDlg->SelectEntryPos( nIdx ); 325*cdf0e10cSrcweir } 326*cdf0e10cSrcweir 327*cdf0e10cSrcweir //add for SwSelGlossaryDlg end 328*cdf0e10cSrcweir 329*cdf0e10cSrcweir //add for SwAutoFormatDlg begin 330*cdf0e10cSrcweir 331*cdf0e10cSrcweir void AbstractSwAutoFormatDlg_Impl::FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const 332*cdf0e10cSrcweir { 333*cdf0e10cSrcweir pDlg->FillAutoFmtOfIndex(rToFill); 334*cdf0e10cSrcweir } 335*cdf0e10cSrcweir //add for SwAutoFormatDlg end 336*cdf0e10cSrcweir 337*cdf0e10cSrcweir //add for SwFldDlg begin 338*cdf0e10cSrcweir void AbstractSwFldDlg_Impl::SetCurPageId( sal_uInt16 nId ) 339*cdf0e10cSrcweir { 340*cdf0e10cSrcweir pDlg->SetCurPageId( nId ); 341*cdf0e10cSrcweir } 342*cdf0e10cSrcweir 343*cdf0e10cSrcweir const SfxItemSet* AbstractSwFldDlg_Impl::GetOutputItemSet() const 344*cdf0e10cSrcweir { 345*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 346*cdf0e10cSrcweir } 347*cdf0e10cSrcweir 348*cdf0e10cSrcweir const sal_uInt16* AbstractSwFldDlg_Impl::GetInputRanges(const SfxItemPool& pItem ) 349*cdf0e10cSrcweir { 350*cdf0e10cSrcweir return pDlg->GetInputRanges( pItem ); 351*cdf0e10cSrcweir } 352*cdf0e10cSrcweir 353*cdf0e10cSrcweir void AbstractSwFldDlg_Impl::SetInputSet( const SfxItemSet* pInSet ) 354*cdf0e10cSrcweir { 355*cdf0e10cSrcweir pDlg->SetInputSet( pInSet ); 356*cdf0e10cSrcweir } 357*cdf0e10cSrcweir 358*cdf0e10cSrcweir void AbstractSwFldDlg_Impl::SetText( const XubString& rStr ) 359*cdf0e10cSrcweir { 360*cdf0e10cSrcweir pDlg->SetText( rStr ); 361*cdf0e10cSrcweir } 362*cdf0e10cSrcweir String AbstractSwFldDlg_Impl::GetText() const 363*cdf0e10cSrcweir { 364*cdf0e10cSrcweir return pDlg->GetText(); 365*cdf0e10cSrcweir } 366*cdf0e10cSrcweir void AbstractSwFldDlg_Impl::Start( sal_Bool bShowl ) 367*cdf0e10cSrcweir { 368*cdf0e10cSrcweir pDlg->Start( bShowl ); 369*cdf0e10cSrcweir } 370*cdf0e10cSrcweir 371*cdf0e10cSrcweir void AbstractSwFldDlg_Impl::Initialize(SfxChildWinInfo *pInfo) 372*cdf0e10cSrcweir { 373*cdf0e10cSrcweir pDlg->Initialize( pInfo ); 374*cdf0e10cSrcweir } 375*cdf0e10cSrcweir 376*cdf0e10cSrcweir void AbstractSwFldDlg_Impl::ReInitDlg() 377*cdf0e10cSrcweir { 378*cdf0e10cSrcweir pDlg->ReInitDlg(); 379*cdf0e10cSrcweir } 380*cdf0e10cSrcweir void AbstractSwFldDlg_Impl::ActivateDatabasePage() 381*cdf0e10cSrcweir { 382*cdf0e10cSrcweir pDlg->ActivateDatabasePage(); 383*cdf0e10cSrcweir } 384*cdf0e10cSrcweir Window* AbstractSwFldDlg_Impl::GetWindow() 385*cdf0e10cSrcweir { 386*cdf0e10cSrcweir return (Window*)pDlg; 387*cdf0e10cSrcweir } 388*cdf0e10cSrcweir void AbstractSwFldDlg_Impl::ShowPage( sal_uInt16 nId ) 389*cdf0e10cSrcweir { 390*cdf0e10cSrcweir pDlg->ShowPage(nId); 391*cdf0e10cSrcweir } 392*cdf0e10cSrcweir //add for SwFldD end 393*cdf0e10cSrcweir 394*cdf0e10cSrcweir //add for SwRenameXNamedDlg begin 395*cdf0e10cSrcweir 396*cdf0e10cSrcweir void AbstractSwRenameXNamedDlg_Impl::SetForbiddenChars( const String& rSet ) 397*cdf0e10cSrcweir { 398*cdf0e10cSrcweir pDlg->SetForbiddenChars( rSet ); 399*cdf0e10cSrcweir } 400*cdf0e10cSrcweir 401*cdf0e10cSrcweir void AbstractSwRenameXNamedDlg_Impl::SetAlternativeAccess( 402*cdf0e10cSrcweir STAR_REFERENCE( container::XNameAccess ) & xSecond, 403*cdf0e10cSrcweir STAR_REFERENCE( container::XNameAccess ) & xThird ) 404*cdf0e10cSrcweir { 405*cdf0e10cSrcweir pDlg->SetAlternativeAccess( xSecond, xThird); 406*cdf0e10cSrcweir } 407*cdf0e10cSrcweir //add for SwRenameXNamedDlg end 408*cdf0e10cSrcweir 409*cdf0e10cSrcweir //add for SwModalRedlineAcceptDlg begin 410*cdf0e10cSrcweir 411*cdf0e10cSrcweir void AbstractSwModalRedlineAcceptDlg_Impl::AcceptAll( sal_Bool bAccept ) 412*cdf0e10cSrcweir { 413*cdf0e10cSrcweir pDlg->AcceptAll( bAccept); 414*cdf0e10cSrcweir } 415*cdf0e10cSrcweir //add for SwModalRedlineAcceptDlg end 416*cdf0e10cSrcweir 417*cdf0e10cSrcweir // AbstractGlossaryDlg_Impl begin 418*cdf0e10cSrcweir String AbstractGlossaryDlg_Impl::GetCurrGrpName() const 419*cdf0e10cSrcweir { 420*cdf0e10cSrcweir return pDlg->GetCurrGrpName(); 421*cdf0e10cSrcweir } 422*cdf0e10cSrcweir 423*cdf0e10cSrcweir String AbstractGlossaryDlg_Impl::GetCurrShortName() const 424*cdf0e10cSrcweir { 425*cdf0e10cSrcweir return pDlg->GetCurrShortName(); 426*cdf0e10cSrcweir } 427*cdf0e10cSrcweir // AbstractGlossaryDlg_Impl end 428*cdf0e10cSrcweir 429*cdf0e10cSrcweir // AbstractFldInputDlg_Impl begin 430*cdf0e10cSrcweir void AbstractFldInputDlg_Impl::SetWindowState( const ByteString& rStr ) 431*cdf0e10cSrcweir { 432*cdf0e10cSrcweir pDlg->SetWindowState( rStr ); 433*cdf0e10cSrcweir } 434*cdf0e10cSrcweir 435*cdf0e10cSrcweir ByteString AbstractFldInputDlg_Impl::GetWindowState( sal_uLong nMask ) const 436*cdf0e10cSrcweir { 437*cdf0e10cSrcweir return pDlg->GetWindowState( nMask ); 438*cdf0e10cSrcweir } 439*cdf0e10cSrcweir // AbstractFldInputDlg_Impl end 440*cdf0e10cSrcweir 441*cdf0e10cSrcweir // AbstractInsFootNoteDlg_Impl begin 442*cdf0e10cSrcweir String AbstractInsFootNoteDlg_Impl::GetFontName() 443*cdf0e10cSrcweir { 444*cdf0e10cSrcweir return pDlg->GetFontName(); 445*cdf0e10cSrcweir } 446*cdf0e10cSrcweir sal_Bool AbstractInsFootNoteDlg_Impl::IsEndNote() 447*cdf0e10cSrcweir { 448*cdf0e10cSrcweir return pDlg->IsEndNote(); 449*cdf0e10cSrcweir } 450*cdf0e10cSrcweir String AbstractInsFootNoteDlg_Impl::GetStr() 451*cdf0e10cSrcweir { 452*cdf0e10cSrcweir return pDlg->GetStr(); 453*cdf0e10cSrcweir } 454*cdf0e10cSrcweir void AbstractInsFootNoteDlg_Impl::SetHelpId( const rtl::OString& sHelpId ) 455*cdf0e10cSrcweir { 456*cdf0e10cSrcweir pDlg->SetHelpId( sHelpId ); 457*cdf0e10cSrcweir } 458*cdf0e10cSrcweir void AbstractInsFootNoteDlg_Impl::SetText( const XubString& rStr ) 459*cdf0e10cSrcweir { 460*cdf0e10cSrcweir pDlg->SetText( rStr ); 461*cdf0e10cSrcweir } 462*cdf0e10cSrcweir // AbstractInsFootNoteDlg_Impl end 463*cdf0e10cSrcweir 464*cdf0e10cSrcweir // AbstractInsertGrfRulerDlg_Impl begin 465*cdf0e10cSrcweir String AbstractInsertGrfRulerDlg_Impl::GetGraphicName() 466*cdf0e10cSrcweir { 467*cdf0e10cSrcweir return pDlg->GetGraphicName(); 468*cdf0e10cSrcweir } 469*cdf0e10cSrcweir sal_Bool AbstractInsertGrfRulerDlg_Impl::IsSimpleLine() 470*cdf0e10cSrcweir { 471*cdf0e10cSrcweir return pDlg->IsSimpleLine(); 472*cdf0e10cSrcweir } 473*cdf0e10cSrcweir sal_Bool AbstractInsertGrfRulerDlg_Impl::HasImages() const 474*cdf0e10cSrcweir { 475*cdf0e10cSrcweir return pDlg->HasImages(); 476*cdf0e10cSrcweir } 477*cdf0e10cSrcweir // AbstractInsertGrfRulerDlg_Impl end 478*cdf0e10cSrcweir 479*cdf0e10cSrcweir // AbstractInsTableDlg_Impl begin 480*cdf0e10cSrcweir void AbstractInsTableDlg_Impl::GetValues( String& rName, sal_uInt16& rRow, sal_uInt16& rCol, 481*cdf0e10cSrcweir SwInsertTableOptions& rInsTblFlags, String& rTableAutoFmtName, 482*cdf0e10cSrcweir SwTableAutoFmt *& prTAFmt ) 483*cdf0e10cSrcweir { 484*cdf0e10cSrcweir pDlg->GetValues( rName, rRow, rCol, rInsTblFlags, rTableAutoFmtName, prTAFmt); 485*cdf0e10cSrcweir } 486*cdf0e10cSrcweir // AbstractInsTableDlg_Impl end 487*cdf0e10cSrcweir 488*cdf0e10cSrcweir // AbstractJavaEditDialog_Impl begin 489*cdf0e10cSrcweir String AbstractJavaEditDialog_Impl::GetText() 490*cdf0e10cSrcweir { 491*cdf0e10cSrcweir return pDlg->GetText(); 492*cdf0e10cSrcweir } 493*cdf0e10cSrcweir String AbstractJavaEditDialog_Impl::GetType() 494*cdf0e10cSrcweir { 495*cdf0e10cSrcweir return pDlg->GetType(); 496*cdf0e10cSrcweir } 497*cdf0e10cSrcweir sal_Bool AbstractJavaEditDialog_Impl::IsUrl() 498*cdf0e10cSrcweir { 499*cdf0e10cSrcweir return pDlg->IsUrl(); 500*cdf0e10cSrcweir } 501*cdf0e10cSrcweir sal_Bool AbstractJavaEditDialog_Impl::IsNew() 502*cdf0e10cSrcweir { 503*cdf0e10cSrcweir return pDlg->IsNew(); 504*cdf0e10cSrcweir } 505*cdf0e10cSrcweir sal_Bool AbstractJavaEditDialog_Impl::IsUpdate() 506*cdf0e10cSrcweir { 507*cdf0e10cSrcweir return pDlg->IsUpdate(); 508*cdf0e10cSrcweir } 509*cdf0e10cSrcweir // AbstractJavaEditDialog_Impl end 510*cdf0e10cSrcweir 511*cdf0e10cSrcweir // AbstractMailMergeDlg_Impl begin 512*cdf0e10cSrcweir sal_uInt16 AbstractMailMergeDlg_Impl::GetMergeType() 513*cdf0e10cSrcweir { 514*cdf0e10cSrcweir return pDlg->GetMergeType(); 515*cdf0e10cSrcweir } 516*cdf0e10cSrcweir const ::rtl::OUString& AbstractMailMergeDlg_Impl::GetSaveFilter() const 517*cdf0e10cSrcweir { 518*cdf0e10cSrcweir return pDlg->GetSaveFilter(); 519*cdf0e10cSrcweir } 520*cdf0e10cSrcweir 521*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > AbstractMailMergeDlg_Impl::GetSelection() const 522*cdf0e10cSrcweir { 523*cdf0e10cSrcweir return pDlg->GetSelection(); 524*cdf0e10cSrcweir } 525*cdf0e10cSrcweir uno::Reference< sdbc::XResultSet> AbstractMailMergeDlg_Impl::GetResultSet() const 526*cdf0e10cSrcweir { 527*cdf0e10cSrcweir return pDlg->GetResultSet(); 528*cdf0e10cSrcweir } 529*cdf0e10cSrcweir bool AbstractMailMergeDlg_Impl::IsSaveIndividualDocs() const 530*cdf0e10cSrcweir { 531*cdf0e10cSrcweir return pDlg->IsSaveIndividualDocs(); 532*cdf0e10cSrcweir } 533*cdf0e10cSrcweir bool AbstractMailMergeDlg_Impl::IsGenerateFromDataBase() const 534*cdf0e10cSrcweir { 535*cdf0e10cSrcweir return pDlg->IsGenerateFromDataBase(); 536*cdf0e10cSrcweir } 537*cdf0e10cSrcweir String AbstractMailMergeDlg_Impl::GetColumnName() const 538*cdf0e10cSrcweir { 539*cdf0e10cSrcweir return pDlg->GetColumnName(); 540*cdf0e10cSrcweir } 541*cdf0e10cSrcweir String AbstractMailMergeDlg_Impl::GetPath() const 542*cdf0e10cSrcweir { 543*cdf0e10cSrcweir return pDlg->GetPath(); 544*cdf0e10cSrcweir } 545*cdf0e10cSrcweir 546*cdf0e10cSrcweir // AbstractMailMergeDlg_Impl end 547*cdf0e10cSrcweir // AbstractMailMergeCreateFromDlg_Impl begin 548*cdf0e10cSrcweir sal_Bool AbstractMailMergeCreateFromDlg_Impl::IsThisDocument() const 549*cdf0e10cSrcweir { 550*cdf0e10cSrcweir return pDlg->IsThisDocument(); 551*cdf0e10cSrcweir } 552*cdf0e10cSrcweir // AbstractMailMergeCreateFromDlg_Impl end 553*cdf0e10cSrcweir //AbstractMailMergeFieldConnectionsDlg_Impl begin 554*cdf0e10cSrcweir sal_Bool AbstractMailMergeFieldConnectionsDlg_Impl::IsUseExistingConnections() const 555*cdf0e10cSrcweir { 556*cdf0e10cSrcweir return pDlg->IsUseExistingConnections(); 557*cdf0e10cSrcweir } 558*cdf0e10cSrcweir // AbstractMailMergeFieldConnectionsDlg_Impl end 559*cdf0e10cSrcweir 560*cdf0e10cSrcweir // AbstractMultiTOXTabDialog_Impl begin 561*cdf0e10cSrcweir SwForm* AbstractMultiTOXTabDialog_Impl::GetForm(CurTOXType eType) 562*cdf0e10cSrcweir { 563*cdf0e10cSrcweir return pDlg->GetForm(eType); 564*cdf0e10cSrcweir } 565*cdf0e10cSrcweir CurTOXType AbstractMultiTOXTabDialog_Impl::GetCurrentTOXType() const 566*cdf0e10cSrcweir { 567*cdf0e10cSrcweir return pDlg->GetCurrentTOXType(); 568*cdf0e10cSrcweir } 569*cdf0e10cSrcweir SwTOXDescription& AbstractMultiTOXTabDialog_Impl::GetTOXDescription(CurTOXType eTOXTypes) 570*cdf0e10cSrcweir { 571*cdf0e10cSrcweir return pDlg->GetTOXDescription(eTOXTypes); 572*cdf0e10cSrcweir } 573*cdf0e10cSrcweir const SfxItemSet* AbstractMultiTOXTabDialog_Impl::GetOutputItemSet() const 574*cdf0e10cSrcweir { 575*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 576*cdf0e10cSrcweir } 577*cdf0e10cSrcweir // AbstractMultiTOXTabDialog_Impl end 578*cdf0e10cSrcweir 579*cdf0e10cSrcweir // AbstractEditRegionDlg_Impl begin 580*cdf0e10cSrcweir void AbstractEditRegionDlg_Impl::SelectSection(const String& rSectionName) 581*cdf0e10cSrcweir { 582*cdf0e10cSrcweir pDlg->SelectSection(rSectionName); 583*cdf0e10cSrcweir } 584*cdf0e10cSrcweir // AbstractEditRegionDlg_Impl end 585*cdf0e10cSrcweir //AbstractInsertSectionTabDialog_Impl begin 586*cdf0e10cSrcweir void 587*cdf0e10cSrcweir AbstractInsertSectionTabDialog_Impl::SetSectionData(SwSectionData const& rSect) 588*cdf0e10cSrcweir { 589*cdf0e10cSrcweir pDlg->SetSectionData(rSect); 590*cdf0e10cSrcweir } 591*cdf0e10cSrcweir // AbstractInsertSectionTabDialog_Impl end 592*cdf0e10cSrcweir 593*cdf0e10cSrcweir //AbstractIndexMarkFloatDlg_Impl begin 594*cdf0e10cSrcweir void AbstractIndexMarkFloatDlg_Impl::ReInitDlg(SwWrtShell& rWrtShell) 595*cdf0e10cSrcweir { 596*cdf0e10cSrcweir pDlg->ReInitDlg( rWrtShell); 597*cdf0e10cSrcweir } 598*cdf0e10cSrcweir Window* AbstractIndexMarkFloatDlg_Impl::GetWindow() 599*cdf0e10cSrcweir { 600*cdf0e10cSrcweir return (Window*)pDlg; 601*cdf0e10cSrcweir } 602*cdf0e10cSrcweir // AbstractIndexMarkFloatDlg_Impl end 603*cdf0e10cSrcweir 604*cdf0e10cSrcweir //AbstractAuthMarkFloatDlg_Impl begin 605*cdf0e10cSrcweir void AbstractAuthMarkFloatDlg_Impl::ReInitDlg(SwWrtShell& rWrtShell) 606*cdf0e10cSrcweir { 607*cdf0e10cSrcweir pDlg->ReInitDlg( rWrtShell); 608*cdf0e10cSrcweir } 609*cdf0e10cSrcweir Window* AbstractAuthMarkFloatDlg_Impl::GetWindow() 610*cdf0e10cSrcweir { 611*cdf0e10cSrcweir return (Window*)pDlg; 612*cdf0e10cSrcweir } 613*cdf0e10cSrcweir // AbstractAuthMarkFloatDlg_Impl end 614*cdf0e10cSrcweir 615*cdf0e10cSrcweir AbstractMailMergeWizard_Impl::~AbstractMailMergeWizard_Impl() 616*cdf0e10cSrcweir { 617*cdf0e10cSrcweir delete pDlg; 618*cdf0e10cSrcweir } 619*cdf0e10cSrcweir 620*cdf0e10cSrcweir void AbstractMailMergeWizard_Impl::StartExecuteModal( const Link& rEndDialogHdl ) 621*cdf0e10cSrcweir { 622*cdf0e10cSrcweir aEndDlgHdl = rEndDialogHdl; 623*cdf0e10cSrcweir pDlg->StartExecuteModal( 624*cdf0e10cSrcweir LINK( this, AbstractMailMergeWizard_Impl, EndDialogHdl ) ); 625*cdf0e10cSrcweir } 626*cdf0e10cSrcweir 627*cdf0e10cSrcweir long AbstractMailMergeWizard_Impl::GetResult() 628*cdf0e10cSrcweir { 629*cdf0e10cSrcweir return pDlg->GetResult(); 630*cdf0e10cSrcweir } 631*cdf0e10cSrcweir 632*cdf0e10cSrcweir #ifdef DBG_UTIL 633*cdf0e10cSrcweir IMPL_LINK( AbstractMailMergeWizard_Impl, EndDialogHdl, SwMailMergeWizard*, pDialog ) 634*cdf0e10cSrcweir #else 635*cdf0e10cSrcweir IMPL_LINK( AbstractMailMergeWizard_Impl, EndDialogHdl, SwMailMergeWizard*, EMPTYARG ) 636*cdf0e10cSrcweir #endif 637*cdf0e10cSrcweir { 638*cdf0e10cSrcweir DBG_ASSERT( pDialog == pDlg, "wrong dialog passed to EndDialogHdl!" ); 639*cdf0e10cSrcweir 640*cdf0e10cSrcweir aEndDlgHdl.Call( this ); 641*cdf0e10cSrcweir aEndDlgHdl = Link(); 642*cdf0e10cSrcweir 643*cdf0e10cSrcweir return 0L; 644*cdf0e10cSrcweir } 645*cdf0e10cSrcweir 646*cdf0e10cSrcweir void AbstractMailMergeWizard_Impl::SetReloadDocument(const String& rURL) 647*cdf0e10cSrcweir { 648*cdf0e10cSrcweir pDlg->SetReloadDocument(rURL); 649*cdf0e10cSrcweir } 650*cdf0e10cSrcweir const String& AbstractMailMergeWizard_Impl::GetReloadDocument() const 651*cdf0e10cSrcweir { 652*cdf0e10cSrcweir return pDlg->GetReloadDocument(); 653*cdf0e10cSrcweir } 654*cdf0e10cSrcweir sal_Bool AbstractMailMergeWizard_Impl::ShowPage( sal_uInt16 nLevel ) 655*cdf0e10cSrcweir { 656*cdf0e10cSrcweir return pDlg->skipUntil(nLevel); 657*cdf0e10cSrcweir } 658*cdf0e10cSrcweir sal_uInt16 AbstractMailMergeWizard_Impl::GetRestartPage() const 659*cdf0e10cSrcweir { 660*cdf0e10cSrcweir return pDlg->GetRestartPage(); 661*cdf0e10cSrcweir } 662*cdf0e10cSrcweir 663*cdf0e10cSrcweir //-------------- SwAbstractDialogFactory implementation-------------- 664*cdf0e10cSrcweir 665*cdf0e10cSrcweir AbstractSwWordCountDialog* SwAbstractDialogFactory_Impl::CreateSwWordCountDialog(Window* pParent) 666*cdf0e10cSrcweir { 667*cdf0e10cSrcweir SwWordCountDialog* pDlg = new SwWordCountDialog( pParent ); 668*cdf0e10cSrcweir return new AbstractSwWordCountDialog_Impl( pDlg ); 669*cdf0e10cSrcweir } 670*cdf0e10cSrcweir 671*cdf0e10cSrcweir //add for SwInsertAbstractDlg begin 672*cdf0e10cSrcweir AbstractSwInsertAbstractDlg * SwAbstractDialogFactory_Impl::CreateSwInsertAbstractDlg( Window* pParent, 673*cdf0e10cSrcweir int nResId ) 674*cdf0e10cSrcweir { 675*cdf0e10cSrcweir SwInsertAbstractDlg* pDlg=NULL; 676*cdf0e10cSrcweir switch ( nResId ) 677*cdf0e10cSrcweir { 678*cdf0e10cSrcweir case DLG_INSERT_ABSTRACT : 679*cdf0e10cSrcweir pDlg = new SwInsertAbstractDlg( pParent); 680*cdf0e10cSrcweir break; 681*cdf0e10cSrcweir default: 682*cdf0e10cSrcweir break; 683*cdf0e10cSrcweir } 684*cdf0e10cSrcweir 685*cdf0e10cSrcweir if ( pDlg ) 686*cdf0e10cSrcweir return new AbstractSwInsertAbstractDlg_Impl( pDlg ); 687*cdf0e10cSrcweir return 0; 688*cdf0e10cSrcweir } 689*cdf0e10cSrcweir //add for SwInsertAbstractDlg end 690*cdf0e10cSrcweir 691*cdf0e10cSrcweir SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent, 692*cdf0e10cSrcweir const SfxItemSet& rSet, 693*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >&, 694*cdf0e10cSrcweir sal_uInt32 nResId 695*cdf0e10cSrcweir ) 696*cdf0e10cSrcweir { 697*cdf0e10cSrcweir SfxModalDialog* pDlg=NULL; 698*cdf0e10cSrcweir switch ( nResId ) 699*cdf0e10cSrcweir { 700*cdf0e10cSrcweir case RC_DLG_ADDR : 701*cdf0e10cSrcweir pDlg = new SwAddrDlg( pParent, rSet ); 702*cdf0e10cSrcweir break; 703*cdf0e10cSrcweir case DLG_SWDROPCAPS : 704*cdf0e10cSrcweir pDlg = new SwDropCapsDlg( pParent, rSet ); 705*cdf0e10cSrcweir break; 706*cdf0e10cSrcweir case RC_SWDLG_BACKGROUND : 707*cdf0e10cSrcweir pDlg = new SwBackgroundDlg( pParent, rSet ); 708*cdf0e10cSrcweir break; 709*cdf0e10cSrcweir case RC_DLG_SWNUMFMTDLG : 710*cdf0e10cSrcweir pDlg = new SwNumFmtDlg( pParent, rSet ); 711*cdf0e10cSrcweir break; 712*cdf0e10cSrcweir default: 713*cdf0e10cSrcweir break; 714*cdf0e10cSrcweir } 715*cdf0e10cSrcweir 716*cdf0e10cSrcweir if ( pDlg ) 717*cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg ); 718*cdf0e10cSrcweir return 0; 719*cdf0e10cSrcweir } 720*cdf0e10cSrcweir 721*cdf0e10cSrcweir // add for SwAsciiFilterDlg begin 722*cdf0e10cSrcweir AbstractSwAsciiFilterDlg* SwAbstractDialogFactory_Impl::CreateSwAsciiFilterDlg( Window* pParent, 723*cdf0e10cSrcweir SwDocShell& rDocSh, 724*cdf0e10cSrcweir SvStream* pStream, 725*cdf0e10cSrcweir int nResId ) 726*cdf0e10cSrcweir { 727*cdf0e10cSrcweir SwAsciiFilterDlg* pDlg=NULL; 728*cdf0e10cSrcweir switch ( nResId ) 729*cdf0e10cSrcweir { 730*cdf0e10cSrcweir case DLG_ASCII_FILTER : 731*cdf0e10cSrcweir pDlg = new SwAsciiFilterDlg( pParent, rDocSh, pStream ); 732*cdf0e10cSrcweir break; 733*cdf0e10cSrcweir 734*cdf0e10cSrcweir default: 735*cdf0e10cSrcweir break; 736*cdf0e10cSrcweir } 737*cdf0e10cSrcweir 738*cdf0e10cSrcweir if ( pDlg ) 739*cdf0e10cSrcweir return new AbstractSwAsciiFilterDlg_Impl( pDlg ); 740*cdf0e10cSrcweir return 0; 741*cdf0e10cSrcweir } 742*cdf0e10cSrcweir 743*cdf0e10cSrcweir //add for SwAsciiFilterDlg end 744*cdf0e10cSrcweir 745*cdf0e10cSrcweir // add for SwInsertBookmarkDlg begin 746*cdf0e10cSrcweir VclAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwInsertBookmarkDlg( Window *pParent, 747*cdf0e10cSrcweir SwWrtShell &rSh, 748*cdf0e10cSrcweir SfxRequest& rReq, 749*cdf0e10cSrcweir int nResId ) 750*cdf0e10cSrcweir { 751*cdf0e10cSrcweir Dialog* pDlg=NULL; 752*cdf0e10cSrcweir switch ( nResId ) 753*cdf0e10cSrcweir { 754*cdf0e10cSrcweir case DLG_INSERT_BOOKMARK : 755*cdf0e10cSrcweir pDlg = new SwInsertBookmarkDlg( pParent, rSh, rReq ); 756*cdf0e10cSrcweir break; 757*cdf0e10cSrcweir 758*cdf0e10cSrcweir default: 759*cdf0e10cSrcweir break; 760*cdf0e10cSrcweir } 761*cdf0e10cSrcweir 762*cdf0e10cSrcweir if ( pDlg ) 763*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 764*cdf0e10cSrcweir return 0; 765*cdf0e10cSrcweir } 766*cdf0e10cSrcweir 767*cdf0e10cSrcweir //add for SwInsertBookmarkDlg end 768*cdf0e10cSrcweir 769*cdf0e10cSrcweir //add for SwBreakDlg begin 770*cdf0e10cSrcweir 771*cdf0e10cSrcweir AbstractSwBreakDlg * SwAbstractDialogFactory_Impl::CreateSwBreakDlg ( Window *pParent, 772*cdf0e10cSrcweir SwWrtShell &rSh, 773*cdf0e10cSrcweir int nResId ) 774*cdf0e10cSrcweir { 775*cdf0e10cSrcweir SwBreakDlg* pDlg=NULL; 776*cdf0e10cSrcweir switch ( nResId ) 777*cdf0e10cSrcweir { 778*cdf0e10cSrcweir case DLG_BREAK : 779*cdf0e10cSrcweir pDlg = new SwBreakDlg( pParent, rSh ); 780*cdf0e10cSrcweir break; 781*cdf0e10cSrcweir 782*cdf0e10cSrcweir default: 783*cdf0e10cSrcweir break; 784*cdf0e10cSrcweir } 785*cdf0e10cSrcweir 786*cdf0e10cSrcweir if ( pDlg ) 787*cdf0e10cSrcweir return new AbstractSwBreakDlg_Impl( pDlg ); 788*cdf0e10cSrcweir return 0; 789*cdf0e10cSrcweir } 790*cdf0e10cSrcweir //add for SwBreakDlg end 791*cdf0e10cSrcweir 792*cdf0e10cSrcweir // add for SwChangeDBDlg begin 793*cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwChangeDBDlg( SwView& rVw, int nResId ) 794*cdf0e10cSrcweir { 795*cdf0e10cSrcweir Dialog* pDlg=NULL; 796*cdf0e10cSrcweir switch ( nResId ) 797*cdf0e10cSrcweir { 798*cdf0e10cSrcweir case DLG_CHANGE_DB : 799*cdf0e10cSrcweir pDlg = new SwChangeDBDlg( rVw ); 800*cdf0e10cSrcweir break; 801*cdf0e10cSrcweir 802*cdf0e10cSrcweir default: 803*cdf0e10cSrcweir break; 804*cdf0e10cSrcweir } 805*cdf0e10cSrcweir 806*cdf0e10cSrcweir if ( pDlg ) 807*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 808*cdf0e10cSrcweir return 0; 809*cdf0e10cSrcweir } 810*cdf0e10cSrcweir 811*cdf0e10cSrcweir // add for SwChangeDBDlg end 812*cdf0e10cSrcweir 813*cdf0e10cSrcweir // add for SwCharDlg begin 814*cdf0e10cSrcweir SfxAbstractTabDialog * SwAbstractDialogFactory_Impl::CreateSwCharDlg(Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet, int nResId, // add for SwCharDlg 815*cdf0e10cSrcweir const String* pFmtStr , sal_Bool bIsDrwTxtDlg ) 816*cdf0e10cSrcweir { 817*cdf0e10cSrcweir 818*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 819*cdf0e10cSrcweir switch ( nResId ) 820*cdf0e10cSrcweir { 821*cdf0e10cSrcweir case DLG_CHAR : 822*cdf0e10cSrcweir pDlg = new SwCharDlg( pParent, pVw, rCoreSet, pFmtStr, bIsDrwTxtDlg ); 823*cdf0e10cSrcweir break; 824*cdf0e10cSrcweir default: 825*cdf0e10cSrcweir break; 826*cdf0e10cSrcweir } 827*cdf0e10cSrcweir 828*cdf0e10cSrcweir if ( pDlg ) 829*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 830*cdf0e10cSrcweir return 0; 831*cdf0e10cSrcweir 832*cdf0e10cSrcweir } 833*cdf0e10cSrcweir // add for SwCharDlg end 834*cdf0e10cSrcweir 835*cdf0e10cSrcweir //add for SwConvertTableDlg begin 836*cdf0e10cSrcweir AbstractSwConvertTableDlg* SwAbstractDialogFactory_Impl::CreateSwConvertTableDlg ( 837*cdf0e10cSrcweir SwView& rView,int nResId, bool bToTable ) 838*cdf0e10cSrcweir { 839*cdf0e10cSrcweir SwConvertTableDlg* pDlg=NULL; 840*cdf0e10cSrcweir switch ( nResId ) 841*cdf0e10cSrcweir { 842*cdf0e10cSrcweir case DLG_CONV_TEXT_TABLE : 843*cdf0e10cSrcweir pDlg = new SwConvertTableDlg( rView, bToTable ); 844*cdf0e10cSrcweir break; 845*cdf0e10cSrcweir default: 846*cdf0e10cSrcweir break; 847*cdf0e10cSrcweir } 848*cdf0e10cSrcweir 849*cdf0e10cSrcweir if ( pDlg ) 850*cdf0e10cSrcweir return new AbstractSwConvertTableDlg_Impl( pDlg ); 851*cdf0e10cSrcweir return 0; 852*cdf0e10cSrcweir } 853*cdf0e10cSrcweir 854*cdf0e10cSrcweir //add for SwConvertTableDlg end 855*cdf0e10cSrcweir 856*cdf0e10cSrcweir //add for SwCaptionDialog begin 857*cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwCaptionDialog ( Window *pParent, SwView &rV,int nResId) 858*cdf0e10cSrcweir { 859*cdf0e10cSrcweir Dialog* pDlg=NULL; 860*cdf0e10cSrcweir switch ( nResId ) 861*cdf0e10cSrcweir { 862*cdf0e10cSrcweir case DLG_CAPTION : 863*cdf0e10cSrcweir pDlg = new SwCaptionDialog( pParent, rV ); 864*cdf0e10cSrcweir break; 865*cdf0e10cSrcweir 866*cdf0e10cSrcweir default: 867*cdf0e10cSrcweir break; 868*cdf0e10cSrcweir } 869*cdf0e10cSrcweir 870*cdf0e10cSrcweir if ( pDlg ) 871*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 872*cdf0e10cSrcweir return 0; 873*cdf0e10cSrcweir } 874*cdf0e10cSrcweir //add for SwCaptionDialog end 875*cdf0e10cSrcweir 876*cdf0e10cSrcweir //add for SwInsertDBColAutoPilot begin 877*cdf0e10cSrcweir 878*cdf0e10cSrcweir AbstractSwInsertDBColAutoPilot* SwAbstractDialogFactory_Impl::CreateSwInsertDBColAutoPilot( SwView& rView, // add for SwInsertDBColAutoPilot 879*cdf0e10cSrcweir uno::Reference< sdbc::XDataSource> rxSource, 880*cdf0e10cSrcweir uno::Reference<sdbcx::XColumnsSupplier> xColSupp, 881*cdf0e10cSrcweir const SwDBData& rData, int nResId) 882*cdf0e10cSrcweir { 883*cdf0e10cSrcweir SwInsertDBColAutoPilot* pDlg=NULL; 884*cdf0e10cSrcweir switch ( nResId ) 885*cdf0e10cSrcweir { 886*cdf0e10cSrcweir case DLG_AP_INSERT_DB_SEL : 887*cdf0e10cSrcweir pDlg = new SwInsertDBColAutoPilot( rView, rxSource, xColSupp, rData ); 888*cdf0e10cSrcweir break; 889*cdf0e10cSrcweir 890*cdf0e10cSrcweir default: 891*cdf0e10cSrcweir break; 892*cdf0e10cSrcweir } 893*cdf0e10cSrcweir 894*cdf0e10cSrcweir if ( pDlg ) 895*cdf0e10cSrcweir return new AbstractSwInsertDBColAutoPilot_Impl( pDlg ); 896*cdf0e10cSrcweir return 0; 897*cdf0e10cSrcweir } 898*cdf0e10cSrcweir //add for SwInsertDBColAutoPilot end 899*cdf0e10cSrcweir //add for SwFootNoteOptionDlg begin 900*cdf0e10cSrcweir SfxAbstractTabDialog * SwAbstractDialogFactory_Impl::CreateSwFootNoteOptionDlg( Window *pParent, SwWrtShell &rSh,int nResId) 901*cdf0e10cSrcweir { 902*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 903*cdf0e10cSrcweir switch ( nResId ) 904*cdf0e10cSrcweir { 905*cdf0e10cSrcweir case DLG_DOC_FOOTNOTE : 906*cdf0e10cSrcweir pDlg = new SwFootNoteOptionDlg( pParent, rSh ); 907*cdf0e10cSrcweir break; 908*cdf0e10cSrcweir 909*cdf0e10cSrcweir default: 910*cdf0e10cSrcweir break; 911*cdf0e10cSrcweir } 912*cdf0e10cSrcweir 913*cdf0e10cSrcweir if ( pDlg ) 914*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 915*cdf0e10cSrcweir return 0; 916*cdf0e10cSrcweir } 917*cdf0e10cSrcweir //add for SwFootNoteOptionDlg begin 918*cdf0e10cSrcweir 919*cdf0e10cSrcweir 920*cdf0e10cSrcweir //add for DropDownFieldDialog begin 921*cdf0e10cSrcweir 922*cdf0e10cSrcweir AbstractDropDownFieldDialog * SwAbstractDialogFactory_Impl::CreateDropDownFieldDialog ( Window *pParent, SwWrtShell &rSh, //add for DropDownFieldDialog 923*cdf0e10cSrcweir SwField* pField,int nResId, sal_Bool bNextButton ) 924*cdf0e10cSrcweir { 925*cdf0e10cSrcweir sw::DropDownFieldDialog* pDlg=NULL; 926*cdf0e10cSrcweir switch ( nResId ) 927*cdf0e10cSrcweir { 928*cdf0e10cSrcweir case DLG_FLD_DROPDOWN : 929*cdf0e10cSrcweir pDlg = new sw::DropDownFieldDialog( pParent, rSh, pField, bNextButton ); 930*cdf0e10cSrcweir break; 931*cdf0e10cSrcweir 932*cdf0e10cSrcweir default: 933*cdf0e10cSrcweir break; 934*cdf0e10cSrcweir } 935*cdf0e10cSrcweir 936*cdf0e10cSrcweir if ( pDlg ) 937*cdf0e10cSrcweir return new AbstractDropDownFieldDialog_Impl( pDlg ); 938*cdf0e10cSrcweir return 0; 939*cdf0e10cSrcweir } 940*cdf0e10cSrcweir //add for DropDownFieldDialog end 941*cdf0e10cSrcweir 942*cdf0e10cSrcweir //add for SwEnvDlg begin 943*cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet, 944*cdf0e10cSrcweir SwWrtShell* pWrtSh, Printer* pPrt, 945*cdf0e10cSrcweir sal_Bool bInsert,int nResId ) //add for SwEnvDlg 946*cdf0e10cSrcweir { 947*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 948*cdf0e10cSrcweir switch ( nResId ) 949*cdf0e10cSrcweir { 950*cdf0e10cSrcweir case DLG_ENV : 951*cdf0e10cSrcweir pDlg = new SwEnvDlg( pParent, rSet, pWrtSh,pPrt, bInsert ); 952*cdf0e10cSrcweir break; 953*cdf0e10cSrcweir 954*cdf0e10cSrcweir default: 955*cdf0e10cSrcweir break; 956*cdf0e10cSrcweir } 957*cdf0e10cSrcweir 958*cdf0e10cSrcweir if ( pDlg ) 959*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 960*cdf0e10cSrcweir return 0; 961*cdf0e10cSrcweir } 962*cdf0e10cSrcweir //add for SwEnvDlg end 963*cdf0e10cSrcweir 964*cdf0e10cSrcweir //add for SwLabDlg begin 965*cdf0e10cSrcweir 966*cdf0e10cSrcweir AbstarctSwLabDlg* SwAbstractDialogFactory_Impl::CreateSwLabDlg ( Window* pParent, const SfxItemSet& rSet, //add for SwLabDlg 967*cdf0e10cSrcweir SwNewDBMgr* pNewDBMgr, sal_Bool bLabel,int nResId ) 968*cdf0e10cSrcweir { 969*cdf0e10cSrcweir SwLabDlg* pDlg=NULL; 970*cdf0e10cSrcweir switch ( nResId ) 971*cdf0e10cSrcweir { 972*cdf0e10cSrcweir case DLG_LAB : 973*cdf0e10cSrcweir pDlg = new SwLabDlg( pParent, rSet, pNewDBMgr,bLabel ); 974*cdf0e10cSrcweir break; 975*cdf0e10cSrcweir 976*cdf0e10cSrcweir default: 977*cdf0e10cSrcweir break; 978*cdf0e10cSrcweir } 979*cdf0e10cSrcweir 980*cdf0e10cSrcweir if ( pDlg ) 981*cdf0e10cSrcweir return new AbstarctSwLabDlg_Impl( pDlg ); 982*cdf0e10cSrcweir return 0; 983*cdf0e10cSrcweir } 984*cdf0e10cSrcweir 985*cdf0e10cSrcweir SwLabDlgMethod SwAbstractDialogFactory_Impl::GetSwLabDlgStaticMethod () 986*cdf0e10cSrcweir { 987*cdf0e10cSrcweir return SwLabDlg::UpdateFieldInformation; 988*cdf0e10cSrcweir } 989*cdf0e10cSrcweir 990*cdf0e10cSrcweir //add for SwLabDlg end 991*cdf0e10cSrcweir 992*cdf0e10cSrcweir //add for SwParaDlg begin 993*cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwParaDlg ( Window *pParent, SwView& rVw, 994*cdf0e10cSrcweir const SfxItemSet& rCoreSet , 995*cdf0e10cSrcweir sal_uInt8 nDialogMode, 996*cdf0e10cSrcweir int nResId, 997*cdf0e10cSrcweir const String *pCollName, 998*cdf0e10cSrcweir sal_Bool bDraw , sal_uInt16 nDefPage) 999*cdf0e10cSrcweir { 1000*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1001*cdf0e10cSrcweir switch ( nResId ) 1002*cdf0e10cSrcweir { 1003*cdf0e10cSrcweir case DLG_DRAWPARA : 1004*cdf0e10cSrcweir case DLG_PARA : 1005*cdf0e10cSrcweir pDlg = new SwParaDlg( pParent, rVw, rCoreSet,nDialogMode, pCollName, bDraw, nDefPage ); 1006*cdf0e10cSrcweir break; 1007*cdf0e10cSrcweir 1008*cdf0e10cSrcweir default: 1009*cdf0e10cSrcweir break; 1010*cdf0e10cSrcweir } 1011*cdf0e10cSrcweir 1012*cdf0e10cSrcweir if ( pDlg ) 1013*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1014*cdf0e10cSrcweir return 0; 1015*cdf0e10cSrcweir } 1016*cdf0e10cSrcweir //add for SwParaDlg end 1017*cdf0e10cSrcweir 1018*cdf0e10cSrcweir //add for SwTableHeightDlg SwSortDlg begin 1019*cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclAbstractDialog ( Window *pParent, SwWrtShell &rSh, int nResId ) 1020*cdf0e10cSrcweir { 1021*cdf0e10cSrcweir Dialog* pDlg=NULL; 1022*cdf0e10cSrcweir switch ( nResId ) 1023*cdf0e10cSrcweir { 1024*cdf0e10cSrcweir case DLG_ROW_HEIGHT : 1025*cdf0e10cSrcweir pDlg = new SwTableHeightDlg( pParent, rSh); 1026*cdf0e10cSrcweir break; 1027*cdf0e10cSrcweir 1028*cdf0e10cSrcweir case DLG_SORTING : 1029*cdf0e10cSrcweir pDlg = new SwSortDlg( pParent, rSh); 1030*cdf0e10cSrcweir break; 1031*cdf0e10cSrcweir case DLG_COLUMN : 1032*cdf0e10cSrcweir pDlg = new SwColumnDlg( pParent, rSh ); 1033*cdf0e10cSrcweir break; 1034*cdf0e10cSrcweir case DLG_EDIT_AUTHMARK : 1035*cdf0e10cSrcweir pDlg = new SwAuthMarkModalDlg( pParent, rSh ); 1036*cdf0e10cSrcweir break; 1037*cdf0e10cSrcweir default: 1038*cdf0e10cSrcweir break; 1039*cdf0e10cSrcweir } 1040*cdf0e10cSrcweir 1041*cdf0e10cSrcweir if ( pDlg ) 1042*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1043*cdf0e10cSrcweir return 0; 1044*cdf0e10cSrcweir } 1045*cdf0e10cSrcweir //add for SwTableHeightDlg SwSortDlg ,end 1046*cdf0e10cSrcweir //add for SwSplitTblDlg begin 1047*cdf0e10cSrcweir AbstractSplitTableDialog * SwAbstractDialogFactory_Impl::CreateSplitTblDialog ( Window *pParent, SwWrtShell &rSh ) 1048*cdf0e10cSrcweir { 1049*cdf0e10cSrcweir return new AbstractSplitTableDialog_Impl( new SwSplitTblDlg( pParent, rSh) ); 1050*cdf0e10cSrcweir } 1051*cdf0e10cSrcweir //add SwSplitTblDlg end 1052*cdf0e10cSrcweir 1053*cdf0e10cSrcweir //add for SwSelGlossaryDlg begin 1054*cdf0e10cSrcweir AbstarctSwSelGlossaryDlg * SwAbstractDialogFactory_Impl::CreateSwSelGlossaryDlg ( Window * pParent, const String &rShortName, int nResId ) 1055*cdf0e10cSrcweir { 1056*cdf0e10cSrcweir SwSelGlossaryDlg* pDlg=NULL; 1057*cdf0e10cSrcweir switch ( nResId ) 1058*cdf0e10cSrcweir { 1059*cdf0e10cSrcweir case DLG_SEL_GLOS : 1060*cdf0e10cSrcweir pDlg = new SwSelGlossaryDlg( pParent, rShortName); 1061*cdf0e10cSrcweir break; 1062*cdf0e10cSrcweir 1063*cdf0e10cSrcweir default: 1064*cdf0e10cSrcweir break; 1065*cdf0e10cSrcweir } 1066*cdf0e10cSrcweir 1067*cdf0e10cSrcweir if ( pDlg ) 1068*cdf0e10cSrcweir return new AbstarctSwSelGlossaryDlg_Impl( pDlg ); 1069*cdf0e10cSrcweir return 0; 1070*cdf0e10cSrcweir } 1071*cdf0e10cSrcweir 1072*cdf0e10cSrcweir //add for SwSelGlossaryDlg end 1073*cdf0e10cSrcweir 1074*cdf0e10cSrcweir //add for SwAutoFormatDlg begin 1075*cdf0e10cSrcweir AbstractSwAutoFormatDlg * SwAbstractDialogFactory_Impl::CreateSwAutoFormatDlg( Window* pParent, SwWrtShell* pShell, 1076*cdf0e10cSrcweir int nResId, 1077*cdf0e10cSrcweir sal_Bool bSetAutoFmt, 1078*cdf0e10cSrcweir const SwTableAutoFmt* pSelFmt ) 1079*cdf0e10cSrcweir { 1080*cdf0e10cSrcweir SwAutoFormatDlg* pDlg=NULL; 1081*cdf0e10cSrcweir switch ( nResId ) 1082*cdf0e10cSrcweir { 1083*cdf0e10cSrcweir case DLG_AUTOFMT_TABLE : 1084*cdf0e10cSrcweir pDlg = new SwAutoFormatDlg( pParent, pShell,bSetAutoFmt,pSelFmt); 1085*cdf0e10cSrcweir break; 1086*cdf0e10cSrcweir 1087*cdf0e10cSrcweir default: 1088*cdf0e10cSrcweir break; 1089*cdf0e10cSrcweir } 1090*cdf0e10cSrcweir 1091*cdf0e10cSrcweir if ( pDlg ) 1092*cdf0e10cSrcweir return new AbstractSwAutoFormatDlg_Impl( pDlg ); 1093*cdf0e10cSrcweir return 0; 1094*cdf0e10cSrcweir } 1095*cdf0e10cSrcweir //add for SwAutoFormatDlg end 1096*cdf0e10cSrcweir 1097*cdf0e10cSrcweir //add for SwBorderDlg begin 1098*cdf0e10cSrcweir SfxAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwBorderDlg (Window* pParent, SfxItemSet& rSet, sal_uInt16 nType,int nResId ) 1099*cdf0e10cSrcweir { 1100*cdf0e10cSrcweir SfxModalDialog* pDlg=NULL; 1101*cdf0e10cSrcweir switch ( nResId ) 1102*cdf0e10cSrcweir { 1103*cdf0e10cSrcweir case RC_DLG_SWBORDERDLG : 1104*cdf0e10cSrcweir pDlg = new SwBorderDlg( pParent, rSet, nType ); 1105*cdf0e10cSrcweir break; 1106*cdf0e10cSrcweir default: 1107*cdf0e10cSrcweir break; 1108*cdf0e10cSrcweir } 1109*cdf0e10cSrcweir 1110*cdf0e10cSrcweir if ( pDlg ) 1111*cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg ); 1112*cdf0e10cSrcweir return 0; 1113*cdf0e10cSrcweir } 1114*cdf0e10cSrcweir //add for SwBorderDlg end 1115*cdf0e10cSrcweir 1116*cdf0e10cSrcweir //add for SwWrapDlg begin 1117*cdf0e10cSrcweir SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwWrapDlg ( Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, sal_Bool bDrawMode, int nResId ) 1118*cdf0e10cSrcweir { 1119*cdf0e10cSrcweir SfxModalDialog* pDlg=NULL; 1120*cdf0e10cSrcweir switch ( nResId ) 1121*cdf0e10cSrcweir { 1122*cdf0e10cSrcweir case RC_DLG_SWWRAPDLG : 1123*cdf0e10cSrcweir pDlg = new SwWrapDlg( pParent, rSet, pSh, bDrawMode ); 1124*cdf0e10cSrcweir break; 1125*cdf0e10cSrcweir default: 1126*cdf0e10cSrcweir break; 1127*cdf0e10cSrcweir } 1128*cdf0e10cSrcweir 1129*cdf0e10cSrcweir if ( pDlg ) 1130*cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg ); 1131*cdf0e10cSrcweir return 0; 1132*cdf0e10cSrcweir } 1133*cdf0e10cSrcweir //add for SwWrapDlg end 1134*cdf0e10cSrcweir 1135*cdf0e10cSrcweir //add for SwTableWidthDlg begin 1136*cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwTableWidthDlg ( Window *pParent, SwTableFUNC &rFnc , int nResId ) 1137*cdf0e10cSrcweir { 1138*cdf0e10cSrcweir Dialog* pDlg=NULL; 1139*cdf0e10cSrcweir switch ( nResId ) 1140*cdf0e10cSrcweir { 1141*cdf0e10cSrcweir case DLG_COL_WIDTH : 1142*cdf0e10cSrcweir pDlg = new SwTableWidthDlg( pParent, rFnc); 1143*cdf0e10cSrcweir break; 1144*cdf0e10cSrcweir 1145*cdf0e10cSrcweir default: 1146*cdf0e10cSrcweir break; 1147*cdf0e10cSrcweir } 1148*cdf0e10cSrcweir 1149*cdf0e10cSrcweir if ( pDlg ) 1150*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1151*cdf0e10cSrcweir return 0; 1152*cdf0e10cSrcweir } 1153*cdf0e10cSrcweir //add for SwTableWidthDlg end 1154*cdf0e10cSrcweir 1155*cdf0e10cSrcweir //add for SwTableTabDlg begin 1156*cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTableTabDlg( Window* pParent, SfxItemPool& Pool, 1157*cdf0e10cSrcweir const SfxItemSet* pItemSet, SwWrtShell* pSh,int nResId ) 1158*cdf0e10cSrcweir { 1159*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1160*cdf0e10cSrcweir switch ( nResId ) 1161*cdf0e10cSrcweir { 1162*cdf0e10cSrcweir case DLG_FORMAT_TABLE : 1163*cdf0e10cSrcweir pDlg = new SwTableTabDlg( pParent, Pool, pItemSet,pSh ); 1164*cdf0e10cSrcweir break; 1165*cdf0e10cSrcweir 1166*cdf0e10cSrcweir default: 1167*cdf0e10cSrcweir break; 1168*cdf0e10cSrcweir } 1169*cdf0e10cSrcweir 1170*cdf0e10cSrcweir if ( pDlg ) 1171*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1172*cdf0e10cSrcweir return 0; 1173*cdf0e10cSrcweir } 1174*cdf0e10cSrcweir //add for SwTableTabDlg end 1175*cdf0e10cSrcweir 1176*cdf0e10cSrcweir //add for SwFldDlg begin 1177*cdf0e10cSrcweir AbstractSwFldDlg * SwAbstractDialogFactory_Impl::CreateSwFldDlg ( SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent, int nResId ) 1178*cdf0e10cSrcweir { 1179*cdf0e10cSrcweir SwFldDlg* pDlg=NULL; 1180*cdf0e10cSrcweir switch ( nResId ) 1181*cdf0e10cSrcweir { 1182*cdf0e10cSrcweir case DLG_FLD_INSERT : 1183*cdf0e10cSrcweir pDlg = new SwFldDlg( pB, pCW,pParent); 1184*cdf0e10cSrcweir break; 1185*cdf0e10cSrcweir 1186*cdf0e10cSrcweir default: 1187*cdf0e10cSrcweir break; 1188*cdf0e10cSrcweir } 1189*cdf0e10cSrcweir 1190*cdf0e10cSrcweir if ( pDlg ) 1191*cdf0e10cSrcweir return new AbstractSwFldDlg_Impl( pDlg ); 1192*cdf0e10cSrcweir return 0; 1193*cdf0e10cSrcweir } 1194*cdf0e10cSrcweir //add for SwFldDlg end 1195*cdf0e10cSrcweir 1196*cdf0e10cSrcweir //add for SwFldEditDlg begin 1197*cdf0e10cSrcweir SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwFldEditDlg ( SwView& rVw, int nResId ) 1198*cdf0e10cSrcweir { 1199*cdf0e10cSrcweir SfxModalDialog* pDlg=NULL; 1200*cdf0e10cSrcweir switch ( nResId ) 1201*cdf0e10cSrcweir { 1202*cdf0e10cSrcweir case RC_DLG_SWFLDEDITDLG : 1203*cdf0e10cSrcweir pDlg = new SwFldEditDlg( rVw ); 1204*cdf0e10cSrcweir break; 1205*cdf0e10cSrcweir default: 1206*cdf0e10cSrcweir break; 1207*cdf0e10cSrcweir } 1208*cdf0e10cSrcweir 1209*cdf0e10cSrcweir if ( pDlg ) 1210*cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg ); 1211*cdf0e10cSrcweir return 0; 1212*cdf0e10cSrcweir } 1213*cdf0e10cSrcweir //add for SwFldEditDlg 1214*cdf0e10cSrcweir 1215*cdf0e10cSrcweir //add for SwRenameXNamedDlg begin 1216*cdf0e10cSrcweir AbstractSwRenameXNamedDlg * SwAbstractDialogFactory_Impl::CreateSwRenameXNamedDlg( Window* pParent, 1217*cdf0e10cSrcweir STAR_REFERENCE( container::XNamed ) & xNamed, 1218*cdf0e10cSrcweir STAR_REFERENCE( container::XNameAccess ) & xNameAccess,int nResId ) 1219*cdf0e10cSrcweir { 1220*cdf0e10cSrcweir SwRenameXNamedDlg* pDlg=NULL; 1221*cdf0e10cSrcweir switch ( nResId ) 1222*cdf0e10cSrcweir { 1223*cdf0e10cSrcweir case DLG_RENAME_XNAMED : 1224*cdf0e10cSrcweir pDlg = new SwRenameXNamedDlg( pParent,xNamed, xNameAccess); 1225*cdf0e10cSrcweir break; 1226*cdf0e10cSrcweir default: 1227*cdf0e10cSrcweir break; 1228*cdf0e10cSrcweir } 1229*cdf0e10cSrcweir 1230*cdf0e10cSrcweir if ( pDlg ) 1231*cdf0e10cSrcweir return new AbstractSwRenameXNamedDlg_Impl( pDlg ); 1232*cdf0e10cSrcweir return 0; 1233*cdf0e10cSrcweir } 1234*cdf0e10cSrcweir 1235*cdf0e10cSrcweir //add for SwRenameXNamedDlg end 1236*cdf0e10cSrcweir 1237*cdf0e10cSrcweir //add for SwModalRedlineAcceptDlg begin 1238*cdf0e10cSrcweir AbstractSwModalRedlineAcceptDlg * SwAbstractDialogFactory_Impl::CreateSwModalRedlineAcceptDlg ( Window *pParent, int nResId ) 1239*cdf0e10cSrcweir { 1240*cdf0e10cSrcweir SwModalRedlineAcceptDlg* pDlg=NULL; 1241*cdf0e10cSrcweir switch ( nResId ) 1242*cdf0e10cSrcweir { 1243*cdf0e10cSrcweir case DLG_MOD_REDLINE_ACCEPT : 1244*cdf0e10cSrcweir pDlg = new SwModalRedlineAcceptDlg( pParent ); 1245*cdf0e10cSrcweir break; 1246*cdf0e10cSrcweir default: 1247*cdf0e10cSrcweir break; 1248*cdf0e10cSrcweir } 1249*cdf0e10cSrcweir 1250*cdf0e10cSrcweir if ( pDlg ) 1251*cdf0e10cSrcweir return new AbstractSwModalRedlineAcceptDlg_Impl( pDlg ); 1252*cdf0e10cSrcweir return 0; 1253*cdf0e10cSrcweir } 1254*cdf0e10cSrcweir //add for SwModalRedlineAcceptDlg end 1255*cdf0e10cSrcweir 1256*cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwVclDialog( int nResId, 1257*cdf0e10cSrcweir Window* pParent, sal_Bool& rWithPrev ) //add for SwMergeTblDlg 1258*cdf0e10cSrcweir { 1259*cdf0e10cSrcweir Dialog* pDlg=NULL; 1260*cdf0e10cSrcweir switch ( nResId ) 1261*cdf0e10cSrcweir { 1262*cdf0e10cSrcweir case DLG_MERGE_TABLE : 1263*cdf0e10cSrcweir pDlg = new SwMergeTblDlg( pParent, rWithPrev ); 1264*cdf0e10cSrcweir break; 1265*cdf0e10cSrcweir default: 1266*cdf0e10cSrcweir break; 1267*cdf0e10cSrcweir } 1268*cdf0e10cSrcweir if ( pDlg ) 1269*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1270*cdf0e10cSrcweir return 0; 1271*cdf0e10cSrcweir } 1272*cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateFrmTabDialog( int nResId, 1273*cdf0e10cSrcweir SfxViewFrame *pFrame, Window *pParent, 1274*cdf0e10cSrcweir const SfxItemSet& rCoreSet, 1275*cdf0e10cSrcweir sal_Bool bNewFrm, 1276*cdf0e10cSrcweir sal_uInt16 nResType, 1277*cdf0e10cSrcweir sal_Bool bFmt, 1278*cdf0e10cSrcweir sal_uInt16 nDefPage, 1279*cdf0e10cSrcweir const String* pFmtStr ) //add for SwFrmDlg 1280*cdf0e10cSrcweir { 1281*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1282*cdf0e10cSrcweir switch ( nResId ) 1283*cdf0e10cSrcweir { 1284*cdf0e10cSrcweir case DLG_FRM_GRF : 1285*cdf0e10cSrcweir case DLG_FRM_OLE : 1286*cdf0e10cSrcweir case DLG_FRM_STD : 1287*cdf0e10cSrcweir pDlg = new SwFrmDlg( pFrame, pParent, rCoreSet, bNewFrm, nResType, bFmt, nDefPage, pFmtStr ); 1288*cdf0e10cSrcweir break; 1289*cdf0e10cSrcweir default: 1290*cdf0e10cSrcweir break; 1291*cdf0e10cSrcweir } 1292*cdf0e10cSrcweir 1293*cdf0e10cSrcweir if ( pDlg ) 1294*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1295*cdf0e10cSrcweir return 0; 1296*cdf0e10cSrcweir } 1297*cdf0e10cSrcweir 1298*cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateTemplateDialog( int nResId, 1299*cdf0e10cSrcweir Window* pParent, 1300*cdf0e10cSrcweir SfxStyleSheetBase& rBase, 1301*cdf0e10cSrcweir sal_uInt16 nRegion, 1302*cdf0e10cSrcweir sal_Bool bColumn, 1303*cdf0e10cSrcweir SwWrtShell* pActShell, 1304*cdf0e10cSrcweir sal_Bool bNew ) //add for SwTemplateDlg 1305*cdf0e10cSrcweir { 1306*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1307*cdf0e10cSrcweir switch ( nResId ) 1308*cdf0e10cSrcweir { 1309*cdf0e10cSrcweir case DLG_TEMPLATE_BASE : 1310*cdf0e10cSrcweir pDlg = new SwTemplateDlg( pParent, rBase, nRegion, bColumn, pActShell, bNew ); 1311*cdf0e10cSrcweir break; 1312*cdf0e10cSrcweir default: 1313*cdf0e10cSrcweir break; 1314*cdf0e10cSrcweir } 1315*cdf0e10cSrcweir 1316*cdf0e10cSrcweir if ( pDlg ) 1317*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1318*cdf0e10cSrcweir return 0; 1319*cdf0e10cSrcweir } 1320*cdf0e10cSrcweir 1321*cdf0e10cSrcweir AbstractGlossaryDlg* SwAbstractDialogFactory_Impl::CreateGlossaryDlg( int nResId, 1322*cdf0e10cSrcweir SfxViewFrame* pViewFrame, 1323*cdf0e10cSrcweir SwGlossaryHdl* pGlosHdl, 1324*cdf0e10cSrcweir SwWrtShell *pWrtShell) //add for SwGlossaryDlg 1325*cdf0e10cSrcweir { 1326*cdf0e10cSrcweir SwGlossaryDlg* pDlg=NULL; 1327*cdf0e10cSrcweir switch ( nResId ) 1328*cdf0e10cSrcweir { 1329*cdf0e10cSrcweir case DLG_RENAME_GLOS : 1330*cdf0e10cSrcweir pDlg = new SwGlossaryDlg( pViewFrame, pGlosHdl, pWrtShell ); 1331*cdf0e10cSrcweir break; 1332*cdf0e10cSrcweir default: 1333*cdf0e10cSrcweir break; 1334*cdf0e10cSrcweir } 1335*cdf0e10cSrcweir if ( pDlg ) 1336*cdf0e10cSrcweir return new AbstractGlossaryDlg_Impl( pDlg ); 1337*cdf0e10cSrcweir return 0; 1338*cdf0e10cSrcweir } 1339*cdf0e10cSrcweir 1340*cdf0e10cSrcweir AbstractFldInputDlg* SwAbstractDialogFactory_Impl::CreateFldInputDlg( int nResId, 1341*cdf0e10cSrcweir Window *pParent, SwWrtShell &rSh, 1342*cdf0e10cSrcweir SwField* pField, sal_Bool bNextButton ) //add for SwFldInputDlg 1343*cdf0e10cSrcweir { 1344*cdf0e10cSrcweir SwFldInputDlg* pDlg=NULL; 1345*cdf0e10cSrcweir switch ( nResId ) 1346*cdf0e10cSrcweir { 1347*cdf0e10cSrcweir case DLG_FLD_INPUT : 1348*cdf0e10cSrcweir pDlg = new SwFldInputDlg( pParent, rSh, pField, bNextButton ); 1349*cdf0e10cSrcweir break; 1350*cdf0e10cSrcweir default: 1351*cdf0e10cSrcweir break; 1352*cdf0e10cSrcweir } 1353*cdf0e10cSrcweir if ( pDlg ) 1354*cdf0e10cSrcweir return new AbstractFldInputDlg_Impl( pDlg ); 1355*cdf0e10cSrcweir return 0; 1356*cdf0e10cSrcweir } 1357*cdf0e10cSrcweir 1358*cdf0e10cSrcweir AbstractInsFootNoteDlg* SwAbstractDialogFactory_Impl::CreateInsFootNoteDlg( int nResId, 1359*cdf0e10cSrcweir Window * pParent, SwWrtShell &rSh, sal_Bool bEd ) //add for SwInsFootNoteDlg 1360*cdf0e10cSrcweir { 1361*cdf0e10cSrcweir SwInsFootNoteDlg* pDlg=NULL; 1362*cdf0e10cSrcweir switch ( nResId ) 1363*cdf0e10cSrcweir { 1364*cdf0e10cSrcweir case DLG_INS_FOOTNOTE : 1365*cdf0e10cSrcweir pDlg = new SwInsFootNoteDlg( pParent, rSh, bEd ); 1366*cdf0e10cSrcweir break; 1367*cdf0e10cSrcweir default: 1368*cdf0e10cSrcweir break; 1369*cdf0e10cSrcweir } 1370*cdf0e10cSrcweir if ( pDlg ) 1371*cdf0e10cSrcweir return new AbstractInsFootNoteDlg_Impl( pDlg ); 1372*cdf0e10cSrcweir return 0; 1373*cdf0e10cSrcweir } 1374*cdf0e10cSrcweir 1375*cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclSwViewDialog( int nResId, 1376*cdf0e10cSrcweir SwView& rView, sal_Bool /*bCol*/ ) //add for SwInsRowColDlg, SwLineNumberingDlg 1377*cdf0e10cSrcweir { 1378*cdf0e10cSrcweir Dialog* pDlg=NULL; 1379*cdf0e10cSrcweir switch ( nResId ) 1380*cdf0e10cSrcweir { 1381*cdf0e10cSrcweir case DLG_LINE_NUMBERING : 1382*cdf0e10cSrcweir pDlg = new SwLineNumberingDlg( &rView ); 1383*cdf0e10cSrcweir break; 1384*cdf0e10cSrcweir default: 1385*cdf0e10cSrcweir break; 1386*cdf0e10cSrcweir } 1387*cdf0e10cSrcweir 1388*cdf0e10cSrcweir if ( pDlg ) 1389*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1390*cdf0e10cSrcweir return 0; 1391*cdf0e10cSrcweir } 1392*cdf0e10cSrcweir 1393*cdf0e10cSrcweir AbstractInsertGrfRulerDlg * SwAbstractDialogFactory_Impl::CreateInsertGrfRulerDlg( int nResId, 1394*cdf0e10cSrcweir Window * pParent ) //add for SwInsertGrfRulerDlg 1395*cdf0e10cSrcweir { 1396*cdf0e10cSrcweir SwInsertGrfRulerDlg* pDlg=NULL; 1397*cdf0e10cSrcweir switch ( nResId ) 1398*cdf0e10cSrcweir { 1399*cdf0e10cSrcweir case DLG_INSERT_RULER : 1400*cdf0e10cSrcweir pDlg = new SwInsertGrfRulerDlg( pParent ); 1401*cdf0e10cSrcweir break; 1402*cdf0e10cSrcweir default: 1403*cdf0e10cSrcweir break; 1404*cdf0e10cSrcweir } 1405*cdf0e10cSrcweir 1406*cdf0e10cSrcweir if ( pDlg ) 1407*cdf0e10cSrcweir return new AbstractInsertGrfRulerDlg_Impl( pDlg ); 1408*cdf0e10cSrcweir return 0; 1409*cdf0e10cSrcweir } 1410*cdf0e10cSrcweir 1411*cdf0e10cSrcweir AbstractInsTableDlg * SwAbstractDialogFactory_Impl::CreateInsTableDlg( int nResId, 1412*cdf0e10cSrcweir SwView& rView ) //add for SwInsTableDlg 1413*cdf0e10cSrcweir { 1414*cdf0e10cSrcweir SwInsTableDlg* pDlg=NULL; 1415*cdf0e10cSrcweir switch ( nResId ) 1416*cdf0e10cSrcweir { 1417*cdf0e10cSrcweir case DLG_INSERT_TABLE : 1418*cdf0e10cSrcweir pDlg = new SwInsTableDlg( rView ); 1419*cdf0e10cSrcweir break; 1420*cdf0e10cSrcweir default: 1421*cdf0e10cSrcweir break; 1422*cdf0e10cSrcweir } 1423*cdf0e10cSrcweir if ( pDlg ) 1424*cdf0e10cSrcweir return new AbstractInsTableDlg_Impl( pDlg ); 1425*cdf0e10cSrcweir return 0; 1426*cdf0e10cSrcweir } 1427*cdf0e10cSrcweir 1428*cdf0e10cSrcweir AbstractJavaEditDialog * SwAbstractDialogFactory_Impl::CreateJavaEditDialog( int nResId, 1429*cdf0e10cSrcweir Window* pParent, SwWrtShell* pWrtSh ) //add for SwJavaEditDialog 1430*cdf0e10cSrcweir { 1431*cdf0e10cSrcweir SwJavaEditDialog* pDlg=NULL; 1432*cdf0e10cSrcweir switch ( nResId ) 1433*cdf0e10cSrcweir { 1434*cdf0e10cSrcweir case DLG_JAVAEDIT : 1435*cdf0e10cSrcweir pDlg = new SwJavaEditDialog( pParent, pWrtSh ); 1436*cdf0e10cSrcweir break; 1437*cdf0e10cSrcweir default: 1438*cdf0e10cSrcweir break; 1439*cdf0e10cSrcweir } 1440*cdf0e10cSrcweir if ( pDlg ) 1441*cdf0e10cSrcweir return new AbstractJavaEditDialog_Impl( pDlg ); 1442*cdf0e10cSrcweir return 0; 1443*cdf0e10cSrcweir } 1444*cdf0e10cSrcweir 1445*cdf0e10cSrcweir AbstractMailMergeDlg * SwAbstractDialogFactory_Impl::CreateMailMergeDlg( int nResId, 1446*cdf0e10cSrcweir Window* pParent, SwWrtShell& rSh, 1447*cdf0e10cSrcweir const String& rSourceName, 1448*cdf0e10cSrcweir const String& rTblName, 1449*cdf0e10cSrcweir sal_Int32 nCommandType, 1450*cdf0e10cSrcweir const uno::Reference< sdbc::XConnection>& xConnection, 1451*cdf0e10cSrcweir uno::Sequence< uno::Any >* pSelection ) //add for SwMailMergeDlg 1452*cdf0e10cSrcweir { 1453*cdf0e10cSrcweir SwMailMergeDlg* pDlg=NULL; 1454*cdf0e10cSrcweir switch ( nResId ) 1455*cdf0e10cSrcweir { 1456*cdf0e10cSrcweir case DLG_MAILMERGE : 1457*cdf0e10cSrcweir pDlg = new SwMailMergeDlg( pParent, rSh, rSourceName, rTblName, nCommandType, xConnection, pSelection ); 1458*cdf0e10cSrcweir break; 1459*cdf0e10cSrcweir default: 1460*cdf0e10cSrcweir break; 1461*cdf0e10cSrcweir } 1462*cdf0e10cSrcweir if ( pDlg ) 1463*cdf0e10cSrcweir return new AbstractMailMergeDlg_Impl( pDlg ); 1464*cdf0e10cSrcweir return 0; 1465*cdf0e10cSrcweir } 1466*cdf0e10cSrcweir AbstractMailMergeCreateFromDlg * SwAbstractDialogFactory_Impl::CreateMailMergeCreateFromDlg( int nResId, 1467*cdf0e10cSrcweir Window* pParent ) //add for SwMailMergeCreateFromDlg 1468*cdf0e10cSrcweir { 1469*cdf0e10cSrcweir SwMailMergeCreateFromDlg* pDlg=NULL; 1470*cdf0e10cSrcweir switch ( nResId ) 1471*cdf0e10cSrcweir { 1472*cdf0e10cSrcweir case DLG_MERGE_CREATE : 1473*cdf0e10cSrcweir pDlg = new SwMailMergeCreateFromDlg( pParent ); 1474*cdf0e10cSrcweir break; 1475*cdf0e10cSrcweir default: 1476*cdf0e10cSrcweir break; 1477*cdf0e10cSrcweir } 1478*cdf0e10cSrcweir if ( pDlg ) 1479*cdf0e10cSrcweir return new AbstractMailMergeCreateFromDlg_Impl( pDlg ); 1480*cdf0e10cSrcweir return 0; 1481*cdf0e10cSrcweir } 1482*cdf0e10cSrcweir AbstractMailMergeFieldConnectionsDlg * SwAbstractDialogFactory_Impl::CreateMailMergeFieldConnectionsDlg( int nResId, 1483*cdf0e10cSrcweir Window* pParent ) //add for SwMailMergeFieldConnectionsDlg 1484*cdf0e10cSrcweir { 1485*cdf0e10cSrcweir SwMailMergeFieldConnectionsDlg* pDlg=NULL; 1486*cdf0e10cSrcweir switch ( nResId ) 1487*cdf0e10cSrcweir { 1488*cdf0e10cSrcweir case DLG_MERGE_FIELD_CONNECTIONS : 1489*cdf0e10cSrcweir pDlg = new SwMailMergeFieldConnectionsDlg( pParent ); 1490*cdf0e10cSrcweir break; 1491*cdf0e10cSrcweir default: 1492*cdf0e10cSrcweir break; 1493*cdf0e10cSrcweir } 1494*cdf0e10cSrcweir if ( pDlg ) 1495*cdf0e10cSrcweir return new AbstractMailMergeFieldConnectionsDlg_Impl( pDlg ); 1496*cdf0e10cSrcweir return 0; 1497*cdf0e10cSrcweir } 1498*cdf0e10cSrcweir 1499*cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateMultiTOXMarkDlg( int nResId, 1500*cdf0e10cSrcweir Window* pParent, SwTOXMgr &rTOXMgr ) //add for SwMultiTOXMarkDlg 1501*cdf0e10cSrcweir { 1502*cdf0e10cSrcweir Dialog* pDlg=NULL; 1503*cdf0e10cSrcweir switch ( nResId ) 1504*cdf0e10cSrcweir { 1505*cdf0e10cSrcweir case DLG_MULTMRK : 1506*cdf0e10cSrcweir pDlg = new SwMultiTOXMarkDlg( pParent, rTOXMgr ); 1507*cdf0e10cSrcweir break; 1508*cdf0e10cSrcweir default: 1509*cdf0e10cSrcweir break; 1510*cdf0e10cSrcweir } 1511*cdf0e10cSrcweir if ( pDlg ) 1512*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1513*cdf0e10cSrcweir return 0; 1514*cdf0e10cSrcweir } 1515*cdf0e10cSrcweir SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTabDialog( int nResId, 1516*cdf0e10cSrcweir Window* pParent, 1517*cdf0e10cSrcweir const SfxItemSet* pSwItemSet, 1518*cdf0e10cSrcweir SwWrtShell & rWrtSh ) //add for SwSvxNumBulletTabDialog, SwOutlineTabDialog 1519*cdf0e10cSrcweir { 1520*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1521*cdf0e10cSrcweir switch ( nResId ) 1522*cdf0e10cSrcweir { 1523*cdf0e10cSrcweir case DLG_SVXTEST_NUM_BULLET : 1524*cdf0e10cSrcweir pDlg = new SwSvxNumBulletTabDialog( pParent, pSwItemSet, rWrtSh ); 1525*cdf0e10cSrcweir break; 1526*cdf0e10cSrcweir case DLG_TAB_OUTLINE : 1527*cdf0e10cSrcweir pDlg = new SwOutlineTabDialog( pParent, pSwItemSet, rWrtSh ); 1528*cdf0e10cSrcweir break; 1529*cdf0e10cSrcweir 1530*cdf0e10cSrcweir default: 1531*cdf0e10cSrcweir break; 1532*cdf0e10cSrcweir } 1533*cdf0e10cSrcweir if ( pDlg ) 1534*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1535*cdf0e10cSrcweir return 0; 1536*cdf0e10cSrcweir } 1537*cdf0e10cSrcweir AbstractMultiTOXTabDialog * SwAbstractDialogFactory_Impl::CreateMultiTOXTabDialog( int nResId, 1538*cdf0e10cSrcweir Window* pParent, const SfxItemSet& rSet, 1539*cdf0e10cSrcweir SwWrtShell &rShell, 1540*cdf0e10cSrcweir SwTOXBase* pCurTOX, sal_uInt16 nToxType, 1541*cdf0e10cSrcweir sal_Bool bGlobal ) //add for SwMultiTOXTabDialog 1542*cdf0e10cSrcweir { 1543*cdf0e10cSrcweir SwMultiTOXTabDialog* pDlg=NULL; 1544*cdf0e10cSrcweir switch ( nResId ) 1545*cdf0e10cSrcweir { 1546*cdf0e10cSrcweir case DLG_MULTI_TOX : 1547*cdf0e10cSrcweir pDlg = new SwMultiTOXTabDialog( pParent, rSet, rShell, pCurTOX, nToxType, bGlobal ); 1548*cdf0e10cSrcweir break; 1549*cdf0e10cSrcweir default: 1550*cdf0e10cSrcweir break; 1551*cdf0e10cSrcweir } 1552*cdf0e10cSrcweir if ( pDlg ) 1553*cdf0e10cSrcweir return new AbstractMultiTOXTabDialog_Impl( pDlg ); 1554*cdf0e10cSrcweir return 0; 1555*cdf0e10cSrcweir } 1556*cdf0e10cSrcweir AbstractEditRegionDlg * SwAbstractDialogFactory_Impl::CreateEditRegionDlg( int nResId, 1557*cdf0e10cSrcweir Window* pParent, SwWrtShell& rWrtSh ) //add for SwEditRegionDlg 1558*cdf0e10cSrcweir { 1559*cdf0e10cSrcweir SwEditRegionDlg* pDlg=NULL; 1560*cdf0e10cSrcweir switch ( nResId ) 1561*cdf0e10cSrcweir { 1562*cdf0e10cSrcweir case MD_EDIT_REGION : 1563*cdf0e10cSrcweir pDlg = new SwEditRegionDlg( pParent, rWrtSh ); 1564*cdf0e10cSrcweir break; 1565*cdf0e10cSrcweir default: 1566*cdf0e10cSrcweir break; 1567*cdf0e10cSrcweir } 1568*cdf0e10cSrcweir if ( pDlg ) 1569*cdf0e10cSrcweir return new AbstractEditRegionDlg_Impl( pDlg ); 1570*cdf0e10cSrcweir return 0; 1571*cdf0e10cSrcweir } 1572*cdf0e10cSrcweir AbstractInsertSectionTabDialog * SwAbstractDialogFactory_Impl::CreateInsertSectionTabDialog( int nResId, 1573*cdf0e10cSrcweir Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh) //add for SwInsertSectionTabDialog 1574*cdf0e10cSrcweir { 1575*cdf0e10cSrcweir SwInsertSectionTabDialog* pDlg=NULL; 1576*cdf0e10cSrcweir switch ( nResId ) 1577*cdf0e10cSrcweir { 1578*cdf0e10cSrcweir case DLG_INSERT_SECTION : 1579*cdf0e10cSrcweir pDlg = new SwInsertSectionTabDialog( pParent, rSet, rSh ); 1580*cdf0e10cSrcweir break; 1581*cdf0e10cSrcweir default: 1582*cdf0e10cSrcweir break; 1583*cdf0e10cSrcweir } 1584*cdf0e10cSrcweir if ( pDlg ) 1585*cdf0e10cSrcweir return new AbstractInsertSectionTabDialog_Impl( pDlg ); 1586*cdf0e10cSrcweir return 0; 1587*cdf0e10cSrcweir } 1588*cdf0e10cSrcweir 1589*cdf0e10cSrcweir AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateIndexMarkFloatDlg( int nResId, 1590*cdf0e10cSrcweir SfxBindings* pBindings, 1591*cdf0e10cSrcweir SfxChildWindow* pChild, 1592*cdf0e10cSrcweir Window *pParent, 1593*cdf0e10cSrcweir SfxChildWinInfo* pInfo, 1594*cdf0e10cSrcweir sal_Bool bNew ) //add for SwIndexMarkFloatDlg 1595*cdf0e10cSrcweir { 1596*cdf0e10cSrcweir SwIndexMarkFloatDlg* pDlg=NULL; 1597*cdf0e10cSrcweir switch ( nResId ) 1598*cdf0e10cSrcweir { 1599*cdf0e10cSrcweir case DLG_INSIDXMARK_CJK : 1600*cdf0e10cSrcweir case DLG_INSIDXMARK : 1601*cdf0e10cSrcweir pDlg = new SwIndexMarkFloatDlg( pBindings, pChild, pParent, pInfo, bNew ); 1602*cdf0e10cSrcweir break; 1603*cdf0e10cSrcweir default: 1604*cdf0e10cSrcweir break; 1605*cdf0e10cSrcweir } 1606*cdf0e10cSrcweir if ( pDlg ) 1607*cdf0e10cSrcweir return new AbstractIndexMarkFloatDlg_Impl( pDlg ); 1608*cdf0e10cSrcweir return 0; 1609*cdf0e10cSrcweir } 1610*cdf0e10cSrcweir 1611*cdf0e10cSrcweir AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg( int nResId, 1612*cdf0e10cSrcweir SfxBindings* pBindings, 1613*cdf0e10cSrcweir SfxChildWindow* pChild, 1614*cdf0e10cSrcweir Window *pParent, 1615*cdf0e10cSrcweir SfxChildWinInfo* pInfo, 1616*cdf0e10cSrcweir sal_Bool bNew ) //add for SwAuthMarkFloatDlg 1617*cdf0e10cSrcweir { 1618*cdf0e10cSrcweir SwAuthMarkFloatDlg* pDlg=NULL; 1619*cdf0e10cSrcweir switch ( nResId ) 1620*cdf0e10cSrcweir { 1621*cdf0e10cSrcweir case DLG_INSAUTHMARK : 1622*cdf0e10cSrcweir pDlg = new SwAuthMarkFloatDlg( pBindings, pChild, pParent, pInfo, bNew ); 1623*cdf0e10cSrcweir break; 1624*cdf0e10cSrcweir default: 1625*cdf0e10cSrcweir break; 1626*cdf0e10cSrcweir } 1627*cdf0e10cSrcweir if ( pDlg ) 1628*cdf0e10cSrcweir return new AbstractAuthMarkFloatDlg_Impl( pDlg ); 1629*cdf0e10cSrcweir return 0; 1630*cdf0e10cSrcweir } 1631*cdf0e10cSrcweir 1632*cdf0e10cSrcweir //add for SwIndexMarkModalDlg begin 1633*cdf0e10cSrcweir VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateIndexMarkModalDlg( int nResId, 1634*cdf0e10cSrcweir Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark ) //add for SwIndexMarkModalDlg 1635*cdf0e10cSrcweir { 1636*cdf0e10cSrcweir Dialog* pDlg=NULL; 1637*cdf0e10cSrcweir switch ( nResId ) 1638*cdf0e10cSrcweir { 1639*cdf0e10cSrcweir case DLG_EDIT_IDXMARK_CJK : 1640*cdf0e10cSrcweir case DLG_EDIT_IDXMARK : 1641*cdf0e10cSrcweir pDlg = new SwIndexMarkModalDlg( pParent, rSh, pCurTOXMark ); 1642*cdf0e10cSrcweir break; 1643*cdf0e10cSrcweir 1644*cdf0e10cSrcweir default: 1645*cdf0e10cSrcweir break; 1646*cdf0e10cSrcweir } 1647*cdf0e10cSrcweir 1648*cdf0e10cSrcweir if ( pDlg ) 1649*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1650*cdf0e10cSrcweir return 0; 1651*cdf0e10cSrcweir } 1652*cdf0e10cSrcweir //add for SwIndexMarkModalDlg end 1653*cdf0e10cSrcweir AbstractMailMergeWizard* SwAbstractDialogFactory_Impl::CreateMailMergeWizard( 1654*cdf0e10cSrcweir SwView& rView, SwMailMergeConfigItem& rConfigItem) 1655*cdf0e10cSrcweir { 1656*cdf0e10cSrcweir return new AbstractMailMergeWizard_Impl( new SwMailMergeWizard(rView, rConfigItem)); 1657*cdf0e10cSrcweir } 1658*cdf0e10cSrcweir 1659*cdf0e10cSrcweir //add for static func in SwGlossaryDlg 1660*cdf0e10cSrcweir GlossaryGetCurrGroup SwAbstractDialogFactory_Impl::GetGlossaryCurrGroupFunc( sal_uInt16 nId ) 1661*cdf0e10cSrcweir { 1662*cdf0e10cSrcweir switch ( nId ) 1663*cdf0e10cSrcweir { 1664*cdf0e10cSrcweir case DLG_RENAME_GLOS : 1665*cdf0e10cSrcweir return SwGlossaryDlg::GetCurrGroup; 1666*cdf0e10cSrcweir default: 1667*cdf0e10cSrcweir break; 1668*cdf0e10cSrcweir } 1669*cdf0e10cSrcweir return 0; 1670*cdf0e10cSrcweir } 1671*cdf0e10cSrcweir GlossarySetActGroup SwAbstractDialogFactory_Impl::SetGlossaryActGroupFunc( sal_uInt16 nId ) 1672*cdf0e10cSrcweir { 1673*cdf0e10cSrcweir switch ( nId ) 1674*cdf0e10cSrcweir { 1675*cdf0e10cSrcweir case DLG_RENAME_GLOS : 1676*cdf0e10cSrcweir return SwGlossaryDlg::SetActGroup; 1677*cdf0e10cSrcweir default: 1678*cdf0e10cSrcweir break; 1679*cdf0e10cSrcweir } 1680*cdf0e10cSrcweir return 0; 1681*cdf0e10cSrcweir } 1682*cdf0e10cSrcweir 1683*cdf0e10cSrcweir //------------------ Factories for TabPages 1684*cdf0e10cSrcweir CreateTabPage SwAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId ) 1685*cdf0e10cSrcweir { 1686*cdf0e10cSrcweir CreateTabPage pRet = 0; 1687*cdf0e10cSrcweir switch ( nId ) 1688*cdf0e10cSrcweir { 1689*cdf0e10cSrcweir case TP_OPTCOMPATIBILITY_PAGE : 1690*cdf0e10cSrcweir case RID_SW_TP_OPTCOMPATIBILITY_PAGE : 1691*cdf0e10cSrcweir pRet = SwCompatibilityOptPage::Create; 1692*cdf0e10cSrcweir break; 1693*cdf0e10cSrcweir case TP_OPTLOAD_PAGE : 1694*cdf0e10cSrcweir case RID_SW_TP_OPTLOAD_PAGE : 1695*cdf0e10cSrcweir pRet = SwLoadOptPage::Create; 1696*cdf0e10cSrcweir break; 1697*cdf0e10cSrcweir case TP_OPTCAPTION_PAGE: 1698*cdf0e10cSrcweir case RID_SW_TP_OPTCAPTION_PAGE: 1699*cdf0e10cSrcweir return SwCaptionOptPage::Create; 1700*cdf0e10cSrcweir case TP_CONTENT_OPT : 1701*cdf0e10cSrcweir case RID_SW_TP_CONTENT_OPT: 1702*cdf0e10cSrcweir case RID_SW_TP_HTML_CONTENT_OPT: 1703*cdf0e10cSrcweir pRet = SwContentOptPage::Create; 1704*cdf0e10cSrcweir break; 1705*cdf0e10cSrcweir case TP_OPTSHDWCRSR : 1706*cdf0e10cSrcweir case RID_SW_TP_OPTSHDWCRSR: 1707*cdf0e10cSrcweir case RID_SW_TP_HTML_OPTSHDWCRSR: 1708*cdf0e10cSrcweir pRet = SwShdwCrsrOptionsTabPage::Create; 1709*cdf0e10cSrcweir break; 1710*cdf0e10cSrcweir case RID_SW_TP_REDLINE_OPT : 1711*cdf0e10cSrcweir case TP_REDLINE_OPT : 1712*cdf0e10cSrcweir pRet = SwRedlineOptionsTabPage::Create; 1713*cdf0e10cSrcweir break; 1714*cdf0e10cSrcweir case RID_SW_TP_OPTTEST_PAGE : 1715*cdf0e10cSrcweir case TP_OPTTEST_PAGE : 1716*cdf0e10cSrcweir #ifdef DBG_UTIL 1717*cdf0e10cSrcweir pRet = SwTestTabPage::Create; 1718*cdf0e10cSrcweir #endif 1719*cdf0e10cSrcweir break; 1720*cdf0e10cSrcweir case TP_OPTPRINT_PAGE : 1721*cdf0e10cSrcweir case RID_SW_TP_HTML_OPTPRINT_PAGE: 1722*cdf0e10cSrcweir case RID_SW_TP_OPTPRINT_PAGE: 1723*cdf0e10cSrcweir pRet = SwAddPrinterTabPage::Create; 1724*cdf0e10cSrcweir break; 1725*cdf0e10cSrcweir case TP_STD_FONT : 1726*cdf0e10cSrcweir case RID_SW_TP_STD_FONT: 1727*cdf0e10cSrcweir case RID_SW_TP_STD_FONT_CJK: 1728*cdf0e10cSrcweir case RID_SW_TP_STD_FONT_CTL: 1729*cdf0e10cSrcweir pRet = SwStdFontTabPage::Create; 1730*cdf0e10cSrcweir break; 1731*cdf0e10cSrcweir case TP_OPTTABLE_PAGE : 1732*cdf0e10cSrcweir case RID_SW_TP_HTML_OPTTABLE_PAGE: 1733*cdf0e10cSrcweir case RID_SW_TP_OPTTABLE_PAGE: 1734*cdf0e10cSrcweir pRet = SwTableOptionsTabPage::Create; 1735*cdf0e10cSrcweir break; 1736*cdf0e10cSrcweir case TP_DOC_STAT : 1737*cdf0e10cSrcweir pRet = SwDocStatPage::Create; 1738*cdf0e10cSrcweir break; 1739*cdf0e10cSrcweir case RID_SW_TP_MAILCONFIG: 1740*cdf0e10cSrcweir pRet = SwMailConfigPage::Create; 1741*cdf0e10cSrcweir break; 1742*cdf0e10cSrcweir } 1743*cdf0e10cSrcweir 1744*cdf0e10cSrcweir return pRet; 1745*cdf0e10cSrcweir } 1746*cdf0e10cSrcweir 1747*cdf0e10cSrcweir GetTabPageRanges SwAbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId ) 1748*cdf0e10cSrcweir { 1749*cdf0e10cSrcweir switch ( nId ) 1750*cdf0e10cSrcweir { 1751*cdf0e10cSrcweir case 1 : //RID_SVXPAGE_TEXTANIMATION : 1752*cdf0e10cSrcweir //return SvxTextAnimationPage::GetRanges; 1753*cdf0e10cSrcweir break; 1754*cdf0e10cSrcweir default: 1755*cdf0e10cSrcweir break; 1756*cdf0e10cSrcweir } 1757*cdf0e10cSrcweir 1758*cdf0e10cSrcweir return 0; 1759*cdf0e10cSrcweir } 1760