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_cui.hxx" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include "align.hxx" //add for SvxAlignmentTabPage 32*cdf0e10cSrcweir #include "dlgfact.hxx" 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir #include <tools/rc.hxx> 35*cdf0e10cSrcweir #include <sfx2/basedlgs.hxx> 36*cdf0e10cSrcweir #include <sfx2/app.hxx> 37*cdf0e10cSrcweir #include <sfx2/request.hxx> 38*cdf0e10cSrcweir #include <cuires.hrc> 39*cdf0e10cSrcweir #include <svx/dialogs.hrc> 40*cdf0e10cSrcweir #include "numfmt.hxx" 41*cdf0e10cSrcweir #include "optimprove.hxx" 42*cdf0e10cSrcweir #include "splitcelldlg.hxx" 43*cdf0e10cSrcweir #include "gallery.hrc" 44*cdf0e10cSrcweir #include "dstribut.hxx" 45*cdf0e10cSrcweir #include "cuigaldlg.hxx" 46*cdf0e10cSrcweir #include "cuiimapwnd.hxx" 47*cdf0e10cSrcweir #include "hlmarkwn.hxx" 48*cdf0e10cSrcweir #include "cuicharmap.hxx" 49*cdf0e10cSrcweir #include "srchxtra.hxx" 50*cdf0e10cSrcweir #include "textanim.hxx" 51*cdf0e10cSrcweir #include "autocdlg.hxx" 52*cdf0e10cSrcweir #include "treeopt.hxx" 53*cdf0e10cSrcweir #include "internationaloptions.hxx" 54*cdf0e10cSrcweir #include "labdlg.hxx" 55*cdf0e10cSrcweir #include "hangulhanjadlg.hxx" //add for HangulHanjaConversionDialog 56*cdf0e10cSrcweir #include "showcols.hxx" //add for FmShowColsDialog 57*cdf0e10cSrcweir #include "zoom.hxx" //add for SvxZoomDialog 58*cdf0e10cSrcweir #include "cuigaldlg.hxx" //add for Gallery 6 Dialogs and 1 TabPage 59*cdf0e10cSrcweir #include "cuiimapwnd.hxx" //add for URLDlg 60*cdf0e10cSrcweir #include "hlmarkwn.hxx" //add for SvxHlinkDlgMarkWnd 61*cdf0e10cSrcweir #include "srchxtra.hxx" //add for SvxSearchFormatDialog 62*cdf0e10cSrcweir #include "transfrm.hxx" //add for SvxTransformTabDialog 63*cdf0e10cSrcweir #include "bbdlg.hxx" //add for SvxBorderBackgroundDlg 64*cdf0e10cSrcweir #include "cuisrchdlg.hxx" //add for SvxJSearchOptionsDialog 65*cdf0e10cSrcweir #include "cuitbxform.hxx" //add for FmInputRecordNoDialog 66*cdf0e10cSrcweir #include "optdict.hxx" //add for SvxNewDictionaryDialog 67*cdf0e10cSrcweir #include "dlgname.hxx" //add for SvxNameDialog & SvxMessDialog 68*cdf0e10cSrcweir #include "multipat.hxx" //add for SvxMultiPathDialog 69*cdf0e10cSrcweir #include "multifil.hxx" //add for SvxMultiFileDialog 70*cdf0e10cSrcweir #include "cuihyperdlg.hxx" //add for SvxHpLinkDlg 71*cdf0e10cSrcweir #include "cuifmsearch.hxx" //add for FmSearchDialog 72*cdf0e10cSrcweir #include "cuigrfflt.hxx" //add for GraphicFilterDialog 73*cdf0e10cSrcweir #include "cuitabarea.hxx" //add for SvxAreaTabDialog 74*cdf0e10cSrcweir #include "cuitabline.hxx" //add for SvxLineTabDialog 75*cdf0e10cSrcweir #include "measure.hxx" //add for SvxMeasureDialog 76*cdf0e10cSrcweir #include "connect.hxx" //add for SvxConnectionDialog 77*cdf0e10cSrcweir #include "dbregister.hxx" // add for DatabaseRegistrationDialog 78*cdf0e10cSrcweir #include "cuioptgenrl.hxx" //add for SvxGeneralTabPage 79*cdf0e10cSrcweir #include "optasian.hxx" 80*cdf0e10cSrcweir #include "insdlg.hxx" 81*cdf0e10cSrcweir #include "pastedlg.hxx" 82*cdf0e10cSrcweir #include "linkdlg.hxx" 83*cdf0e10cSrcweir #include "SpellDialog.hxx" 84*cdf0e10cSrcweir #include "cfg.hxx" //add for SvxConfigDialog 85*cdf0e10cSrcweir #include "numpages.hxx" // add for 86*cdf0e10cSrcweir #include "paragrph.hxx" //add for 87*cdf0e10cSrcweir #include "tabstpge.hxx" // add for 88*cdf0e10cSrcweir #include "textattr.hxx" // add for SvxTextAttrPage 89*cdf0e10cSrcweir #include "backgrnd.hxx" //add for SvxBackgroundTabPage 90*cdf0e10cSrcweir #include "border.hxx" //add for SvxBorderTabPage 91*cdf0e10cSrcweir #include "chardlg.hxx" //add for SvxCharNamePage,SvxCharEffectsPage,SvxCharPositionPage,SvxCharTwoLinesPage 92*cdf0e10cSrcweir #include "page.hxx" //add for SvxPageDescPage 93*cdf0e10cSrcweir #include "postdlg.hxx" //add for SvxPostItDialog 94*cdf0e10cSrcweir #include "grfpage.hxx" //add for SvxGrfCropPage 95*cdf0e10cSrcweir #include "scriptdlg.hxx" // for ScriptOrgDialog 96*cdf0e10cSrcweir #include "selector.hxx" // for SvxScriptSelectorDialog 97*cdf0e10cSrcweir #include "macropg.hxx" // for SvxMacroAssignDlg 98*cdf0e10cSrcweir #include "sdrcelldlg.hxx" 99*cdf0e10cSrcweir #include "newtabledlg.hxx" 100*cdf0e10cSrcweir #include "macroass.hxx" 101*cdf0e10cSrcweir #include "acccfg.hxx" 102*cdf0e10cSrcweir #include "insrc.hxx" 103*cdf0e10cSrcweir #include "passwdomdlg.hxx" 104*cdf0e10cSrcweir #include "hyphen.hxx" 105*cdf0e10cSrcweir #include "thesdlg.hxx" 106*cdf0e10cSrcweir #include "about.hxx" 107*cdf0e10cSrcweir #include "dialmgr.hxx" 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir using namespace ::com::sun::star; 110*cdf0e10cSrcweir using namespace ::com::sun::star::frame; 111*cdf0e10cSrcweir using namespace ::com::sun::star::container; 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir using ::com::sun::star::uno::Reference; 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir using namespace svx; 116*cdf0e10cSrcweir // AbstractTabDialog implementations just forwards everything to the dialog 117*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl) 118*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl) 119*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl); 120*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); 121*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl); 122*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl); 123*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl); 124*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractHyphenWordDialog_Impl) 125*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractThesaurusDialog_Impl) 126*cdf0e10cSrcweir 127*cdf0e10cSrcweir AbstractSvxZoomDialog_Impl::~AbstractSvxZoomDialog_Impl() \ 128*cdf0e10cSrcweir { 129*cdf0e10cSrcweir delete pDlg; 130*cdf0e10cSrcweir } 131*cdf0e10cSrcweir short AbstractSvxZoomDialog_Impl::Execute() 132*cdf0e10cSrcweir { 133*cdf0e10cSrcweir return pDlg->Execute(); 134*cdf0e10cSrcweir } 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir //IMPL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl); 137*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSearchProgress_Impl); 138*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTakeProgress_Impl); 139*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractTitleDialog_Impl); 140*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractScriptSelectorDialog_Impl); 141*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl); 142*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractURLDlg_Impl); 143*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl); 144*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl); 145*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl); 146*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl); 147*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl); 148*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl); 149*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl); 150*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl); 151*cdf0e10cSrcweir 152*cdf0e10cSrcweir // #i68101# 153*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl); 154*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl); 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl); 157*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl); 158*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxMultiFileDialog_Impl); 159*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl); 160*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl); 161*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl); 162*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl); 163*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractPasteDialog_Impl); 164*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl); 165*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractLinksDialog_Impl); 166*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSpellDialog_Impl); 167*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractSvxPostItDialog_Impl); 168*cdf0e10cSrcweir IMPL_ABSTDLG_BASE(AbstractPasswordToOpenModifyDialog_Impl); 169*cdf0e10cSrcweir 170*cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////// 171*cdf0e10cSrcweir // VclAbstractDialog2_Impl 172*cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////// 173*cdf0e10cSrcweir 174*cdf0e10cSrcweir // virtual 175*cdf0e10cSrcweir VclAbstractDialog2_Impl::~VclAbstractDialog2_Impl() 176*cdf0e10cSrcweir { 177*cdf0e10cSrcweir delete m_pDlg; 178*cdf0e10cSrcweir } 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir // virtual 181*cdf0e10cSrcweir void VclAbstractDialog2_Impl::StartExecuteModal( const Link& rEndDialogHdl ) 182*cdf0e10cSrcweir { 183*cdf0e10cSrcweir m_aEndDlgHdl = rEndDialogHdl; 184*cdf0e10cSrcweir m_pDlg->StartExecuteModal( 185*cdf0e10cSrcweir LINK( this, VclAbstractDialog2_Impl, EndDialogHdl ) ); 186*cdf0e10cSrcweir } 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir // virtual 189*cdf0e10cSrcweir long VclAbstractDialog2_Impl::GetResult() 190*cdf0e10cSrcweir { 191*cdf0e10cSrcweir return m_pDlg->GetResult(); 192*cdf0e10cSrcweir } 193*cdf0e10cSrcweir 194*cdf0e10cSrcweir IMPL_LINK( VclAbstractDialog2_Impl, EndDialogHdl, Dialog*, pDlg ) 195*cdf0e10cSrcweir { 196*cdf0e10cSrcweir if ( pDlg != m_pDlg ) 197*cdf0e10cSrcweir { 198*cdf0e10cSrcweir DBG_ERRORFILE( "VclAbstractDialog2_Impl::EndDialogHdl(): wrong dialog" ); 199*cdf0e10cSrcweir } 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir m_aEndDlgHdl.Call( this ); 202*cdf0e10cSrcweir m_aEndDlgHdl = Link(); 203*cdf0e10cSrcweir 204*cdf0e10cSrcweir return 0L; 205*cdf0e10cSrcweir } 206*cdf0e10cSrcweir 207*cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////// 208*cdf0e10cSrcweir 209*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) 210*cdf0e10cSrcweir { 211*cdf0e10cSrcweir pDlg->SetCurPageId( nId ); 212*cdf0e10cSrcweir } 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const 215*cdf0e10cSrcweir { 216*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 217*cdf0e10cSrcweir } 218*cdf0e10cSrcweir 219*cdf0e10cSrcweir const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) 220*cdf0e10cSrcweir { 221*cdf0e10cSrcweir return pDlg->GetInputRanges( pItem ); 222*cdf0e10cSrcweir } 223*cdf0e10cSrcweir 224*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) 225*cdf0e10cSrcweir { 226*cdf0e10cSrcweir pDlg->SetInputSet( pInSet ); 227*cdf0e10cSrcweir } 228*cdf0e10cSrcweir //From class Window. 229*cdf0e10cSrcweir void AbstractTabDialog_Impl::SetText( const XubString& rStr ) 230*cdf0e10cSrcweir { 231*cdf0e10cSrcweir pDlg->SetText( rStr ); 232*cdf0e10cSrcweir } 233*cdf0e10cSrcweir String AbstractTabDialog_Impl::GetText() const 234*cdf0e10cSrcweir { 235*cdf0e10cSrcweir return pDlg->GetText(); 236*cdf0e10cSrcweir } 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir 239*cdf0e10cSrcweir const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const 240*cdf0e10cSrcweir { 241*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 242*cdf0e10cSrcweir } 243*cdf0e10cSrcweir 244*cdf0e10cSrcweir void AbstractSfxDialog_Impl::SetText( const XubString& rStr ) 245*cdf0e10cSrcweir { 246*cdf0e10cSrcweir pDlg->SetText( rStr ); 247*cdf0e10cSrcweir } 248*cdf0e10cSrcweir 249*cdf0e10cSrcweir String AbstractSfxDialog_Impl::GetText() const 250*cdf0e10cSrcweir { 251*cdf0e10cSrcweir return pDlg->GetText(); 252*cdf0e10cSrcweir } 253*cdf0e10cSrcweir 254*cdf0e10cSrcweir SvxDistributeHorizontal AbstractSvxDistributeDialog_Impl::GetDistributeHor()const 255*cdf0e10cSrcweir { 256*cdf0e10cSrcweir return pDlg->GetDistributeHor(); 257*cdf0e10cSrcweir } 258*cdf0e10cSrcweir SvxDistributeVertical AbstractSvxDistributeDialog_Impl::GetDistributeVer()const 259*cdf0e10cSrcweir { 260*cdf0e10cSrcweir return pDlg->GetDistributeVer(); 261*cdf0e10cSrcweir } 262*cdf0e10cSrcweir 263*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::EndDialog(long nResult) 264*cdf0e10cSrcweir { 265*cdf0e10cSrcweir pDlg->EndDialog(nResult); 266*cdf0e10cSrcweir } 267*cdf0e10cSrcweir 268*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::EnableRubySupport( sal_Bool _bVal ) 269*cdf0e10cSrcweir { 270*cdf0e10cSrcweir pDlg->EnableRubySupport(_bVal); 271*cdf0e10cSrcweir } 272*cdf0e10cSrcweir 273*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetByCharacter( sal_Bool _bByCharacter ) 274*cdf0e10cSrcweir { 275*cdf0e10cSrcweir pDlg->SetByCharacter(_bByCharacter); 276*cdf0e10cSrcweir } 277*cdf0e10cSrcweir 278*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetConversionDirectionState( sal_Bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection ) 279*cdf0e10cSrcweir { 280*cdf0e10cSrcweir pDlg->SetConversionDirectionState(_bTryBothDirections, _ePrimaryConversionDirection); 281*cdf0e10cSrcweir } 282*cdf0e10cSrcweir 283*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType ) 284*cdf0e10cSrcweir { 285*cdf0e10cSrcweir pDlg->SetConversionFormat(_eType); 286*cdf0e10cSrcweir } 287*cdf0e10cSrcweir 288*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetOptionsChangedHdl( const Link& _rHdl ) 289*cdf0e10cSrcweir { 290*cdf0e10cSrcweir pDlg->SetOptionsChangedHdl(_rHdl ); 291*cdf0e10cSrcweir } 292*cdf0e10cSrcweir 293*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreHdl( const Link& _rHdl ) 294*cdf0e10cSrcweir { 295*cdf0e10cSrcweir pDlg->SetIgnoreHdl(_rHdl ); 296*cdf0e10cSrcweir } 297*cdf0e10cSrcweir 298*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreAllHdl( const Link& _rHdl ) 299*cdf0e10cSrcweir { 300*cdf0e10cSrcweir pDlg->SetIgnoreAllHdl(_rHdl ); 301*cdf0e10cSrcweir } 302*cdf0e10cSrcweir 303*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetChangeHdl( const Link& _rHdl ) 304*cdf0e10cSrcweir { 305*cdf0e10cSrcweir pDlg->SetChangeHdl(_rHdl ); 306*cdf0e10cSrcweir } 307*cdf0e10cSrcweir 308*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetChangeAllHdl( const Link& _rHdl ) 309*cdf0e10cSrcweir { 310*cdf0e10cSrcweir pDlg->SetChangeAllHdl(_rHdl ); 311*cdf0e10cSrcweir } 312*cdf0e10cSrcweir 313*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link& _rHdl ) 314*cdf0e10cSrcweir { 315*cdf0e10cSrcweir pDlg->SetClickByCharacterHdl(_rHdl ); 316*cdf0e10cSrcweir } 317*cdf0e10cSrcweir 318*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl( const Link& _rHdl ) 319*cdf0e10cSrcweir { 320*cdf0e10cSrcweir pDlg->SetConversionFormatChangedHdl(_rHdl ); 321*cdf0e10cSrcweir } 322*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetFindHdl( const Link& _rHdl ) 323*cdf0e10cSrcweir { 324*cdf0e10cSrcweir pDlg->SetFindHdl(_rHdl ); 325*cdf0e10cSrcweir } 326*cdf0e10cSrcweir 327*cdf0e10cSrcweir sal_Bool AbstractHangulHanjaConversionDialog_Impl::GetUseBothDirections( ) const 328*cdf0e10cSrcweir { 329*cdf0e10cSrcweir return pDlg->GetUseBothDirections(); 330*cdf0e10cSrcweir } 331*cdf0e10cSrcweir 332*cdf0e10cSrcweir editeng::HangulHanjaConversion::ConversionDirection AbstractHangulHanjaConversionDialog_Impl::GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const 333*cdf0e10cSrcweir { 334*cdf0e10cSrcweir return pDlg->GetDirection( _eDefaultDirection ); 335*cdf0e10cSrcweir } 336*cdf0e10cSrcweir 337*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::SetCurrentString( 338*cdf0e10cSrcweir const String& _rNewString, 339*cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rSuggestions, 340*cdf0e10cSrcweir bool _bOriginatesFromDocument 341*cdf0e10cSrcweir ) 342*cdf0e10cSrcweir { 343*cdf0e10cSrcweir pDlg->SetCurrentString(_rNewString,_rSuggestions,_bOriginatesFromDocument); 344*cdf0e10cSrcweir } 345*cdf0e10cSrcweir String AbstractHangulHanjaConversionDialog_Impl::GetCurrentString( ) const 346*cdf0e10cSrcweir { 347*cdf0e10cSrcweir return pDlg->GetCurrentString(); 348*cdf0e10cSrcweir } 349*cdf0e10cSrcweir editeng::HangulHanjaConversion::ConversionFormat AbstractHangulHanjaConversionDialog_Impl::GetConversionFormat( ) const 350*cdf0e10cSrcweir { 351*cdf0e10cSrcweir return pDlg->GetConversionFormat(); 352*cdf0e10cSrcweir } 353*cdf0e10cSrcweir 354*cdf0e10cSrcweir void AbstractHangulHanjaConversionDialog_Impl::FocusSuggestion( ) 355*cdf0e10cSrcweir { 356*cdf0e10cSrcweir pDlg->FocusSuggestion(); 357*cdf0e10cSrcweir } 358*cdf0e10cSrcweir 359*cdf0e10cSrcweir String AbstractHangulHanjaConversionDialog_Impl::GetCurrentSuggestion( ) const 360*cdf0e10cSrcweir { 361*cdf0e10cSrcweir return pDlg->GetCurrentSuggestion(); 362*cdf0e10cSrcweir } 363*cdf0e10cSrcweir 364*cdf0e10cSrcweir String AbstractThesaurusDialog_Impl::GetWord() 365*cdf0e10cSrcweir { 366*cdf0e10cSrcweir return pDlg->GetWord(); 367*cdf0e10cSrcweir }; 368*cdf0e10cSrcweir 369*cdf0e10cSrcweir sal_uInt16 AbstractThesaurusDialog_Impl::GetLanguage() const 370*cdf0e10cSrcweir { 371*cdf0e10cSrcweir return pDlg->GetLanguage(); 372*cdf0e10cSrcweir }; 373*cdf0e10cSrcweir 374*cdf0e10cSrcweir Window* AbstractThesaurusDialog_Impl::GetWindow() 375*cdf0e10cSrcweir { 376*cdf0e10cSrcweir return pDlg; 377*cdf0e10cSrcweir } 378*cdf0e10cSrcweir 379*cdf0e10cSrcweir void AbstractHyphenWordDialog_Impl::SelLeft() 380*cdf0e10cSrcweir { 381*cdf0e10cSrcweir pDlg->SelLeft(); 382*cdf0e10cSrcweir } 383*cdf0e10cSrcweir 384*cdf0e10cSrcweir void AbstractHyphenWordDialog_Impl::SelRight() 385*cdf0e10cSrcweir { 386*cdf0e10cSrcweir pDlg->SelRight(); 387*cdf0e10cSrcweir } 388*cdf0e10cSrcweir 389*cdf0e10cSrcweir Window* AbstractHyphenWordDialog_Impl::GetWindow() 390*cdf0e10cSrcweir { 391*cdf0e10cSrcweir return pDlg; 392*cdf0e10cSrcweir } 393*cdf0e10cSrcweir 394*cdf0e10cSrcweir Reference < com::sun::star::embed::XEmbeddedObject > AbstractInsertObjectDialog_Impl::GetObject() 395*cdf0e10cSrcweir { 396*cdf0e10cSrcweir return pDlg->GetObject(); 397*cdf0e10cSrcweir } 398*cdf0e10cSrcweir 399*cdf0e10cSrcweir sal_Bool AbstractInsertObjectDialog_Impl::IsCreateNew() 400*cdf0e10cSrcweir { 401*cdf0e10cSrcweir return pDlg->IsCreateNew(); 402*cdf0e10cSrcweir } 403*cdf0e10cSrcweir 404*cdf0e10cSrcweir ::Reference< ::com::sun::star::io::XInputStream > AbstractInsertObjectDialog_Impl::GetIconIfIconified( ::rtl::OUString* pGraphicMediaType ) 405*cdf0e10cSrcweir { 406*cdf0e10cSrcweir return pDlg->GetIconIfIconified( pGraphicMediaType ); 407*cdf0e10cSrcweir } 408*cdf0e10cSrcweir 409*cdf0e10cSrcweir void AbstractPasteDialog_Impl::Insert( SotFormatStringId nFormat, const String & rFormatName ) 410*cdf0e10cSrcweir { 411*cdf0e10cSrcweir pDlg->Insert( nFormat, rFormatName ); 412*cdf0e10cSrcweir } 413*cdf0e10cSrcweir 414*cdf0e10cSrcweir void AbstractPasteDialog_Impl::SetObjName( const SvGlobalName & rClass, const String & rObjName ) 415*cdf0e10cSrcweir { 416*cdf0e10cSrcweir pDlg->SetObjName( rClass, rObjName ); 417*cdf0e10cSrcweir } 418*cdf0e10cSrcweir 419*cdf0e10cSrcweir sal_uLong AbstractPasteDialog_Impl::GetFormat( const TransferableDataHelper& aHelper, 420*cdf0e10cSrcweir const DataFlavorExVector* pFormats, 421*cdf0e10cSrcweir const TransferableObjectDescriptor* pDesc ) 422*cdf0e10cSrcweir { 423*cdf0e10cSrcweir return pDlg->GetFormat( aHelper, pFormats, pDesc ); 424*cdf0e10cSrcweir } 425*cdf0e10cSrcweir 426*cdf0e10cSrcweir void AbstractFmShowColsDialog_Impl::SetColumns(const ::Reference< ::com::sun::star::container::XIndexContainer>& xCols) 427*cdf0e10cSrcweir { 428*cdf0e10cSrcweir pDlg->SetColumns(xCols); 429*cdf0e10cSrcweir } 430*cdf0e10cSrcweir 431*cdf0e10cSrcweir void AbstractSvxZoomDialog_Impl::SetLimits( sal_uInt16 nMin, sal_uInt16 nMax ) 432*cdf0e10cSrcweir { 433*cdf0e10cSrcweir pDlg->SetLimits( nMin, nMax ); 434*cdf0e10cSrcweir } 435*cdf0e10cSrcweir 436*cdf0e10cSrcweir void AbstractSvxZoomDialog_Impl::HideButton( sal_uInt16 nBtnId ) 437*cdf0e10cSrcweir { 438*cdf0e10cSrcweir pDlg->HideButton( nBtnId ); 439*cdf0e10cSrcweir } 440*cdf0e10cSrcweir 441*cdf0e10cSrcweir const SfxItemSet* AbstractSvxZoomDialog_Impl::GetOutputItemSet() const 442*cdf0e10cSrcweir { 443*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 444*cdf0e10cSrcweir } 445*cdf0e10cSrcweir 446*cdf0e10cSrcweir void AbstractSpellDialog_Impl::SetLanguage( sal_uInt16 nLang ) 447*cdf0e10cSrcweir { 448*cdf0e10cSrcweir pDlg->SetLanguage(nLang); 449*cdf0e10cSrcweir } 450*cdf0e10cSrcweir 451*cdf0e10cSrcweir sal_Bool AbstractSpellDialog_Impl::Close() 452*cdf0e10cSrcweir { 453*cdf0e10cSrcweir return pDlg->Close(); 454*cdf0e10cSrcweir } 455*cdf0e10cSrcweir 456*cdf0e10cSrcweir void AbstractSpellDialog_Impl::Invalidate() 457*cdf0e10cSrcweir { 458*cdf0e10cSrcweir pDlg->InvalidateDialog(); 459*cdf0e10cSrcweir } 460*cdf0e10cSrcweir 461*cdf0e10cSrcweir Window* AbstractSpellDialog_Impl::GetWindow() 462*cdf0e10cSrcweir { 463*cdf0e10cSrcweir return pDlg; 464*cdf0e10cSrcweir } 465*cdf0e10cSrcweir 466*cdf0e10cSrcweir SfxBindings& AbstractSpellDialog_Impl::GetBindings() 467*cdf0e10cSrcweir { 468*cdf0e10cSrcweir return pDlg->GetBindings(); 469*cdf0e10cSrcweir } 470*cdf0e10cSrcweir 471*cdf0e10cSrcweir void AbstractSearchProgress_Impl::Update() 472*cdf0e10cSrcweir { 473*cdf0e10cSrcweir pDlg->Update(); 474*cdf0e10cSrcweir } 475*cdf0e10cSrcweir 476*cdf0e10cSrcweir void AbstractSearchProgress_Impl::Sync() 477*cdf0e10cSrcweir { 478*cdf0e10cSrcweir pDlg-> Sync(); 479*cdf0e10cSrcweir } 480*cdf0e10cSrcweir 481*cdf0e10cSrcweir void AbstractSearchProgress_Impl::SetFileType( const String& rType ) 482*cdf0e10cSrcweir { 483*cdf0e10cSrcweir pDlg->SetFileType( rType ); 484*cdf0e10cSrcweir } 485*cdf0e10cSrcweir 486*cdf0e10cSrcweir void AbstractSearchProgress_Impl::SetDirectory( const INetURLObject& rURL ) 487*cdf0e10cSrcweir { 488*cdf0e10cSrcweir pDlg->SetDirectory( rURL ); 489*cdf0e10cSrcweir } 490*cdf0e10cSrcweir PLinkStub AbstractSearchProgress_Impl::GetLinkStubCleanUpHdl() 491*cdf0e10cSrcweir { 492*cdf0e10cSrcweir return SearchProgress::LinkStubCleanUpHdl; 493*cdf0e10cSrcweir } 494*cdf0e10cSrcweir 495*cdf0e10cSrcweir void AbstractTakeProgress_Impl::Update() 496*cdf0e10cSrcweir { 497*cdf0e10cSrcweir pDlg->Update(); 498*cdf0e10cSrcweir } 499*cdf0e10cSrcweir 500*cdf0e10cSrcweir void AbstractTakeProgress_Impl::Sync() 501*cdf0e10cSrcweir { 502*cdf0e10cSrcweir pDlg-> Sync(); 503*cdf0e10cSrcweir } 504*cdf0e10cSrcweir 505*cdf0e10cSrcweir void AbstractTakeProgress_Impl::SetFile( const INetURLObject& rURL ) 506*cdf0e10cSrcweir { 507*cdf0e10cSrcweir pDlg->SetFile( rURL ); 508*cdf0e10cSrcweir } 509*cdf0e10cSrcweir 510*cdf0e10cSrcweir PLinkStub AbstractTakeProgress_Impl::GetLinkStubCleanUpHdl() 511*cdf0e10cSrcweir { 512*cdf0e10cSrcweir return TakeProgress::LinkStubCleanUpHdl; 513*cdf0e10cSrcweir } 514*cdf0e10cSrcweir 515*cdf0e10cSrcweir String AbstractTitleDialog_Impl::GetTitle() const 516*cdf0e10cSrcweir { 517*cdf0e10cSrcweir return pDlg->GetTitle(); 518*cdf0e10cSrcweir } 519*cdf0e10cSrcweir 520*cdf0e10cSrcweir sal_uLong AbstractGalleryIdDialog_Impl::GetId() const 521*cdf0e10cSrcweir { 522*cdf0e10cSrcweir return pDlg->GetId(); 523*cdf0e10cSrcweir } 524*cdf0e10cSrcweir 525*cdf0e10cSrcweir void VclAbstractRefreshableDialog_Impl::Update() 526*cdf0e10cSrcweir { 527*cdf0e10cSrcweir pDlg->Update(); 528*cdf0e10cSrcweir } 529*cdf0e10cSrcweir 530*cdf0e10cSrcweir void VclAbstractRefreshableDialog_Impl::Sync() 531*cdf0e10cSrcweir { 532*cdf0e10cSrcweir pDlg-> Sync(); 533*cdf0e10cSrcweir } 534*cdf0e10cSrcweir 535*cdf0e10cSrcweir String AbstractURLDlg_Impl::GetURL() const 536*cdf0e10cSrcweir { 537*cdf0e10cSrcweir return pDlg->GetURL(); 538*cdf0e10cSrcweir } 539*cdf0e10cSrcweir 540*cdf0e10cSrcweir String AbstractURLDlg_Impl::GetAltText() const 541*cdf0e10cSrcweir { 542*cdf0e10cSrcweir return pDlg->GetAltText(); 543*cdf0e10cSrcweir } 544*cdf0e10cSrcweir 545*cdf0e10cSrcweir String AbstractURLDlg_Impl::GetDesc() const 546*cdf0e10cSrcweir { 547*cdf0e10cSrcweir return pDlg->GetDesc(); 548*cdf0e10cSrcweir } 549*cdf0e10cSrcweir 550*cdf0e10cSrcweir String AbstractURLDlg_Impl::GetTarget() const 551*cdf0e10cSrcweir { 552*cdf0e10cSrcweir return pDlg->GetTarget(); 553*cdf0e10cSrcweir } 554*cdf0e10cSrcweir 555*cdf0e10cSrcweir String AbstractURLDlg_Impl::GetName() const 556*cdf0e10cSrcweir { 557*cdf0e10cSrcweir return pDlg->GetName(); 558*cdf0e10cSrcweir } 559*cdf0e10cSrcweir 560*cdf0e10cSrcweir void AbstractSvxHlinkDlgMarkWnd_Impl::Hide( sal_uInt16 nFlags ) 561*cdf0e10cSrcweir { 562*cdf0e10cSrcweir ((Window*)pDlg)->Hide( nFlags ); 563*cdf0e10cSrcweir } 564*cdf0e10cSrcweir 565*cdf0e10cSrcweir void AbstractSvxHlinkDlgMarkWnd_Impl::SetSizePixel( const Size& rNewSize ) 566*cdf0e10cSrcweir { 567*cdf0e10cSrcweir pDlg->SetSizePixel( rNewSize ); 568*cdf0e10cSrcweir } 569*cdf0e10cSrcweir 570*cdf0e10cSrcweir Size AbstractSvxHlinkDlgMarkWnd_Impl::GetSizePixel() const 571*cdf0e10cSrcweir { 572*cdf0e10cSrcweir return pDlg->GetSizePixel(); 573*cdf0e10cSrcweir } 574*cdf0e10cSrcweir 575*cdf0e10cSrcweir sal_Bool AbstractSvxHlinkDlgMarkWnd_Impl::IsVisible( ) const 576*cdf0e10cSrcweir { 577*cdf0e10cSrcweir return (( Window* )pDlg)->IsVisible(); 578*cdf0e10cSrcweir } 579*cdf0e10cSrcweir 580*cdf0e10cSrcweir void AbstractSvxHlinkDlgMarkWnd_Impl::Invalidate( sal_uInt16 nFlags ) 581*cdf0e10cSrcweir { 582*cdf0e10cSrcweir (( Window* )pDlg)->Invalidate(nFlags); 583*cdf0e10cSrcweir } 584*cdf0e10cSrcweir 585*cdf0e10cSrcweir sal_Bool AbstractSvxHlinkDlgMarkWnd_Impl::MoveTo( Point aNewPos )const 586*cdf0e10cSrcweir { 587*cdf0e10cSrcweir return pDlg->MoveTo(aNewPos); 588*cdf0e10cSrcweir } 589*cdf0e10cSrcweir 590*cdf0e10cSrcweir sal_Bool AbstractSvxHlinkDlgMarkWnd_Impl::ConnectToDialog( sal_Bool bDoit )const 591*cdf0e10cSrcweir { 592*cdf0e10cSrcweir return pDlg->ConnectToDialog(bDoit); 593*cdf0e10cSrcweir } 594*cdf0e10cSrcweir 595*cdf0e10cSrcweir void AbstractSvxHlinkDlgMarkWnd_Impl::RefreshTree ( String aStrURL ) 596*cdf0e10cSrcweir { 597*cdf0e10cSrcweir pDlg->RefreshTree(aStrURL); 598*cdf0e10cSrcweir } 599*cdf0e10cSrcweir 600*cdf0e10cSrcweir void AbstractSvxHlinkDlgMarkWnd_Impl::SelectEntry ( String aStrMark ) 601*cdf0e10cSrcweir { 602*cdf0e10cSrcweir pDlg->SelectEntry(aStrMark); 603*cdf0e10cSrcweir } 604*cdf0e10cSrcweir 605*cdf0e10cSrcweir sal_uInt16 AbstractSvxHlinkDlgMarkWnd_Impl::SetError( sal_uInt16 nError) 606*cdf0e10cSrcweir { 607*cdf0e10cSrcweir return pDlg->SetError(nError); 608*cdf0e10cSrcweir } 609*cdf0e10cSrcweir 610*cdf0e10cSrcweir sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetOther() 611*cdf0e10cSrcweir { 612*cdf0e10cSrcweir return pDlg->GetOther(); 613*cdf0e10cSrcweir } 614*cdf0e10cSrcweir 615*cdf0e10cSrcweir sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetShorter() 616*cdf0e10cSrcweir { 617*cdf0e10cSrcweir return pDlg->GetShorter(); 618*cdf0e10cSrcweir } 619*cdf0e10cSrcweir 620*cdf0e10cSrcweir sal_uInt16 AbstractSvxSearchSimilarityDialog_Impl::GetLonger() 621*cdf0e10cSrcweir { 622*cdf0e10cSrcweir return pDlg-> GetLonger(); 623*cdf0e10cSrcweir } 624*cdf0e10cSrcweir 625*cdf0e10cSrcweir sal_Bool AbstractSvxSearchSimilarityDialog_Impl::IsRelaxed() 626*cdf0e10cSrcweir { 627*cdf0e10cSrcweir return pDlg-> IsRelaxed(); 628*cdf0e10cSrcweir } 629*cdf0e10cSrcweir 630*cdf0e10cSrcweir // AbstractSvxTransformTabDialog implementations just forwards everything to the dialog 631*cdf0e10cSrcweir void AbstractSvxTransformTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) 632*cdf0e10cSrcweir { 633*cdf0e10cSrcweir pDlg->SetCurPageId( nId ); 634*cdf0e10cSrcweir } 635*cdf0e10cSrcweir const SfxItemSet* AbstractSvxTransformTabDialog_Impl::GetOutputItemSet() const 636*cdf0e10cSrcweir { 637*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 638*cdf0e10cSrcweir } 639*cdf0e10cSrcweir // 640*cdf0e10cSrcweir const sal_uInt16* AbstractSvxTransformTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) 641*cdf0e10cSrcweir { 642*cdf0e10cSrcweir return pDlg->GetInputRanges( pItem ); 643*cdf0e10cSrcweir } 644*cdf0e10cSrcweir // 645*cdf0e10cSrcweir void AbstractSvxTransformTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) 646*cdf0e10cSrcweir { 647*cdf0e10cSrcweir pDlg->SetInputSet( pInSet ); 648*cdf0e10cSrcweir } 649*cdf0e10cSrcweir //From class Window. 650*cdf0e10cSrcweir void AbstractSvxTransformTabDialog_Impl::SetText( const XubString& rStr ) 651*cdf0e10cSrcweir { 652*cdf0e10cSrcweir pDlg->SetText( rStr ); 653*cdf0e10cSrcweir } 654*cdf0e10cSrcweir String AbstractSvxTransformTabDialog_Impl::GetText() const 655*cdf0e10cSrcweir { 656*cdf0e10cSrcweir return pDlg->GetText(); 657*cdf0e10cSrcweir } 658*cdf0e10cSrcweir void AbstractSvxTransformTabDialog_Impl::SetValidateFramePosLink( const Link& rLink ) 659*cdf0e10cSrcweir { 660*cdf0e10cSrcweir pDlg->SetValidateFramePosLink( rLink ); 661*cdf0e10cSrcweir } 662*cdf0e10cSrcweir 663*cdf0e10cSrcweir // AbstractSvxCaptionDialog implementations just forwards everything to the dialog 664*cdf0e10cSrcweir void AbstractSvxCaptionDialog_Impl::SetCurPageId( sal_uInt16 nId ) 665*cdf0e10cSrcweir { 666*cdf0e10cSrcweir pDlg->SetCurPageId( nId ); 667*cdf0e10cSrcweir } 668*cdf0e10cSrcweir const SfxItemSet* AbstractSvxCaptionDialog_Impl::GetOutputItemSet() const 669*cdf0e10cSrcweir { 670*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 671*cdf0e10cSrcweir } 672*cdf0e10cSrcweir // 673*cdf0e10cSrcweir const sal_uInt16* AbstractSvxCaptionDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) 674*cdf0e10cSrcweir { 675*cdf0e10cSrcweir return pDlg->GetInputRanges( pItem ); 676*cdf0e10cSrcweir } 677*cdf0e10cSrcweir // 678*cdf0e10cSrcweir void AbstractSvxCaptionDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) 679*cdf0e10cSrcweir { 680*cdf0e10cSrcweir pDlg->SetInputSet( pInSet ); 681*cdf0e10cSrcweir } 682*cdf0e10cSrcweir //From class Window. 683*cdf0e10cSrcweir void AbstractSvxCaptionDialog_Impl::SetText( const XubString& rStr ) 684*cdf0e10cSrcweir { 685*cdf0e10cSrcweir pDlg->SetText( rStr ); 686*cdf0e10cSrcweir } 687*cdf0e10cSrcweir String AbstractSvxCaptionDialog_Impl::GetText() const 688*cdf0e10cSrcweir { 689*cdf0e10cSrcweir return pDlg->GetText(); 690*cdf0e10cSrcweir } 691*cdf0e10cSrcweir void AbstractSvxCaptionDialog_Impl::SetValidateFramePosLink( const Link& rLink ) 692*cdf0e10cSrcweir { 693*cdf0e10cSrcweir pDlg->SetValidateFramePosLink( rLink ); 694*cdf0e10cSrcweir } 695*cdf0e10cSrcweir 696*cdf0e10cSrcweir sal_Int32 AbstractSvxJSearchOptionsDialog_Impl::GetTransliterationFlags() const 697*cdf0e10cSrcweir { 698*cdf0e10cSrcweir return pDlg->GetTransliterationFlags(); 699*cdf0e10cSrcweir } 700*cdf0e10cSrcweir 701*cdf0e10cSrcweir void AbstractFmInputRecordNoDialog_Impl::SetValue(long nNew) 702*cdf0e10cSrcweir { 703*cdf0e10cSrcweir pDlg->SetValue(nNew); 704*cdf0e10cSrcweir } 705*cdf0e10cSrcweir 706*cdf0e10cSrcweir long AbstractFmInputRecordNoDialog_Impl::GetValue() const 707*cdf0e10cSrcweir { 708*cdf0e10cSrcweir return pDlg->GetValue(); 709*cdf0e10cSrcweir } 710*cdf0e10cSrcweir 711*cdf0e10cSrcweir ::Reference< 712*cdf0e10cSrcweir ::com::sun::star::linguistic2::XDictionary > AbstractSvxNewDictionaryDialog_Impl::GetNewDictionary() 713*cdf0e10cSrcweir { 714*cdf0e10cSrcweir return pDlg->GetNewDictionary(); 715*cdf0e10cSrcweir } 716*cdf0e10cSrcweir 717*cdf0e10cSrcweir void AbstractSvxNameDialog_Impl::GetName( String& rName ) 718*cdf0e10cSrcweir { 719*cdf0e10cSrcweir pDlg->GetName( rName ); 720*cdf0e10cSrcweir } 721*cdf0e10cSrcweir 722*cdf0e10cSrcweir void AbstractSvxNameDialog_Impl::SetCheckNameHdl( const Link& rLink, bool bCheckImmediately ) 723*cdf0e10cSrcweir { 724*cdf0e10cSrcweir aCheckNameHdl = rLink; 725*cdf0e10cSrcweir if( rLink.IsSet() ) 726*cdf0e10cSrcweir pDlg->SetCheckNameHdl( LINK(this, AbstractSvxNameDialog_Impl, CheckNameHdl), bCheckImmediately ); 727*cdf0e10cSrcweir else 728*cdf0e10cSrcweir pDlg->SetCheckNameHdl( Link(), bCheckImmediately ); 729*cdf0e10cSrcweir } 730*cdf0e10cSrcweir void AbstractSvxNameDialog_Impl::SetEditHelpId(const rtl::OString& aHelpId) 731*cdf0e10cSrcweir { 732*cdf0e10cSrcweir pDlg->SetEditHelpId( aHelpId ); 733*cdf0e10cSrcweir } 734*cdf0e10cSrcweir void AbstractSvxNameDialog_Impl::SetHelpId( const rtl::OString& aHelpId ) 735*cdf0e10cSrcweir { 736*cdf0e10cSrcweir pDlg->SetHelpId( aHelpId ); 737*cdf0e10cSrcweir } 738*cdf0e10cSrcweir void AbstractSvxNameDialog_Impl::SetText( const XubString& rStr ) 739*cdf0e10cSrcweir { 740*cdf0e10cSrcweir pDlg->SetText( rStr ); 741*cdf0e10cSrcweir } 742*cdf0e10cSrcweir IMPL_LINK( AbstractSvxNameDialog_Impl, CheckNameHdl, Window*, EMPTYARG ) 743*cdf0e10cSrcweir { 744*cdf0e10cSrcweir if( aCheckNameHdl.IsSet() ) 745*cdf0e10cSrcweir return aCheckNameHdl.Call(this); 746*cdf0e10cSrcweir return 0; 747*cdf0e10cSrcweir } 748*cdf0e10cSrcweir 749*cdf0e10cSrcweir void AbstractSvxObjectNameDialog_Impl::GetName(String& rName) 750*cdf0e10cSrcweir { 751*cdf0e10cSrcweir pDlg->GetName(rName); 752*cdf0e10cSrcweir } 753*cdf0e10cSrcweir 754*cdf0e10cSrcweir void AbstractSvxObjectNameDialog_Impl::SetCheckNameHdl(const Link& rLink, bool bCheckImmediately) 755*cdf0e10cSrcweir { 756*cdf0e10cSrcweir aCheckNameHdl = rLink; 757*cdf0e10cSrcweir 758*cdf0e10cSrcweir if(rLink.IsSet()) 759*cdf0e10cSrcweir { 760*cdf0e10cSrcweir pDlg->SetCheckNameHdl(LINK(this, AbstractSvxObjectNameDialog_Impl, CheckNameHdl), bCheckImmediately); 761*cdf0e10cSrcweir } 762*cdf0e10cSrcweir else 763*cdf0e10cSrcweir { 764*cdf0e10cSrcweir pDlg->SetCheckNameHdl(Link(), bCheckImmediately); 765*cdf0e10cSrcweir } 766*cdf0e10cSrcweir } 767*cdf0e10cSrcweir 768*cdf0e10cSrcweir IMPL_LINK(AbstractSvxObjectNameDialog_Impl, CheckNameHdl, Window*, EMPTYARG) 769*cdf0e10cSrcweir { 770*cdf0e10cSrcweir if(aCheckNameHdl.IsSet()) 771*cdf0e10cSrcweir { 772*cdf0e10cSrcweir return aCheckNameHdl.Call(this); 773*cdf0e10cSrcweir } 774*cdf0e10cSrcweir 775*cdf0e10cSrcweir return 0; 776*cdf0e10cSrcweir } 777*cdf0e10cSrcweir 778*cdf0e10cSrcweir void AbstractSvxObjectTitleDescDialog_Impl::GetTitle(String& rTitle) 779*cdf0e10cSrcweir { 780*cdf0e10cSrcweir pDlg->GetTitle(rTitle); 781*cdf0e10cSrcweir } 782*cdf0e10cSrcweir 783*cdf0e10cSrcweir void AbstractSvxObjectTitleDescDialog_Impl::GetDescription(String& rDescription) 784*cdf0e10cSrcweir { 785*cdf0e10cSrcweir pDlg->GetDescription(rDescription); 786*cdf0e10cSrcweir } 787*cdf0e10cSrcweir 788*cdf0e10cSrcweir void AbstractSvxMessDialog_Impl::SetButtonText( sal_uInt16 nBtnId, const String& rNewTxt ) 789*cdf0e10cSrcweir { 790*cdf0e10cSrcweir pDlg->SetButtonText( nBtnId, rNewTxt ); 791*cdf0e10cSrcweir } 792*cdf0e10cSrcweir 793*cdf0e10cSrcweir String AbstractSvxMultiPathDialog_Impl::GetPath() const 794*cdf0e10cSrcweir { 795*cdf0e10cSrcweir return pDlg->GetPath(); 796*cdf0e10cSrcweir } 797*cdf0e10cSrcweir 798*cdf0e10cSrcweir void AbstractSvxMultiPathDialog_Impl::SetPath( const String& rPath ) 799*cdf0e10cSrcweir { 800*cdf0e10cSrcweir pDlg->SetPath( rPath ); 801*cdf0e10cSrcweir } 802*cdf0e10cSrcweir 803*cdf0e10cSrcweir void AbstractSvxMultiPathDialog_Impl::EnableRadioButtonMode() 804*cdf0e10cSrcweir { 805*cdf0e10cSrcweir pDlg->EnableRadioButtonMode(); 806*cdf0e10cSrcweir } 807*cdf0e10cSrcweir 808*cdf0e10cSrcweir void AbstractSvxMultiPathDialog_Impl::SetTitle( const String& rNewTitle ) 809*cdf0e10cSrcweir { 810*cdf0e10cSrcweir pDlg->SetText( rNewTitle ); 811*cdf0e10cSrcweir } 812*cdf0e10cSrcweir 813*cdf0e10cSrcweir String AbstractSvxMultiFileDialog_Impl::GetPath() const 814*cdf0e10cSrcweir { 815*cdf0e10cSrcweir return pDlg->GetPath(); 816*cdf0e10cSrcweir } 817*cdf0e10cSrcweir 818*cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::SetPath( const String& rPath ) 819*cdf0e10cSrcweir { 820*cdf0e10cSrcweir pDlg->SetPath( rPath ); 821*cdf0e10cSrcweir } 822*cdf0e10cSrcweir 823*cdf0e10cSrcweir String AbstractSvxMultiFileDialog_Impl::GetFiles() const 824*cdf0e10cSrcweir { 825*cdf0e10cSrcweir return pDlg->GetFiles(); 826*cdf0e10cSrcweir } 827*cdf0e10cSrcweir 828*cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::SetFiles( const String& rPath ) 829*cdf0e10cSrcweir { 830*cdf0e10cSrcweir pDlg->SetFiles( rPath ); 831*cdf0e10cSrcweir } 832*cdf0e10cSrcweir 833*cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::SetClassPathMode() 834*cdf0e10cSrcweir { 835*cdf0e10cSrcweir pDlg->SetClassPathMode(); 836*cdf0e10cSrcweir } 837*cdf0e10cSrcweir 838*cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::EnableRadioButtonMode() 839*cdf0e10cSrcweir { 840*cdf0e10cSrcweir pDlg->EnableRadioButtonMode(); 841*cdf0e10cSrcweir } 842*cdf0e10cSrcweir 843*cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::SetTitle( const String& rNewTitle ) 844*cdf0e10cSrcweir { 845*cdf0e10cSrcweir pDlg->SetText( rNewTitle ); 846*cdf0e10cSrcweir } 847*cdf0e10cSrcweir 848*cdf0e10cSrcweir void AbstractSvxMultiFileDialog_Impl::SetHelpId( const rtl::OString& aHelpId ) 849*cdf0e10cSrcweir { 850*cdf0e10cSrcweir pDlg->SetHelpId( aHelpId ); 851*cdf0e10cSrcweir } 852*cdf0e10cSrcweir 853*cdf0e10cSrcweir Window * AbstractSvxHpLinkDlg_Impl::GetWindow() 854*cdf0e10cSrcweir { 855*cdf0e10cSrcweir return (Window *)pDlg; 856*cdf0e10cSrcweir } 857*cdf0e10cSrcweir 858*cdf0e10cSrcweir sal_Bool AbstractSvxHpLinkDlg_Impl::QueryClose() 859*cdf0e10cSrcweir { 860*cdf0e10cSrcweir return pDlg->QueryClose(); 861*cdf0e10cSrcweir } 862*cdf0e10cSrcweir 863*cdf0e10cSrcweir 864*cdf0e10cSrcweir void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link& lnk) 865*cdf0e10cSrcweir { 866*cdf0e10cSrcweir pDlg->SetFoundHandler(lnk); 867*cdf0e10cSrcweir } 868*cdf0e10cSrcweir void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link& lnk) 869*cdf0e10cSrcweir { 870*cdf0e10cSrcweir pDlg->SetCanceledNotFoundHdl(lnk); 871*cdf0e10cSrcweir } 872*cdf0e10cSrcweir void AbstractFmSearchDialog_Impl::SetActiveField(const String& strField) 873*cdf0e10cSrcweir { 874*cdf0e10cSrcweir pDlg->SetActiveField(strField); 875*cdf0e10cSrcweir } 876*cdf0e10cSrcweir 877*cdf0e10cSrcweir Graphic AbstractGraphicFilterDialog_Impl::GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY ) 878*cdf0e10cSrcweir { 879*cdf0e10cSrcweir return pDlg->GetFilteredGraphic( rGraphic, fScaleX, fScaleY ); 880*cdf0e10cSrcweir } 881*cdf0e10cSrcweir 882*cdf0e10cSrcweir // AbstractSvxAreaTabDialog implementations just forwards everything to the dialog 883*cdf0e10cSrcweir void AbstractSvxAreaTabDialog_Impl::SetCurPageId( sal_uInt16 nId ) 884*cdf0e10cSrcweir { 885*cdf0e10cSrcweir pDlg->SetCurPageId( nId ); 886*cdf0e10cSrcweir } 887*cdf0e10cSrcweir 888*cdf0e10cSrcweir const SfxItemSet* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const 889*cdf0e10cSrcweir { 890*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 891*cdf0e10cSrcweir } 892*cdf0e10cSrcweir 893*cdf0e10cSrcweir const sal_uInt16* AbstractSvxAreaTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem ) 894*cdf0e10cSrcweir { 895*cdf0e10cSrcweir return pDlg->GetInputRanges( pItem ); 896*cdf0e10cSrcweir } 897*cdf0e10cSrcweir 898*cdf0e10cSrcweir void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet ) 899*cdf0e10cSrcweir { 900*cdf0e10cSrcweir pDlg->SetInputSet( pInSet ); 901*cdf0e10cSrcweir } 902*cdf0e10cSrcweir //From class Window. 903*cdf0e10cSrcweir void AbstractSvxAreaTabDialog_Impl::SetText( const XubString& rStr ) 904*cdf0e10cSrcweir { 905*cdf0e10cSrcweir pDlg->SetText( rStr ); 906*cdf0e10cSrcweir } 907*cdf0e10cSrcweir String AbstractSvxAreaTabDialog_Impl::GetText() const 908*cdf0e10cSrcweir { 909*cdf0e10cSrcweir return pDlg->GetText(); 910*cdf0e10cSrcweir } 911*cdf0e10cSrcweir 912*cdf0e10cSrcweir void AbstractSvxAreaTabDialog_Impl::DontDeleteColorTable() 913*cdf0e10cSrcweir { 914*cdf0e10cSrcweir return pDlg->DontDeleteColorTable(); 915*cdf0e10cSrcweir } 916*cdf0e10cSrcweir 917*cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::SetText( const XubString& rStr ) 918*cdf0e10cSrcweir { 919*cdf0e10cSrcweir pDlg->SetText( rStr ); 920*cdf0e10cSrcweir } 921*cdf0e10cSrcweir const SfxItemSet* AbstractSvxPostItDialog_Impl::GetOutputItemSet() const 922*cdf0e10cSrcweir { 923*cdf0e10cSrcweir return pDlg->GetOutputItemSet(); 924*cdf0e10cSrcweir } 925*cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::EnableTravel(sal_Bool bNext, sal_Bool bPrev) 926*cdf0e10cSrcweir { 927*cdf0e10cSrcweir pDlg->EnableTravel( bNext, bPrev ); 928*cdf0e10cSrcweir } 929*cdf0e10cSrcweir String AbstractSvxPostItDialog_Impl::GetNote() 930*cdf0e10cSrcweir { 931*cdf0e10cSrcweir return pDlg->GetNote(); 932*cdf0e10cSrcweir } 933*cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::SetNote(const String& rTxt) 934*cdf0e10cSrcweir { 935*cdf0e10cSrcweir pDlg->SetNote( rTxt ); 936*cdf0e10cSrcweir } 937*cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::ShowLastAuthor(const String& rAuthor, const String& rDate) 938*cdf0e10cSrcweir { 939*cdf0e10cSrcweir pDlg->ShowLastAuthor( rAuthor, rDate ); 940*cdf0e10cSrcweir } 941*cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::DontChangeAuthor() 942*cdf0e10cSrcweir { 943*cdf0e10cSrcweir pDlg->DontChangeAuthor(); 944*cdf0e10cSrcweir } 945*cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::HideAuthor() 946*cdf0e10cSrcweir { 947*cdf0e10cSrcweir pDlg->HideAuthor(); 948*cdf0e10cSrcweir } 949*cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::SetReadonlyPostIt(sal_Bool bDisable) 950*cdf0e10cSrcweir { 951*cdf0e10cSrcweir pDlg->SetReadonlyPostIt( bDisable ); 952*cdf0e10cSrcweir } 953*cdf0e10cSrcweir sal_Bool AbstractSvxPostItDialog_Impl::IsOkEnabled() const 954*cdf0e10cSrcweir { 955*cdf0e10cSrcweir return pDlg->IsOkEnabled(); 956*cdf0e10cSrcweir } 957*cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link& rLink ) 958*cdf0e10cSrcweir { 959*cdf0e10cSrcweir aNextHdl = rLink; 960*cdf0e10cSrcweir if( rLink.IsSet() ) 961*cdf0e10cSrcweir pDlg->SetNextHdl( LINK(this, AbstractSvxPostItDialog_Impl, NextHdl ) ); 962*cdf0e10cSrcweir else 963*cdf0e10cSrcweir pDlg->SetNextHdl( Link() ); 964*cdf0e10cSrcweir } 965*cdf0e10cSrcweir void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link& rLink ) 966*cdf0e10cSrcweir { 967*cdf0e10cSrcweir aPrevHdl = rLink; 968*cdf0e10cSrcweir if( rLink.IsSet() ) 969*cdf0e10cSrcweir pDlg->SetPrevHdl( LINK(this, AbstractSvxPostItDialog_Impl, PrevHdl ) ); 970*cdf0e10cSrcweir else 971*cdf0e10cSrcweir pDlg->SetPrevHdl( Link() ); 972*cdf0e10cSrcweir } 973*cdf0e10cSrcweir IMPL_LINK( AbstractSvxPostItDialog_Impl, NextHdl, Window*, EMPTYARG ) 974*cdf0e10cSrcweir { 975*cdf0e10cSrcweir if( aNextHdl.IsSet() ) 976*cdf0e10cSrcweir aNextHdl.Call(this); 977*cdf0e10cSrcweir return 0; 978*cdf0e10cSrcweir } 979*cdf0e10cSrcweir IMPL_LINK( AbstractSvxPostItDialog_Impl, PrevHdl, Window*, EMPTYARG ) 980*cdf0e10cSrcweir { 981*cdf0e10cSrcweir if( aPrevHdl.IsSet() ) 982*cdf0e10cSrcweir aPrevHdl.Call(this); 983*cdf0e10cSrcweir return 0; 984*cdf0e10cSrcweir } 985*cdf0e10cSrcweir Window * AbstractSvxPostItDialog_Impl::GetWindow() 986*cdf0e10cSrcweir { 987*cdf0e10cSrcweir return (Window *)pDlg; 988*cdf0e10cSrcweir } 989*cdf0e10cSrcweir 990*cdf0e10cSrcweir String AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToOpen() const 991*cdf0e10cSrcweir { 992*cdf0e10cSrcweir return pDlg->GetPasswordToOpen(); 993*cdf0e10cSrcweir } 994*cdf0e10cSrcweir String AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToModify() const 995*cdf0e10cSrcweir { 996*cdf0e10cSrcweir return pDlg->GetPasswordToModify(); 997*cdf0e10cSrcweir } 998*cdf0e10cSrcweir bool AbstractPasswordToOpenModifyDialog_Impl::IsRecommendToOpenReadonly() const 999*cdf0e10cSrcweir { 1000*cdf0e10cSrcweir return pDlg->IsRecommendToOpenReadonly(); 1001*cdf0e10cSrcweir } 1002*cdf0e10cSrcweir 1003*cdf0e10cSrcweir // Create dialogs with simplest interface 1004*cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateVclDialog( Window* pParent, sal_uInt32 nResId ) 1005*cdf0e10cSrcweir { 1006*cdf0e10cSrcweir Dialog* pDlg=NULL; 1007*cdf0e10cSrcweir switch ( nResId ) 1008*cdf0e10cSrcweir { 1009*cdf0e10cSrcweir case RID_DEFAULTABOUT: 1010*cdf0e10cSrcweir { 1011*cdf0e10cSrcweir pDlg = new AboutDialog( pParent, CUI_RES( (sal_uInt16) nResId ) ); 1012*cdf0e10cSrcweir break; 1013*cdf0e10cSrcweir } 1014*cdf0e10cSrcweir case SID_OPTIONS_TREEDIALOG : 1015*cdf0e10cSrcweir case SID_OPTIONS_DATABASES : 1016*cdf0e10cSrcweir case SID_LANGUAGE_OPTIONS : 1017*cdf0e10cSrcweir { 1018*cdf0e10cSrcweir bool bActivateLastSelection = false; 1019*cdf0e10cSrcweir if (nResId == SID_OPTIONS_TREEDIALOG) 1020*cdf0e10cSrcweir bActivateLastSelection = true; 1021*cdf0e10cSrcweir Reference< frame::XFrame > xFrame; 1022*cdf0e10cSrcweir OfaTreeOptionsDialog* pOptDlg = new OfaTreeOptionsDialog( pParent, xFrame, bActivateLastSelection ); 1023*cdf0e10cSrcweir if (nResId == SID_OPTIONS_DATABASES) 1024*cdf0e10cSrcweir { 1025*cdf0e10cSrcweir pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS); 1026*cdf0e10cSrcweir } 1027*cdf0e10cSrcweir else if (nResId == SID_LANGUAGE_OPTIONS) 1028*cdf0e10cSrcweir { 1029*cdf0e10cSrcweir //open the tab page "tools/options/languages" 1030*cdf0e10cSrcweir pOptDlg->ActivatePage(OFA_TP_LANGUAGES_FOR_SET_DOCUMENT_LANGUAGE); 1031*cdf0e10cSrcweir } 1032*cdf0e10cSrcweir pDlg = pOptDlg; 1033*cdf0e10cSrcweir } 1034*cdf0e10cSrcweir break; 1035*cdf0e10cSrcweir default: 1036*cdf0e10cSrcweir break; 1037*cdf0e10cSrcweir } 1038*cdf0e10cSrcweir 1039*cdf0e10cSrcweir if ( pDlg ) 1040*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1041*cdf0e10cSrcweir return 0; 1042*cdf0e10cSrcweir } 1043*cdf0e10cSrcweir 1044*cdf0e10cSrcweir // dialogs that use SfxBindings 1045*cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* /*pParent*/, const SfxBindings&, sal_uInt32 ) 1046*cdf0e10cSrcweir { 1047*cdf0e10cSrcweir return 0; 1048*cdf0e10cSrcweir } 1049*cdf0e10cSrcweir 1050*cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateFrameDialog( 1051*cdf0e10cSrcweir Window* pParent, const Reference< frame::XFrame >& rxFrame, 1052*cdf0e10cSrcweir sal_uInt32 nResId, const String& rParameter ) 1053*cdf0e10cSrcweir { 1054*cdf0e10cSrcweir Dialog* pDlg = NULL; 1055*cdf0e10cSrcweir if ( SID_OPTIONS_TREEDIALOG == nResId || SID_OPTIONS_DATABASES == nResId ) 1056*cdf0e10cSrcweir { 1057*cdf0e10cSrcweir // only activate last page if we dont want to activate a special page 1058*cdf0e10cSrcweir bool bActivateLastSelection = ( nResId != SID_OPTIONS_DATABASES && rParameter.Len() == 0 ); 1059*cdf0e10cSrcweir OfaTreeOptionsDialog* pOptDlg = new OfaTreeOptionsDialog( pParent, rxFrame, bActivateLastSelection ); 1060*cdf0e10cSrcweir if ( nResId == SID_OPTIONS_DATABASES ) 1061*cdf0e10cSrcweir pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS); 1062*cdf0e10cSrcweir else if ( rParameter.Len() > 0 ) 1063*cdf0e10cSrcweir pOptDlg->ActivatePage( rParameter ); 1064*cdf0e10cSrcweir pDlg = pOptDlg; 1065*cdf0e10cSrcweir } 1066*cdf0e10cSrcweir 1067*cdf0e10cSrcweir if ( pDlg ) 1068*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1069*cdf0e10cSrcweir else 1070*cdf0e10cSrcweir return NULL; 1071*cdf0e10cSrcweir } 1072*cdf0e10cSrcweir 1073*cdf0e10cSrcweir // TabDialog outside the drawing layer 1074*cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId, 1075*cdf0e10cSrcweir Window* pParent, 1076*cdf0e10cSrcweir const SfxItemSet* pAttrSet, 1077*cdf0e10cSrcweir SfxViewFrame* , 1078*cdf0e10cSrcweir bool /*bEditFmt*/, 1079*cdf0e10cSrcweir const String * ) 1080*cdf0e10cSrcweir { 1081*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1082*cdf0e10cSrcweir switch ( nResId ) 1083*cdf0e10cSrcweir { 1084*cdf0e10cSrcweir case RID_OFA_AUTOCORR_DLG : 1085*cdf0e10cSrcweir pDlg = new OfaAutoCorrDlg( pParent, pAttrSet ); 1086*cdf0e10cSrcweir break; 1087*cdf0e10cSrcweir case RID_SVXDLG_CUSTOMIZE : 1088*cdf0e10cSrcweir pDlg = new SvxConfigDialog( pParent, pAttrSet ); 1089*cdf0e10cSrcweir break; 1090*cdf0e10cSrcweir default: 1091*cdf0e10cSrcweir break; 1092*cdf0e10cSrcweir } 1093*cdf0e10cSrcweir 1094*cdf0e10cSrcweir if ( pDlg ) 1095*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1096*cdf0e10cSrcweir return 0; 1097*cdf0e10cSrcweir } 1098*cdf0e10cSrcweir 1099*cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId, 1100*cdf0e10cSrcweir Window* pParent, 1101*cdf0e10cSrcweir const SfxItemSet* pAttrSet, 1102*cdf0e10cSrcweir const Reference< frame::XFrame >& xViewFrame, 1103*cdf0e10cSrcweir bool /*bEditFmt*/, 1104*cdf0e10cSrcweir const String * ) 1105*cdf0e10cSrcweir { 1106*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1107*cdf0e10cSrcweir switch ( nResId ) 1108*cdf0e10cSrcweir { 1109*cdf0e10cSrcweir case RID_OFA_AUTOCORR_DLG : 1110*cdf0e10cSrcweir pDlg = new OfaAutoCorrDlg( pParent, pAttrSet ); 1111*cdf0e10cSrcweir break; 1112*cdf0e10cSrcweir case RID_SVXDLG_CUSTOMIZE : 1113*cdf0e10cSrcweir { 1114*cdf0e10cSrcweir SvxConfigDialog* pDlg1 = new SvxConfigDialog( pParent, pAttrSet ); 1115*cdf0e10cSrcweir pDlg1->SetFrame(xViewFrame); 1116*cdf0e10cSrcweir pDlg = (SfxTabDialog*)pDlg1; 1117*cdf0e10cSrcweir } 1118*cdf0e10cSrcweir break; 1119*cdf0e10cSrcweir default: 1120*cdf0e10cSrcweir break; 1121*cdf0e10cSrcweir } 1122*cdf0e10cSrcweir 1123*cdf0e10cSrcweir if ( pDlg ) 1124*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1125*cdf0e10cSrcweir return 0; 1126*cdf0e10cSrcweir } 1127*cdf0e10cSrcweir 1128*cdf0e10cSrcweir // TabDialog that use functionality of the drawing layer 1129*cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTextTabDialog( Window* pParent, 1130*cdf0e10cSrcweir const SfxItemSet* pAttrSet, 1131*cdf0e10cSrcweir SdrView* pView, 1132*cdf0e10cSrcweir SdrModel* ) 1133*cdf0e10cSrcweir { 1134*cdf0e10cSrcweir SfxTabDialog* pDlg = new SvxTextTabDialog( pParent, pAttrSet, pView ); 1135*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1136*cdf0e10cSrcweir } 1137*cdf0e10cSrcweir 1138*cdf0e10cSrcweir //TabDialog that use functionality of the drawing layer and add AnchorTypes -- for SvxCaptionTabDialog CHINA001 1139*cdf0e10cSrcweir AbstractSvxCaptionDialog* AbstractDialogFactory_Impl::CreateCaptionDialog( Window* pParent, 1140*cdf0e10cSrcweir const SdrView* pView, 1141*cdf0e10cSrcweir sal_uInt16 nAnchorTypes ) 1142*cdf0e10cSrcweir { 1143*cdf0e10cSrcweir SvxCaptionTabDialog* pDlg = new SvxCaptionTabDialog( pParent, pView, nAnchorTypes ); 1144*cdf0e10cSrcweir return new AbstractSvxCaptionDialog_Impl( pDlg ); 1145*cdf0e10cSrcweir } 1146*cdf0e10cSrcweir 1147*cdf0e10cSrcweir AbstractSvxDistributeDialog* AbstractDialogFactory_Impl::CreateSvxDistributeDialog(Window* pParent, 1148*cdf0e10cSrcweir const SfxItemSet& rAttr, 1149*cdf0e10cSrcweir SvxDistributeHorizontal eHor , 1150*cdf0e10cSrcweir SvxDistributeVertical eVer) 1151*cdf0e10cSrcweir { 1152*cdf0e10cSrcweir SvxDistributeDialog* pDlg = new SvxDistributeDialog( pParent, rAttr, eHor, eVer); 1153*cdf0e10cSrcweir return new AbstractSvxDistributeDialog_Impl( pDlg ); 1154*cdf0e10cSrcweir } 1155*cdf0e10cSrcweir 1156*cdf0e10cSrcweir AbstractHangulHanjaConversionDialog* AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(Window* pParent, 1157*cdf0e10cSrcweir editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection ) 1158*cdf0e10cSrcweir { 1159*cdf0e10cSrcweir HangulHanjaConversionDialog* pDlg = new HangulHanjaConversionDialog( pParent, _ePrimaryDirection); 1160*cdf0e10cSrcweir return new AbstractHangulHanjaConversionDialog_Impl( pDlg ); 1161*cdf0e10cSrcweir } 1162*cdf0e10cSrcweir 1163*cdf0e10cSrcweir AbstractThesaurusDialog* AbstractDialogFactory_Impl::CreateThesaurusDialog( Window* pParent, 1164*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XThesaurus > xThesaurus, 1165*cdf0e10cSrcweir const String &rWord, sal_Int16 nLanguage ) 1166*cdf0e10cSrcweir { 1167*cdf0e10cSrcweir SvxThesaurusDialog* pDlg = new SvxThesaurusDialog( pParent, xThesaurus, rWord, nLanguage ); 1168*cdf0e10cSrcweir return new AbstractThesaurusDialog_Impl( pDlg ); 1169*cdf0e10cSrcweir } 1170*cdf0e10cSrcweir 1171*cdf0e10cSrcweir AbstractHyphenWordDialog* AbstractDialogFactory_Impl::CreateHyphenWordDialog( Window* pParent, 1172*cdf0e10cSrcweir const String &rWord, LanguageType nLang, 1173*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator > &xHyphen, 1174*cdf0e10cSrcweir SvxSpellWrapper* pWrapper ) 1175*cdf0e10cSrcweir { 1176*cdf0e10cSrcweir SvxHyphenWordDialog* pDlg = new SvxHyphenWordDialog( rWord, nLang, pParent, xHyphen, pWrapper ); 1177*cdf0e10cSrcweir return new AbstractHyphenWordDialog_Impl( pDlg ); 1178*cdf0e10cSrcweir } 1179*cdf0e10cSrcweir 1180*cdf0e10cSrcweir AbstractFmShowColsDialog * AbstractDialogFactory_Impl::CreateFmShowColsDialog( Window* pParent ) 1181*cdf0e10cSrcweir { 1182*cdf0e10cSrcweir FmShowColsDialog* pDlg = new FmShowColsDialog( pParent); 1183*cdf0e10cSrcweir return new AbstractFmShowColsDialog_Impl( pDlg ); 1184*cdf0e10cSrcweir } 1185*cdf0e10cSrcweir AbstractSvxZoomDialog * AbstractDialogFactory_Impl::CreateSvxZoomDialog( Window* pParent, //add for SvxZoomDialog 1186*cdf0e10cSrcweir const SfxItemSet& rCoreSet) 1187*cdf0e10cSrcweir { 1188*cdf0e10cSrcweir SvxZoomDialog* pDlg = new SvxZoomDialog( pParent, rCoreSet); 1189*cdf0e10cSrcweir return new AbstractSvxZoomDialog_Impl( pDlg ); 1190*cdf0e10cSrcweir } 1191*cdf0e10cSrcweir 1192*cdf0e10cSrcweir AbstractSpellDialog * AbstractDialogFactory_Impl::CreateSvxSpellDialog( 1193*cdf0e10cSrcweir Window* pParent, 1194*cdf0e10cSrcweir SfxBindings* pBindings, 1195*cdf0e10cSrcweir svx::SpellDialogChildWindow* pSpellChildWindow ) 1196*cdf0e10cSrcweir { 1197*cdf0e10cSrcweir svx::SpellDialog* pDlg = new svx::SpellDialog(pSpellChildWindow, pParent, pBindings); 1198*cdf0e10cSrcweir return new AbstractSpellDialog_Impl(pDlg); 1199*cdf0e10cSrcweir } 1200*cdf0e10cSrcweir 1201*cdf0e10cSrcweir VclAbstractRefreshableDialog * AbstractDialogFactory_Impl::CreateActualizeProgressDialog( Window* pParent, GalleryTheme* pThm ) 1202*cdf0e10cSrcweir { 1203*cdf0e10cSrcweir Dialog* pDlg = new ActualizeProgress( pParent, pThm); 1204*cdf0e10cSrcweir return new VclAbstractRefreshableDialog_Impl( pDlg ); 1205*cdf0e10cSrcweir } 1206*cdf0e10cSrcweir 1207*cdf0e10cSrcweir AbstractSearchProgress * AbstractDialogFactory_Impl::CreateSearchProgressDialog( Window* pParent, //add for SearchProgress 1208*cdf0e10cSrcweir const INetURLObject& rStartURL ) 1209*cdf0e10cSrcweir { 1210*cdf0e10cSrcweir SearchProgress* pDlg = new SearchProgress( pParent, rStartURL); 1211*cdf0e10cSrcweir return new AbstractSearchProgress_Impl( pDlg ); 1212*cdf0e10cSrcweir } 1213*cdf0e10cSrcweir 1214*cdf0e10cSrcweir AbstractTakeProgress * AbstractDialogFactory_Impl::CreateTakeProgressDialog( Window* pParent ) 1215*cdf0e10cSrcweir { 1216*cdf0e10cSrcweir TakeProgress* pDlg = new TakeProgress( pParent ); 1217*cdf0e10cSrcweir return new AbstractTakeProgress_Impl( pDlg ); 1218*cdf0e10cSrcweir } 1219*cdf0e10cSrcweir 1220*cdf0e10cSrcweir VclAbstractDialog* 1221*cdf0e10cSrcweir AbstractDialogFactory_Impl::CreateScriptErrorDialog( 1222*cdf0e10cSrcweir Window* pParent, ::com::sun::star::uno::Any aException ) 1223*cdf0e10cSrcweir { 1224*cdf0e10cSrcweir return new SvxScriptErrorDialog( pParent, aException ); 1225*cdf0e10cSrcweir } 1226*cdf0e10cSrcweir 1227*cdf0e10cSrcweir AbstractScriptSelectorDialog* 1228*cdf0e10cSrcweir AbstractDialogFactory_Impl::CreateScriptSelectorDialog( 1229*cdf0e10cSrcweir Window* pParent, sal_Bool bShowSlots, const Reference< frame::XFrame >& _rxFrame ) 1230*cdf0e10cSrcweir { 1231*cdf0e10cSrcweir SvxScriptSelectorDialog* pDlg = NULL; 1232*cdf0e10cSrcweir 1233*cdf0e10cSrcweir pDlg = new SvxScriptSelectorDialog( pParent, bShowSlots, _rxFrame ); 1234*cdf0e10cSrcweir 1235*cdf0e10cSrcweir if (pDlg) 1236*cdf0e10cSrcweir { 1237*cdf0e10cSrcweir return new AbstractScriptSelectorDialog_Impl( pDlg ); 1238*cdf0e10cSrcweir } 1239*cdf0e10cSrcweir return 0; 1240*cdf0e10cSrcweir } 1241*cdf0e10cSrcweir 1242*cdf0e10cSrcweir String AbstractScriptSelectorDialog_Impl::GetScriptURL() const 1243*cdf0e10cSrcweir { 1244*cdf0e10cSrcweir if (pDlg) 1245*cdf0e10cSrcweir return pDlg->GetScriptURL(); 1246*cdf0e10cSrcweir return String(); 1247*cdf0e10cSrcweir } 1248*cdf0e10cSrcweir 1249*cdf0e10cSrcweir void AbstractScriptSelectorDialog_Impl::SetRunLabel() 1250*cdf0e10cSrcweir { 1251*cdf0e10cSrcweir if (pDlg) 1252*cdf0e10cSrcweir pDlg->SetRunLabel(); 1253*cdf0e10cSrcweir return; 1254*cdf0e10cSrcweir } 1255*cdf0e10cSrcweir 1256*cdf0e10cSrcweir VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( Window* pParent, //add for SvxScriptOrgDialog 1257*cdf0e10cSrcweir const String& rLanguage) 1258*cdf0e10cSrcweir { 1259*cdf0e10cSrcweir Dialog* pDlg=NULL; 1260*cdf0e10cSrcweir 1261*cdf0e10cSrcweir pDlg = new SvxScriptOrgDialog( pParent, rLanguage); 1262*cdf0e10cSrcweir 1263*cdf0e10cSrcweir if ( pDlg ) 1264*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1265*cdf0e10cSrcweir return 0; 1266*cdf0e10cSrcweir } 1267*cdf0e10cSrcweir 1268*cdf0e10cSrcweir AbstractTitleDialog * AbstractDialogFactory_Impl::CreateTitleDialog( Window* pParent, //add for TitleDialog 1269*cdf0e10cSrcweir const String& rOldText) 1270*cdf0e10cSrcweir { 1271*cdf0e10cSrcweir TitleDialog* pDlg = new TitleDialog( pParent, rOldText); 1272*cdf0e10cSrcweir return new AbstractTitleDialog_Impl( pDlg ); 1273*cdf0e10cSrcweir } 1274*cdf0e10cSrcweir 1275*cdf0e10cSrcweir AbstractGalleryIdDialog * AbstractDialogFactory_Impl::CreateGalleryIdDialog( Window* pParent, //add for SvxZoomDialog 1276*cdf0e10cSrcweir GalleryTheme* pThm ) 1277*cdf0e10cSrcweir { 1278*cdf0e10cSrcweir GalleryIdDialog* pDlg = new GalleryIdDialog( pParent, pThm); 1279*cdf0e10cSrcweir return new AbstractGalleryIdDialog_Impl( pDlg ); 1280*cdf0e10cSrcweir } 1281*cdf0e10cSrcweir 1282*cdf0e10cSrcweir VclAbstractDialog2 * AbstractDialogFactory_Impl::CreateGalleryThemePropertiesDialog( Window* pParent, //add for GalleryThemeProperties 1283*cdf0e10cSrcweir ExchangeData* pData, 1284*cdf0e10cSrcweir SfxItemSet* pItemSet) 1285*cdf0e10cSrcweir { 1286*cdf0e10cSrcweir Dialog* pDlg = new GalleryThemeProperties( pParent, pData, pItemSet); 1287*cdf0e10cSrcweir return new VclAbstractDialog2_Impl( pDlg ); 1288*cdf0e10cSrcweir } 1289*cdf0e10cSrcweir 1290*cdf0e10cSrcweir AbstractURLDlg * AbstractDialogFactory_Impl::CreateURLDialog( Window* pParent, //add for URLDlg 1291*cdf0e10cSrcweir const String& rURL, const String& rAltText, const String& rDescription, 1292*cdf0e10cSrcweir const String& rTarget, const String& rName, 1293*cdf0e10cSrcweir TargetList& rTargetList ) 1294*cdf0e10cSrcweir { 1295*cdf0e10cSrcweir URLDlg* pDlg = new URLDlg( pParent, rURL, rAltText, rDescription, rTarget, rName, rTargetList); 1296*cdf0e10cSrcweir return new AbstractURLDlg_Impl( pDlg ); 1297*cdf0e10cSrcweir } 1298*cdf0e10cSrcweir 1299*cdf0e10cSrcweir AbstractSvxHlinkDlgMarkWnd* AbstractDialogFactory_Impl::CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase* pParent, sal_uInt32 nResId ) 1300*cdf0e10cSrcweir { 1301*cdf0e10cSrcweir SvxHlinkDlgMarkWnd* pDlg=NULL; 1302*cdf0e10cSrcweir switch ( nResId ) 1303*cdf0e10cSrcweir { 1304*cdf0e10cSrcweir case RID_SVXFLOAT_HYPERLINK_MARKWND : 1305*cdf0e10cSrcweir pDlg = new SvxHlinkDlgMarkWnd( pParent ); 1306*cdf0e10cSrcweir break; 1307*cdf0e10cSrcweir default: 1308*cdf0e10cSrcweir break; 1309*cdf0e10cSrcweir } 1310*cdf0e10cSrcweir 1311*cdf0e10cSrcweir if ( pDlg ) 1312*cdf0e10cSrcweir return new AbstractSvxHlinkDlgMarkWnd_Impl( pDlg ); 1313*cdf0e10cSrcweir return 0; 1314*cdf0e10cSrcweir } 1315*cdf0e10cSrcweir 1316*cdf0e10cSrcweir SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( sal_uInt32 nResId, 1317*cdf0e10cSrcweir Window* pParent, 1318*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& , 1319*cdf0e10cSrcweir const SfxItemSet* pAttrSet ) 1320*cdf0e10cSrcweir { 1321*cdf0e10cSrcweir SfxModalDialog* pDlg=NULL; 1322*cdf0e10cSrcweir switch ( nResId ) 1323*cdf0e10cSrcweir { 1324*cdf0e10cSrcweir case RID_SVXDLG_CHARMAP : 1325*cdf0e10cSrcweir pDlg = new SvxCharacterMap( pParent, sal_True, pAttrSet ); 1326*cdf0e10cSrcweir break; 1327*cdf0e10cSrcweir default: 1328*cdf0e10cSrcweir break; 1329*cdf0e10cSrcweir } 1330*cdf0e10cSrcweir 1331*cdf0e10cSrcweir if ( pDlg ) 1332*cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg ); 1333*cdf0e10cSrcweir return 0; 1334*cdf0e10cSrcweir } 1335*cdf0e10cSrcweir 1336*cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabItemDialog( Window* pParent, 1337*cdf0e10cSrcweir const SfxItemSet& rSet, 1338*cdf0e10cSrcweir sal_uInt32 nResId) 1339*cdf0e10cSrcweir { 1340*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1341*cdf0e10cSrcweir switch ( nResId ) 1342*cdf0e10cSrcweir { 1343*cdf0e10cSrcweir case RID_SVXDLG_SEARCHFORMAT : 1344*cdf0e10cSrcweir pDlg = new SvxSearchFormatDialog( pParent, rSet ); 1345*cdf0e10cSrcweir break; 1346*cdf0e10cSrcweir default: 1347*cdf0e10cSrcweir break; 1348*cdf0e10cSrcweir } 1349*cdf0e10cSrcweir 1350*cdf0e10cSrcweir if ( pDlg ) 1351*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1352*cdf0e10cSrcweir return 0; 1353*cdf0e10cSrcweir } 1354*cdf0e10cSrcweir 1355*cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateSvxSearchAttributeDialog( Window* pParent, 1356*cdf0e10cSrcweir SearchAttrItemList& rLst, 1357*cdf0e10cSrcweir const sal_uInt16* pWhRanges ) 1358*cdf0e10cSrcweir { 1359*cdf0e10cSrcweir Dialog* pDlg = new SvxSearchAttributeDialog( pParent, rLst, pWhRanges); 1360*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1361*cdf0e10cSrcweir } 1362*cdf0e10cSrcweir 1363*cdf0e10cSrcweir AbstractSvxSearchSimilarityDialog * AbstractDialogFactory_Impl::CreateSvxSearchSimilarityDialog( Window* pParent, 1364*cdf0e10cSrcweir sal_Bool bRelax, 1365*cdf0e10cSrcweir sal_uInt16 nOther, 1366*cdf0e10cSrcweir sal_uInt16 nShorter, 1367*cdf0e10cSrcweir sal_uInt16 nLonger) 1368*cdf0e10cSrcweir { 1369*cdf0e10cSrcweir SvxSearchSimilarityDialog* pDlg = new SvxSearchSimilarityDialog( pParent, bRelax, nOther, nShorter, nLonger ); 1370*cdf0e10cSrcweir if ( pDlg ) 1371*cdf0e10cSrcweir return new AbstractSvxSearchSimilarityDialog_Impl( pDlg ); 1372*cdf0e10cSrcweir return NULL; 1373*cdf0e10cSrcweir } 1374*cdf0e10cSrcweir 1375*cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxBorderBackgroundDlg( Window* pParent, 1376*cdf0e10cSrcweir const SfxItemSet& rCoreSet, 1377*cdf0e10cSrcweir sal_Bool bEnableSelector) 1378*cdf0e10cSrcweir { 1379*cdf0e10cSrcweir SfxTabDialog* pDlg = new SvxBorderBackgroundDlg( pParent, rCoreSet, bEnableSelector); 1380*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1381*cdf0e10cSrcweir } 1382*cdf0e10cSrcweir 1383*cdf0e10cSrcweir AbstractSvxTransformTabDialog* AbstractDialogFactory_Impl::CreateSvxTransformTabDialog( Window* pParent, 1384*cdf0e10cSrcweir const SfxItemSet* pAttr, 1385*cdf0e10cSrcweir const SdrView* pView, 1386*cdf0e10cSrcweir sal_uInt16 nAnchorTypes ) 1387*cdf0e10cSrcweir { 1388*cdf0e10cSrcweir SvxTransformTabDialog* pDlg = new SvxTransformTabDialog( pParent, pAttr,pView, nAnchorTypes); 1389*cdf0e10cSrcweir return new AbstractSvxTransformTabDialog_Impl( pDlg ); 1390*cdf0e10cSrcweir } 1391*cdf0e10cSrcweir 1392*cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSchTransformTabDialog( Window* pParent, 1393*cdf0e10cSrcweir const SfxItemSet* pAttr, 1394*cdf0e10cSrcweir const SdrView* pSdrView, 1395*cdf0e10cSrcweir sal_uInt32 nResId, 1396*cdf0e10cSrcweir bool bSizeTabPage 1397*cdf0e10cSrcweir ) 1398*cdf0e10cSrcweir { 1399*cdf0e10cSrcweir SfxTabDialog* pDlg=NULL; 1400*cdf0e10cSrcweir switch ( nResId ) 1401*cdf0e10cSrcweir { 1402*cdf0e10cSrcweir case RID_SCH_TransformTabDLG_SVXPAGE_ANGLE : 1403*cdf0e10cSrcweir { 1404*cdf0e10cSrcweir pDlg = new SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT : SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE); 1405*cdf0e10cSrcweir pDlg->RemoveTabPage( RID_SVXPAGE_ANGLE ); 1406*cdf0e10cSrcweir pDlg->RemoveTabPage( RID_SVXPAGE_SLANT ); 1407*cdf0e10cSrcweir } 1408*cdf0e10cSrcweir break; 1409*cdf0e10cSrcweir case RID_SCH_TransformTabDLG_SVXPAGE_SLANT: 1410*cdf0e10cSrcweir { 1411*cdf0e10cSrcweir pDlg = new SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT : SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE); 1412*cdf0e10cSrcweir pDlg->RemoveTabPage( RID_SVXPAGE_SLANT ); 1413*cdf0e10cSrcweir } 1414*cdf0e10cSrcweir break; 1415*cdf0e10cSrcweir default: 1416*cdf0e10cSrcweir break; 1417*cdf0e10cSrcweir } 1418*cdf0e10cSrcweir 1419*cdf0e10cSrcweir if ( pDlg ) 1420*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1421*cdf0e10cSrcweir return 0; 1422*cdf0e10cSrcweir } 1423*cdf0e10cSrcweir 1424*cdf0e10cSrcweir AbstractSvxJSearchOptionsDialog * AbstractDialogFactory_Impl::CreateSvxJSearchOptionsDialog( Window* pParent, 1425*cdf0e10cSrcweir const SfxItemSet& rOptionsSet, 1426*cdf0e10cSrcweir sal_Int32 nInitialFlags) 1427*cdf0e10cSrcweir { 1428*cdf0e10cSrcweir SvxJSearchOptionsDialog* pDlg = new SvxJSearchOptionsDialog( pParent, rOptionsSet, nInitialFlags ); 1429*cdf0e10cSrcweir return new AbstractSvxJSearchOptionsDialog_Impl( pDlg ); 1430*cdf0e10cSrcweir } 1431*cdf0e10cSrcweir 1432*cdf0e10cSrcweir AbstractFmInputRecordNoDialog * AbstractDialogFactory_Impl::CreateFmInputRecordNoDialog( Window* pParent ) 1433*cdf0e10cSrcweir { 1434*cdf0e10cSrcweir FmInputRecordNoDialog* pDlg = new FmInputRecordNoDialog( pParent ); 1435*cdf0e10cSrcweir return new AbstractFmInputRecordNoDialog_Impl( pDlg ); 1436*cdf0e10cSrcweir } 1437*cdf0e10cSrcweir 1438*cdf0e10cSrcweir AbstractSvxNewDictionaryDialog * AbstractDialogFactory_Impl::CreateSvxNewDictionaryDialog( Window* pParent, 1439*cdf0e10cSrcweir ::Reference< ::com::sun::star::linguistic2::XSpellChecker1 > &xSpl, 1440*cdf0e10cSrcweir sal_uInt32 nResId ) 1441*cdf0e10cSrcweir { 1442*cdf0e10cSrcweir SvxNewDictionaryDialog* pDlg=NULL; 1443*cdf0e10cSrcweir switch ( nResId ) 1444*cdf0e10cSrcweir { 1445*cdf0e10cSrcweir case RID_SFXDLG_NEWDICT : 1446*cdf0e10cSrcweir pDlg = new SvxNewDictionaryDialog( pParent, xSpl ); 1447*cdf0e10cSrcweir break; 1448*cdf0e10cSrcweir default: 1449*cdf0e10cSrcweir break; 1450*cdf0e10cSrcweir } 1451*cdf0e10cSrcweir 1452*cdf0e10cSrcweir if ( pDlg ) 1453*cdf0e10cSrcweir return new AbstractSvxNewDictionaryDialog_Impl( pDlg ); 1454*cdf0e10cSrcweir return 0; 1455*cdf0e10cSrcweir } 1456*cdf0e10cSrcweir 1457*cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateSvxEditDictionaryDialog( Window* pParent, 1458*cdf0e10cSrcweir const String& rName, 1459*cdf0e10cSrcweir ::Reference< ::com::sun::star::linguistic2::XSpellChecker1> &xSpl, 1460*cdf0e10cSrcweir sal_uInt32 nResId ) 1461*cdf0e10cSrcweir { 1462*cdf0e10cSrcweir Dialog* pDlg=NULL; 1463*cdf0e10cSrcweir switch ( nResId ) 1464*cdf0e10cSrcweir { 1465*cdf0e10cSrcweir case RID_SFXDLG_EDITDICT : 1466*cdf0e10cSrcweir pDlg = new SvxEditDictionaryDialog( pParent, rName, xSpl ); 1467*cdf0e10cSrcweir break; 1468*cdf0e10cSrcweir default: 1469*cdf0e10cSrcweir break; 1470*cdf0e10cSrcweir } 1471*cdf0e10cSrcweir 1472*cdf0e10cSrcweir if ( pDlg ) 1473*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1474*cdf0e10cSrcweir return 0; 1475*cdf0e10cSrcweir } 1476*cdf0e10cSrcweir 1477*cdf0e10cSrcweir AbstractSvxNameDialog * AbstractDialogFactory_Impl::CreateSvxNameDialog( Window* pParent, 1478*cdf0e10cSrcweir const String& rName, const String& rDesc ) 1479*cdf0e10cSrcweir { 1480*cdf0e10cSrcweir SvxNameDialog* pDlg = new SvxNameDialog( pParent, rName, rDesc ); 1481*cdf0e10cSrcweir return new AbstractSvxNameDialog_Impl( pDlg ); 1482*cdf0e10cSrcweir } 1483*cdf0e10cSrcweir 1484*cdf0e10cSrcweir AbstractSvxObjectNameDialog* AbstractDialogFactory_Impl::CreateSvxObjectNameDialog(Window* pParent, const String& rName ) 1485*cdf0e10cSrcweir { 1486*cdf0e10cSrcweir return new AbstractSvxObjectNameDialog_Impl(new SvxObjectNameDialog(pParent, rName)); 1487*cdf0e10cSrcweir } 1488*cdf0e10cSrcweir 1489*cdf0e10cSrcweir AbstractSvxObjectTitleDescDialog* AbstractDialogFactory_Impl::CreateSvxObjectTitleDescDialog(Window* pParent, const String& rTitle, const String& rDescription) 1490*cdf0e10cSrcweir { 1491*cdf0e10cSrcweir return new AbstractSvxObjectTitleDescDialog_Impl(new SvxObjectTitleDescDialog(pParent, rTitle, rDescription)); 1492*cdf0e10cSrcweir } 1493*cdf0e10cSrcweir 1494*cdf0e10cSrcweir AbstractSvxMessDialog * AbstractDialogFactory_Impl::CreateSvxMessDialog( Window* pParent, sal_uInt32 nResId, 1495*cdf0e10cSrcweir const String& rText, const String& rDesc, Image* pImg ) 1496*cdf0e10cSrcweir { 1497*cdf0e10cSrcweir SvxMessDialog* pDlg=NULL; 1498*cdf0e10cSrcweir switch ( nResId ) 1499*cdf0e10cSrcweir { 1500*cdf0e10cSrcweir case RID_SVXDLG_MESSBOX : 1501*cdf0e10cSrcweir pDlg = new SvxMessDialog( pParent, rText, rDesc, pImg ); 1502*cdf0e10cSrcweir break; 1503*cdf0e10cSrcweir default: 1504*cdf0e10cSrcweir break; 1505*cdf0e10cSrcweir } 1506*cdf0e10cSrcweir 1507*cdf0e10cSrcweir if ( pDlg ) 1508*cdf0e10cSrcweir return new AbstractSvxMessDialog_Impl( pDlg ); 1509*cdf0e10cSrcweir return 0; 1510*cdf0e10cSrcweir } 1511*cdf0e10cSrcweir 1512*cdf0e10cSrcweir AbstractSvxMultiPathDialog * AbstractDialogFactory_Impl::CreateSvxMultiPathDialog( Window* pParent, sal_Bool bEmptyAllowed ) 1513*cdf0e10cSrcweir { 1514*cdf0e10cSrcweir SvxMultiPathDialog* pDlg = new SvxMultiPathDialog( pParent, bEmptyAllowed ); 1515*cdf0e10cSrcweir return new AbstractSvxMultiPathDialog_Impl( pDlg ); 1516*cdf0e10cSrcweir } 1517*cdf0e10cSrcweir 1518*cdf0e10cSrcweir AbstractSvxMultiFileDialog * AbstractDialogFactory_Impl::CreateSvxMultiFileDialog( Window* pParent, sal_Bool bEmptyAllowed ) 1519*cdf0e10cSrcweir { 1520*cdf0e10cSrcweir SvxMultiFileDialog* pDlg = new SvxMultiFileDialog( pParent, bEmptyAllowed ); 1521*cdf0e10cSrcweir return new AbstractSvxMultiFileDialog_Impl( pDlg ); 1522*cdf0e10cSrcweir } 1523*cdf0e10cSrcweir 1524*cdf0e10cSrcweir AbstractSvxHpLinkDlg * AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (Window* pParent, //add for SvxMultiFileDialog 1525*cdf0e10cSrcweir SfxBindings* pBindings, 1526*cdf0e10cSrcweir sal_uInt32 nResId) 1527*cdf0e10cSrcweir { 1528*cdf0e10cSrcweir SvxHpLinkDlg* pDlg=NULL; 1529*cdf0e10cSrcweir switch ( nResId ) 1530*cdf0e10cSrcweir { 1531*cdf0e10cSrcweir case SID_HYPERLINK_DIALOG : 1532*cdf0e10cSrcweir pDlg = new SvxHpLinkDlg( pParent, pBindings ); 1533*cdf0e10cSrcweir break; 1534*cdf0e10cSrcweir default: 1535*cdf0e10cSrcweir break; 1536*cdf0e10cSrcweir } 1537*cdf0e10cSrcweir 1538*cdf0e10cSrcweir if ( pDlg ) 1539*cdf0e10cSrcweir return new AbstractSvxHpLinkDlg_Impl( pDlg ); 1540*cdf0e10cSrcweir return 0; 1541*cdf0e10cSrcweir } 1542*cdf0e10cSrcweir 1543*cdf0e10cSrcweir AbstractFmSearchDialog* AbstractDialogFactory_Impl::CreateFmSearchDialog(Window* pParent, //add for FmSearchDialog 1544*cdf0e10cSrcweir const String& strInitialText, 1545*cdf0e10cSrcweir const ::std::vector< String >& _rContexts, 1546*cdf0e10cSrcweir sal_Int16 nInitialContext, 1547*cdf0e10cSrcweir const Link& lnkContextSupplier) 1548*cdf0e10cSrcweir { 1549*cdf0e10cSrcweir FmSearchDialog* pDlg = new FmSearchDialog( pParent, strInitialText, _rContexts, nInitialContext, lnkContextSupplier ); 1550*cdf0e10cSrcweir if ( pDlg ) 1551*cdf0e10cSrcweir return new AbstractFmSearchDialog_Impl( pDlg ); 1552*cdf0e10cSrcweir return 0; 1553*cdf0e10cSrcweir } 1554*cdf0e10cSrcweir 1555*cdf0e10cSrcweir AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (Window* pParent, //add for GraphicFilterEmboss 1556*cdf0e10cSrcweir const Graphic& rGraphic, 1557*cdf0e10cSrcweir RECT_POINT eLightSource, 1558*cdf0e10cSrcweir sal_uInt32) 1559*cdf0e10cSrcweir { 1560*cdf0e10cSrcweir GraphicFilterDialog* pDlg = new GraphicFilterEmboss( pParent, rGraphic, eLightSource ); 1561*cdf0e10cSrcweir return new AbstractGraphicFilterDialog_Impl( pDlg ); 1562*cdf0e10cSrcweir } 1563*cdf0e10cSrcweir 1564*cdf0e10cSrcweir AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterPosterSepia (Window* pParent, 1565*cdf0e10cSrcweir const Graphic& rGraphic, 1566*cdf0e10cSrcweir sal_uInt16 nCount, 1567*cdf0e10cSrcweir sal_uInt32 nResId) 1568*cdf0e10cSrcweir { 1569*cdf0e10cSrcweir GraphicFilterDialog* pDlg=NULL; 1570*cdf0e10cSrcweir switch ( nResId ) 1571*cdf0e10cSrcweir { 1572*cdf0e10cSrcweir case RID_SVX_GRFFILTER_DLG_POSTER : 1573*cdf0e10cSrcweir pDlg = new GraphicFilterPoster( pParent, rGraphic, nCount ); 1574*cdf0e10cSrcweir break; 1575*cdf0e10cSrcweir case RID_SVX_GRFFILTER_DLG_SEPIA : 1576*cdf0e10cSrcweir pDlg = new GraphicFilterSepia( pParent, rGraphic, nCount ); 1577*cdf0e10cSrcweir break; 1578*cdf0e10cSrcweir 1579*cdf0e10cSrcweir default: 1580*cdf0e10cSrcweir break; 1581*cdf0e10cSrcweir } 1582*cdf0e10cSrcweir 1583*cdf0e10cSrcweir if ( pDlg ) 1584*cdf0e10cSrcweir return new AbstractGraphicFilterDialog_Impl( pDlg ); 1585*cdf0e10cSrcweir return 0; 1586*cdf0e10cSrcweir } 1587*cdf0e10cSrcweir 1588*cdf0e10cSrcweir AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (Window* pParent, //add for GraphicFilterSolarize 1589*cdf0e10cSrcweir const Graphic& rGraphic, 1590*cdf0e10cSrcweir sal_uInt8 nGreyThreshold, sal_Bool bInvert, sal_uInt32 ) 1591*cdf0e10cSrcweir { 1592*cdf0e10cSrcweir GraphicFilterDialog* pDlg = new GraphicFilterSolarize( pParent, rGraphic, nGreyThreshold, bInvert ); 1593*cdf0e10cSrcweir return new AbstractGraphicFilterDialog_Impl( pDlg ); 1594*cdf0e10cSrcweir } 1595*cdf0e10cSrcweir 1596*cdf0e10cSrcweir AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (Window* pParent, //add for GraphicFilterMosaic 1597*cdf0e10cSrcweir const Graphic& rGraphic, 1598*cdf0e10cSrcweir sal_uInt16 nTileWidth, sal_uInt16 nTileHeight, sal_Bool bEnhanceEdges, 1599*cdf0e10cSrcweir sal_uInt32 nResId) 1600*cdf0e10cSrcweir { 1601*cdf0e10cSrcweir GraphicFilterDialog* pDlg=NULL; 1602*cdf0e10cSrcweir switch ( nResId ) 1603*cdf0e10cSrcweir { 1604*cdf0e10cSrcweir case RID_SVX_GRFFILTER_DLG_MOSAIC : 1605*cdf0e10cSrcweir pDlg = new GraphicFilterMosaic( pParent, rGraphic, nTileWidth, nTileHeight, bEnhanceEdges ); 1606*cdf0e10cSrcweir break; 1607*cdf0e10cSrcweir default: 1608*cdf0e10cSrcweir break; 1609*cdf0e10cSrcweir } 1610*cdf0e10cSrcweir 1611*cdf0e10cSrcweir if ( pDlg ) 1612*cdf0e10cSrcweir return new AbstractGraphicFilterDialog_Impl( pDlg ); 1613*cdf0e10cSrcweir return 0; 1614*cdf0e10cSrcweir } 1615*cdf0e10cSrcweir 1616*cdf0e10cSrcweir AbstractSvxAreaTabDialog* AbstractDialogFactory_Impl::CreateSvxAreaTabDialog( Window* pParent, 1617*cdf0e10cSrcweir const SfxItemSet* pAttr, 1618*cdf0e10cSrcweir SdrModel* pModel, 1619*cdf0e10cSrcweir const SdrView* pSdrView ) 1620*cdf0e10cSrcweir { 1621*cdf0e10cSrcweir SvxAreaTabDialog* pDlg = new SvxAreaTabDialog( pParent, pAttr, pModel,pSdrView ); 1622*cdf0e10cSrcweir return new AbstractSvxAreaTabDialog_Impl( pDlg ); 1623*cdf0e10cSrcweir } 1624*cdf0e10cSrcweir 1625*cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxLineTabDialog( Window* pParent, const SfxItemSet* pAttr, //add forSvxLineTabDialog 1626*cdf0e10cSrcweir SdrModel* pModel, 1627*cdf0e10cSrcweir const SdrObject* pObj , 1628*cdf0e10cSrcweir sal_Bool bHasObj) 1629*cdf0e10cSrcweir { 1630*cdf0e10cSrcweir SfxTabDialog* pDlg = new SvxLineTabDialog( pParent, pAttr, pModel,pObj,bHasObj ); 1631*cdf0e10cSrcweir return new AbstractTabDialog_Impl( pDlg ); 1632*cdf0e10cSrcweir } 1633*cdf0e10cSrcweir 1634*cdf0e10cSrcweir SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent, 1635*cdf0e10cSrcweir const SfxItemSet& rAttr, 1636*cdf0e10cSrcweir const Reference< XFrame >& _rxDocumentFrame, 1637*cdf0e10cSrcweir sal_uInt32 nResId 1638*cdf0e10cSrcweir ) 1639*cdf0e10cSrcweir { 1640*cdf0e10cSrcweir SfxModalDialog* pDlg=NULL; 1641*cdf0e10cSrcweir switch ( nResId ) 1642*cdf0e10cSrcweir { 1643*cdf0e10cSrcweir case SID_EVENTCONFIG : 1644*cdf0e10cSrcweir pDlg = new SfxMacroAssignDlg( pParent, _rxDocumentFrame, rAttr ); 1645*cdf0e10cSrcweir break; 1646*cdf0e10cSrcweir case RID_SVXPAGE_MACROASSIGN : 1647*cdf0e10cSrcweir pDlg = new SvxShortcutAssignDlg( pParent, _rxDocumentFrame, rAttr ); 1648*cdf0e10cSrcweir break; 1649*cdf0e10cSrcweir case RID_SVXDLG_CHARMAP : 1650*cdf0e10cSrcweir pDlg = new SvxCharacterMap( pParent, sal_True, &rAttr ); 1651*cdf0e10cSrcweir break; 1652*cdf0e10cSrcweir default: 1653*cdf0e10cSrcweir break; 1654*cdf0e10cSrcweir } 1655*cdf0e10cSrcweir 1656*cdf0e10cSrcweir if ( pDlg ) 1657*cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg ); 1658*cdf0e10cSrcweir return 0; 1659*cdf0e10cSrcweir } 1660*cdf0e10cSrcweir 1661*cdf0e10cSrcweir SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent, 1662*cdf0e10cSrcweir const SfxItemSet& rAttr, 1663*cdf0e10cSrcweir const SdrView* pView, 1664*cdf0e10cSrcweir sal_uInt32 nResId 1665*cdf0e10cSrcweir ) 1666*cdf0e10cSrcweir { 1667*cdf0e10cSrcweir SfxSingleTabDialog* pDlg=NULL; 1668*cdf0e10cSrcweir switch ( nResId ) 1669*cdf0e10cSrcweir { 1670*cdf0e10cSrcweir case RID_SVXPAGE_MEASURE : 1671*cdf0e10cSrcweir pDlg = new SvxMeasureDialog( pParent, rAttr, pView ); 1672*cdf0e10cSrcweir break; 1673*cdf0e10cSrcweir case RID_SVXPAGE_CONNECTION : 1674*cdf0e10cSrcweir pDlg = new SvxConnectionDialog( pParent, rAttr, pView ); 1675*cdf0e10cSrcweir break; 1676*cdf0e10cSrcweir case RID_SFXPAGE_DBREGISTER : 1677*cdf0e10cSrcweir pDlg = new DatabaseRegistrationDialog( pParent, rAttr ); 1678*cdf0e10cSrcweir break; 1679*cdf0e10cSrcweir case RID_SVXPAGE_IMPROVEMENT : 1680*cdf0e10cSrcweir { 1681*cdf0e10cSrcweir String help_url; 1682*cdf0e10cSrcweir SFX_ITEMSET_ARG( &rAttr, pItem, SfxStringItem, SID_CURRENT_URL, sal_False ); 1683*cdf0e10cSrcweir if ( pItem ) 1684*cdf0e10cSrcweir help_url = pItem->GetValue(); 1685*cdf0e10cSrcweir pDlg = new SvxImprovementDialog( pParent, help_url); 1686*cdf0e10cSrcweir } 1687*cdf0e10cSrcweir default: 1688*cdf0e10cSrcweir break; 1689*cdf0e10cSrcweir } 1690*cdf0e10cSrcweir 1691*cdf0e10cSrcweir if ( pDlg ) 1692*cdf0e10cSrcweir return new AbstractSfxDialog_Impl( pDlg ); 1693*cdf0e10cSrcweir return 0; 1694*cdf0e10cSrcweir } 1695*cdf0e10cSrcweir 1696*cdf0e10cSrcweir AbstractSvxPostItDialog* AbstractDialogFactory_Impl::CreateSvxPostItDialog( Window* pParent, 1697*cdf0e10cSrcweir const SfxItemSet& rCoreSet, 1698*cdf0e10cSrcweir sal_Bool bPrevNext, sal_Bool bRedline ) 1699*cdf0e10cSrcweir { 1700*cdf0e10cSrcweir SvxPostItDialog* pDlg = new SvxPostItDialog( pParent, rCoreSet, bPrevNext, bRedline ); 1701*cdf0e10cSrcweir return new AbstractSvxPostItDialog_Impl( pDlg ); 1702*cdf0e10cSrcweir } 1703*cdf0e10cSrcweir 1704*cdf0e10cSrcweir class SvxMacroAssignDialog : public VclAbstractDialog 1705*cdf0e10cSrcweir { 1706*cdf0e10cSrcweir public: 1707*cdf0e10cSrcweir SvxMacroAssignDialog( Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode, 1708*cdf0e10cSrcweir const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent ) 1709*cdf0e10cSrcweir :m_aItems( SFX_APP()->GetPool(), SID_ATTR_MACROITEM, SID_ATTR_MACROITEM ) 1710*cdf0e10cSrcweir { 1711*cdf0e10cSrcweir m_aItems.Put( SfxBoolItem( SID_ATTR_MACROITEM, _bUnoDialogMode ) ); 1712*cdf0e10cSrcweir m_pDialog.reset( new SvxMacroAssignDlg( _pParent, _rxDocumentFrame, m_aItems, _rxEvents, _nInitiallySelectedEvent ) ); 1713*cdf0e10cSrcweir } 1714*cdf0e10cSrcweir 1715*cdf0e10cSrcweir virtual short Execute(); 1716*cdf0e10cSrcweir virtual ~SvxMacroAssignDialog(); 1717*cdf0e10cSrcweir 1718*cdf0e10cSrcweir private: 1719*cdf0e10cSrcweir SfxItemSet m_aItems; 1720*cdf0e10cSrcweir ::std::auto_ptr< SvxMacroAssignDlg > m_pDialog; 1721*cdf0e10cSrcweir }; 1722*cdf0e10cSrcweir 1723*cdf0e10cSrcweir short SvxMacroAssignDialog::Execute() 1724*cdf0e10cSrcweir { 1725*cdf0e10cSrcweir return m_pDialog->Execute(); 1726*cdf0e10cSrcweir } 1727*cdf0e10cSrcweir 1728*cdf0e10cSrcweir SvxMacroAssignDialog::~SvxMacroAssignDialog() 1729*cdf0e10cSrcweir { 1730*cdf0e10cSrcweir } 1731*cdf0e10cSrcweir 1732*cdf0e10cSrcweir VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxMacroAssignDlg( 1733*cdf0e10cSrcweir Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode, 1734*cdf0e10cSrcweir const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent ) 1735*cdf0e10cSrcweir { 1736*cdf0e10cSrcweir return new SvxMacroAssignDialog( _pParent, _rxDocumentFrame, _bUnoDialogMode, _rxEvents, _nInitiallySelectedEvent ); 1737*cdf0e10cSrcweir } 1738*cdf0e10cSrcweir 1739*cdf0e10cSrcweir // Factories for TabPages 1740*cdf0e10cSrcweir CreateTabPage AbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId ) 1741*cdf0e10cSrcweir { 1742*cdf0e10cSrcweir switch ( nId ) 1743*cdf0e10cSrcweir { 1744*cdf0e10cSrcweir case RID_OFA_TP_INTERNATIONAL: 1745*cdf0e10cSrcweir return ::offapp::InternationalOptionsPage::CreateSc; 1746*cdf0e10cSrcweir case RID_OFA_TP_INTERNATIONAL_SD: 1747*cdf0e10cSrcweir case RID_OFA_TP_INTERNATIONAL_IMPR: 1748*cdf0e10cSrcweir return offapp::InternationalOptionsPage::CreateSd; 1749*cdf0e10cSrcweir case RID_SVXPAGE_TEXTANIMATION : 1750*cdf0e10cSrcweir return SvxTextAnimationPage::Create; 1751*cdf0e10cSrcweir case RID_SVXTABPAGE_GALLERY_GENERAL : 1752*cdf0e10cSrcweir return TPGalleryThemeGeneral::Create; 1753*cdf0e10cSrcweir case RID_SVXPAGE_TRANSPARENCE : 1754*cdf0e10cSrcweir return SvxTransparenceTabPage::Create; 1755*cdf0e10cSrcweir case RID_SVXPAGE_AREA : 1756*cdf0e10cSrcweir return SvxAreaTabPage::Create; 1757*cdf0e10cSrcweir case RID_SVXPAGE_SHADOW : 1758*cdf0e10cSrcweir return SvxShadowTabPage::Create; 1759*cdf0e10cSrcweir case RID_SVXPAGE_LINE : 1760*cdf0e10cSrcweir return SvxLineTabPage::Create; 1761*cdf0e10cSrcweir case RID_SVXPAGE_CONNECTION : 1762*cdf0e10cSrcweir return SvxConnectionPage::Create; 1763*cdf0e10cSrcweir case RID_SVXPAGE_MEASURE : 1764*cdf0e10cSrcweir return SvxMeasurePage::Create; 1765*cdf0e10cSrcweir case RID_SFXPAGE_GENERAL : 1766*cdf0e10cSrcweir return SvxGeneralTabPage::Create; 1767*cdf0e10cSrcweir case RID_SVXPAGE_PICK_SINGLE_NUM : 1768*cdf0e10cSrcweir return SvxSingleNumPickTabPage::Create; 1769*cdf0e10cSrcweir case RID_SVXPAGE_PICK_BMP : 1770*cdf0e10cSrcweir return SvxBitmapPickTabPage::Create; 1771*cdf0e10cSrcweir case RID_SVXPAGE_PICK_BULLET : 1772*cdf0e10cSrcweir return SvxBulletPickTabPage::Create; 1773*cdf0e10cSrcweir case RID_SVXPAGE_NUM_OPTIONS : 1774*cdf0e10cSrcweir return SvxNumOptionsTabPage::Create; 1775*cdf0e10cSrcweir case RID_SVXPAGE_PICK_NUM : 1776*cdf0e10cSrcweir return SvxNumPickTabPage::Create; 1777*cdf0e10cSrcweir case RID_SVXPAGE_NUM_POSITION : 1778*cdf0e10cSrcweir return SvxNumPositionTabPage::Create; 1779*cdf0e10cSrcweir case RID_SVXPAGE_PARA_ASIAN : 1780*cdf0e10cSrcweir return SvxAsianTabPage::Create; 1781*cdf0e10cSrcweir case RID_SVXPAGE_EXT_PARAGRAPH : 1782*cdf0e10cSrcweir return SvxExtParagraphTabPage::Create; 1783*cdf0e10cSrcweir case RID_SVXPAGE_ALIGN_PARAGRAPH : 1784*cdf0e10cSrcweir return SvxParaAlignTabPage::Create; 1785*cdf0e10cSrcweir case RID_SVXPAGE_STD_PARAGRAPH : 1786*cdf0e10cSrcweir return SvxStdParagraphTabPage::Create; 1787*cdf0e10cSrcweir case RID_SVXPAGE_TABULATOR : 1788*cdf0e10cSrcweir return SvxTabulatorTabPage::Create; 1789*cdf0e10cSrcweir case RID_SVXPAGE_TEXTATTR : 1790*cdf0e10cSrcweir return SvxTextAttrPage::Create; 1791*cdf0e10cSrcweir case RID_SVXPAGE_ALIGNMENT : 1792*cdf0e10cSrcweir return svx::AlignmentTabPage::Create; 1793*cdf0e10cSrcweir case RID_SW_TP_BACKGROUND : 1794*cdf0e10cSrcweir case RID_SVXPAGE_BACKGROUND : 1795*cdf0e10cSrcweir return SvxBackgroundTabPage::Create; 1796*cdf0e10cSrcweir case RID_SVXPAGE_BORDER : 1797*cdf0e10cSrcweir return SvxBorderTabPage::Create; 1798*cdf0e10cSrcweir case RID_SVXPAGE_CHAR_NAME : 1799*cdf0e10cSrcweir return SvxCharNamePage::Create; 1800*cdf0e10cSrcweir case RID_SVXPAGE_CHAR_EFFECTS : 1801*cdf0e10cSrcweir return SvxCharEffectsPage::Create; 1802*cdf0e10cSrcweir case RID_SVXPAGE_CHAR_POSITION : 1803*cdf0e10cSrcweir return SvxCharPositionPage::Create; 1804*cdf0e10cSrcweir case RID_SVXPAGE_CHAR_TWOLINES : 1805*cdf0e10cSrcweir return SvxCharTwoLinesPage::Create; 1806*cdf0e10cSrcweir case RID_SVXPAGE_NUMBERFORMAT : 1807*cdf0e10cSrcweir return SvxNumberFormatTabPage::Create; 1808*cdf0e10cSrcweir case RID_SVXPAGE_PAGE : 1809*cdf0e10cSrcweir return SvxPageDescPage::Create; 1810*cdf0e10cSrcweir case RID_SVXPAGE_GRFCROP : 1811*cdf0e10cSrcweir return SvxGrfCropPage::Create; 1812*cdf0e10cSrcweir case RID_SVXPAGE_MACROASSIGN : 1813*cdf0e10cSrcweir return SfxMacroTabPage::Create; 1814*cdf0e10cSrcweir default: 1815*cdf0e10cSrcweir break; 1816*cdf0e10cSrcweir } 1817*cdf0e10cSrcweir 1818*cdf0e10cSrcweir return 0; 1819*cdf0e10cSrcweir } 1820*cdf0e10cSrcweir 1821*cdf0e10cSrcweir CreateSvxDistributePage AbstractDialogFactory_Impl::GetSvxDistributePageCreatorFunc() 1822*cdf0e10cSrcweir { 1823*cdf0e10cSrcweir return SvxDistributePage::Create; 1824*cdf0e10cSrcweir } 1825*cdf0e10cSrcweir 1826*cdf0e10cSrcweir DialogGetRanges AbstractDialogFactory_Impl::GetDialogGetRangesFunc( sal_uInt16 nId ) 1827*cdf0e10cSrcweir { 1828*cdf0e10cSrcweir switch ( nId ) 1829*cdf0e10cSrcweir { 1830*cdf0e10cSrcweir case RID_SVXDLG_POSTIT: 1831*cdf0e10cSrcweir return SvxPostItDialog::GetRanges; //add for SvxPostItDialog 1832*cdf0e10cSrcweir default: 1833*cdf0e10cSrcweir break; 1834*cdf0e10cSrcweir } 1835*cdf0e10cSrcweir 1836*cdf0e10cSrcweir return 0; 1837*cdf0e10cSrcweir } 1838*cdf0e10cSrcweir GetTabPageRanges AbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId ) 1839*cdf0e10cSrcweir { 1840*cdf0e10cSrcweir switch ( nId ) 1841*cdf0e10cSrcweir { 1842*cdf0e10cSrcweir case RID_SVXPAGE_TEXTANIMATION : 1843*cdf0e10cSrcweir return SvxTextAnimationPage::GetRanges; 1844*cdf0e10cSrcweir case RID_SVXPAGE_DISTRIBUTE: 1845*cdf0e10cSrcweir return SvxDistributePage::GetRanges; 1846*cdf0e10cSrcweir case RID_SVXPAGE_TRANSPARENCE : 1847*cdf0e10cSrcweir return SvxTransparenceTabPage::GetRanges; 1848*cdf0e10cSrcweir case RID_SVXPAGE_AREA : 1849*cdf0e10cSrcweir return SvxAreaTabPage::GetRanges; 1850*cdf0e10cSrcweir case RID_SVXPAGE_SHADOW : 1851*cdf0e10cSrcweir return SvxShadowTabPage::GetRanges; 1852*cdf0e10cSrcweir case RID_SVXPAGE_LINE : 1853*cdf0e10cSrcweir return SvxLineTabPage::GetRanges; 1854*cdf0e10cSrcweir case RID_SVXPAGE_CONNECTION : 1855*cdf0e10cSrcweir return SvxConnectionPage::GetRanges; 1856*cdf0e10cSrcweir case RID_SVXPAGE_MEASURE : 1857*cdf0e10cSrcweir return SvxMeasurePage::GetRanges; 1858*cdf0e10cSrcweir case RID_SVXPAGE_PARA_ASIAN : 1859*cdf0e10cSrcweir return SvxAsianTabPage::GetRanges; 1860*cdf0e10cSrcweir case RID_SVXPAGE_EXT_PARAGRAPH : 1861*cdf0e10cSrcweir return SvxExtParagraphTabPage::GetRanges; 1862*cdf0e10cSrcweir case RID_SVXPAGE_ALIGN_PARAGRAPH : 1863*cdf0e10cSrcweir return SvxParaAlignTabPage::GetRanges; 1864*cdf0e10cSrcweir case RID_SVXPAGE_STD_PARAGRAPH : 1865*cdf0e10cSrcweir return SvxStdParagraphTabPage::GetRanges; 1866*cdf0e10cSrcweir case RID_SVXPAGE_TABULATOR : 1867*cdf0e10cSrcweir return SvxTabulatorTabPage::GetRanges; 1868*cdf0e10cSrcweir case RID_SVXPAGE_TEXTATTR : 1869*cdf0e10cSrcweir return SvxTextAttrPage::GetRanges; 1870*cdf0e10cSrcweir case RID_SVXPAGE_ALIGNMENT : 1871*cdf0e10cSrcweir return svx::AlignmentTabPage::GetRanges; 1872*cdf0e10cSrcweir case RID_SW_TP_BACKGROUND : 1873*cdf0e10cSrcweir case RID_SVXPAGE_BACKGROUND : 1874*cdf0e10cSrcweir return SvxBackgroundTabPage::GetRanges; 1875*cdf0e10cSrcweir case RID_SVXPAGE_BORDER : 1876*cdf0e10cSrcweir return SvxBorderTabPage::GetRanges; 1877*cdf0e10cSrcweir case RID_SVXPAGE_CHAR_NAME : 1878*cdf0e10cSrcweir return SvxCharNamePage::GetRanges; 1879*cdf0e10cSrcweir case RID_SVXPAGE_CHAR_EFFECTS : 1880*cdf0e10cSrcweir return SvxCharEffectsPage::GetRanges; 1881*cdf0e10cSrcweir case RID_SVXPAGE_CHAR_POSITION : 1882*cdf0e10cSrcweir return SvxCharPositionPage::GetRanges; 1883*cdf0e10cSrcweir case RID_SVXPAGE_CHAR_TWOLINES : 1884*cdf0e10cSrcweir return SvxCharTwoLinesPage::GetRanges; 1885*cdf0e10cSrcweir case RID_SVXPAGE_NUMBERFORMAT : 1886*cdf0e10cSrcweir return SvxNumberFormatTabPage::GetRanges; 1887*cdf0e10cSrcweir case RID_SVXPAGE_PAGE : 1888*cdf0e10cSrcweir return SvxPageDescPage::GetRanges; 1889*cdf0e10cSrcweir case RID_SVXPAGE_ASIAN_LAYOUT: 1890*cdf0e10cSrcweir return SvxAsianLayoutPage::GetRanges; 1891*cdf0e10cSrcweir default: 1892*cdf0e10cSrcweir break; 1893*cdf0e10cSrcweir } 1894*cdf0e10cSrcweir 1895*cdf0e10cSrcweir return 0; 1896*cdf0e10cSrcweir } 1897*cdf0e10cSrcweir 1898*cdf0e10cSrcweir SfxAbstractInsertObjectDialog* AbstractDialogFactory_Impl::CreateInsertObjectDialog( Window* pParent, const rtl::OUString& rCommand, 1899*cdf0e10cSrcweir const Reference < com::sun::star::embed::XStorage >& xStor, 1900*cdf0e10cSrcweir const SvObjectServerList* pList ) 1901*cdf0e10cSrcweir { 1902*cdf0e10cSrcweir InsertObjectDialog_Impl* pDlg=0; 1903*cdf0e10cSrcweir if ( rCommand.equalsAscii(".uno:InsertObject" ) ) 1904*cdf0e10cSrcweir pDlg = new SvInsertOleDlg( pParent, xStor, pList ); 1905*cdf0e10cSrcweir else if ( rCommand.equalsAscii(".uno:InsertPlugin" ) ) 1906*cdf0e10cSrcweir pDlg = new SvInsertPlugInDialog( pParent, xStor ); 1907*cdf0e10cSrcweir else if ( rCommand.equalsAscii(".uno:InsertObjectFloatingFrame" ) ) 1908*cdf0e10cSrcweir pDlg = new SfxInsertFloatingFrameDialog( pParent, xStor ); 1909*cdf0e10cSrcweir 1910*cdf0e10cSrcweir if ( pDlg ) 1911*cdf0e10cSrcweir { 1912*cdf0e10cSrcweir pDlg->SetHelpId( rtl::OString( rCommand, rCommand.getLength(), RTL_TEXTENCODING_UTF8 ) ); 1913*cdf0e10cSrcweir return new AbstractInsertObjectDialog_Impl( pDlg ); 1914*cdf0e10cSrcweir } 1915*cdf0e10cSrcweir return 0; 1916*cdf0e10cSrcweir } 1917*cdf0e10cSrcweir 1918*cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateEditObjectDialog( Window* pParent, const rtl::OUString& rCommand, 1919*cdf0e10cSrcweir const Reference < com::sun::star::embed::XEmbeddedObject >& xObj ) 1920*cdf0e10cSrcweir { 1921*cdf0e10cSrcweir InsertObjectDialog_Impl* pDlg=0; 1922*cdf0e10cSrcweir if ( rCommand.equalsAscii(".uno:InsertObjectFloatingFrame" ) ) 1923*cdf0e10cSrcweir { 1924*cdf0e10cSrcweir pDlg = new SfxInsertFloatingFrameDialog( pParent, xObj ); 1925*cdf0e10cSrcweir pDlg->SetHelpId( rtl::OString( rCommand, rCommand.getLength(), RTL_TEXTENCODING_UTF8 ) ); 1926*cdf0e10cSrcweir return new VclAbstractDialog_Impl( pDlg ); 1927*cdf0e10cSrcweir } 1928*cdf0e10cSrcweir return 0; 1929*cdf0e10cSrcweir } 1930*cdf0e10cSrcweir 1931*cdf0e10cSrcweir 1932*cdf0e10cSrcweir 1933*cdf0e10cSrcweir SfxAbstractPasteDialog* AbstractDialogFactory_Impl::CreatePasteDialog( Window* pParent ) 1934*cdf0e10cSrcweir { 1935*cdf0e10cSrcweir return new AbstractPasteDialog_Impl( new SvPasteObjectDialog( pParent ) ); 1936*cdf0e10cSrcweir } 1937*cdf0e10cSrcweir 1938*cdf0e10cSrcweir SfxAbstractLinksDialog* AbstractDialogFactory_Impl::CreateLinksDialog( Window* pParent, sfx2::LinkManager* pMgr, sal_Bool bHTML, sfx2::SvBaseLink* p) 1939*cdf0e10cSrcweir { 1940*cdf0e10cSrcweir SvBaseLinksDlg* pLinkDlg = new SvBaseLinksDlg( pParent, pMgr, bHTML ); 1941*cdf0e10cSrcweir if ( p ) 1942*cdf0e10cSrcweir pLinkDlg->SetActLink(p); 1943*cdf0e10cSrcweir return new AbstractLinksDialog_Impl( pLinkDlg ); 1944*cdf0e10cSrcweir } 1945*cdf0e10cSrcweir 1946*cdf0e10cSrcweir SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, const SdrObject* /*pObj*/ ) 1947*cdf0e10cSrcweir { 1948*cdf0e10cSrcweir return new AbstractTabDialog_Impl( new SvxFormatCellsDialog( pParent, pAttr, pModel ) ); 1949*cdf0e10cSrcweir } 1950*cdf0e10cSrcweir 1951*cdf0e10cSrcweir SvxAbstractSplittTableDialog* AbstractDialogFactory_Impl::CreateSvxSplittTableDialog( Window* pParent, bool bIsTableVertical, long nMaxVertical, long nMaxHorizontal ) 1952*cdf0e10cSrcweir { 1953*cdf0e10cSrcweir return new SvxSplitTableDlg( pParent, bIsTableVertical, nMaxVertical, nMaxHorizontal ); 1954*cdf0e10cSrcweir } 1955*cdf0e10cSrcweir 1956*cdf0e10cSrcweir SvxAbstractNewTableDialog* AbstractDialogFactory_Impl::CreateSvxNewTableDialog( Window* pParent ) 1957*cdf0e10cSrcweir { 1958*cdf0e10cSrcweir return new SvxNewTableDialog( pParent ); 1959*cdf0e10cSrcweir } 1960*cdf0e10cSrcweir 1961*cdf0e10cSrcweir VclAbstractDialog* AbstractDialogFactory_Impl::CreateOptionsDialog( 1962*cdf0e10cSrcweir Window* pParent, const rtl::OUString& rExtensionId, const rtl::OUString& /*rApplicationContext*/ ) 1963*cdf0e10cSrcweir { 1964*cdf0e10cSrcweir return new VclAbstractDialog_Impl( new OfaTreeOptionsDialog( pParent, rExtensionId ) ); 1965*cdf0e10cSrcweir } 1966*cdf0e10cSrcweir 1967*cdf0e10cSrcweir SvxAbstractInsRowColDlg* AbstractDialogFactory_Impl::CreateSvxInsRowColDlg( Window* pParent, bool bCol, const rtl::OString& sHelpId ) 1968*cdf0e10cSrcweir { 1969*cdf0e10cSrcweir return new SvxInsRowColDlg( pParent, bCol, sHelpId ); 1970*cdf0e10cSrcweir } 1971*cdf0e10cSrcweir 1972*cdf0e10cSrcweir AbstractPasswordToOpenModifyDialog * AbstractDialogFactory_Impl::CreatePasswordToOpenModifyDialog( 1973*cdf0e10cSrcweir Window * pParent, 1974*cdf0e10cSrcweir sal_uInt16 nMinPasswdLen, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify ) 1975*cdf0e10cSrcweir { 1976*cdf0e10cSrcweir PasswordToOpenModifyDialog * pDlg = new PasswordToOpenModifyDialog( pParent, nMinPasswdLen, nMaxPasswdLen, bIsPasswordToModify ); 1977*cdf0e10cSrcweir return new AbstractPasswordToOpenModifyDialog_Impl( pDlg ); 1978*cdf0e10cSrcweir } 1979*cdf0e10cSrcweir 1980*cdf0e10cSrcweir 1981