LCOV - code coverage report
Current view: top level - libreoffice/cui/source/factory - dlgfact.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 897 0.3 %
Date: 2012-12-17 Functions: 3 369 0.8 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.10