LCOV - code coverage report
Current view: top level - cui/source/factory - dlgfact.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 854 0.0 %
Date: 2014-04-11 Functions: 0 368 0.0 %
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"
      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 "labdlg.hxx"
      40             : #include "hangulhanjadlg.hxx"
      41             : #include "showcols.hxx"
      42             : #include "zoom.hxx"
      43             : #include "cuigaldlg.hxx"
      44             : #include "transfrm.hxx"
      45             : #include "bbdlg.hxx"
      46             : #include "cuisrchdlg.hxx"
      47             : #include "cuitbxform.hxx"
      48             : #include "optdict.hxx"
      49             : #include "dlgname.hxx"
      50             : #include "multipat.hxx"
      51             : #include "cuihyperdlg.hxx"
      52             : #include "cuifmsearch.hxx"
      53             : #include "cuigrfflt.hxx"
      54             : #include "cuitabarea.hxx"
      55             : #include "cuitabline.hxx"
      56             : #include "measure.hxx"
      57             : #include "connect.hxx"
      58             : #include "dbregister.hxx"
      59             : #include "cuioptgenrl.hxx"
      60             : #include "optasian.hxx"
      61             : #include "insdlg.hxx"
      62             : #include "pastedlg.hxx"
      63             : #include "linkdlg.hxx"
      64             : #include "SpellDialog.hxx"
      65             : #include "cfg.hxx"
      66             : #include "numpages.hxx"
      67             : #include "paragrph.hxx"
      68             : #include "tabstpge.hxx"
      69             : #include "textattr.hxx"
      70             : #include "backgrnd.hxx"
      71             : #include "border.hxx"
      72             : #include "chardlg.hxx"
      73             : #include "page.hxx"
      74             : #include "postdlg.hxx"
      75             : #include "grfpage.hxx"
      76             : #include "scriptdlg.hxx"
      77             : #include "selector.hxx"
      78             : #include "macropg.hxx"
      79             : #include "sdrcelldlg.hxx"
      80             : #include "newtabledlg.hxx"
      81             : #include "macroass.hxx"
      82             : #include "acccfg.hxx"
      83             : #include "insrc.hxx"
      84             : #include "passwdomdlg.hxx"
      85             : #include "hyphen.hxx"
      86             : #include "thesdlg.hxx"
      87             : #include "about.hxx"
      88             : #include "dialmgr.hxx"
      89             : 
      90             : using namespace ::com::sun::star;
      91             : using namespace ::com::sun::star::frame;
      92             : using namespace ::com::sun::star::container;
      93             : 
      94             : using ::com::sun::star::uno::Reference;
      95             : 
      96             : using namespace svx;
      97             : // AbstractTabDialog implementations just forwards everything to the dialog
      98           0 : IMPL_ABSTDLG_BASE(CuiAbstractSfxDialog_Impl)
      99           0 : IMPL_ABSTDLG_BASE(CuiVclAbstractDialog_Impl)
     100           0 : IMPL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl);
     101           0 : IMPL_ABSTDLG_BASE(CuiAbstractTabDialog_Impl);
     102           0 : IMPL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl);
     103           0 : IMPL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl);
     104           0 : IMPL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl);
     105           0 : IMPL_ABSTDLG_BASE(AbstractHyphenWordDialog_Impl)
     106           0 : IMPL_ABSTDLG_BASE(AbstractThesaurusDialog_Impl)
     107             : 
     108           0 : AbstractSvxZoomDialog_Impl::~AbstractSvxZoomDialog_Impl()                                       \
     109             : {
     110           0 :     delete pDlg;
     111           0 : }
     112           0 : short AbstractSvxZoomDialog_Impl::Execute()
     113             : {
     114           0 :     return pDlg->Execute();
     115             : }
     116             : 
     117           0 : IMPL_ABSTDLG_BASE(AbstractSearchProgress_Impl);
     118           0 : IMPL_ABSTDLG_BASE(AbstractTakeProgress_Impl);
     119           0 : IMPL_ABSTDLG_BASE(AbstractTitleDialog_Impl);
     120           0 : IMPL_ABSTDLG_BASE(AbstractScriptSelectorDialog_Impl);
     121           0 : IMPL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl);
     122           0 : IMPL_ABSTDLG_BASE(AbstractURLDlg_Impl);
     123           0 : IMPL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl);
     124           0 : IMPL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl);
     125           0 : IMPL_ABSTDLG_BASE(AbstractSvxTransformTabDialog_Impl);
     126           0 : IMPL_ABSTDLG_BASE(AbstractSvxCaptionDialog_Impl);
     127           0 : IMPL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl);
     128           0 : IMPL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl);
     129           0 : IMPL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl);
     130           0 : IMPL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl);
     131             : 
     132             : // #i68101#
     133           0 : IMPL_ABSTDLG_BASE(AbstractSvxObjectNameDialog_Impl);
     134           0 : IMPL_ABSTDLG_BASE(AbstractSvxObjectTitleDescDialog_Impl);
     135             : 
     136           0 : IMPL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl);
     137           0 : IMPL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl);
     138           0 : IMPL_ABSTDLG_BASE(AbstractSvxPathSelectDialog_Impl);
     139           0 : IMPL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl);
     140           0 : IMPL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl);
     141           0 : IMPL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl);
     142           0 : IMPL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl);
     143           0 : IMPL_ABSTDLG_BASE(AbstractPasteDialog_Impl);
     144           0 : IMPL_ABSTDLG_BASE(AbstractInsertObjectDialog_Impl);
     145           0 : IMPL_ABSTDLG_BASE(AbstractLinksDialog_Impl);
     146           0 : IMPL_ABSTDLG_BASE(AbstractSpellDialog_Impl);
     147           0 : IMPL_ABSTDLG_BASE(AbstractSvxPostItDialog_Impl);
     148           0 : IMPL_ABSTDLG_BASE(AbstractPasswordToOpenModifyDialog_Impl);
     149             : 
     150             : 
     151             : // VclAbstractDialog2_Impl
     152             : 
     153             : 
     154             : // virtual
     155           0 : VclAbstractDialog2_Impl::~VclAbstractDialog2_Impl()
     156             : {
     157           0 :     delete m_pDlg;
     158           0 : }
     159             : 
     160             : // virtual
     161           0 : void  VclAbstractDialog2_Impl::StartExecuteModal( const Link& rEndDialogHdl )
     162             : {
     163           0 :     m_aEndDlgHdl = rEndDialogHdl;
     164             :     m_pDlg->StartExecuteModal(
     165           0 :         LINK( this, VclAbstractDialog2_Impl, EndDialogHdl ) );
     166           0 : }
     167             : 
     168             : // virtual
     169           0 : long VclAbstractDialog2_Impl::GetResult()
     170             : {
     171           0 :     return m_pDlg->GetResult();
     172             : }
     173             : 
     174           0 : IMPL_LINK( VclAbstractDialog2_Impl, EndDialogHdl, Dialog*, pDlg )
     175             : {
     176           0 :     if ( pDlg != m_pDlg )
     177             :     {
     178             :         SAL_WARN( "cui.factory", "VclAbstractDialog2_Impl::EndDialogHdl(): wrong dialog" );
     179             :     }
     180             : 
     181           0 :     m_aEndDlgHdl.Call( this );
     182           0 :     m_aEndDlgHdl = Link();
     183             : 
     184           0 :     return 0L;
     185             : }
     186             : 
     187             : 
     188             : 
     189           0 : void CuiAbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
     190             : {
     191           0 :     pDlg->SetCurPageId( nId );
     192           0 : }
     193             : 
     194           0 : void CuiAbstractTabDialog_Impl::SetCurPageId( const OString& rName )
     195             : {
     196           0 :     pDlg->SetCurPageId( rName );
     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 OUString& rStr )
     215             : {
     216           0 :     pDlg->SetText( rStr );
     217           0 : }
     218           0 : OUString 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 OUString& rStr )
     230             : {
     231           0 :     pDlg->SetText( rStr );
     232           0 : }
     233             : 
     234           0 : OUString 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( bool _bVal )
     254             : {
     255           0 :     pDlg->EnableRubySupport(_bVal);
     256           0 : }
     257             : 
     258           0 : void AbstractHangulHanjaConversionDialog_Impl::SetByCharacter( bool _bByCharacter )
     259             : {
     260           0 :     pDlg->SetByCharacter(_bByCharacter);
     261           0 : }
     262             : 
     263           0 : void AbstractHangulHanjaConversionDialog_Impl::SetConversionDirectionState( 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 : 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 OUString& _rNewString,
     324             :                     const ::com::sun::star::uno::Sequence< OUString >& _rSuggestions,
     325             :                     bool _bOriginatesFromDocument
     326             :                 )
     327             : {
     328           0 :      pDlg->SetCurrentString(_rNewString,_rSuggestions,_bOriginatesFromDocument);
     329           0 : }
     330           0 : OUString   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 : OUString  AbstractHangulHanjaConversionDialog_Impl::GetCurrentSuggestion( ) const
     345             : {
     346           0 :     return pDlg->GetCurrentSuggestion();
     347             : }
     348             : 
     349           0 : OUString 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 : bool AbstractInsertObjectDialog_Impl::IsCreateNew()
     385             : {
     386           0 :     return pDlg->IsCreateNew();
     387             : }
     388             : 
     389           0 : ::Reference< ::com::sun::star::io::XInputStream > AbstractInsertObjectDialog_Impl::GetIconIfIconified( OUString* pGraphicMediaType )
     390             : {
     391           0 :    return pDlg->GetIconIfIconified( pGraphicMediaType );
     392             : }
     393             : 
     394           0 : void AbstractPasteDialog_Impl::Insert( SotFormatStringId nFormat, const OUString & rFormatName )
     395             : {
     396           0 :     pDlg->Insert( nFormat, rFormatName );
     397           0 : }
     398             : 
     399           0 : void AbstractPasteDialog_Impl::SetObjName( const SvGlobalName & rClass, const OUString & 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 : 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 OUString& 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 : OUString 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 : OUString AbstractURLDlg_Impl::GetURL() const
     521             : {
     522           0 :     return pDlg->GetURL();
     523             : }
     524             : 
     525           0 : OUString AbstractURLDlg_Impl::GetAltText() const
     526             : {
     527           0 :     return pDlg->GetAltText();
     528             : }
     529             : 
     530           0 : OUString AbstractURLDlg_Impl::GetDesc() const
     531             : {
     532           0 :     return pDlg->GetDesc();
     533             : }
     534             : 
     535           0 : OUString AbstractURLDlg_Impl::GetTarget() const
     536             : {
     537           0 :     return pDlg->GetTarget();
     538             : }
     539             : 
     540           0 : OUString AbstractURLDlg_Impl::GetName() const
     541             : {
     542           0 :     return pDlg->GetName();
     543             : }
     544             : 
     545           0 : void AbstractSvxHlinkDlgMarkWnd_Impl::Hide()
     546             : {
     547           0 :     ((Window*)pDlg)->Hide();
     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 : 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 : bool AbstractSvxHlinkDlgMarkWnd_Impl::MoveTo( Point aNewPos )const
     571             : {
     572           0 :     return pDlg->MoveTo(aNewPos);
     573             : }
     574             : 
     575           0 : bool AbstractSvxHlinkDlgMarkWnd_Impl::ConnectToDialog( bool bDoit  )const
     576             : {
     577           0 :     return pDlg->ConnectToDialog(bDoit);
     578             : }
     579             : 
     580           0 : void AbstractSvxHlinkDlgMarkWnd_Impl::RefreshTree ( const OUString& aStrURL )
     581             : {
     582           0 :     pDlg->RefreshTree(aStrURL);
     583           0 : }
     584             : 
     585           0 : void AbstractSvxHlinkDlgMarkWnd_Impl::SelectEntry ( const OUString& 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 : 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             : 
     621           0 : void AbstractSvxTransformTabDialog_Impl::SetCurPageId( const OString& rName )
     622             : {
     623           0 :     pDlg->SetCurPageId( rName );
     624           0 : }
     625             : 
     626           0 : const SfxItemSet* AbstractSvxTransformTabDialog_Impl::GetOutputItemSet() const
     627             : {
     628           0 :     return pDlg->GetOutputItemSet();
     629             : }
     630             : 
     631           0 : const sal_uInt16* AbstractSvxTransformTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
     632             : {
     633           0 :     return pDlg->GetInputRanges( pItem );
     634             : }
     635             : 
     636           0 : void AbstractSvxTransformTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
     637             : {
     638           0 :      pDlg->SetInputSet( pInSet );
     639           0 : }
     640             : //From class Window.
     641           0 : void AbstractSvxTransformTabDialog_Impl::SetText( const OUString& rStr )
     642             : {
     643           0 :     pDlg->SetText( rStr );
     644           0 : }
     645           0 : OUString AbstractSvxTransformTabDialog_Impl::GetText() const
     646             : {
     647           0 :     return pDlg->GetText();
     648             : }
     649           0 : void AbstractSvxTransformTabDialog_Impl::SetValidateFramePosLink( const Link& rLink )
     650             : {
     651           0 :     pDlg->SetValidateFramePosLink( rLink );
     652           0 : }
     653             : 
     654             : // AbstractSvxCaptionDialog implementations just forwards everything to the dialog
     655           0 : void AbstractSvxCaptionDialog_Impl::SetCurPageId( sal_uInt16 nId )
     656             : {
     657           0 :     pDlg->SetCurPageId( nId );
     658           0 : }
     659             : 
     660           0 : void AbstractSvxCaptionDialog_Impl::SetCurPageId( const OString& rName )
     661             : {
     662           0 :     pDlg->SetCurPageId( rName );
     663           0 : }
     664             : 
     665           0 : const SfxItemSet* AbstractSvxCaptionDialog_Impl::GetOutputItemSet() const
     666             : {
     667           0 :     return pDlg->GetOutputItemSet();
     668             : }
     669             : 
     670           0 : const sal_uInt16* AbstractSvxCaptionDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
     671             : {
     672           0 :     return pDlg->GetInputRanges( pItem );
     673             : }
     674             : 
     675           0 : void AbstractSvxCaptionDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
     676             : {
     677           0 :      pDlg->SetInputSet( pInSet );
     678           0 : }
     679             : //From class Window.
     680           0 : void AbstractSvxCaptionDialog_Impl::SetText( const OUString& rStr )
     681             : {
     682           0 :     pDlg->SetText( rStr );
     683           0 : }
     684           0 : OUString AbstractSvxCaptionDialog_Impl::GetText() const
     685             : {
     686           0 :     return pDlg->GetText();
     687             : }
     688           0 : void AbstractSvxCaptionDialog_Impl::SetValidateFramePosLink( const Link& rLink )
     689             : {
     690           0 :     pDlg->SetValidateFramePosLink( rLink );
     691           0 : }
     692             : 
     693           0 : sal_Int32 AbstractSvxJSearchOptionsDialog_Impl::GetTransliterationFlags() const
     694             : {
     695           0 :     return pDlg->GetTransliterationFlags();
     696             : }
     697             : 
     698           0 : void AbstractFmInputRecordNoDialog_Impl::SetValue(long nNew)
     699             : {
     700           0 :     pDlg->SetValue(nNew);
     701           0 : }
     702             : 
     703           0 : long AbstractFmInputRecordNoDialog_Impl::GetValue() const
     704             : {
     705           0 :     return pDlg->GetValue();
     706             : }
     707             : 
     708             : ::Reference<
     709           0 :         ::com::sun::star::linguistic2::XDictionary > AbstractSvxNewDictionaryDialog_Impl::GetNewDictionary()
     710             : {
     711           0 :     return pDlg->GetNewDictionary();
     712             : }
     713             : 
     714           0 : void AbstractSvxNameDialog_Impl::GetName(OUString& rName)
     715             : {
     716           0 :     pDlg->GetName( rName );
     717           0 : }
     718             : 
     719           0 : void AbstractSvxNameDialog_Impl::SetCheckNameHdl( const Link& rLink, bool bCheckImmediately )
     720             : {
     721           0 :     aCheckNameHdl = rLink;
     722           0 :     if( rLink.IsSet() )
     723           0 :         pDlg->SetCheckNameHdl( LINK(this, AbstractSvxNameDialog_Impl, CheckNameHdl), bCheckImmediately );
     724             :     else
     725           0 :         pDlg->SetCheckNameHdl( Link(), bCheckImmediately );
     726           0 : }
     727           0 : void AbstractSvxNameDialog_Impl::SetEditHelpId(const OString& aHelpId)
     728             : {
     729           0 :     pDlg->SetEditHelpId( aHelpId );
     730           0 : }
     731           0 : void AbstractSvxNameDialog_Impl::SetHelpId( const OString& aHelpId )
     732             : {
     733           0 :     pDlg->SetHelpId( aHelpId );
     734           0 : }
     735           0 : void AbstractSvxNameDialog_Impl::SetText( const OUString& rStr )
     736             : {
     737           0 :     pDlg->SetText( rStr );
     738           0 : }
     739           0 : IMPL_LINK_NOARG(AbstractSvxNameDialog_Impl, CheckNameHdl)
     740             : {
     741           0 :     if( aCheckNameHdl.IsSet() )
     742           0 :         return aCheckNameHdl.Call(this);
     743           0 :     return 0;
     744             : }
     745             : 
     746           0 : void AbstractSvxObjectNameDialog_Impl::GetName(OUString& rName)
     747             : {
     748           0 :     pDlg->GetName(rName);
     749           0 : }
     750             : 
     751           0 : void AbstractSvxObjectNameDialog_Impl::SetCheckNameHdl(const Link& rLink, bool bCheckImmediately)
     752             : {
     753           0 :     aCheckNameHdl = rLink;
     754             : 
     755           0 :     if(rLink.IsSet())
     756             :     {
     757           0 :         pDlg->SetCheckNameHdl(LINK(this, AbstractSvxObjectNameDialog_Impl, CheckNameHdl), bCheckImmediately);
     758             :     }
     759             :     else
     760             :     {
     761           0 :         pDlg->SetCheckNameHdl(Link(), bCheckImmediately);
     762             :     }
     763           0 : }
     764             : 
     765           0 : IMPL_LINK_NOARG(AbstractSvxObjectNameDialog_Impl, CheckNameHdl)
     766             : {
     767           0 :     if(aCheckNameHdl.IsSet())
     768             :     {
     769           0 :         return aCheckNameHdl.Call(this);
     770             :     }
     771             : 
     772           0 :     return 0;
     773             : }
     774             : 
     775           0 : void AbstractSvxObjectTitleDescDialog_Impl::GetTitle(OUString& rTitle)
     776             : {
     777           0 :     pDlg->GetTitle(rTitle);
     778           0 : }
     779             : 
     780           0 : void AbstractSvxObjectTitleDescDialog_Impl::GetDescription(OUString& rDescription)
     781             : {
     782           0 :     pDlg->GetDescription(rDescription);
     783           0 : }
     784             : 
     785           0 : void AbstractSvxMessDialog_Impl::SetButtonText( sal_uInt16 nBtnId, const OUString& rNewTxt )
     786             : {
     787           0 :     pDlg->SetButtonText( nBtnId, rNewTxt );
     788           0 : }
     789             : 
     790           0 : OUString AbstractSvxMultiPathDialog_Impl::GetPath() const
     791             : {
     792           0 :     return pDlg->GetPath();
     793             : }
     794             : 
     795           0 : void AbstractSvxMultiPathDialog_Impl::SetPath( const OUString& rPath )
     796             : {
     797           0 :     pDlg->SetPath( rPath );
     798           0 : }
     799             : 
     800           0 : void AbstractSvxMultiPathDialog_Impl::SetTitle( const OUString& rNewTitle )
     801             : {
     802           0 :     pDlg->SetText( rNewTitle );
     803           0 : }
     804             : 
     805           0 : OUString AbstractSvxPathSelectDialog_Impl::GetPath() const
     806             : {
     807           0 :     return pDlg->GetPath();
     808             : }
     809             : 
     810           0 : void AbstractSvxPathSelectDialog_Impl::SetPath( const OUString& rPath )
     811             : {
     812           0 :     pDlg->SetPath( rPath );
     813           0 : }
     814             : 
     815           0 : void AbstractSvxPathSelectDialog_Impl::SetTitle( const OUString& rNewTitle )
     816             : {
     817           0 :     pDlg->SetText( rNewTitle );
     818           0 : }
     819             : 
     820           0 : Window * AbstractSvxHpLinkDlg_Impl::GetWindow()
     821             : {
     822           0 :     return (Window *)pDlg;
     823             : }
     824             : 
     825           0 : bool AbstractSvxHpLinkDlg_Impl::QueryClose()
     826             : {
     827           0 :     return pDlg->QueryClose();
     828             : }
     829             : 
     830             : 
     831           0 : void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link& lnk)
     832             : {
     833           0 :     pDlg->SetFoundHandler(lnk);
     834           0 : }
     835           0 : void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link& lnk)
     836             : {
     837           0 :     pDlg->SetCanceledNotFoundHdl(lnk);
     838           0 : }
     839           0 : void AbstractFmSearchDialog_Impl::SetActiveField(const OUString& strField)
     840             : {
     841           0 :     pDlg->SetActiveField(strField);
     842           0 : }
     843             : 
     844           0 : Graphic AbstractGraphicFilterDialog_Impl::GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY )
     845             : {
     846           0 :     return pDlg->GetFilteredGraphic( rGraphic, fScaleX, fScaleY );
     847             : }
     848             : 
     849             : // AbstractSvxAreaTabDialog implementations just forwards everything to the dialog
     850           0 : void AbstractSvxAreaTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
     851             : {
     852           0 :     pDlg->SetCurPageId( nId );
     853           0 : }
     854             : 
     855           0 : void AbstractSvxAreaTabDialog_Impl::SetCurPageId( const OString& rName )
     856             : {
     857           0 :     pDlg->SetCurPageId( rName );
     858           0 : }
     859             : 
     860           0 : const SfxItemSet* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const
     861             : {
     862           0 :     return pDlg->GetOutputItemSet();
     863             : }
     864             : 
     865           0 : const sal_uInt16* AbstractSvxAreaTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
     866             : {
     867           0 :     return pDlg->GetInputRanges( pItem );
     868             : }
     869             : 
     870           0 : void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
     871             : {
     872           0 :      pDlg->SetInputSet( pInSet );
     873           0 : }
     874             : //From class Window.
     875           0 : void AbstractSvxAreaTabDialog_Impl::SetText( const OUString& rStr )
     876             : {
     877           0 :     pDlg->SetText( rStr );
     878           0 : }
     879           0 : OUString AbstractSvxAreaTabDialog_Impl::GetText() const
     880             : {
     881           0 :     return pDlg->GetText();
     882             : }
     883             : 
     884           0 : void AbstractSvxPostItDialog_Impl::SetText( const OUString& rStr )
     885             : {
     886           0 :     pDlg->SetText( rStr );
     887           0 : }
     888           0 : const SfxItemSet* AbstractSvxPostItDialog_Impl::GetOutputItemSet() const
     889             : {
     890           0 :     return pDlg->GetOutputItemSet();
     891             : }
     892           0 : void AbstractSvxPostItDialog_Impl::EnableTravel(bool bNext, bool bPrev)
     893             : {
     894           0 :     pDlg->EnableTravel( bNext, bPrev );
     895           0 : }
     896           0 : OUString AbstractSvxPostItDialog_Impl::GetNote()
     897             : {
     898           0 :     return pDlg->GetNote();
     899             : }
     900           0 : void AbstractSvxPostItDialog_Impl::SetNote(const OUString& rTxt)
     901             : {
     902           0 :     pDlg->SetNote( rTxt );
     903           0 : }
     904           0 : void AbstractSvxPostItDialog_Impl::ShowLastAuthor(const OUString& rAuthor, const OUString& rDate)
     905             : {
     906           0 :     pDlg->ShowLastAuthor( rAuthor, rDate );
     907           0 : }
     908           0 : void AbstractSvxPostItDialog_Impl::DontChangeAuthor()
     909             : {
     910           0 :     pDlg->DontChangeAuthor();
     911           0 : }
     912           0 : void AbstractSvxPostItDialog_Impl::HideAuthor()
     913             : {
     914           0 :     pDlg->HideAuthor();
     915           0 : }
     916           0 : void AbstractSvxPostItDialog_Impl::SetReadonlyPostIt(bool bDisable)
     917             : {
     918           0 :     pDlg->SetReadonlyPostIt( bDisable );
     919           0 : }
     920           0 : bool AbstractSvxPostItDialog_Impl::IsOkEnabled() const
     921             : {
     922           0 :     return pDlg->IsOkEnabled();
     923             : }
     924           0 : void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link& rLink )
     925             : {
     926           0 :     aNextHdl = rLink;
     927           0 :     if( rLink.IsSet() )
     928           0 :         pDlg->SetNextHdl( LINK(this, AbstractSvxPostItDialog_Impl, NextHdl ) );
     929             :     else
     930           0 :         pDlg->SetNextHdl( Link() );
     931           0 : }
     932           0 : void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link& rLink )
     933             : {
     934           0 :     aPrevHdl = rLink;
     935           0 :     if( rLink.IsSet() )
     936           0 :         pDlg->SetPrevHdl( LINK(this, AbstractSvxPostItDialog_Impl, PrevHdl ) );
     937             :     else
     938           0 :         pDlg->SetPrevHdl( Link() );
     939           0 : }
     940           0 : IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, NextHdl)
     941             : {
     942           0 :     if( aNextHdl.IsSet() )
     943           0 :         aNextHdl.Call(this);
     944           0 :     return 0;
     945             : }
     946           0 : IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, PrevHdl)
     947             : {
     948           0 :     if( aPrevHdl.IsSet() )
     949           0 :         aPrevHdl.Call(this);
     950           0 :     return 0;
     951             : }
     952           0 : Window * AbstractSvxPostItDialog_Impl::GetWindow()
     953             : {
     954           0 :     return (Window *)pDlg;
     955             : }
     956             : 
     957           0 : OUString AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToOpen() const
     958             : {
     959           0 :     return pDlg->GetPasswordToOpen();
     960             : }
     961           0 : OUString AbstractPasswordToOpenModifyDialog_Impl::GetPasswordToModify() const
     962             : {
     963           0 :     return pDlg->GetPasswordToModify();
     964             : }
     965           0 : bool AbstractPasswordToOpenModifyDialog_Impl::IsRecommendToOpenReadonly() const
     966             : {
     967           0 :     return pDlg->IsRecommendToOpenReadonly();
     968             : }
     969             : 
     970             : // Create dialogs with simplest interface
     971           0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateVclDialog( Window* pParent, sal_uInt32 nResId )
     972             : {
     973           0 :     Dialog* pDlg=NULL;
     974           0 :     switch ( nResId )
     975             :     {
     976             :         case RID_DEFAULTABOUT:
     977             :         {
     978           0 :             pDlg = new AboutDialog(pParent);
     979           0 :             break;
     980             :         }
     981             :         case SID_OPTIONS_TREEDIALOG :
     982             :         case SID_OPTIONS_DATABASES :
     983             :         case SID_LANGUAGE_OPTIONS :
     984             :         {
     985           0 :             bool bActivateLastSelection = false;
     986           0 :             if (nResId == SID_OPTIONS_TREEDIALOG)
     987           0 :                 bActivateLastSelection = true;
     988           0 :             Reference< frame::XFrame > xFrame;
     989           0 :             OfaTreeOptionsDialog* pOptDlg = new OfaTreeOptionsDialog( pParent, xFrame, bActivateLastSelection );
     990           0 :             if (nResId == SID_OPTIONS_DATABASES)
     991             :             {
     992           0 :                 pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS);
     993             :             }
     994           0 :             else if (nResId == SID_LANGUAGE_OPTIONS)
     995             :             {
     996             :                 //open the tab page "tools/options/languages"
     997           0 :                 pOptDlg->ActivatePage(OFA_TP_LANGUAGES_FOR_SET_DOCUMENT_LANGUAGE);
     998             :             }
     999           0 :             pDlg = pOptDlg;
    1000             :         }
    1001           0 :         break;
    1002             :         default:
    1003           0 :             break;
    1004             :     }
    1005             : 
    1006           0 :     if ( pDlg )
    1007           0 :         return new CuiVclAbstractDialog_Impl( pDlg );
    1008           0 :     return 0;
    1009             : }
    1010             : 
    1011             : // dialogs that use SfxBindings
    1012           0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* /*pParent*/, const SfxBindings&, sal_uInt32 )
    1013             : {
    1014           0 :     return 0;
    1015             : }
    1016             : 
    1017           0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateFrameDialog(
    1018             :     Window* pParent, const Reference< frame::XFrame >& rxFrame,
    1019             :     sal_uInt32 nResId, const OUString& rParameter )
    1020             : {
    1021           0 :     Dialog* pDlg = NULL;
    1022           0 :     if ( SID_OPTIONS_TREEDIALOG == nResId || SID_OPTIONS_DATABASES == nResId )
    1023             :     {
    1024             :         // only activate last page if we dont want to activate a special page
    1025           0 :         bool bActivateLastSelection = ( nResId != SID_OPTIONS_DATABASES && rParameter.isEmpty() );
    1026           0 :         OfaTreeOptionsDialog* pOptDlg = new OfaTreeOptionsDialog( pParent, rxFrame, bActivateLastSelection );
    1027           0 :         if ( nResId == SID_OPTIONS_DATABASES )
    1028           0 :             pOptDlg->ActivatePage(SID_SB_DBREGISTEROPTIONS);
    1029           0 :         else if ( !rParameter.isEmpty() )
    1030           0 :             pOptDlg->ActivatePage( rParameter );
    1031           0 :         pDlg = pOptDlg;
    1032             :     }
    1033             : 
    1034           0 :     if ( pDlg )
    1035           0 :         return new CuiVclAbstractDialog_Impl( pDlg );
    1036             :     else
    1037           0 :         return NULL;
    1038             : }
    1039             : 
    1040             : // TabDialog outside the drawing layer
    1041           0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId,
    1042             :                                                 Window* pParent,
    1043             :                                                 const SfxItemSet* pAttrSet,
    1044             :                                                 SfxViewFrame* ,
    1045             :                                                 bool /*bEditFmt*/,
    1046             :                                                 const OUString * )
    1047             : {
    1048           0 :     SfxTabDialog* pDlg=NULL;
    1049           0 :     switch ( nResId )
    1050             :     {
    1051             :         case RID_OFA_AUTOCORR_DLG :
    1052           0 :             pDlg = new OfaAutoCorrDlg( pParent, pAttrSet );
    1053           0 :             break;
    1054             :         case RID_SVXDLG_CUSTOMIZE :
    1055           0 :             pDlg = new SvxConfigDialog( pParent, pAttrSet );
    1056           0 :             break;
    1057             :         default:
    1058           0 :             break;
    1059             :     }
    1060             : 
    1061           0 :     if ( pDlg )
    1062           0 :         return new CuiAbstractTabDialog_Impl( pDlg );
    1063           0 :     return 0;
    1064             : }
    1065             : 
    1066           0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( sal_uInt32 nResId,
    1067             :                                                 Window* pParent,
    1068             :                                                 const SfxItemSet* pAttrSet,
    1069             :                                                 const Reference< frame::XFrame >& xViewFrame,
    1070             :                                                 bool /*bEditFmt*/,
    1071             :                                                 const OUString * )
    1072             : {
    1073           0 :     SfxTabDialog* pDlg=NULL;
    1074           0 :     switch ( nResId )
    1075             :     {
    1076             :         case RID_OFA_AUTOCORR_DLG :
    1077           0 :             pDlg = new OfaAutoCorrDlg( pParent, pAttrSet );
    1078           0 :             break;
    1079             :         case RID_SVXDLG_CUSTOMIZE :
    1080             :             {
    1081           0 :                 SvxConfigDialog* pDlg1 = new SvxConfigDialog( pParent, pAttrSet );
    1082           0 :                 pDlg1->SetFrame(xViewFrame);
    1083           0 :                 pDlg = (SfxTabDialog*)pDlg1;
    1084             :             }
    1085           0 :             break;
    1086             :         default:
    1087           0 :             break;
    1088             :     }
    1089             : 
    1090           0 :     if ( pDlg )
    1091           0 :         return new CuiAbstractTabDialog_Impl( pDlg );
    1092           0 :     return 0;
    1093             : }
    1094             : 
    1095             : // TabDialog that use functionality of the drawing layer
    1096           0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTextTabDialog( Window* pParent,
    1097             :                                             const SfxItemSet* pAttrSet,
    1098             :                                             SdrView* pView,
    1099             :                                             SdrModel* )
    1100             : {
    1101           0 :     SfxTabDialog* pDlg = new SvxTextTabDialog( pParent, pAttrSet, pView );
    1102           0 :     return new CuiAbstractTabDialog_Impl( pDlg );
    1103             : }
    1104             : 
    1105             : // TabDialog that use functionality of the drawing layer and add AnchorTypes -- for SvxCaptionTabDialog
    1106           0 : AbstractSvxCaptionDialog*       AbstractDialogFactory_Impl::CreateCaptionDialog( Window* pParent,
    1107             :                                             const SdrView* pView,
    1108             :                                             sal_uInt16 nAnchorTypes )
    1109             : {
    1110           0 :     SvxCaptionTabDialog* pDlg = new SvxCaptionTabDialog( pParent, pView, nAnchorTypes );
    1111           0 :     return new AbstractSvxCaptionDialog_Impl( pDlg );
    1112             : }
    1113             : 
    1114           0 : AbstractSvxDistributeDialog*    AbstractDialogFactory_Impl::CreateSvxDistributeDialog(Window* pParent,
    1115             :                                             const SfxItemSet& rAttr,
    1116             :                                             SvxDistributeHorizontal eHor ,
    1117             :                                             SvxDistributeVertical eVer)
    1118             : {
    1119           0 :     SvxDistributeDialog* pDlg = new SvxDistributeDialog( pParent, rAttr, eHor, eVer);
    1120           0 :     return new AbstractSvxDistributeDialog_Impl( pDlg );
    1121             : }
    1122             : 
    1123           0 : AbstractHangulHanjaConversionDialog* AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(Window* pParent,
    1124             :                                                                        editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection )
    1125             : {
    1126           0 :     HangulHanjaConversionDialog* pDlg = new HangulHanjaConversionDialog( pParent, _ePrimaryDirection);
    1127           0 :     return new AbstractHangulHanjaConversionDialog_Impl( pDlg );
    1128             : }
    1129             : 
    1130           0 : AbstractThesaurusDialog* AbstractDialogFactory_Impl::CreateThesaurusDialog( Window* pParent,
    1131             :                                 css::uno::Reference< css::linguistic2::XThesaurus >  xThesaurus,
    1132             :                                 const OUString &rWord, sal_Int16 nLanguage )
    1133             : {
    1134           0 :     SvxThesaurusDialog* pDlg = new SvxThesaurusDialog( pParent, xThesaurus, rWord, nLanguage );
    1135           0 :     return new AbstractThesaurusDialog_Impl( pDlg );
    1136             : }
    1137             : 
    1138           0 : AbstractHyphenWordDialog* AbstractDialogFactory_Impl::CreateHyphenWordDialog( Window* pParent,
    1139             :                                                 const OUString &rWord, LanguageType nLang,
    1140             :                                                 ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator >  &xHyphen,
    1141             :                                                 SvxSpellWrapper* pWrapper )
    1142             : {
    1143           0 :     SvxHyphenWordDialog* pDlg = new SvxHyphenWordDialog( rWord, nLang, pParent, xHyphen, pWrapper );
    1144           0 :     return new AbstractHyphenWordDialog_Impl( pDlg );
    1145             : }
    1146             : 
    1147           0 : AbstractFmShowColsDialog * AbstractDialogFactory_Impl::CreateFmShowColsDialog( Window* pParent )
    1148             : {
    1149           0 :     FmShowColsDialog* pDlg = new FmShowColsDialog( pParent);
    1150           0 :     return new AbstractFmShowColsDialog_Impl( pDlg );
    1151             : }
    1152           0 : AbstractSvxZoomDialog * AbstractDialogFactory_Impl::CreateSvxZoomDialog( Window* pParent,
    1153             :                                             const SfxItemSet& rCoreSet)
    1154             : {
    1155           0 :     SvxZoomDialog* pDlg = new SvxZoomDialog( pParent, rCoreSet);
    1156           0 :     return new AbstractSvxZoomDialog_Impl( pDlg );
    1157             : }
    1158             : 
    1159           0 : AbstractSpellDialog *  AbstractDialogFactory_Impl::CreateSvxSpellDialog(
    1160             :                         Window* pParent,
    1161             :                         SfxBindings* pBindings,
    1162             :                         svx::SpellDialogChildWindow* pSpellChildWindow )
    1163             : {
    1164           0 :     svx::SpellDialog* pDlg = new svx::SpellDialog(pSpellChildWindow, pParent, pBindings);
    1165           0 :     return new AbstractSpellDialog_Impl(pDlg);
    1166             : }
    1167             : 
    1168           0 : VclAbstractRefreshableDialog * AbstractDialogFactory_Impl::CreateActualizeProgressDialog( Window* pParent, GalleryTheme* pThm )
    1169             : {
    1170           0 :    Dialog* pDlg = new ActualizeProgress( pParent, pThm);
    1171           0 :    return new VclAbstractRefreshableDialog_Impl( pDlg );
    1172             : }
    1173             : 
    1174           0 : AbstractSearchProgress * AbstractDialogFactory_Impl::CreateSearchProgressDialog( Window* pParent,
    1175             :                                             const INetURLObject& rStartURL )
    1176             : {
    1177           0 :     SearchProgress* pDlg = new SearchProgress( pParent, rStartURL);
    1178           0 :     return new AbstractSearchProgress_Impl( pDlg );
    1179             : }
    1180             : 
    1181           0 : AbstractTakeProgress * AbstractDialogFactory_Impl::CreateTakeProgressDialog( Window* pParent )
    1182             : {
    1183           0 :     TakeProgress* pDlg = new TakeProgress( pParent );
    1184           0 :     return new AbstractTakeProgress_Impl( pDlg );
    1185             : }
    1186             : 
    1187             : VclAbstractDialog*
    1188           0 : AbstractDialogFactory_Impl::CreateScriptErrorDialog(
    1189             :     Window* pParent, ::com::sun::star::uno::Any aException )
    1190             : {
    1191           0 :     return new SvxScriptErrorDialog( pParent, aException );
    1192             : }
    1193             : 
    1194             : AbstractScriptSelectorDialog*
    1195           0 : AbstractDialogFactory_Impl::CreateScriptSelectorDialog(
    1196             :     Window* pParent, bool bShowSlots, const Reference< frame::XFrame >& _rxFrame )
    1197             : {
    1198           0 :     SvxScriptSelectorDialog* pDlg = new SvxScriptSelectorDialog(pParent, bShowSlots, _rxFrame);
    1199           0 :     return new AbstractScriptSelectorDialog_Impl(pDlg);
    1200             : }
    1201             : 
    1202           0 : OUString AbstractScriptSelectorDialog_Impl::GetScriptURL() const
    1203             : {
    1204           0 :     if (pDlg)
    1205           0 :         return pDlg->GetScriptURL();
    1206           0 :     return OUString();
    1207             : }
    1208             : 
    1209           0 : void AbstractScriptSelectorDialog_Impl::SetRunLabel()
    1210             : {
    1211           0 :     if (pDlg)
    1212           0 :         pDlg->SetRunLabel();
    1213           0 :     return;
    1214             : }
    1215             : 
    1216           0 : VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog( Window* pParent,
    1217             :                                             const OUString& rLanguage)
    1218             : {
    1219           0 :     Dialog* pDlg=NULL;
    1220             : 
    1221           0 :     pDlg = new SvxScriptOrgDialog( pParent, rLanguage);
    1222             : 
    1223           0 :     if ( pDlg )
    1224           0 :         return new CuiVclAbstractDialog_Impl( pDlg );
    1225           0 :     return 0;
    1226             : }
    1227             : 
    1228           0 : AbstractTitleDialog * AbstractDialogFactory_Impl::CreateTitleDialog( Window* pParent,
    1229             :                                             const OUString& rOldText)
    1230             : {
    1231           0 :    TitleDialog* pDlg = new TitleDialog( pParent, rOldText);
    1232           0 :    return new AbstractTitleDialog_Impl( pDlg );
    1233             : }
    1234             : 
    1235           0 : AbstractGalleryIdDialog * AbstractDialogFactory_Impl::CreateGalleryIdDialog( Window* pParent,
    1236             :                                             GalleryTheme* pThm )
    1237             : {
    1238           0 :    GalleryIdDialog* pDlg = new GalleryIdDialog( pParent, pThm);
    1239           0 :    return new AbstractGalleryIdDialog_Impl( pDlg );
    1240             : }
    1241             : 
    1242           0 : VclAbstractDialog2 * AbstractDialogFactory_Impl::CreateGalleryThemePropertiesDialog( Window* pParent,
    1243             :                                             ExchangeData* pData,
    1244             :                                             SfxItemSet* pItemSet)
    1245             : {
    1246           0 :     Dialog* pDlg = new GalleryThemeProperties( pParent, pData, pItemSet);
    1247           0 :     return new VclAbstractDialog2_Impl( pDlg );
    1248             : }
    1249             : 
    1250           0 : AbstractURLDlg * AbstractDialogFactory_Impl::CreateURLDialog( Window* pParent,
    1251             :                                             const OUString& rURL, const OUString& rAltText, const OUString& rDescription,
    1252             :                                             const OUString& rTarget, const OUString& rName,
    1253             :                                             TargetList& rTargetList )
    1254             : {
    1255           0 :     URLDlg* pDlg = new URLDlg( pParent, rURL, rAltText, rDescription, rTarget, rName, rTargetList);
    1256           0 :     return new AbstractURLDlg_Impl( pDlg );
    1257             : }
    1258             : 
    1259           0 : AbstractSvxHlinkDlgMarkWnd* AbstractDialogFactory_Impl::CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase* pParent, sal_uInt32 nResId )
    1260             : {
    1261           0 :     SvxHlinkDlgMarkWnd* pDlg=NULL;
    1262           0 :     switch ( nResId )
    1263             :     {
    1264             :         case RID_SVXFLOAT_HYPERLINK_MARKWND :
    1265           0 :             pDlg = new  SvxHlinkDlgMarkWnd( pParent );
    1266           0 :             break;
    1267             :         default:
    1268           0 :             break;
    1269             :     }
    1270             : 
    1271           0 :     if ( pDlg )
    1272           0 :         return new AbstractSvxHlinkDlgMarkWnd_Impl( pDlg );
    1273           0 :     return 0;
    1274             : }
    1275             : 
    1276           0 : SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( sal_uInt32,
    1277             :                                             Window* pParent,
    1278             :                                             const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& ,
    1279             :                                             const SfxItemSet* pAttrSet )
    1280             : {
    1281           0 :     SfxModalDialog* pDlg = new SvxCharacterMap( pParent, sal_True, pAttrSet );
    1282           0 :     return new CuiAbstractSfxDialog_Impl( pDlg );
    1283             : }
    1284             : 
    1285           0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabItemDialog(Window* pParent,
    1286             :     const SfxItemSet& rSet)
    1287             : {
    1288           0 :     SfxTabDialog* pDlg = new SvxSearchFormatDialog(pParent, rSet);
    1289           0 :     return new CuiAbstractTabDialog_Impl(pDlg);
    1290             : }
    1291             : 
    1292           0 : VclAbstractDialog*      AbstractDialogFactory_Impl::CreateSvxSearchAttributeDialog( Window* pParent,
    1293             :                                             SearchAttrItemList& rLst,
    1294             :                                             const sal_uInt16* pWhRanges )
    1295             : {
    1296           0 :     Dialog* pDlg = new SvxSearchAttributeDialog( pParent, rLst, pWhRanges);
    1297           0 :     return new CuiVclAbstractDialog_Impl( pDlg );
    1298             : }
    1299             : 
    1300           0 : AbstractSvxSearchSimilarityDialog * AbstractDialogFactory_Impl::CreateSvxSearchSimilarityDialog( Window* pParent,
    1301             :                                                             bool bRelax,
    1302             :                                                             sal_uInt16 nOther,
    1303             :                                                             sal_uInt16 nShorter,
    1304             :                                                             sal_uInt16 nLonger)
    1305             : {
    1306           0 :     SvxSearchSimilarityDialog* pDlg = new SvxSearchSimilarityDialog( pParent, bRelax, nOther, nShorter, nLonger );
    1307           0 :     if ( pDlg )
    1308           0 :         return new AbstractSvxSearchSimilarityDialog_Impl( pDlg );
    1309           0 :     return NULL;
    1310             : }
    1311             : 
    1312           0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxBorderBackgroundDlg( Window* pParent,
    1313             :                                             const SfxItemSet& rCoreSet,
    1314             :                                             bool bEnableSelector)
    1315             : {
    1316           0 :     SfxTabDialog* pDlg = new SvxBorderBackgroundDlg( pParent, rCoreSet, bEnableSelector);
    1317           0 :     return new CuiAbstractTabDialog_Impl( pDlg );
    1318             : }
    1319             : 
    1320           0 : AbstractSvxTransformTabDialog* AbstractDialogFactory_Impl::CreateSvxTransformTabDialog( Window* pParent,
    1321             :                                                                               const SfxItemSet* pAttr,
    1322             :                                                                                 const SdrView* pView,
    1323             :                                                                                 sal_uInt16 nAnchorTypes )
    1324             : {
    1325           0 :     SvxTransformTabDialog* pDlg = new SvxTransformTabDialog( pParent, pAttr,pView, nAnchorTypes);
    1326           0 :     return new AbstractSvxTransformTabDialog_Impl( pDlg );
    1327             : }
    1328             : 
    1329           0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSchTransformTabDialog( Window* pParent,
    1330             :                                                                 const SfxItemSet* pAttr,
    1331             :                                                                 const SdrView* pSdrView,
    1332             :                                                                 sal_uInt32 nResId,
    1333             :                                                                 bool bSizeTabPage
    1334             :                                                                 )
    1335             : {
    1336           0 :     SfxTabDialog* pDlg=NULL;
    1337           0 :     switch ( nResId )
    1338             :     {
    1339             :         case RID_SCH_TransformTabDLG_SVXPAGE_ANGLE :
    1340             :             {
    1341           0 :             pDlg = new SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT :  SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE);
    1342           0 :             pDlg->RemoveTabPage( "RID_SVXPAGE_ANGLE" );
    1343           0 :             pDlg->RemoveTabPage( "RID_SVXPAGE_SLANT" );
    1344             :             }
    1345           0 :             break;
    1346             :         case RID_SCH_TransformTabDLG_SVXPAGE_SLANT:
    1347             :             {
    1348           0 :             pDlg = new  SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT :  SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE);
    1349           0 :             pDlg->RemoveTabPage( "RID_SVXPAGE_SLANT" );
    1350             :             }
    1351           0 :             break;
    1352             :         default:
    1353           0 :             break;
    1354             :     }
    1355             : 
    1356           0 :     if ( pDlg )
    1357           0 :         return new CuiAbstractTabDialog_Impl( pDlg );
    1358           0 :     return 0;
    1359             : }
    1360             : 
    1361           0 : AbstractSvxJSearchOptionsDialog * AbstractDialogFactory_Impl::CreateSvxJSearchOptionsDialog( Window* pParent,
    1362             :                                                             const SfxItemSet& rOptionsSet,
    1363             :                                                             sal_Int32 nInitialFlags)
    1364             : {
    1365           0 :     SvxJSearchOptionsDialog* pDlg = new SvxJSearchOptionsDialog( pParent, rOptionsSet, nInitialFlags );
    1366           0 :     return new AbstractSvxJSearchOptionsDialog_Impl( pDlg );
    1367             : }
    1368             : 
    1369           0 : AbstractFmInputRecordNoDialog * AbstractDialogFactory_Impl::CreateFmInputRecordNoDialog( Window* pParent )
    1370             : {
    1371           0 :     FmInputRecordNoDialog* pDlg = new FmInputRecordNoDialog( pParent );
    1372           0 :     return new AbstractFmInputRecordNoDialog_Impl( pDlg );
    1373             : }
    1374             : 
    1375           0 : AbstractSvxNewDictionaryDialog * AbstractDialogFactory_Impl::CreateSvxNewDictionaryDialog( Window* pParent,
    1376             :                                             ::Reference< ::com::sun::star::linguistic2::XSpellChecker1 >  &xSpl )
    1377             : {
    1378           0 :     SvxNewDictionaryDialog* pDlg = new SvxNewDictionaryDialog( pParent, xSpl );
    1379           0 :     return new AbstractSvxNewDictionaryDialog_Impl( pDlg );
    1380             : }
    1381             : 
    1382           0 : VclAbstractDialog*      AbstractDialogFactory_Impl::CreateSvxEditDictionaryDialog( Window* pParent,
    1383             :                                             const OUString& rName,
    1384             :                                             ::Reference< ::com::sun::star::linguistic2::XSpellChecker1> &xSpl,
    1385             :                                             sal_uInt32 nResId )
    1386             : {
    1387           0 :     Dialog* pDlg=NULL;
    1388           0 :     switch ( nResId )
    1389             :     {
    1390             :         case RID_SFXDLG_EDITDICT :
    1391           0 :             pDlg = new SvxEditDictionaryDialog( pParent, rName, xSpl );
    1392           0 :             break;
    1393             :         default:
    1394           0 :             break;
    1395             :     }
    1396             : 
    1397           0 :     if ( pDlg )
    1398           0 :         return new CuiVclAbstractDialog_Impl( pDlg );
    1399           0 :     return 0;
    1400             : }
    1401             : 
    1402           0 : AbstractSvxNameDialog * AbstractDialogFactory_Impl::CreateSvxNameDialog( Window* pParent,
    1403             :                                     const OUString& rName, const OUString& rDesc )
    1404             : {
    1405           0 :     SvxNameDialog* pDlg = new SvxNameDialog( pParent, rName, rDesc );
    1406           0 :     return new AbstractSvxNameDialog_Impl( pDlg );
    1407             : }
    1408             : 
    1409           0 : AbstractSvxObjectNameDialog* AbstractDialogFactory_Impl::CreateSvxObjectNameDialog(Window* pParent, const OUString& rName )
    1410             : {
    1411           0 :     return new AbstractSvxObjectNameDialog_Impl(new SvxObjectNameDialog(pParent, rName));
    1412             : }
    1413             : 
    1414           0 : AbstractSvxObjectTitleDescDialog* AbstractDialogFactory_Impl::CreateSvxObjectTitleDescDialog(Window* pParent, const OUString& rTitle, const OUString& rDescription)
    1415             : {
    1416           0 :     return new AbstractSvxObjectTitleDescDialog_Impl(new SvxObjectTitleDescDialog(pParent, rTitle, rDescription));
    1417             : }
    1418             : 
    1419           0 : AbstractSvxMessDialog * AbstractDialogFactory_Impl::CreateSvxMessDialog( Window* pParent, sal_uInt32,
    1420             :                                     const OUString& rText, const OUString& rDesc, Image* pImg )
    1421             : {
    1422           0 :     SvxMessDialog* pDlg = new SvxMessDialog( pParent, rText, rDesc, pImg );
    1423           0 :     return new AbstractSvxMessDialog_Impl( pDlg );
    1424             : }
    1425             : 
    1426           0 : AbstractSvxMultiPathDialog * AbstractDialogFactory_Impl::CreateSvxMultiPathDialog(Window* pParent)
    1427             : {
    1428           0 :     SvxMultiPathDialog* pDlg = new SvxMultiPathDialog(pParent);
    1429           0 :     return new AbstractSvxMultiPathDialog_Impl( pDlg );
    1430             : }
    1431             : 
    1432           0 : AbstractSvxMultiPathDialog * AbstractDialogFactory_Impl::CreateSvxPathSelectDialog(Window* pParent)
    1433             : {
    1434           0 :     SvxPathSelectDialog* pDlg = new SvxPathSelectDialog(pParent);
    1435           0 :     return new AbstractSvxPathSelectDialog_Impl( pDlg );
    1436             : }
    1437             : 
    1438           0 : AbstractSvxHpLinkDlg * AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (Window* pParent,
    1439             :                                             SfxBindings* pBindings,
    1440             :                                             sal_uInt32 nResId)
    1441             : {
    1442           0 :     SvxHpLinkDlg* pDlg=NULL;
    1443           0 :     switch ( nResId )
    1444             :     {
    1445             :         case SID_HYPERLINK_DIALOG :
    1446           0 :             pDlg = new SvxHpLinkDlg( pParent, pBindings );
    1447           0 :             break;
    1448             :         default:
    1449           0 :             break;
    1450             :     }
    1451             : 
    1452           0 :     if ( pDlg )
    1453           0 :         return new AbstractSvxHpLinkDlg_Impl( pDlg );
    1454           0 :     return 0;
    1455             : }
    1456             : 
    1457           0 : AbstractFmSearchDialog*  AbstractDialogFactory_Impl::CreateFmSearchDialog(Window* pParent,
    1458             :                                                         const OUString& strInitialText,
    1459             :                                                         const ::std::vector< OUString >& _rContexts,
    1460             :                                                         sal_Int16 nInitialContext,
    1461             :                                                         const Link& lnkContextSupplier)
    1462             : {
    1463           0 :     FmSearchDialog* pDlg = new FmSearchDialog( pParent, strInitialText, _rContexts, nInitialContext, lnkContextSupplier );
    1464           0 :     if ( pDlg )
    1465           0 :         return new AbstractFmSearchDialog_Impl( pDlg );
    1466           0 :     return 0;
    1467             : }
    1468             : 
    1469           0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (Window* pParent,
    1470             :                                             const Graphic& rGraphic,
    1471             :                                             RECT_POINT eLightSource)
    1472             : {
    1473           0 :     GraphicFilterDialog* pDlg = new GraphicFilterEmboss( pParent, rGraphic, eLightSource );
    1474           0 :     return new AbstractGraphicFilterDialog_Impl( pDlg );
    1475             : }
    1476             : 
    1477           0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterPoster(Window* pParent,
    1478             :                                             const Graphic& rGraphic,
    1479             :                                             sal_uInt16 nCount)
    1480             : {
    1481           0 :     GraphicFilterDialog* pDlg = new GraphicFilterPoster( pParent, rGraphic, nCount );
    1482           0 :     return new AbstractGraphicFilterDialog_Impl( pDlg );
    1483             : }
    1484             : 
    1485           0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSepia (Window* pParent,
    1486             :                                             const Graphic& rGraphic,
    1487             :                                             sal_uInt16 nCount)
    1488             : {
    1489           0 :     GraphicFilterDialog* pDlg = new GraphicFilterSepia( pParent, rGraphic, nCount );
    1490           0 :     return new AbstractGraphicFilterDialog_Impl( pDlg );
    1491             : }
    1492             : 
    1493           0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSmooth(Window* pParent,
    1494             :                                             const Graphic& rGraphic, double nRadius)
    1495             : {
    1496           0 :     GraphicFilterDialog* pDlg = new GraphicFilterSmooth( pParent, rGraphic, nRadius );
    1497           0 :     return new AbstractGraphicFilterDialog_Impl( pDlg );
    1498             : }
    1499             : 
    1500           0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (Window* pParent,
    1501             :                                             const Graphic& rGraphic, sal_uInt8 nGreyThreshold, bool bInvert)
    1502             : {
    1503           0 :     GraphicFilterDialog* pDlg = new GraphicFilterSolarize( pParent, rGraphic, nGreyThreshold, bInvert );
    1504           0 :     return new AbstractGraphicFilterDialog_Impl( pDlg );
    1505             : }
    1506             : 
    1507           0 : AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (Window* pParent,
    1508             :                                             const Graphic& rGraphic, sal_uInt16 nTileWidth, sal_uInt16 nTileHeight,
    1509             :                                             bool bEnhanceEdges)
    1510             : {
    1511           0 :     GraphicFilterDialog* pDlg = new GraphicFilterMosaic(pParent, rGraphic, nTileWidth, nTileHeight, bEnhanceEdges);
    1512           0 :     return new AbstractGraphicFilterDialog_Impl( pDlg );
    1513             : }
    1514             : 
    1515           0 : AbstractSvxAreaTabDialog* AbstractDialogFactory_Impl::CreateSvxAreaTabDialog( Window* pParent,
    1516             :                                                             const SfxItemSet* pAttr,
    1517             :                                                             SdrModel* pModel,
    1518             :                                                             bool bShadow)
    1519             : {
    1520           0 :     SvxAreaTabDialog* pDlg = new SvxAreaTabDialog( pParent, pAttr, pModel, bShadow );
    1521           0 :     return new AbstractSvxAreaTabDialog_Impl( pDlg );
    1522             : }
    1523             : 
    1524           0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxLineTabDialog( Window* pParent, const SfxItemSet* pAttr, //add forSvxLineTabDialog
    1525             :                                                                  SdrModel* pModel,
    1526             :                                                                  const SdrObject* pObj ,
    1527             :                                                                  bool bHasObj)
    1528             : {
    1529           0 :     SfxTabDialog* pDlg = new SvxLineTabDialog( pParent, pAttr, pModel,pObj,bHasObj );
    1530           0 :     return new CuiAbstractTabDialog_Impl( pDlg );
    1531             : }
    1532             : 
    1533           0 : SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
    1534             :                                                                         const SfxItemSet& rAttr,
    1535             :                                                                         const Reference< XFrame >& _rxDocumentFrame,
    1536             :                                                                         sal_uInt32 nResId
    1537             :                                                                         )
    1538             : {
    1539           0 :     SfxModalDialog* pDlg=NULL;
    1540           0 :     switch ( nResId )
    1541             :     {
    1542             :         case SID_EVENTCONFIG :
    1543           0 :             pDlg = new SfxMacroAssignDlg( pParent, _rxDocumentFrame, rAttr );
    1544           0 :             break;
    1545             :         case RID_SVXDLG_CHARMAP :
    1546           0 :             pDlg = new SvxCharacterMap( pParent, sal_True, &rAttr );
    1547           0 :             break;
    1548             :         default:
    1549           0 :             break;
    1550             :     }
    1551             : 
    1552           0 :     if ( pDlg )
    1553           0 :         return new CuiAbstractSfxDialog_Impl( pDlg );
    1554           0 :     return 0;
    1555             : }
    1556             : 
    1557           0 : SfxAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
    1558             :                                                                         const SfxItemSet& rAttr,
    1559             :                                                                         const SdrView* pView,
    1560             :                                                                         sal_uInt32 nResId
    1561             :                                                                         )
    1562             : {
    1563             : 
    1564           0 :     SfxSingleTabDialog* pDlg=NULL;
    1565           0 :     switch ( nResId )
    1566             :     {
    1567             :         case RID_SVXPAGE_MEASURE :
    1568           0 :             pDlg = new SvxMeasureDialog( pParent, rAttr, pView );
    1569           0 :             break;
    1570             :         case RID_SVXPAGE_CONNECTION :
    1571           0 :             pDlg = new SvxConnectionDialog( pParent, rAttr, pView );
    1572           0 :             break;
    1573             :         case RID_SFXPAGE_DBREGISTER :
    1574           0 :             pDlg = new DatabaseRegistrationDialog( pParent, rAttr );
    1575           0 :             break;
    1576             :         default:
    1577           0 :             break;
    1578             :     }
    1579             : 
    1580           0 :     if ( pDlg )
    1581           0 :         return new CuiAbstractSfxDialog_Impl( pDlg );
    1582             : 
    1583           0 :     return 0;
    1584             : }
    1585             : 
    1586           0 : AbstractSvxPostItDialog* AbstractDialogFactory_Impl::CreateSvxPostItDialog( Window* pParent,
    1587             :                                                                         const SfxItemSet& rCoreSet,
    1588             :                                                                         bool bPrevNext )
    1589             : {
    1590           0 :     SvxPostItDialog* pDlg = new SvxPostItDialog( pParent, rCoreSet, bPrevNext );
    1591           0 :     return new AbstractSvxPostItDialog_Impl( pDlg );
    1592             : }
    1593             : 
    1594             : class SvxMacroAssignDialog : public VclAbstractDialog
    1595             : {
    1596             : public:
    1597           0 :     SvxMacroAssignDialog( Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode,
    1598             :             const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent )
    1599           0 :         :m_aItems( SFX_APP()->GetPool(), SID_ATTR_MACROITEM, SID_ATTR_MACROITEM )
    1600             :     {
    1601           0 :         m_aItems.Put( SfxBoolItem( SID_ATTR_MACROITEM, _bUnoDialogMode ) );
    1602           0 :         m_pDialog.reset( new SvxMacroAssignDlg( _pParent, _rxDocumentFrame, m_aItems, _rxEvents, _nInitiallySelectedEvent ) );
    1603           0 :     }
    1604             : 
    1605             :     virtual short Execute() SAL_OVERRIDE;
    1606             :     virtual ~SvxMacroAssignDialog();
    1607             : 
    1608             : private:
    1609             :     SfxItemSet                              m_aItems;
    1610             :     ::std::auto_ptr< SvxMacroAssignDlg >    m_pDialog;
    1611             : };
    1612             : 
    1613           0 : short SvxMacroAssignDialog::Execute()
    1614             : {
    1615           0 :     return m_pDialog->Execute();
    1616             : }
    1617             : 
    1618           0 : SvxMacroAssignDialog::~SvxMacroAssignDialog()
    1619             : {
    1620           0 : }
    1621             : 
    1622           0 : VclAbstractDialog * AbstractDialogFactory_Impl::CreateSvxMacroAssignDlg(
    1623             :     Window* _pParent, const Reference< XFrame >& _rxDocumentFrame, const bool _bUnoDialogMode,
    1624             :     const Reference< XNameReplace >& _rxEvents, const sal_uInt16 _nInitiallySelectedEvent )
    1625             : {
    1626           0 :     return new SvxMacroAssignDialog( _pParent, _rxDocumentFrame, _bUnoDialogMode, _rxEvents, _nInitiallySelectedEvent );
    1627             : }
    1628             : 
    1629             : // Factories for TabPages
    1630           0 : CreateTabPage AbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
    1631             : {
    1632           0 :     switch ( nId )
    1633             :     {
    1634             :         case RID_SVXPAGE_TEXTANIMATION :
    1635           0 :             return SvxTextAnimationPage::Create;
    1636             :         case RID_SVXPAGE_TRANSPARENCE :
    1637           0 :             return SvxTransparenceTabPage::Create;
    1638             :         case RID_SVXPAGE_AREA :
    1639           0 :             return SvxAreaTabPage::Create;
    1640             :         case RID_SVXPAGE_SHADOW :
    1641           0 :             return SvxShadowTabPage::Create;
    1642             :         case RID_SVXPAGE_LINE :
    1643           0 :             return SvxLineTabPage::Create;
    1644             :         case RID_SVXPAGE_CONNECTION :
    1645           0 :             return SvxConnectionPage::Create;
    1646             :         case RID_SVXPAGE_MEASURE :
    1647           0 :             return SvxMeasurePage::Create;
    1648             :         case RID_SFXPAGE_GENERAL :
    1649           0 :             return SvxGeneralTabPage::Create;
    1650             :         case RID_SVXPAGE_PICK_SINGLE_NUM :
    1651           0 :             return SvxSingleNumPickTabPage::Create;
    1652             :         case RID_SVXPAGE_PICK_BMP :
    1653           0 :             return SvxBitmapPickTabPage::Create;
    1654             :         case RID_SVXPAGE_PICK_BULLET :
    1655           0 :             return SvxBulletPickTabPage::Create;
    1656             :         case RID_SVXPAGE_NUM_OPTIONS :
    1657           0 :             return SvxNumOptionsTabPage::Create;
    1658             :         case RID_SVXPAGE_PICK_NUM :
    1659           0 :             return SvxNumPickTabPage::Create;
    1660             :         case RID_SVXPAGE_NUM_POSITION :
    1661           0 :             return SvxNumPositionTabPage::Create;
    1662             :         case RID_SVXPAGE_PARA_ASIAN :
    1663           0 :             return SvxAsianTabPage::Create;
    1664             :         case RID_SVXPAGE_EXT_PARAGRAPH :
    1665           0 :             return SvxExtParagraphTabPage::Create;
    1666             :         case RID_SVXPAGE_ALIGN_PARAGRAPH :
    1667           0 :             return SvxParaAlignTabPage::Create;
    1668             :         case RID_SVXPAGE_STD_PARAGRAPH :
    1669           0 :             return SvxStdParagraphTabPage::Create;
    1670             :         case RID_SVXPAGE_TABULATOR :
    1671           0 :             return SvxTabulatorTabPage::Create;
    1672             :         case RID_SVXPAGE_TEXTATTR :
    1673           0 :             return SvxTextAttrPage::Create;
    1674             :         case RID_SVXPAGE_ALIGNMENT :
    1675           0 :             return svx::AlignmentTabPage::Create;
    1676             :         case RID_SW_TP_BACKGROUND :
    1677             :         case RID_SVXPAGE_BACKGROUND :
    1678           0 :             return SvxBackgroundTabPage::Create;
    1679             :         case RID_SVXPAGE_BORDER :
    1680           0 :             return SvxBorderTabPage::Create;
    1681             :         case RID_SVXPAGE_CHAR_NAME :
    1682           0 :             return SvxCharNamePage::Create;
    1683             :         case RID_SVXPAGE_CHAR_EFFECTS :
    1684           0 :             return SvxCharEffectsPage::Create;
    1685             :         case RID_SVXPAGE_CHAR_POSITION :
    1686           0 :             return SvxCharPositionPage::Create;
    1687             :         case RID_SVXPAGE_CHAR_TWOLINES :
    1688           0 :             return SvxCharTwoLinesPage::Create;
    1689             :         case RID_SVXPAGE_NUMBERFORMAT :
    1690           0 :             return SvxNumberFormatTabPage::Create;
    1691             :         case RID_SVXPAGE_PAGE :
    1692           0 :             return SvxPageDescPage::Create;
    1693             :         case RID_SVXPAGE_GRFCROP :
    1694           0 :             return SvxGrfCropPage::Create;
    1695             :         case RID_SVXPAGE_MACROASSIGN :
    1696           0 :             return SfxMacroTabPage::Create;
    1697             :         default:
    1698           0 :             break;
    1699             :     }
    1700             : 
    1701           0 :     return 0;
    1702             : }
    1703             : 
    1704           0 : CreateSvxDistributePage AbstractDialogFactory_Impl::GetSvxDistributePageCreatorFunc()
    1705             : {
    1706           0 :     return SvxDistributePage::Create;
    1707             : }
    1708             : 
    1709           0 : DialogGetRanges AbstractDialogFactory_Impl::GetDialogGetRangesFunc()
    1710             : {
    1711           0 :     return SvxPostItDialog::GetRanges;
    1712             : }
    1713             : 
    1714           0 : GetTabPageRanges AbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
    1715             : {
    1716           0 :     switch ( nId )
    1717             :     {
    1718             :         case RID_SVXPAGE_TEXTANIMATION :
    1719           0 :             return SvxTextAnimationPage::GetRanges;
    1720             :         case RID_SVXPAGE_TRANSPARENCE :
    1721           0 :             return SvxTransparenceTabPage::GetRanges;
    1722             :         case RID_SVXPAGE_AREA :
    1723           0 :             return SvxAreaTabPage::GetRanges;
    1724             :         case RID_SVXPAGE_SHADOW :
    1725           0 :             return SvxShadowTabPage::GetRanges;
    1726             :         case RID_SVXPAGE_LINE :
    1727           0 :             return SvxLineTabPage::GetRanges;
    1728             :         case RID_SVXPAGE_CONNECTION :
    1729           0 :             return SvxConnectionPage::GetRanges;
    1730             :         case RID_SVXPAGE_MEASURE :
    1731           0 :             return SvxMeasurePage::GetRanges;
    1732             :         case RID_SVXPAGE_PARA_ASIAN :
    1733           0 :             return SvxAsianTabPage::GetRanges;
    1734             :         case RID_SVXPAGE_EXT_PARAGRAPH :
    1735           0 :             return SvxExtParagraphTabPage::GetRanges;
    1736             :         case RID_SVXPAGE_ALIGN_PARAGRAPH :
    1737           0 :             return SvxParaAlignTabPage::GetRanges;
    1738             :         case RID_SVXPAGE_STD_PARAGRAPH :
    1739           0 :             return SvxStdParagraphTabPage::GetRanges;
    1740             :         case RID_SVXPAGE_TABULATOR :
    1741           0 :             return SvxTabulatorTabPage::GetRanges;
    1742             :         case RID_SVXPAGE_TEXTATTR :
    1743           0 :             return SvxTextAttrPage::GetRanges;
    1744             :         case RID_SVXPAGE_ALIGNMENT :
    1745           0 :             return svx::AlignmentTabPage::GetRanges;
    1746             :         case RID_SW_TP_BACKGROUND :
    1747             :         case RID_SVXPAGE_BACKGROUND :
    1748           0 :             return SvxBackgroundTabPage::GetRanges;
    1749             :         case RID_SVXPAGE_BORDER :
    1750           0 :             return SvxBorderTabPage::GetRanges;
    1751             :         case RID_SVXPAGE_CHAR_NAME :
    1752           0 :             return SvxCharNamePage::GetRanges;
    1753             :         case RID_SVXPAGE_CHAR_EFFECTS :
    1754           0 :             return SvxCharEffectsPage::GetRanges;
    1755             :         case RID_SVXPAGE_CHAR_POSITION :
    1756           0 :             return SvxCharPositionPage::GetRanges;
    1757             :         case RID_SVXPAGE_CHAR_TWOLINES :
    1758           0 :             return SvxCharTwoLinesPage::GetRanges;
    1759             :         case RID_SVXPAGE_NUMBERFORMAT :
    1760           0 :             return SvxNumberFormatTabPage::GetRanges;
    1761             :         case RID_SVXPAGE_PAGE :
    1762           0 :             return SvxPageDescPage::GetRanges;
    1763             :         case RID_SVXPAGE_ASIAN_LAYOUT:
    1764           0 :             return SvxAsianLayoutPage::GetRanges;
    1765             :         default:
    1766           0 :             break;
    1767             :     }
    1768             : 
    1769           0 :     return 0;
    1770             : }
    1771             : 
    1772           0 : SfxAbstractInsertObjectDialog* AbstractDialogFactory_Impl::CreateInsertObjectDialog( Window* pParent, const OUString& rCommand,
    1773             :             const Reference < com::sun::star::embed::XStorage >& xStor,
    1774             :             const SvObjectServerList* pList )
    1775             : {
    1776           0 :     InsertObjectDialog_Impl* pDlg=0;
    1777           0 :     if ( rCommand == ".uno:InsertObject" )
    1778           0 :         pDlg = new SvInsertOleDlg( pParent, xStor, pList );
    1779           0 :     else if ( rCommand == ".uno:InsertPlugin" )
    1780           0 :         pDlg = new SvInsertPlugInDialog( pParent, xStor );
    1781           0 :     else if ( rCommand == ".uno:InsertObjectFloatingFrame" )
    1782           0 :         pDlg = new SfxInsertFloatingFrameDialog( pParent, xStor );
    1783             : 
    1784           0 :     if ( pDlg )
    1785             :     {
    1786           0 :         pDlg->SetHelpId( OUStringToOString( rCommand, RTL_TEXTENCODING_UTF8 ) );
    1787           0 :         return new AbstractInsertObjectDialog_Impl( pDlg );
    1788             :     }
    1789           0 :     return 0;
    1790             : }
    1791             : 
    1792           0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateEditObjectDialog( Window* pParent,  const OUString& rCommand,
    1793             :             const Reference < com::sun::star::embed::XEmbeddedObject >& xObj )
    1794             : {
    1795           0 :     InsertObjectDialog_Impl* pDlg=0;
    1796           0 :     if ( rCommand == ".uno:InsertObjectFloatingFrame" )
    1797             :     {
    1798           0 :         pDlg = new SfxInsertFloatingFrameDialog( pParent, xObj );
    1799           0 :         pDlg->SetHelpId( OUStringToOString( rCommand, RTL_TEXTENCODING_UTF8 ) );
    1800           0 :         return new CuiVclAbstractDialog_Impl( pDlg );
    1801             :     }
    1802           0 :     return 0;
    1803             : }
    1804             : 
    1805             : 
    1806             : 
    1807           0 : SfxAbstractPasteDialog* AbstractDialogFactory_Impl::CreatePasteDialog( Window* pParent )
    1808             : {
    1809           0 :     return new AbstractPasteDialog_Impl( new SvPasteObjectDialog( pParent ) );
    1810             : }
    1811             : 
    1812           0 : SfxAbstractLinksDialog* AbstractDialogFactory_Impl::CreateLinksDialog( Window* pParent, sfx2::LinkManager* pMgr, bool bHTML, sfx2::SvBaseLink* p)
    1813             : {
    1814           0 :     SvBaseLinksDlg* pLinkDlg = new SvBaseLinksDlg( pParent, pMgr, bHTML );
    1815           0 :     if ( p )
    1816           0 :         pLinkDlg->SetActLink(p);
    1817           0 :     return new AbstractLinksDialog_Impl( pLinkDlg );
    1818             : }
    1819             : 
    1820           0 : SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, const SdrObject* /*pObj*/ )
    1821             : {
    1822           0 :     return new CuiAbstractTabDialog_Impl( new SvxFormatCellsDialog( pParent, pAttr, pModel ) );
    1823             : }
    1824             : 
    1825           0 : SvxAbstractSplittTableDialog* AbstractDialogFactory_Impl::CreateSvxSplittTableDialog( Window* pParent, bool bIsTableVertical, long nMaxVertical, long nMaxHorizontal )
    1826             : {
    1827           0 :     return new SvxSplitTableDlg( pParent, bIsTableVertical, nMaxVertical, nMaxHorizontal );
    1828             : }
    1829             : 
    1830           0 : SvxAbstractNewTableDialog* AbstractDialogFactory_Impl::CreateSvxNewTableDialog( Window* pParent )
    1831             : {
    1832           0 :     return new SvxNewTableDialog( pParent );
    1833             : }
    1834             : 
    1835           0 : VclAbstractDialog* AbstractDialogFactory_Impl::CreateOptionsDialog(
    1836             :     Window* pParent, const OUString& rExtensionId, const OUString& /*rApplicationContext*/ )
    1837             : {
    1838           0 :     return new CuiVclAbstractDialog_Impl( new OfaTreeOptionsDialog( pParent, rExtensionId ) );
    1839             : }
    1840             : 
    1841           0 : SvxAbstractInsRowColDlg* AbstractDialogFactory_Impl::CreateSvxInsRowColDlg( Window* pParent, bool bCol, const OString& sHelpId )
    1842             : {
    1843           0 :     return new SvxInsRowColDlg( pParent, bCol, sHelpId );
    1844             : }
    1845             : 
    1846           0 : AbstractPasswordToOpenModifyDialog * AbstractDialogFactory_Impl::CreatePasswordToOpenModifyDialog(
    1847             :     Window * pParent,
    1848             :     sal_uInt16 nMinPasswdLen, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify )
    1849             : {
    1850           0 :     PasswordToOpenModifyDialog * pDlg = new PasswordToOpenModifyDialog( pParent, nMinPasswdLen, nMaxPasswdLen, bIsPasswordToModify );
    1851           0 :     return new AbstractPasswordToOpenModifyDialog_Impl( pDlg );
    1852           0 : }
    1853             : 
    1854             : 
    1855             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10