2004-01-05 10:31:42 +00:00
/*************************************************************************
*
2005-09-08 19:58:56 +00:00
* OpenOffice . org - a multi - platform office productivity suite
2004-01-05 10:31:42 +00:00
*
2005-09-08 19:58:56 +00:00
* $ RCSfile : dlgfact . cxx , v $
2004-01-05 10:31:42 +00:00
*
2006-12-21 11:00:43 +00:00
* $ Revision : 1.35 $
2004-01-05 10:31:42 +00:00
*
2006-12-21 11:00:43 +00:00
* last change : $ Author : ihi $ $ Date : 2006 - 12 - 21 12 : 00 : 43 $
2004-01-05 10:31:42 +00:00
*
2005-09-08 19:58:56 +00:00
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1 .
2004-01-05 10:31:42 +00:00
*
*
2005-09-08 19:58:56 +00:00
* GNU Lesser General Public License Version 2.1
* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* Copyright 2005 by Sun Microsystems , Inc .
* 901 San Antonio Road , Palo Alto , CA 94303 , USA
2004-01-05 10:31:42 +00:00
*
2005-09-08 19:58:56 +00:00
* This library is free software ; you can redistribute it and / or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 , as published by the Free Software Foundation .
2004-01-05 10:31:42 +00:00
*
2005-09-08 19:58:56 +00:00
* This library is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU
* Lesser General Public License for more details .
2004-01-05 10:31:42 +00:00
*
2005-09-08 19:58:56 +00:00
* You should have received a copy of the GNU Lesser General Public
* License along with this library ; if not , write to the Free Software
* Foundation , Inc . , 59 Temple Place , Suite 330 , Boston ,
* MA 02111 - 1307 USA
2004-01-05 10:31:42 +00:00
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2005-01-21 15:34:48 +00:00
2006-09-17 03:17:54 +00:00
// MARKER(update_precomp.py): autogen include statement, do not remove
# include "precompiled_svx.hxx"
2005-01-21 15:34:48 +00:00
# ifdef SVX_DLLIMPLEMENTATION
# undef SVX_DLLIMPLEMENTATION
# endif
2004-01-05 10:31:42 +00:00
# include "dlgfact.hxx"
// class ResId
# include <tools/rc.hxx>
2004-02-03 17:25:29 +00:00
# include <sfx2/basedlgs.hxx>
//#include "dialmgr.hxx"
# include "dialogs.hrc"
# include "fmresids.hrc"
# include "gallery.hrc"
# include "imapdlg.hrc"
// dialogs and tabpages
# include "dstribut.hxx"
# include "cuigaldlg.hxx"
# include "cuiimapwnd.hxx"
# include "hlmarkwn.hxx"
# include "cuicharmap.hxx"
# include "srchxtra.hxx"
# include "textanim.hxx"
# include "autocdlg.hxx"
# include "treeopt.hxx"
# include "internationaloptions.hxx"
# include "labdlg.hxx"
# include "dstribut.hxx"
# ifndef SVX_HANGUL_HANJA_DLG_HXX
# include "hangulhanjadlg.hxx" //add for HangulHanjaConversionDialog
# endif
# ifndef _SVX_SHOWCOLS_HXX
# include "showcols.hxx" //add for FmShowColsDialog
# endif
# include "zoom.hxx" //add for SvxZoomDialog
# ifndef _CUI_GALDLG_HXX_
# include "cuigaldlg.hxx" //add for Gallery 6 Dialogs and 1 TabPage
# endif
# ifndef _CUI_IMAPWND_HXX
# include "cuiimapwnd.hxx" //add for URLDlg
# endif
# include "hlmarkwn.hxx" //add for SvxHlinkDlgMarkWnd
# include "srchxtra.hxx" //add for SvxSearchFormatDialog
# include "transfrm.hxx" //add for SvxTransformTabDialog
# include "bbdlg.hxx" //add for SvxBorderBackgroundDlg
# include "cuisrchdlg.hxx" //add for SvxJSearchOptionsDialog
# include "cuitbxform.hxx" //add for FmInputRecordNoDialog
# include "optdict.hxx" //add for SvxNewDictionaryDialog
# include "dlgname.hxx" //add for SvxNameDialog & SvxMessDialog
# include "multipat.hxx" //add for SvxMultiPathDialog
# include "multifil.hxx" //add for SvxMultiFileDialog
# include "cuihyperdlg.hxx" //add for SvxHpLinkDlg
# include "cuifmsearch.hxx" //add for FmSearchDialog
# include "cuigrfflt.hxx" //add for GraphicFilterDialog
# include "cuitabarea.hxx" //add for SvxAreaTabDialog
# include "cuitabline.hxx" //add for SvxLineTabDialog
# include "measure.hxx" //add for SvxMeasureDialog
# include "connect.hxx" //add for SvxConnectionDialog
2006-08-15 09:38:22 +00:00
# include "dbregister.hxx" // add for DatabaseRegistrationDialog
2004-02-06 10:36:49 +00:00
# include "cuioptgenrl.hxx" //add for SvxGeneralTabPage
2004-10-04 16:46:42 +00:00
# include "insdlg.hxx"
# include "pastedlg.hxx"
# include "linkdlg.hxx"
2004-09-17 13:14:25 +00:00
# include "SpellDialog.hxx"
2004-07-06 12:11:22 +00:00
# include "cfg.hxx" //add for SvxConfigDialog
2004-05-10 15:51:41 +00:00
# define ITEMID_TABSTOP 0 //add for #include "tabstpge.hxx"
# include "numpages.hxx" // add for
# include "paragrph.hxx" //add for
# include "tabstpge.hxx" // add for
# include "textattr.hxx" // add for SvxTextAttrPage
# include "align.hxx" //add for SvxAlignmentTabPage
# include "backgrnd.hxx" //add for SvxBackgroundTabPage
# include "border.hxx" //add for SvxBorderTabPage
# include "chardlg.hxx" //add for SvxCharNamePage,SvxCharEffectsPage,SvxCharPositionPage,SvxCharTwoLinesPage
# include "numfmt.hxx" //add for SvxNumberFormatTabPage
# include "page.hxx" //add for SvxPageDescPage
# include "postdlg.hxx" //add for SvxPostItDialog
# include "grfpage.hxx" //add for SvxGrfCropPage
2004-05-19 07:56:10 +00:00
# include "scriptdlg.hxx" // for ScriptOrgDialog
# include "selector.hxx" // for SvxScriptSelectorDialog
2004-07-06 12:11:22 +00:00
# include "macropg.hxx" // for SvxMacroAssignDlg
2004-01-05 10:31:42 +00:00
2006-02-07 09:16:53 +00:00
namespace css = : : com : : sun : : star ;
2004-02-03 17:25:29 +00:00
using namespace svx ;
2004-01-05 10:31:42 +00:00
// AbstractTabDialog implementations just forwards everything to the dialog
2004-02-03 17:25:29 +00:00
IMPL_ABSTDLG_BASE ( VclAbstractDialog_Impl )
IMPL_ABSTDLG_BASE ( VclAbstractRefreshableDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractTabDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxDistributeDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractHangulHanjaConversionDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractFmShowColsDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxZoomDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSearchProgress_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractTakeProgress_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractTitleDialog_Impl ) ;
2004-05-19 07:56:10 +00:00
IMPL_ABSTDLG_BASE ( AbstractScriptSelectorDialog_Impl ) ;
2004-02-03 17:25:29 +00:00
IMPL_ABSTDLG_BASE ( AbstractGalleryIdDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractURLDlg_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxHlinkDlgMarkWnd_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxCharacterMap_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxSearchSimilarityDialog_Impl ) ;
2004-06-28 13:03:36 +00:00
IMPL_ABSTDLG_BASE ( AbstractSvxTransformTabDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxCaptionDialog_Impl ) ;
2004-02-03 17:25:29 +00:00
IMPL_ABSTDLG_BASE ( AbstractSvxJSearchOptionsDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractFmInputRecordNoDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxNewDictionaryDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxNameDialog_Impl ) ;
2006-12-19 16:45:13 +00:00
// #i68101#
IMPL_ABSTDLG_BASE ( AbstractSvxObjectNameDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxObjectTitleDescDialog_Impl ) ;
2004-02-03 17:25:29 +00:00
IMPL_ABSTDLG_BASE ( AbstractSvxMessDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxMultiPathDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxMultiFileDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxHpLinkDlg_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractFmSearchDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractGraphicFilterDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSvxAreaTabDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractSfxSingleTabDialog_Impl ) ;
2004-10-04 16:46:42 +00:00
IMPL_ABSTDLG_BASE ( AbstractPasteDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractInsertObjectDialog_Impl ) ;
IMPL_ABSTDLG_BASE ( AbstractLinksDialog_Impl ) ;
2004-09-17 13:14:25 +00:00
IMPL_ABSTDLG_BASE ( AbstractSpellDialog_Impl ) ;
2004-05-10 15:51:41 +00:00
IMPL_ABSTDLG_BASE ( AbstractSvxPostItDialog_Impl ) ;
2004-02-03 17:25:29 +00:00
2006-11-22 09:34:47 +00:00
//////////////////////////////////////////////////////////////////////////
// VclAbstractDialog2_Impl
//////////////////////////////////////////////////////////////////////////
// virtual
VclAbstractDialog2_Impl : : ~ VclAbstractDialog2_Impl ( )
{
delete m_pDlg ;
}
// virtual
void VclAbstractDialog2_Impl : : StartExecuteModal ( const Link & rEndDialogHdl )
{
m_aEndDlgHdl = rEndDialogHdl ;
m_pDlg - > StartExecuteModal (
LINK ( this , VclAbstractDialog2_Impl , EndDialogHdl ) ) ;
}
// virtual
long VclAbstractDialog2_Impl : : GetResult ( )
{
return m_pDlg - > GetResult ( ) ;
}
IMPL_LINK ( VclAbstractDialog2_Impl , EndDialogHdl , Dialog * , pDlg )
{
if ( pDlg ! = m_pDlg )
{
DBG_ERRORFILE ( " VclAbstractDialog2_Impl::EndDialogHdl(): wrong dialog " ) ;
}
m_aEndDlgHdl . Call ( this ) ;
m_aEndDlgHdl = Link ( ) ;
return 0L ;
}
//////////////////////////////////////////////////////////////////////////
2004-02-03 17:25:29 +00:00
void AbstractTabDialog_Impl : : SetCurPageId ( USHORT nId )
{
pDlg - > SetCurPageId ( nId ) ;
}
const SfxItemSet * AbstractTabDialog_Impl : : GetOutputItemSet ( ) const
{
return pDlg - > GetOutputItemSet ( ) ;
}
//add by CHINA001
const USHORT * AbstractTabDialog_Impl : : GetInputRanges ( const SfxItemPool & pItem )
{
return pDlg - > GetInputRanges ( pItem ) ;
}
//add by CHINA001
void AbstractTabDialog_Impl : : SetInputSet ( const SfxItemSet * pInSet )
{
pDlg - > SetInputSet ( pInSet ) ;
}
//From class Window.
void AbstractTabDialog_Impl : : SetText ( const XubString & rStr )
{
pDlg - > SetText ( rStr ) ;
}
String AbstractTabDialog_Impl : : GetText ( ) const
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
return pDlg - > GetText ( ) ;
2004-01-05 10:31:42 +00:00
}
2004-02-03 17:25:29 +00:00
// AbstractTabDialog_Impl end
//for SvxDistributeDialog begin
SvxDistributeHorizontal AbstractSvxDistributeDialog_Impl : : GetDistributeHor ( ) const
{
return pDlg - > GetDistributeHor ( ) ;
}
SvxDistributeVertical AbstractSvxDistributeDialog_Impl : : GetDistributeVer ( ) const
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
return pDlg - > GetDistributeVer ( ) ;
2004-01-05 10:31:42 +00:00
}
2004-02-03 17:25:29 +00:00
//for SvxDistributeDialog end
2004-01-05 10:31:42 +00:00
2004-02-03 17:25:29 +00:00
// for HangulHanjaConversionDialog begin
void AbstractHangulHanjaConversionDialog_Impl : : EndDialog ( long nResult )
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
pDlg - > EndDialog ( nResult ) ;
}
2004-04-27 14:45:45 +00:00
void AbstractHangulHanjaConversionDialog_Impl : : EnableRubySupport ( sal_Bool _bVal )
{
pDlg - > EnableRubySupport ( _bVal ) ;
}
2004-02-03 17:25:29 +00:00
void AbstractHangulHanjaConversionDialog_Impl : : SetByCharacter ( sal_Bool _bByCharacter )
{
pDlg - > SetByCharacter ( _bByCharacter ) ;
2004-01-05 10:31:42 +00:00
}
2004-11-26 13:31:35 +00:00
void AbstractHangulHanjaConversionDialog_Impl : : SetConversionDirectionState ( sal_Bool _bTryBothDirections , HangulHanjaConversion : : ConversionDirection _ePrimaryConversionDirection )
{
pDlg - > SetConversionDirectionState ( _bTryBothDirections , _ePrimaryConversionDirection ) ;
}
2004-02-03 17:25:29 +00:00
void AbstractHangulHanjaConversionDialog_Impl : : SetConversionFormat ( HangulHanjaConversion : : ConversionFormat _eType )
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
pDlg - > SetConversionFormat ( _eType ) ;
}
2004-11-26 13:31:35 +00:00
void AbstractHangulHanjaConversionDialog_Impl : : SetOptionsChangedHdl ( const Link & _rHdl )
{
pDlg - > SetOptionsChangedHdl ( _rHdl ) ;
}
2004-02-03 17:25:29 +00:00
void AbstractHangulHanjaConversionDialog_Impl : : SetIgnoreHdl ( const Link & _rHdl )
{
pDlg - > SetIgnoreHdl ( _rHdl ) ;
}
void AbstractHangulHanjaConversionDialog_Impl : : SetIgnoreAllHdl ( const Link & _rHdl )
{
pDlg - > SetIgnoreAllHdl ( _rHdl ) ;
}
void AbstractHangulHanjaConversionDialog_Impl : : SetChangeHdl ( const Link & _rHdl )
{
pDlg - > SetChangeHdl ( _rHdl ) ;
}
void AbstractHangulHanjaConversionDialog_Impl : : SetChangeAllHdl ( const Link & _rHdl )
{
pDlg - > SetChangeAllHdl ( _rHdl ) ;
}
void AbstractHangulHanjaConversionDialog_Impl : : SetClickByCharacterHdl ( const Link & _rHdl )
{
pDlg - > SetClickByCharacterHdl ( _rHdl ) ;
}
void AbstractHangulHanjaConversionDialog_Impl : : SetConversionFormatChangedHdl ( const Link & _rHdl )
{
pDlg - > SetConversionFormatChangedHdl ( _rHdl ) ;
}
void AbstractHangulHanjaConversionDialog_Impl : : SetFindHdl ( const Link & _rHdl )
{
pDlg - > SetFindHdl ( _rHdl ) ;
}
sal_Bool AbstractHangulHanjaConversionDialog_Impl : : GetUseBothDirections ( ) const
{
return pDlg - > GetUseBothDirections ( ) ;
}
2004-11-26 13:31:35 +00:00
HangulHanjaConversion : : ConversionDirection AbstractHangulHanjaConversionDialog_Impl : : GetDirection ( HangulHanjaConversion : : ConversionDirection _eDefaultDirection ) const
{
return pDlg - > GetDirection ( _eDefaultDirection ) ;
}
2004-02-03 17:25:29 +00:00
void AbstractHangulHanjaConversionDialog_Impl : : SetCurrentString (
const String & _rNewString ,
const : : com : : sun : : star : : uno : : Sequence < : : rtl : : OUString > & _rSuggestions ,
bool _bOriginatesFromDocument
)
{
pDlg - > SetCurrentString ( _rNewString , _rSuggestions , _bOriginatesFromDocument ) ;
}
String AbstractHangulHanjaConversionDialog_Impl : : GetCurrentString ( ) const
{
return pDlg - > GetCurrentString ( ) ;
}
HangulHanjaConversion : : ConversionFormat AbstractHangulHanjaConversionDialog_Impl : : GetConversionFormat ( ) const
{
return pDlg - > GetConversionFormat ( ) ;
2004-01-05 10:31:42 +00:00
}
2004-02-03 17:25:29 +00:00
void AbstractHangulHanjaConversionDialog_Impl : : FocusSuggestion ( )
{
pDlg - > FocusSuggestion ( ) ;
}
String AbstractHangulHanjaConversionDialog_Impl : : GetCurrentSuggestion ( ) const
{
return pDlg - > GetCurrentSuggestion ( ) ;
}
2004-10-04 16:46:42 +00:00
com : : sun : : star : : uno : : Reference < com : : sun : : star : : embed : : XEmbeddedObject > AbstractInsertObjectDialog_Impl : : GetObject ( )
{
return pDlg - > GetObject ( ) ;
}
BOOL AbstractInsertObjectDialog_Impl : : IsCreateNew ( )
{
return pDlg - > IsCreateNew ( ) ;
}
2006-10-13 10:21:38 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : io : : XInputStream > AbstractInsertObjectDialog_Impl : : GetIconIfIconified ( : : rtl : : OUString * pGraphicMediaType )
{
return pDlg - > GetIconIfIconified ( pGraphicMediaType ) ;
}
2004-10-04 16:46:42 +00:00
void AbstractPasteDialog_Impl : : Insert ( SotFormatStringId nFormat , const String & rFormatName )
{
pDlg - > Insert ( nFormat , rFormatName ) ;
}
void AbstractPasteDialog_Impl : : SetObjName ( const SvGlobalName & rClass , const String & rObjName )
{
pDlg - > SetObjName ( rClass , rObjName ) ;
}
ULONG AbstractPasteDialog_Impl : : GetFormat ( const TransferableDataHelper & aHelper ,
const DataFlavorExVector * pFormats ,
const TransferableObjectDescriptor * pDesc )
{
return pDlg - > GetFormat ( aHelper , pFormats , pDesc ) ;
}
2004-02-03 17:25:29 +00:00
// for HangulHanjaConversionDialog end
// for FmShowColsDialog begin
void AbstractFmShowColsDialog_Impl : : SetColumns ( const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : container : : XIndexContainer > & xCols )
{
pDlg - > SetColumns ( xCols ) ;
}
//for FmShowColsDialog end
//for SvxZoomDialog begin
void AbstractSvxZoomDialog_Impl : : SetLimits ( USHORT nMin , USHORT nMax )
{
pDlg - > SetLimits ( nMin , nMax ) ;
}
void AbstractSvxZoomDialog_Impl : : HideButton ( USHORT nBtnId )
{
pDlg - > HideButton ( nBtnId ) ;
}
const SfxItemSet * AbstractSvxZoomDialog_Impl : : GetOutputItemSet ( ) const
2004-01-05 10:31:42 +00:00
{
return pDlg - > GetOutputItemSet ( ) ;
}
2004-02-03 17:25:29 +00:00
//for SvxZoomDialog end
2004-09-17 13:14:25 +00:00
// svx::SvxSpellDialog
/*-- 04.05.2004 08:26:12---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void AbstractSpellDialog_Impl : : SetLanguage ( sal_uInt16 nLang )
{
pDlg - > SetLanguage ( nLang ) ;
}
/*-- 04.05.2004 08:26:13---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
sal_Bool AbstractSpellDialog_Impl : : Close ( )
{
return pDlg - > Close ( ) ;
}
/*-- 04.05.2004 08:26:13---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void AbstractSpellDialog_Impl : : Invalidate ( )
{
2006-10-12 11:11:14 +00:00
pDlg - > InvalidateDialog ( ) ;
2004-09-17 13:14:25 +00:00
}
/*-- 04.05.2004 08:26:13---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
Window * AbstractSpellDialog_Impl : : GetWindow ( )
{
return pDlg ;
}
/*-- 04.05.2004 08:26:13---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SfxBindings & AbstractSpellDialog_Impl : : GetBindings ( )
{
return pDlg - > GetBindings ( ) ;
}
// end svx::SvxSpellDialog
2004-02-03 17:25:29 +00:00
//for SvxSpellCheckDialog begin
//STRIP001 void AbstractSvxSpellCheckDialog_Impl::SetNewEditWord( const String& _rNew )
//STRIP001 {
//STRIP001 return pDlg->SetNewEditWord(_rNew );
//STRIP001 }
//STRIP001
//STRIP001 void AbstractSvxSpellCheckDialog_Impl::SetLanguage( sal_uInt16 nLang )
//STRIP001 {
//STRIP001 return pDlg->SetLanguage( nLang );
//STRIP001 }
//STRIP001
//STRIP001 void AbstractSvxSpellCheckDialog_Impl::HideAutoCorrect()
//STRIP001 {
//STRIP001 return pDlg->HideAutoCorrect();
//STRIP001 }
//STRIP001
//STRIP001 String AbstractSvxSpellCheckDialog_Impl::GetNewEditWord()
//STRIP001 {
//STRIP001 return pDlg->GetNewEditWord();
//STRIP001 }
//STRIP001
//STRIP001 void AbstractSvxSpellCheckDialog_Impl::SetNewEditWord( const String& _rNew )
//STRIP001 {
//STRIP001 return pDlg->SetNewEditWord( _rNew );
//STRIP001 }
//STRIP001
//for SvxSpellCheckDialog end
//for SearchProgress begin
void AbstractSearchProgress_Impl : : Update ( )
{
pDlg - > Update ( ) ;
}
void AbstractSearchProgress_Impl : : Sync ( )
{
pDlg - > Sync ( ) ;
}
void AbstractSearchProgress_Impl : : SetFileType ( const String & rType )
{
pDlg - > SetFileType ( rType ) ;
}
void AbstractSearchProgress_Impl : : SetDirectory ( const INetURLObject & rURL )
{
pDlg - > SetDirectory ( rURL ) ;
}
PLinkStub AbstractSearchProgress_Impl : : GetLinkStubCleanUpHdl ( )
{
return SearchProgress : : LinkStubCleanUpHdl ;
}
//for SearchProgress end
//for TakeProgress begin
void AbstractTakeProgress_Impl : : Update ( )
{
pDlg - > Update ( ) ;
}
void AbstractTakeProgress_Impl : : Sync ( )
{
pDlg - > Sync ( ) ;
}
void AbstractTakeProgress_Impl : : SetFile ( const INetURLObject & rURL )
{
pDlg - > SetFile ( rURL ) ;
}
PLinkStub AbstractTakeProgress_Impl : : GetLinkStubCleanUpHdl ( )
{
return TakeProgress : : LinkStubCleanUpHdl ;
}
//for TakeProgress end
//for TitleDialog begin
String AbstractTitleDialog_Impl : : GetTitle ( ) const
{
return pDlg - > GetTitle ( ) ;
}
//for TitleDialog end
//for GalleryIdDialog begin
ULONG AbstractGalleryIdDialog_Impl : : GetId ( ) const
{
return pDlg - > GetId ( ) ;
}
//for GalleryIdDialog end
//for VclAbstracRefreshableDialog begin
void VclAbstractRefreshableDialog_Impl : : Update ( )
{
pDlg - > Update ( ) ;
}
void VclAbstractRefreshableDialog_Impl : : Sync ( )
{
pDlg - > Sync ( ) ;
}
//for VclAbstracRefreshableDialog end
//for URLDlg begin
String AbstractURLDlg_Impl : : GetURL ( ) const
{
return pDlg - > GetURL ( ) ;
}
String AbstractURLDlg_Impl : : GetDescription ( ) const
{
return pDlg - > GetDescription ( ) ;
}
String AbstractURLDlg_Impl : : GetTarget ( ) const
{
return pDlg - > GetTarget ( ) ;
}
String AbstractURLDlg_Impl : : GetName ( ) const
{
return pDlg - > GetName ( ) ;
}
//for URLDlg end
// AbstractSvxHlinkDlgMarkWnd_Impl begin
void AbstractSvxHlinkDlgMarkWnd_Impl : : Hide ( USHORT nFlags )
{
( ( Window * ) pDlg ) - > Hide ( nFlags ) ;
}
void AbstractSvxHlinkDlgMarkWnd_Impl : : SetSizePixel ( const Size & rNewSize )
{
pDlg - > SetSizePixel ( rNewSize ) ;
}
Size AbstractSvxHlinkDlgMarkWnd_Impl : : GetSizePixel ( ) const
{
return pDlg - > GetSizePixel ( ) ;
}
BOOL AbstractSvxHlinkDlgMarkWnd_Impl : : IsVisible ( ) const
{
return ( ( Window * ) pDlg ) - > IsVisible ( ) ;
}
void AbstractSvxHlinkDlgMarkWnd_Impl : : Invalidate ( USHORT nFlags )
{
( ( Window * ) pDlg ) - > Invalidate ( nFlags ) ;
}
BOOL AbstractSvxHlinkDlgMarkWnd_Impl : : MoveTo ( Point aNewPos ) const
{
return pDlg - > MoveTo ( aNewPos ) ;
}
BOOL AbstractSvxHlinkDlgMarkWnd_Impl : : ConnectToDialog ( BOOL bDoit ) const
{
return pDlg - > ConnectToDialog ( bDoit ) ;
}
void AbstractSvxHlinkDlgMarkWnd_Impl : : RefreshTree ( String aStrURL )
{
pDlg - > RefreshTree ( aStrURL ) ;
}
void AbstractSvxHlinkDlgMarkWnd_Impl : : SelectEntry ( String aStrMark )
{
pDlg - > SelectEntry ( aStrMark ) ;
}
USHORT AbstractSvxHlinkDlgMarkWnd_Impl : : SetError ( USHORT nError )
{
return pDlg - > SetError ( nError ) ;
}
// AbstractSvxHlinkDlgMarkWnd_Impl end
// AbstractSvxCharacterMap_Impl begin
void AbstractSvxCharacterMap_Impl : : SetText ( const XubString & rStr )
{
pDlg - > SetText ( rStr ) ;
}
void AbstractSvxCharacterMap_Impl : : DisableFontSelection ( )
{
pDlg - > DisableFontSelection ( ) ;
}
const Font & AbstractSvxCharacterMap_Impl : : GetCharFont ( ) const
{
return pDlg - > GetCharFont ( ) ;
}
void AbstractSvxCharacterMap_Impl : : SetCharFont ( const Font & rFont )
{
pDlg - > SetCharFont ( rFont ) ;
}
void AbstractSvxCharacterMap_Impl : : SetFont ( const Font & rFont )
{
pDlg - > SetFont ( rFont ) ;
}
void AbstractSvxCharacterMap_Impl : : SetChar ( sal_Unicode c )
{
pDlg - > SetChar ( c ) ;
}
sal_Unicode AbstractSvxCharacterMap_Impl : : GetChar ( ) const
{
2006-12-21 11:00:43 +00:00
sal_UCS4 cUCS4 = pDlg - > GetChar ( ) ;
// TODO: change return value to UCS4
return static_cast < sal_Unicode > ( cUCS4 ) ;
2004-02-03 17:25:29 +00:00
}
String AbstractSvxCharacterMap_Impl : : GetCharacters ( ) const
{
return pDlg - > GetCharacters ( ) ;
}
// AbstractSvxCharacterMap_Impl end
//for SvxSearchSimilarityDialog begin
USHORT AbstractSvxSearchSimilarityDialog_Impl : : GetOther ( )
{
return pDlg - > GetOther ( ) ;
}
USHORT AbstractSvxSearchSimilarityDialog_Impl : : GetShorter ( )
{
return pDlg - > GetShorter ( ) ;
}
USHORT AbstractSvxSearchSimilarityDialog_Impl : : GetLonger ( )
{
return pDlg - > GetLonger ( ) ;
}
BOOL AbstractSvxSearchSimilarityDialog_Impl : : IsRelaxed ( )
{
return pDlg - > IsRelaxed ( ) ;
}
//for SvxSearchSimilarityDialog end
2004-06-28 13:03:36 +00:00
// AbstractSvxTransformTabDialog implementations just forwards everything to the dialog
void AbstractSvxTransformTabDialog_Impl : : SetCurPageId ( USHORT nId )
{
pDlg - > SetCurPageId ( nId ) ;
}
const SfxItemSet * AbstractSvxTransformTabDialog_Impl : : GetOutputItemSet ( ) const
{
return pDlg - > GetOutputItemSet ( ) ;
}
//
const USHORT * AbstractSvxTransformTabDialog_Impl : : GetInputRanges ( const SfxItemPool & pItem )
{
return pDlg - > GetInputRanges ( pItem ) ;
}
//
void AbstractSvxTransformTabDialog_Impl : : SetInputSet ( const SfxItemSet * pInSet )
{
pDlg - > SetInputSet ( pInSet ) ;
}
//From class Window.
void AbstractSvxTransformTabDialog_Impl : : SetText ( const XubString & rStr )
{
pDlg - > SetText ( rStr ) ;
}
String AbstractSvxTransformTabDialog_Impl : : GetText ( ) const
{
return pDlg - > GetText ( ) ;
}
void AbstractSvxTransformTabDialog_Impl : : SetValidateFramePosLink ( const Link & rLink )
{
pDlg - > SetValidateFramePosLink ( rLink ) ;
}
// AbstractSvxTransformTabDialog end
// AbstractSvxCaptionDialog implementations just forwards everything to the dialog
void AbstractSvxCaptionDialog_Impl : : SetCurPageId ( USHORT nId )
{
pDlg - > SetCurPageId ( nId ) ;
}
const SfxItemSet * AbstractSvxCaptionDialog_Impl : : GetOutputItemSet ( ) const
{
return pDlg - > GetOutputItemSet ( ) ;
}
//
const USHORT * AbstractSvxCaptionDialog_Impl : : GetInputRanges ( const SfxItemPool & pItem )
{
return pDlg - > GetInputRanges ( pItem ) ;
}
//
void AbstractSvxCaptionDialog_Impl : : SetInputSet ( const SfxItemSet * pInSet )
{
pDlg - > SetInputSet ( pInSet ) ;
}
//From class Window.
void AbstractSvxCaptionDialog_Impl : : SetText ( const XubString & rStr )
{
pDlg - > SetText ( rStr ) ;
}
String AbstractSvxCaptionDialog_Impl : : GetText ( ) const
{
return pDlg - > GetText ( ) ;
}
void AbstractSvxCaptionDialog_Impl : : SetValidateFramePosLink ( const Link & rLink )
{
pDlg - > SetValidateFramePosLink ( rLink ) ;
}
// SvxAbstractCaptionDialog end
2004-02-03 17:25:29 +00:00
//for SvxJSearchOptionsDialog begin
INT32 AbstractSvxJSearchOptionsDialog_Impl : : GetTransliterationFlags ( ) const
{
return pDlg - > GetTransliterationFlags ( ) ;
}
//for SvxJSearchOptionsDialog end
//for FmInputRecordNoDialog begin
2006-06-19 14:07:38 +00:00
void AbstractFmInputRecordNoDialog_Impl : : SetValue ( long nNew )
2004-02-03 17:25:29 +00:00
{
2006-06-19 14:07:38 +00:00
pDlg - > SetValue ( nNew ) ;
2004-02-03 17:25:29 +00:00
}
long AbstractFmInputRecordNoDialog_Impl : : GetValue ( ) const
{
return pDlg - > GetValue ( ) ;
}
//for FmInputRecordNoDialog end
//for SvxNewDictionaryDialog begin
: : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : linguistic2 : : XDictionary1 > AbstractSvxNewDictionaryDialog_Impl : : GetNewDictionary ( )
{
return pDlg - > GetNewDictionary ( ) ;
}
//for SvxNewDictionaryDialog end
//for SvxNameDialog begin
void AbstractSvxNameDialog_Impl : : GetName ( String & rName )
{
pDlg - > GetName ( rName ) ;
}
void AbstractSvxNameDialog_Impl : : SetCheckNameHdl ( const Link & rLink , bool bCheckImmediately )
{
2004-05-10 15:51:41 +00:00
aCheckNameHdl = rLink ;
if ( rLink . IsSet ( ) )
pDlg - > SetCheckNameHdl ( LINK ( this , AbstractSvxNameDialog_Impl , CheckNameHdl ) , bCheckImmediately ) ;
else
pDlg - > SetCheckNameHdl ( Link ( ) , bCheckImmediately ) ;
2004-02-03 17:25:29 +00:00
}
void AbstractSvxNameDialog_Impl : : SetEditHelpId ( ULONG nHelpId )
{
pDlg - > SetEditHelpId ( nHelpId ) ;
}
void AbstractSvxNameDialog_Impl : : SetHelpId ( ULONG nHelpId )
{
pDlg - > SetHelpId ( nHelpId ) ;
}
void AbstractSvxNameDialog_Impl : : SetText ( const XubString & rStr )
{
pDlg - > SetText ( rStr ) ;
}
2006-06-19 14:07:38 +00:00
IMPL_LINK ( AbstractSvxNameDialog_Impl , CheckNameHdl , Window * , EMPTYARG )
2004-05-10 15:51:41 +00:00
{
if ( aCheckNameHdl . IsSet ( ) )
return aCheckNameHdl . Call ( this ) ;
return 0 ;
}
2004-02-03 17:25:29 +00:00
//for SvxNameDialog end
2006-12-19 16:45:13 +00:00
///////////////////////////////////////////////////////////////////////////////////////////////
// #i68101#
void AbstractSvxObjectNameDialog_Impl : : GetName ( String & rName )
{
pDlg - > GetName ( rName ) ;
}
void AbstractSvxObjectNameDialog_Impl : : SetCheckNameHdl ( const Link & rLink , bool bCheckImmediately )
{
aCheckNameHdl = rLink ;
if ( rLink . IsSet ( ) )
{
pDlg - > SetCheckNameHdl ( LINK ( this , AbstractSvxObjectNameDialog_Impl , CheckNameHdl ) , bCheckImmediately ) ;
}
else
{
pDlg - > SetCheckNameHdl ( Link ( ) , bCheckImmediately ) ;
}
}
IMPL_LINK ( AbstractSvxObjectNameDialog_Impl , CheckNameHdl , Window * , EMPTYARG )
{
if ( aCheckNameHdl . IsSet ( ) )
{
return aCheckNameHdl . Call ( this ) ;
}
return 0 ;
}
///////////////////////////////////////////////////////////////////////////////////////////////
// #i68101#
void AbstractSvxObjectTitleDescDialog_Impl : : GetTitle ( String & rTitle )
{
pDlg - > GetTitle ( rTitle ) ;
}
void AbstractSvxObjectTitleDescDialog_Impl : : GetDescription ( String & rDescription )
{
pDlg - > GetDescription ( rDescription ) ;
}
///////////////////////////////////////////////////////////////////////////////////////////////
2004-02-03 17:25:29 +00:00
//for SvxMessDialog begin
void AbstractSvxMessDialog_Impl : : SetButtonText ( USHORT nBtnId , const String & rNewTxt )
{
pDlg - > SetButtonText ( nBtnId , rNewTxt ) ;
}
//for SvxMessDialog end
//for SvxMultiPathDialog begin
String AbstractSvxMultiPathDialog_Impl : : GetPath ( ) const
{
return pDlg - > GetPath ( ) ;
}
void AbstractSvxMultiPathDialog_Impl : : SetPath ( const String & rPath )
{
pDlg - > SetPath ( rPath ) ;
}
2006-07-13 10:59:14 +00:00
void AbstractSvxMultiPathDialog_Impl : : EnableRadioButtonMode ( )
{
pDlg - > EnableRadioButtonMode ( ) ;
}
void AbstractSvxMultiPathDialog_Impl : : SetTitle ( const String & rNewTitle )
{
pDlg - > SetText ( rNewTitle ) ;
}
2004-02-03 17:25:29 +00:00
//for SvxMultiPathDialog end
//for SvxMultiFileDialog begin
String AbstractSvxMultiFileDialog_Impl : : GetPath ( ) const
{
return pDlg - > GetPath ( ) ;
}
void AbstractSvxMultiFileDialog_Impl : : SetPath ( const String & rPath )
{
pDlg - > SetPath ( rPath ) ;
}
String AbstractSvxMultiFileDialog_Impl : : GetFiles ( ) const
{
return pDlg - > GetFiles ( ) ;
}
void AbstractSvxMultiFileDialog_Impl : : SetFiles ( const String & rPath )
{
pDlg - > SetFiles ( rPath ) ;
}
void AbstractSvxMultiFileDialog_Impl : : SetClassPathMode ( )
{
pDlg - > SetClassPathMode ( ) ;
}
2006-07-13 10:59:14 +00:00
void AbstractSvxMultiFileDialog_Impl : : EnableRadioButtonMode ( )
{
pDlg - > EnableRadioButtonMode ( ) ;
}
void AbstractSvxMultiFileDialog_Impl : : SetTitle ( const String & rNewTitle )
{
pDlg - > SetText ( rNewTitle ) ;
}
2004-02-03 17:25:29 +00:00
void AbstractSvxMultiFileDialog_Impl : : SetHelpId ( ULONG nHelpId )
{
pDlg - > SetHelpId ( nHelpId ) ;
}
//for SvxMultiFileDialog end
//for SvxHpLinkDlg begin
Window * AbstractSvxHpLinkDlg_Impl : : GetWindow ( )
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
return ( Window * ) pDlg ;
2004-01-05 10:31:42 +00:00
}
2006-11-07 13:48:43 +00:00
sal_Bool AbstractSvxHpLinkDlg_Impl : : QueryClose ( )
{
return pDlg - > QueryClose ( ) ;
}
2004-02-03 17:25:29 +00:00
//for SvxHpLinkDlg end
2004-01-05 10:31:42 +00:00
2004-02-03 17:25:29 +00:00
//for FmSearchDialog begin
void AbstractFmSearchDialog_Impl : : SetFoundHandler ( const Link & lnk )
{
pDlg - > SetFoundHandler ( lnk ) ;
}
void AbstractFmSearchDialog_Impl : : SetCanceledNotFoundHdl ( const Link & lnk )
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
pDlg - > SetCanceledNotFoundHdl ( lnk ) ;
2004-01-05 10:31:42 +00:00
}
2004-02-03 17:25:29 +00:00
void AbstractFmSearchDialog_Impl : : SetActiveField ( const String & strField )
{
pDlg - > SetActiveField ( strField ) ;
}
//for FmSearchDialog end
2004-01-05 10:31:42 +00:00
2004-02-03 17:25:29 +00:00
//for GraphicFilterDialog begin
Graphic AbstractGraphicFilterDialog_Impl : : GetFilteredGraphic ( const Graphic & rGraphic , double fScaleX , double fScaleY )
{
return pDlg - > GetFilteredGraphic ( rGraphic , fScaleX , fScaleY ) ;
}
//for GraphicFilterDialog end
// AbstractSvxAreaTabDialog implementations just forwards everything to the dialog
void AbstractSvxAreaTabDialog_Impl : : SetCurPageId ( USHORT nId )
{
pDlg - > SetCurPageId ( nId ) ;
}
const SfxItemSet * AbstractSvxAreaTabDialog_Impl : : GetOutputItemSet ( ) const
{
return pDlg - > GetOutputItemSet ( ) ;
}
//add by CHINA001
const USHORT * AbstractSvxAreaTabDialog_Impl : : GetInputRanges ( const SfxItemPool & pItem )
{
return pDlg - > GetInputRanges ( pItem ) ;
}
//add by CHINA001
void AbstractSvxAreaTabDialog_Impl : : SetInputSet ( const SfxItemSet * pInSet )
{
pDlg - > SetInputSet ( pInSet ) ;
}
//From class Window.
void AbstractSvxAreaTabDialog_Impl : : SetText ( const XubString & rStr )
{
pDlg - > SetText ( rStr ) ;
}
String AbstractSvxAreaTabDialog_Impl : : GetText ( ) const
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
return pDlg - > GetText ( ) ;
2004-01-05 10:31:42 +00:00
}
2004-02-03 17:25:29 +00:00
void AbstractSvxAreaTabDialog_Impl : : DontDeleteColorTable ( )
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
return pDlg - > DontDeleteColorTable ( ) ;
2004-01-05 10:31:42 +00:00
}
2004-02-03 17:25:29 +00:00
// AbstractSvxAreaTabDialog_Impl end
2004-01-05 10:31:42 +00:00
2004-02-03 17:25:29 +00:00
// add SvxMeasureDialog & SvxConnectionDialog begin
const SfxItemSet * AbstractSfxSingleTabDialog_Impl : : GetOutputItemSet ( ) const
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
return pDlg - > GetOutputItemSet ( ) ;
2004-01-05 10:31:42 +00:00
}
2004-05-10 15:51:41 +00:00
// SvxMeasureDialog & SvxConnectionDialog end
// add SvxPostItDialog begin
void AbstractSvxPostItDialog_Impl : : SetText ( const XubString & rStr )
{
pDlg - > SetText ( rStr ) ;
}
const SfxItemSet * AbstractSvxPostItDialog_Impl : : GetOutputItemSet ( ) const
{
return pDlg - > GetOutputItemSet ( ) ;
}
void AbstractSvxPostItDialog_Impl : : EnableTravel ( BOOL bNext , BOOL bPrev )
{
pDlg - > EnableTravel ( bNext , bPrev ) ;
}
String AbstractSvxPostItDialog_Impl : : GetNote ( )
{
return pDlg - > GetNote ( ) ;
}
void AbstractSvxPostItDialog_Impl : : SetNote ( const String & rTxt )
{
pDlg - > SetNote ( rTxt ) ;
}
void AbstractSvxPostItDialog_Impl : : ShowLastAuthor ( const String & rAuthor , const String & rDate )
{
pDlg - > ShowLastAuthor ( rAuthor , rDate ) ;
}
void AbstractSvxPostItDialog_Impl : : DontChangeAuthor ( )
{
pDlg - > DontChangeAuthor ( ) ;
}
void AbstractSvxPostItDialog_Impl : : HideAuthor ( )
{
pDlg - > HideAuthor ( ) ;
}
void AbstractSvxPostItDialog_Impl : : SetReadonlyPostIt ( BOOL bDisable )
{
pDlg - > SetReadonlyPostIt ( bDisable ) ;
}
BOOL AbstractSvxPostItDialog_Impl : : IsOkEnabled ( ) const
{
return pDlg - > IsOkEnabled ( ) ;
}
void AbstractSvxPostItDialog_Impl : : SetNextHdl ( const Link & rLink )
{
aNextHdl = rLink ;
if ( rLink . IsSet ( ) )
pDlg - > SetNextHdl ( LINK ( this , AbstractSvxPostItDialog_Impl , NextHdl ) ) ;
else
pDlg - > SetNextHdl ( Link ( ) ) ;
}
void AbstractSvxPostItDialog_Impl : : SetPrevHdl ( const Link & rLink )
{
aPrevHdl = rLink ;
if ( rLink . IsSet ( ) )
pDlg - > SetPrevHdl ( LINK ( this , AbstractSvxPostItDialog_Impl , PrevHdl ) ) ;
else
pDlg - > SetPrevHdl ( Link ( ) ) ;
}
2006-06-19 14:07:38 +00:00
IMPL_LINK ( AbstractSvxPostItDialog_Impl , NextHdl , Window * , EMPTYARG )
2004-05-10 15:51:41 +00:00
{
if ( aNextHdl . IsSet ( ) )
aNextHdl . Call ( this ) ;
return 0 ;
}
2006-06-19 14:07:38 +00:00
IMPL_LINK ( AbstractSvxPostItDialog_Impl , PrevHdl , Window * , EMPTYARG )
2004-05-10 15:51:41 +00:00
{
if ( aPrevHdl . IsSet ( ) )
aPrevHdl . Call ( this ) ;
return 0 ;
}
Window * AbstractSvxPostItDialog_Impl : : GetWindow ( )
{
return ( Window * ) pDlg ;
}
// SvxPostItDialog end
2004-01-05 10:31:42 +00:00
2004-02-03 17:25:29 +00:00
//--------------------------------------------------------------
2004-01-05 10:31:42 +00:00
// Create dialogs with simplest interface
2004-02-03 17:25:29 +00:00
VclAbstractDialog * AbstractDialogFactory_Impl : : CreateVclDialog ( Window * pParent , const ResId & rResId )
2004-01-05 10:31:42 +00:00
{
Dialog * pDlg = NULL ;
2004-02-03 17:25:29 +00:00
switch ( rResId . GetId ( ) )
{
case SID_OPTIONS_TREEDIALOG :
2005-11-04 15:06:15 +00:00
case SID_OPTIONS_DATABASES :
{
2006-07-26 07:34:15 +00:00
css : : uno : : Reference < css : : frame : : XFrame > xFrame ;
OfaTreeOptionsDialog * pOptDlg = new OfaTreeOptionsDialog ( pParent , xFrame ) ;
2005-11-04 15:06:15 +00:00
if ( rResId . GetId ( ) = = SID_OPTIONS_DATABASES )
{
pOptDlg - > ActivatePage ( SID_SB_DBREGISTEROPTIONS ) ;
}
pDlg = pOptDlg ;
}
break ;
2004-02-03 17:25:29 +00:00
default :
break ;
}
if ( pDlg )
return new VclAbstractDialog_Impl ( pDlg ) ;
2004-01-05 10:31:42 +00:00
return 0 ;
}
// dialogs that use SfxBindings
2006-06-19 14:07:38 +00:00
VclAbstractDialog * AbstractDialogFactory_Impl : : CreateSfxDialog ( Window * /*pParent*/ , const SfxBindings & , const ResId & )
2004-01-05 10:31:42 +00:00
{
return 0 ;
}
2006-07-26 07:34:15 +00:00
VclAbstractDialog * AbstractDialogFactory_Impl : : CreateFrameDialog (
Window * pParent , const css : : uno : : Reference < css : : frame : : XFrame > & _xFrame , const ResId & rResId )
{
Dialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case SID_OPTIONS_TREEDIALOG :
case SID_OPTIONS_DATABASES :
{
OfaTreeOptionsDialog * pOptDlg = new OfaTreeOptionsDialog ( pParent , _xFrame ) ;
if ( rResId . GetId ( ) = = SID_OPTIONS_DATABASES )
{
pOptDlg - > ActivatePage ( SID_SB_DBREGISTEROPTIONS ) ;
}
pDlg = pOptDlg ;
}
break ;
default :
break ;
}
if ( pDlg )
return new VclAbstractDialog_Impl ( pDlg ) ;
return 0 ;
}
2004-01-05 10:31:42 +00:00
// TabDialog outside the drawing layer
2004-02-03 17:25:29 +00:00
SfxAbstractTabDialog * AbstractDialogFactory_Impl : : CreateTabDialog ( const ResId & rResId ,
2004-01-05 10:31:42 +00:00
Window * pParent ,
const SfxItemSet * pAttrSet ,
2006-06-19 14:07:38 +00:00
SfxViewFrame * ,
bool /*bEditFmt*/ ,
2006-10-12 11:11:14 +00:00
const String * )
2004-01-05 10:31:42 +00:00
{
SfxTabDialog * pDlg = NULL ;
2004-02-03 17:25:29 +00:00
switch ( rResId . GetId ( ) )
{
case RID_OFA_AUTOCORR_DLG :
pDlg = new OfaAutoCorrDlg ( pParent , pAttrSet ) ;
break ;
2004-07-06 12:11:22 +00:00
case RID_SVXDLG_CUSTOMIZE :
2004-11-16 13:27:35 +00:00
pDlg = new SvxConfigDialog ( pParent , pAttrSet ) ;
2004-07-06 12:11:22 +00:00
break ;
2004-02-03 17:25:29 +00:00
default :
break ;
}
if ( pDlg )
return new AbstractTabDialog_Impl ( pDlg ) ;
2004-01-05 10:31:42 +00:00
return 0 ;
}
2006-02-07 09:16:53 +00:00
SfxAbstractTabDialog * AbstractDialogFactory_Impl : : CreateTabDialog ( const ResId & rResId ,
Window * pParent ,
const SfxItemSet * pAttrSet ,
const css : : uno : : Reference < css : : frame : : XFrame > & xViewFrame ,
2006-06-19 14:07:38 +00:00
bool /*bEditFmt*/ ,
2006-10-12 11:11:14 +00:00
const String * )
2006-02-07 09:16:53 +00:00
{
SfxTabDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_OFA_AUTOCORR_DLG :
pDlg = new OfaAutoCorrDlg ( pParent , pAttrSet ) ;
break ;
case RID_SVXDLG_CUSTOMIZE :
{
SvxConfigDialog * pDlg1 = new SvxConfigDialog ( pParent , pAttrSet ) ;
pDlg1 - > SetFrame ( xViewFrame ) ;
pDlg = ( SfxTabDialog * ) pDlg1 ;
}
break ;
default :
break ;
}
if ( pDlg )
return new AbstractTabDialog_Impl ( pDlg ) ;
return 0 ;
}
2004-01-05 10:31:42 +00:00
// TabDialog that use functionality of the drawing layer
2004-02-03 17:25:29 +00:00
SfxAbstractTabDialog * AbstractDialogFactory_Impl : : CreateTextTabDialog ( Window * pParent ,
2004-01-05 10:31:42 +00:00
const SfxItemSet * pAttrSet ,
const ResId & rResId ,
SdrView * pView ,
2006-06-19 14:07:38 +00:00
SdrModel * )
2004-01-05 10:31:42 +00:00
{
SfxTabDialog * pDlg = NULL ;
2004-02-03 17:25:29 +00:00
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_TEXT :
pDlg = new SvxTextTabDialog ( pParent , pAttrSet , pView ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractTabDialog_Impl ( pDlg ) ;
return 0 ;
}
//TabDialog that use functionality of the drawing layer and add AnchorTypes -- for SvxCaptionTabDialog CHINA001
2004-06-28 13:03:36 +00:00
AbstractSvxCaptionDialog * AbstractDialogFactory_Impl : : CreateCaptionDialog ( Window * pParent ,
2004-02-03 17:25:29 +00:00
const SdrView * pView ,
const ResId & rResId ,
USHORT nAnchorTypes )
{
2004-06-28 13:03:36 +00:00
SvxCaptionTabDialog * pDlg = NULL ;
2004-02-03 17:25:29 +00:00
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_CAPTION :
pDlg = new SvxCaptionTabDialog ( pParent , pView , nAnchorTypes ) ;
break ;
default :
break ;
}
if ( pDlg )
2004-06-28 13:03:36 +00:00
return new AbstractSvxCaptionDialog_Impl ( pDlg ) ;
2004-02-03 17:25:29 +00:00
return 0 ;
}
AbstractSvxDistributeDialog * AbstractDialogFactory_Impl : : CreateSvxDistributeDialog ( Window * pParent ,
const SfxItemSet & rAttr ,
const ResId & rResId ,
SvxDistributeHorizontal eHor ,
SvxDistributeVertical eVer )
{
SvxDistributeDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXPAGE_DISTRIBUTE :
pDlg = new SvxDistributeDialog ( pParent , rAttr , eHor , eVer ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxDistributeDialog_Impl ( pDlg ) ;
return 0 ;
}
AbstractHangulHanjaConversionDialog * AbstractDialogFactory_Impl : : CreateHangulHanjaConversionDialog ( Window * pParent ,
HangulHanjaConversion : : ConversionDirection _ePrimaryDirection ,
const ResId & rResId )
{
HangulHanjaConversionDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVX_MDLG_HANGULHANJA :
pDlg = new HangulHanjaConversionDialog ( pParent , _ePrimaryDirection ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractHangulHanjaConversionDialog_Impl ( pDlg ) ;
return 0 ;
}
AbstractFmShowColsDialog * AbstractDialogFactory_Impl : : CreateFmShowColsDialog ( Window * pParent , //add for FmShowColsDialog
const ResId & rResId )
{
FmShowColsDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVX_DLG_SHOWGRIDCOLUMNS :
pDlg = new FmShowColsDialog ( pParent ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractFmShowColsDialog_Impl ( pDlg ) ;
return 0 ;
}
AbstractSvxZoomDialog * AbstractDialogFactory_Impl : : CreateSvxZoomDialog ( Window * pParent , //add for SvxZoomDialog
const SfxItemSet & rCoreSet ,
const ResId & rResId )
{
SvxZoomDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_ZOOM :
pDlg = new SvxZoomDialog ( pParent , rCoreSet ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxZoomDialog_Impl ( pDlg ) ;
2004-01-05 10:31:42 +00:00
return 0 ;
}
2004-09-17 13:14:25 +00:00
/*-- 04.05.2004 08:18:17---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
AbstractSpellDialog * AbstractDialogFactory_Impl : : CreateSvxSpellDialog (
Window * pParent ,
SfxBindings * pBindings ,
svx : : SpellDialogChildWindow * pSpellChildWindow )
{
svx : : SpellDialog * pDlg = new svx : : SpellDialog ( pSpellChildWindow , pParent , pBindings ) ;
return new AbstractSpellDialog_Impl ( pDlg ) ;
}
2004-02-03 17:25:29 +00:00
//CHINA001 GalleryDialog start
VclAbstractRefreshableDialog * AbstractDialogFactory_Impl : : CreateActualizeProgressDialog ( Window * pParent , //add for ActualizeProgress
GalleryTheme * pThm ,
const ResId & rResId )
{
Dialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_GALLERY_ACTUALIZE_PROGRESS :
pDlg = new ActualizeProgress ( pParent , pThm ) ;
break ;
default :
break ;
}
if ( pDlg )
return new VclAbstractRefreshableDialog_Impl ( pDlg ) ;
return 0 ;
}
AbstractSearchProgress * AbstractDialogFactory_Impl : : CreateSearchProgressDialog ( Window * pParent , //add for SearchProgress
const INetURLObject & rStartURL ,
const ResId & rResId )
{
SearchProgress * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_GALLERY_SEARCH_PROGRESS :
pDlg = new SearchProgress ( pParent , rStartURL ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSearchProgress_Impl ( pDlg ) ;
return 0 ;
}
AbstractTakeProgress * AbstractDialogFactory_Impl : : CreateTakeProgressDialog ( Window * pParent , //add for TakeProgress
const ResId & rResId )
{
TakeProgress * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_GALLERY_TAKE_PROGRESS :
pDlg = new TakeProgress ( pParent ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractTakeProgress_Impl ( pDlg ) ;
return 0 ;
}
2004-07-23 13:15:21 +00:00
VclAbstractDialog *
AbstractDialogFactory_Impl : : CreateScriptErrorDialog (
Window * pParent , : : com : : sun : : star : : uno : : Any aException )
{
return new SvxScriptErrorDialog ( pParent , aException ) ;
}
2004-05-19 07:56:10 +00:00
AbstractScriptSelectorDialog *
AbstractDialogFactory_Impl : : CreateScriptSelectorDialog (
Window * pParent , BOOL bShowSlots )
{
SvxScriptSelectorDialog * pDlg = NULL ;
pDlg = new SvxScriptSelectorDialog ( pParent , bShowSlots ) ;
if ( pDlg )
{
return new AbstractScriptSelectorDialog_Impl ( pDlg ) ;
}
return 0 ;
}
String AbstractScriptSelectorDialog_Impl : : GetScriptURL ( )
{
if ( pDlg )
return pDlg - > GetScriptURL ( ) ;
return String ( ) ;
}
void AbstractScriptSelectorDialog_Impl : : SetRunLabel ( )
{
if ( pDlg )
pDlg - > SetRunLabel ( ) ;
return ;
}
VclAbstractDialog * AbstractDialogFactory_Impl : : CreateSvxScriptOrgDialog ( Window * pParent , //add for SvxScriptOrgDialog
2004-07-06 12:11:22 +00:00
const String & rLanguage )
2004-05-19 07:56:10 +00:00
{
Dialog * pDlg = NULL ;
2004-10-22 13:37:12 +00:00
2004-08-13 12:31:20 +00:00
pDlg = new SvxScriptOrgDialog ( pParent , rLanguage ) ;
2004-05-19 07:56:10 +00:00
if ( pDlg )
return new VclAbstractDialog_Impl ( pDlg ) ;
return 0 ;
}
2004-02-03 17:25:29 +00:00
AbstractTitleDialog * AbstractDialogFactory_Impl : : CreateTitleDialog ( Window * pParent , //add for TitleDialog
const String & rOldText ,
const ResId & rResId )
{
TitleDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_GALLERY_TITLE :
pDlg = new TitleDialog ( pParent , rOldText ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractTitleDialog_Impl ( pDlg ) ;
return 0 ;
}
AbstractGalleryIdDialog * AbstractDialogFactory_Impl : : CreateGalleryIdDialog ( Window * pParent , //add for SvxZoomDialog
GalleryTheme * pThm ,
const ResId & rResId )
{
GalleryIdDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_GALLERY_THEMEID :
pDlg = new GalleryIdDialog ( pParent , pThm ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractGalleryIdDialog_Impl ( pDlg ) ;
return 0 ;
}
2006-11-22 09:34:47 +00:00
VclAbstractDialog2 * AbstractDialogFactory_Impl : : CreateGalleryThemePropertiesDialog ( Window * pParent , //add for GalleryThemeProperties
2004-02-03 17:25:29 +00:00
ExchangeData * pData ,
SfxItemSet * pItemSet ,
const ResId & rResId )
{
Dialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXTABDLG_GALLERYTHEME :
pDlg = new GalleryThemeProperties ( pParent , pData , pItemSet ) ;
break ;
default :
break ;
}
if ( pDlg )
2006-11-22 09:34:47 +00:00
return new VclAbstractDialog2_Impl ( pDlg ) ;
2004-02-03 17:25:29 +00:00
return 0 ;
}
//CHINA001 GalleryDialog end
AbstractURLDlg * AbstractDialogFactory_Impl : : CreateURLDialog ( Window * pParent , //add for URLDlg
const String & rURL , const String & rDescription ,
const String & rTarget , const String & rName ,
TargetList & rTargetList ,
const ResId & rResId )
{
URLDlg * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_IMAPURL :
pDlg = new URLDlg ( pParent , rURL , rDescription , rTarget , rName , rTargetList ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractURLDlg_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 URLDlg end
//CHINA001 SvxHlinkDlgMarkWnd begin
AbstractSvxHlinkDlgMarkWnd * AbstractDialogFactory_Impl : : CreateSvxHlinkDlgMarkWndDialog ( SvxHyperlinkTabPageBase * pParent , const ResId & rResId )
{
SvxHlinkDlgMarkWnd * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXFLOAT_HYPERLINK_MARKWND :
pDlg = new SvxHlinkDlgMarkWnd ( pParent ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxHlinkDlgMarkWnd_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxHlinkDlgMarkWnd end
//CHINA001 SvxCharacterMap begin
AbstractSvxCharacterMap * AbstractDialogFactory_Impl : : CreateSvxCharacterMap ( Window * pParent , //add for SvxCharacterMap
const ResId & rResId ,
BOOL bOne )
{
SvxCharacterMap * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_CHARMAP :
pDlg = new SvxCharacterMap ( pParent , bOne ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxCharacterMap_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxCharacterMap end
//CHINA001 SvxSearchFormatDialog begin
SfxAbstractTabDialog * AbstractDialogFactory_Impl : : CreateTabItemDialog ( Window * pParent ,
const SfxItemSet & rSet ,
const ResId & rResId )
{
SfxTabDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_SEARCHFORMAT :
pDlg = new SvxSearchFormatDialog ( pParent , rSet ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractTabDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxSearchFormatDialog end
//CHINA001 SvxSearchAttributeDialog begin
VclAbstractDialog * AbstractDialogFactory_Impl : : CreateSvxSearchAttributeDialog ( Window * pParent ,
SearchAttrItemList & rLst ,
const USHORT * pWhRanges ,
const ResId & rResId ) //add for SvxSearchAttributeDialog
{
Dialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_SEARCHATTR :
pDlg = new SvxSearchAttributeDialog ( pParent , rLst , pWhRanges ) ;
break ;
default :
break ;
}
if ( pDlg )
return new VclAbstractDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxSearchAttributeDialog end
//CHINA001 SvxSearchSimilarityDialog begin
AbstractSvxSearchSimilarityDialog * AbstractDialogFactory_Impl : : CreateSvxSearchSimilarityDialog ( Window * pParent ,
BOOL bRelax ,
USHORT nOther ,
USHORT nShorter ,
2005-01-21 15:55:31 +00:00
USHORT nLonger )
2004-02-03 17:25:29 +00:00
{
2005-01-21 15:55:31 +00:00
SvxSearchSimilarityDialog * pDlg = new SvxSearchSimilarityDialog ( pParent , bRelax , nOther , nShorter , nLonger ) ;
2004-02-03 17:25:29 +00:00
if ( pDlg )
return new AbstractSvxSearchSimilarityDialog_Impl ( pDlg ) ;
2005-01-21 15:55:31 +00:00
return NULL ;
2004-02-03 17:25:29 +00:00
}
//CHINA001 SvxSearchSimilarityDialog end
//CHINA001 SvxBorderBackgroundDlg begin
SfxAbstractTabDialog * AbstractDialogFactory_Impl : : CreateSvxBorderBackgroundDlg ( Window * pParent ,
const SfxItemSet & rCoreSet ,
const ResId & rResId ,
BOOL bEnableSelector )
{
SfxTabDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_BBDLG :
pDlg = new SvxBorderBackgroundDlg ( pParent , rCoreSet , bEnableSelector ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractTabDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxBorderBackgroundDlg end
//CHINA001 SvxTransformTabDialog begin
2004-06-28 13:03:36 +00:00
AbstractSvxTransformTabDialog * AbstractDialogFactory_Impl : : CreateSvxTransformTabDialog ( Window * pParent ,
2004-02-03 17:25:29 +00:00
const SfxItemSet * pAttr ,
const SdrView * pView ,
const ResId & rResId ,
USHORT nAnchorTypes )
{
2004-06-28 13:03:36 +00:00
SvxTransformTabDialog * pDlg = NULL ;
2004-02-03 17:25:29 +00:00
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_TRANSFORM :
pDlg = new SvxTransformTabDialog ( pParent , pAttr , pView , nAnchorTypes ) ;
break ;
default :
break ;
}
if ( pDlg )
2004-06-28 13:03:36 +00:00
return new AbstractSvxTransformTabDialog_Impl ( pDlg ) ;
2004-02-03 17:25:29 +00:00
return 0 ;
}
//CHINA001 SvxTransformTabDialog end
//CHINA001 SchTransformTabDialog begin
SfxAbstractTabDialog * AbstractDialogFactory_Impl : : CreateSchTransformTabDialog ( Window * pParent ,
const SfxItemSet * pAttr ,
const SdrView * pSdrView ,
const ResId & rResId ,
bool bSizeTabPage
)
{
SfxTabDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SCH_TransformTabDLG_SVXPAGE_ANGLE :
{
pDlg = new SvxTransformTabDialog ( pParent , pAttr , pSdrView , bSizeTabPage ? SVX_OBJ_NOPROTECT : SVX_OBJ_NOPROTECT | SVX_OBJ_NORESIZE ) ;
pDlg - > RemoveTabPage ( RID_SVXPAGE_ANGLE ) ;
pDlg - > RemoveTabPage ( RID_SVXPAGE_SLANT ) ;
}
break ;
case RID_SCH_TransformTabDLG_SVXPAGE_SLANT :
{
pDlg = new SvxTransformTabDialog ( pParent , pAttr , pSdrView , bSizeTabPage ? SVX_OBJ_NOPROTECT : SVX_OBJ_NOPROTECT | SVX_OBJ_NORESIZE ) ;
pDlg - > RemoveTabPage ( RID_SVXPAGE_SLANT ) ;
}
break ;
default :
break ;
}
if ( pDlg )
return new AbstractTabDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SchTransformTabDialog end
//CHINA001 SvxJSearchOptionsDialog begin
AbstractSvxJSearchOptionsDialog * AbstractDialogFactory_Impl : : CreateSvxJSearchOptionsDialog ( Window * pParent ,
const SfxItemSet & rOptionsSet , USHORT nUniqueId ,
INT32 nInitialFlags ,
const ResId & rResId )
{
SvxJSearchOptionsDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXPAGE_JSEARCH_OPTIONS :
pDlg = new SvxJSearchOptionsDialog ( pParent , rOptionsSet , nUniqueId , nInitialFlags ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxJSearchOptionsDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxJSearchOptionsDialog end
//CHINA001 FmInputRecordNoDialog begin
AbstractFmInputRecordNoDialog * AbstractDialogFactory_Impl : : CreateFmInputRecordNoDialog ( Window * pParent ,
const ResId & rResId )
{
FmInputRecordNoDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVX_DLG_INPUTRECORDNO :
pDlg = new FmInputRecordNoDialog ( pParent ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractFmInputRecordNoDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 FmInputRecordNoDialog end
//CHINA001 SvxNewDictionaryDialog begin
AbstractSvxNewDictionaryDialog * AbstractDialogFactory_Impl : : CreateSvxNewDictionaryDialog ( Window * pParent ,
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : linguistic2 : : XSpellChecker1 > & xSpl ,
const ResId & rResId )
{
SvxNewDictionaryDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SFXDLG_NEWDICT :
pDlg = new SvxNewDictionaryDialog ( pParent , xSpl ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxNewDictionaryDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxNewDictionaryDialog end
//CHINA001 SvxEditDictionaryDialog begin
VclAbstractDialog * AbstractDialogFactory_Impl : : CreateSvxEditDictionaryDialog ( Window * pParent ,
const String & rName ,
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : linguistic2 : : XSpellChecker1 > & xSpl ,
const ResId & rResId )
{
Dialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SFXDLG_EDITDICT :
pDlg = new SvxEditDictionaryDialog ( pParent , rName , xSpl ) ;
break ;
default :
break ;
}
if ( pDlg )
return new VclAbstractDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxEditDictionaryDialog end
//CHINA001 SvxNameDialog begin
AbstractSvxNameDialog * AbstractDialogFactory_Impl : : CreateSvxNameDialog ( Window * pParent ,
const String & rName , const String & rDesc ,
const ResId & rResId )
{
SvxNameDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_NAME :
pDlg = new SvxNameDialog ( pParent , rName , rDesc ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxNameDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxNameDialog end
2006-12-19 16:45:13 +00:00
///////////////////////////////////////////////////////////////////////////////////////////////
// #i68101#
AbstractSvxObjectNameDialog * AbstractDialogFactory_Impl : : CreateSvxObjectNameDialog ( Window * pParent , const String & rName , const ResId & rResId )
{
return ( ( RID_SVXDLG_OBJECT_NAME = = rResId . GetId ( ) )
? new AbstractSvxObjectNameDialog_Impl ( new SvxObjectNameDialog ( pParent , rName ) )
: NULL ) ;
}
///////////////////////////////////////////////////////////////////////////////////////////////
// #i68101#
AbstractSvxObjectTitleDescDialog * AbstractDialogFactory_Impl : : CreateSvxObjectTitleDescDialog ( Window * pParent , const String & rTitle , const String & rDescription , const ResId & rResId )
{
return ( ( RID_SVXDLG_OBJECT_TITLE_DESC = = rResId . GetId ( ) )
? new AbstractSvxObjectTitleDescDialog_Impl ( new SvxObjectTitleDescDialog ( pParent , rTitle , rDescription ) )
: NULL ) ;
}
///////////////////////////////////////////////////////////////////////////////////////////////
2004-02-03 17:25:29 +00:00
//CHINA001 SvxMessDialog begin
AbstractSvxMessDialog * AbstractDialogFactory_Impl : : CreateSvxMessDialog ( Window * pParent , const ResId & rResId ,
const String & rText , const String & rDesc , Image * pImg )
{
SvxMessDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_MESSBOX :
pDlg = new SvxMessDialog ( pParent , rText , rDesc , pImg ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxMessDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxMessDialog end
//CHINA001 SvxMultiPathDialog begin
AbstractSvxMultiPathDialog * AbstractDialogFactory_Impl : : CreateSvxMultiPathDialog ( Window * pParent , const ResId & rResId ,
BOOL bEmptyAllowed )
{
SvxMultiPathDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_MULTIPATH :
pDlg = new SvxMultiPathDialog ( pParent , bEmptyAllowed ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxMultiPathDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxMultiPathDialog end
//CHINA001 SvxMultiFileDialog begin
AbstractSvxMultiFileDialog * AbstractDialogFactory_Impl : : CreateSvxMultiFileDialog ( Window * pParent , const ResId & rResId ,
BOOL bEmptyAllowed )
{
SvxMultiFileDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_MULTIPATH :
pDlg = new SvxMultiFileDialog ( pParent , bEmptyAllowed ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxMultiFileDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxMultiFileDialog end
//CHINA001 SvxHpLinkDlg begin
AbstractSvxHpLinkDlg * AbstractDialogFactory_Impl : : CreateSvxHpLinkDlg ( Window * pParent , //add for SvxMultiFileDialog
SfxBindings * pBindings ,
const ResId & rResId )
{
SvxHpLinkDlg * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case SID_HYPERLINK_DIALOG :
pDlg = new SvxHpLinkDlg ( pParent , pBindings ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxHpLinkDlg_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxHpLinkDlg end
//CHINA001 FmSearchDialog begin
AbstractFmSearchDialog * AbstractDialogFactory_Impl : : CreateFmSearchDialog ( Window * pParent , //add for FmSearchDialog
const String & strInitialText ,
const String & strContexts ,
sal_Int16 nInitialContext ,
const Link & lnkContextSupplier ,
FMSEARCH_MODE eMode )
{
2004-11-16 13:27:35 +00:00
FmSearchDialog * pDlg = new FmSearchDialog ( pParent , strInitialText , strContexts , nInitialContext , lnkContextSupplier , eMode ) ;
2004-02-03 17:25:29 +00:00
if ( pDlg )
return new AbstractFmSearchDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 FmSearchDialog end
//CHINA001 GraphicFilterEmboss begin
AbstractGraphicFilterDialog * AbstractDialogFactory_Impl : : CreateGraphicFilterEmboss ( Window * pParent , //add for GraphicFilterEmboss
const Graphic & rGraphic ,
RECT_POINT eLightSource ,
const ResId & rResId )
{
GraphicFilterDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVX_GRFFILTER_DLG_EMBOSS :
pDlg = new GraphicFilterEmboss ( pParent , rGraphic , eLightSource ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractGraphicFilterDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 GraphicFilterEmboss end
//CHINA001 GraphicFilterPoster & GraphicFilterSepia begin
AbstractGraphicFilterDialog * AbstractDialogFactory_Impl : : CreateGraphicFilterPosterSepia ( Window * pParent , //add for GraphicFilterPoster & GraphicFilterSepia
const Graphic & rGraphic ,
USHORT nCount ,
const ResId & rResId )
{
GraphicFilterDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVX_GRFFILTER_DLG_POSTER :
pDlg = new GraphicFilterPoster ( pParent , rGraphic , nCount ) ;
break ;
case RID_SVX_GRFFILTER_DLG_SEPIA :
pDlg = new GraphicFilterSepia ( pParent , rGraphic , nCount ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractGraphicFilterDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 GraphicFilterPoster & GraphicFilterSepia end
//CHINA001 GraphicFilterSolarize begin
AbstractGraphicFilterDialog * AbstractDialogFactory_Impl : : CreateGraphicFilterSolarize ( Window * pParent , //add for GraphicFilterSolarize
const Graphic & rGraphic ,
BYTE nGreyThreshold , BOOL bInvert ,
const ResId & rResId )
{
GraphicFilterDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVX_GRFFILTER_DLG_SOLARIZE :
pDlg = new GraphicFilterSolarize ( pParent , rGraphic , nGreyThreshold , bInvert ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractGraphicFilterDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 GraphicFilterSolarize end
//CHINA001 GraphicFilterMosaic begin
AbstractGraphicFilterDialog * AbstractDialogFactory_Impl : : CreateGraphicFilterMosaic ( Window * pParent , //add for GraphicFilterMosaic
const Graphic & rGraphic ,
USHORT nTileWidth , USHORT nTileHeight , BOOL bEnhanceEdges ,
const ResId & rResId )
{
GraphicFilterDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVX_GRFFILTER_DLG_MOSAIC :
pDlg = new GraphicFilterMosaic ( pParent , rGraphic , nTileWidth , nTileHeight , bEnhanceEdges ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractGraphicFilterDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 GraphicFilterMosaic end
//CHINA001 SvxAreaTabDialog begin
AbstractSvxAreaTabDialog * AbstractDialogFactory_Impl : : CreateSvxAreaTabDialog ( Window * pParent ,
const SfxItemSet * pAttr ,
SdrModel * pModel ,
const ResId & rResId ,
const SdrView * pSdrView )
{
SvxAreaTabDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_AREA :
pDlg = new SvxAreaTabDialog ( pParent , pAttr , pModel , pSdrView ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxAreaTabDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxAreaTabDialog end
//CHINA001 SvxLineTabDialog begin
SfxAbstractTabDialog * AbstractDialogFactory_Impl : : CreateSvxLineTabDialog ( Window * pParent , const SfxItemSet * pAttr , //add forSvxLineTabDialog
SdrModel * pModel ,
const ResId & rResId ,
const SdrObject * pObj ,
BOOL bHasObj )
{
SfxTabDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_LINE :
pDlg = new SvxLineTabDialog ( pParent , pAttr , pModel , pObj , bHasObj ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractTabDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxLineTabDialog end
//CHINA001 SvxMeasureDialog & SvxConnectionDialog begin
AbstractSfxSingleTabDialog * AbstractDialogFactory_Impl : : CreateSfxSingleTabDialog ( Window * pParent ,
const SfxItemSet & rAttr ,
const SdrView * pView ,
const ResId & rResId
)
{
SfxSingleTabDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXPAGE_MEASURE :
pDlg = new SvxMeasureDialog ( pParent , rAttr , pView ) ;
break ;
case RID_SVXPAGE_CONNECTION :
pDlg = new SvxConnectionDialog ( pParent , rAttr , pView ) ;
break ;
2006-08-15 09:38:22 +00:00
case RID_SFXPAGE_DBREGISTER :
pDlg = new DatabaseRegistrationDialog ( pParent , rAttr ) ;
break ;
2004-02-03 17:25:29 +00:00
default :
break ;
}
if ( pDlg )
return new AbstractSfxSingleTabDialog_Impl ( pDlg ) ;
return 0 ;
}
2004-05-10 15:51:41 +00:00
//CHINA001 SvxPostItDialog begin
AbstractSvxPostItDialog * AbstractDialogFactory_Impl : : CreateSvxPostItDialog ( Window * pParent ,
const SfxItemSet & rCoreSet ,
const ResId & rResId ,
BOOL bPrevNext , BOOL bRedline )
{
SvxPostItDialog * pDlg = NULL ;
switch ( rResId . GetId ( ) )
{
case RID_SVXDLG_POSTIT :
pDlg = new SvxPostItDialog ( pParent , rCoreSet , bPrevNext , bRedline ) ;
break ;
default :
break ;
}
if ( pDlg )
return new AbstractSvxPostItDialog_Impl ( pDlg ) ;
return 0 ;
}
//CHINA001 SvxPostItDialog end
2004-07-06 12:11:22 +00:00
VclAbstractDialog * AbstractDialogFactory_Impl : : CreateSvxMacroAssignDlg ( Window * pParent , SfxItemSet & rSet , : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : container : : XNameReplace > xNameReplace , sal_uInt16 nSelectedIndex )
{
Dialog * pDlg = NULL ;
pDlg = new SvxMacroAssignDlg ( pParent , rSet , xNameReplace , nSelectedIndex ) ;
if ( pDlg )
return new VclAbstractDialog_Impl ( pDlg ) ;
return 0 ;
}
2004-02-03 17:25:29 +00:00
//STRIP001 AbstractSvxSpellCheckDialog * AbstractDialogFactory_Impl::CreateSvxSpellCheckDialog( Window* pParent, //add for SvxSpellCheckDialog
//STRIP001 ::com::sun::star::uno::Reference<
//STRIP001 ::com::sun::star::linguistic2::XSpellChecker1 > &xChecker,
//STRIP001 SvxSpellWrapper* pWrapper,
//STRIP001 const ResId& rResId)
//STRIP001 {
//STRIP001 SvxSpellCheckDialog* pDlg=NULL;
//STRIP001 switch ( rResId.GetId() )
//STRIP001 {
//STRIP001 case RID_SVXDLG_SPELLCHECK :
//STRIP001 pDlg = new SvxSpellCheckDialog( pParent, xChecker,pWrapper);
//STRIP001 break;
//STRIP001 default:
//STRIP001 break;
//STRIP001 }
//STRIP001
//STRIP001 if ( pDlg )
//STRIP001 return new AbstractSvxSpellCheckDialog_Impl( pDlg );
//STRIP001 return 0;
//STRIP001 }
2004-01-05 10:31:42 +00:00
// Factories for TabPages
2004-02-03 17:25:29 +00:00
CreateTabPage AbstractDialogFactory_Impl : : GetTabPageCreatorFunc ( USHORT nId )
{
switch ( nId )
{
case RID_OFA_TP_INTERNATIONAL :
return : : offapp : : InternationalOptionsPage : : CreateSc ;
case RID_OFA_TP_INTERNATIONAL_SD :
case RID_OFA_TP_INTERNATIONAL_IMPR :
return offapp : : InternationalOptionsPage : : CreateSd ;
case RID_SVXPAGE_TEXTANIMATION :
return SvxTextAnimationPage : : Create ;
case RID_SVXTABPAGE_GALLERY_GENERAL :
return TPGalleryThemeGeneral : : Create ;
case RID_SVXPAGE_TRANSPARENCE :
return SvxTransparenceTabPage : : Create ;
case RID_SVXPAGE_AREA :
return SvxAreaTabPage : : Create ;
case RID_SVXPAGE_SHADOW :
return SvxShadowTabPage : : Create ;
case RID_SVXPAGE_LINE :
return SvxLineTabPage : : Create ;
case RID_SVXPAGE_CONNECTION :
return SvxConnectionPage : : Create ;
case RID_SVXPAGE_MEASURE :
return SvxMeasurePage : : Create ;
case RID_SFXPAGE_GENERAL :
return SvxGeneralTabPage : : Create ;
2004-05-10 15:51:41 +00:00
case RID_SVXPAGE_PICK_SINGLE_NUM :
return SvxSingleNumPickTabPage : : Create ;
case RID_SVXPAGE_PICK_BMP :
return SvxBitmapPickTabPage : : Create ;
case RID_SVXPAGE_PICK_BULLET :
return SvxBulletPickTabPage : : Create ;
case RID_SVXPAGE_NUM_OPTIONS :
return SvxNumOptionsTabPage : : Create ;
case RID_SVXPAGE_PICK_NUM :
return SvxNumPickTabPage : : Create ;
case RID_SVXPAGE_NUM_POSITION :
return SvxNumPositionTabPage : : Create ;
case RID_SVXPAGE_PARA_ASIAN :
return SvxAsianTabPage : : Create ;
case RID_SVXPAGE_EXT_PARAGRAPH :
return SvxExtParagraphTabPage : : Create ;
case RID_SVXPAGE_ALIGN_PARAGRAPH :
return SvxParaAlignTabPage : : Create ;
case RID_SVXPAGE_STD_PARAGRAPH :
return SvxStdParagraphTabPage : : Create ;
case RID_SVXPAGE_TABULATOR :
return SvxTabulatorTabPage : : Create ;
case RID_SVXPAGE_TEXTATTR :
return SvxTextAttrPage : : Create ;
case RID_SVXPAGE_ALIGNMENT :
2004-08-02 16:43:55 +00:00
return svx : : AlignmentTabPage : : Create ;
2004-05-10 15:51:41 +00:00
case RID_SW_TP_BACKGROUND :
case RID_SVXPAGE_BACKGROUND :
return SvxBackgroundTabPage : : Create ;
case RID_SVXPAGE_BORDER :
return SvxBorderTabPage : : Create ;
case RID_SVXPAGE_CHAR_NAME :
return SvxCharNamePage : : Create ;
case RID_SVXPAGE_CHAR_EFFECTS :
return SvxCharEffectsPage : : Create ;
case RID_SVXPAGE_CHAR_POSITION :
return SvxCharPositionPage : : Create ;
case RID_SVXPAGE_CHAR_TWOLINES :
return SvxCharTwoLinesPage : : Create ;
case RID_SVXPAGE_NUMBERFORMAT :
return SvxNumberFormatTabPage : : Create ;
case RID_SVXPAGE_PAGE :
return SvxPageDescPage : : Create ;
case RID_SVXPAGE_GRFCROP :
return SvxGrfCropPage : : Create ;
2004-02-03 17:25:29 +00:00
default :
break ;
}
return 0 ;
}
CreateSvxDistributePage AbstractDialogFactory_Impl : : GetSvxDistributePageCreatorFunc ( USHORT nId )
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
switch ( nId )
{
case RID_SVXPAGE_DISTRIBUTE :
return SvxDistributePage : : Create ;
default :
break ;
}
2004-01-05 10:31:42 +00:00
return 0 ;
}
2004-05-10 15:51:41 +00:00
DialogGetRanges AbstractDialogFactory_Impl : : GetDialogGetRangesFunc ( USHORT nId )
{
switch ( nId )
{
case RID_SVXDLG_POSTIT :
return SvxPostItDialog : : GetRanges ; //add for SvxPostItDialog
default :
break ;
}
2004-01-05 10:31:42 +00:00
2004-05-10 15:51:41 +00:00
return 0 ;
}
2004-02-03 17:25:29 +00:00
GetTabPageRanges AbstractDialogFactory_Impl : : GetTabPageRangesFunc ( USHORT nId )
2004-01-05 10:31:42 +00:00
{
2004-02-03 17:25:29 +00:00
switch ( nId )
{
case RID_SVXPAGE_TEXTANIMATION :
return SvxTextAnimationPage : : GetRanges ;
case RID_SVXPAGE_DISTRIBUTE :
return SvxDistributePage : : GetRanges ;
case RID_SVXPAGE_TRANSPARENCE :
return SvxTransparenceTabPage : : GetRanges ;
case RID_SVXPAGE_AREA :
return SvxAreaTabPage : : GetRanges ;
case RID_SVXPAGE_SHADOW :
return SvxShadowTabPage : : GetRanges ;
case RID_SVXPAGE_LINE :
return SvxLineTabPage : : GetRanges ;
case RID_SVXPAGE_CONNECTION :
return SvxConnectionPage : : GetRanges ;
case RID_SVXPAGE_MEASURE :
return SvxMeasurePage : : GetRanges ;
2004-05-10 15:51:41 +00:00
case RID_SVXPAGE_PARA_ASIAN :
return SvxAsianTabPage : : GetRanges ;
case RID_SVXPAGE_EXT_PARAGRAPH :
return SvxExtParagraphTabPage : : GetRanges ;
case RID_SVXPAGE_ALIGN_PARAGRAPH :
return SvxParaAlignTabPage : : GetRanges ;
case RID_SVXPAGE_STD_PARAGRAPH :
return SvxStdParagraphTabPage : : GetRanges ;
case RID_SVXPAGE_TABULATOR :
return SvxTabulatorTabPage : : GetRanges ;
case RID_SVXPAGE_TEXTATTR :
return SvxTextAttrPage : : GetRanges ;
case RID_SVXPAGE_ALIGNMENT :
2004-08-02 16:43:55 +00:00
return svx : : AlignmentTabPage : : GetRanges ;
2004-05-10 15:51:41 +00:00
case RID_SW_TP_BACKGROUND :
case RID_SVXPAGE_BACKGROUND :
return SvxBackgroundTabPage : : GetRanges ;
case RID_SVXPAGE_BORDER :
return SvxBorderTabPage : : GetRanges ;
case RID_SVXPAGE_CHAR_NAME :
return SvxCharNamePage : : GetRanges ;
case RID_SVXPAGE_CHAR_EFFECTS :
return SvxCharEffectsPage : : GetRanges ;
case RID_SVXPAGE_CHAR_POSITION :
return SvxCharPositionPage : : GetRanges ;
case RID_SVXPAGE_CHAR_TWOLINES :
return SvxCharTwoLinesPage : : GetRanges ;
case RID_SVXPAGE_NUMBERFORMAT :
return SvxNumberFormatTabPage : : GetRanges ;
case RID_SVXPAGE_PAGE :
return SvxPageDescPage : : GetRanges ;
2004-02-03 17:25:29 +00:00
default :
break ;
}
2004-01-05 10:31:42 +00:00
return 0 ;
}
2004-10-04 16:46:42 +00:00
SfxAbstractInsertObjectDialog * AbstractDialogFactory_Impl : : CreateInsertObjectDialog ( Window * pParent , USHORT nSlotId ,
const com : : sun : : star : : uno : : Reference < com : : sun : : star : : embed : : XStorage > & xStor ,
const SvObjectServerList * pList )
{
InsertObjectDialog_Impl * pDlg = 0 ;
switch ( nSlotId )
{
case SID_INSERT_OBJECT : pDlg = new SvInsertOleDlg ( pParent , xStor , pList ) ; break ;
case SID_INSERT_PLUGIN : pDlg = new SvInsertPlugInDialog ( pParent , xStor ) ; break ;
case SID_INSERT_APPLET : pDlg = new SvInsertAppletDialog ( pParent , xStor ) ; break ;
case SID_INSERT_FLOATINGFRAME : pDlg = new SfxInsertFloatingFrameDialog ( pParent , xStor ) ; break ;
default : break ;
}
if ( pDlg )
{
pDlg - > SetHelpId ( nSlotId ) ;
return new AbstractInsertObjectDialog_Impl ( pDlg ) ;
}
return 0 ;
}
VclAbstractDialog * AbstractDialogFactory_Impl : : CreateEditObjectDialog ( Window * pParent , USHORT nSlotId ,
const com : : sun : : star : : uno : : Reference < com : : sun : : star : : embed : : XEmbeddedObject > & xObj )
{
InsertObjectDialog_Impl * pDlg = 0 ;
switch ( nSlotId )
{
case SID_INSERT_APPLET : pDlg = new SvInsertAppletDialog ( pParent , xObj ) ; break ;
case SID_INSERT_FLOATINGFRAME : pDlg = new SfxInsertFloatingFrameDialog ( pParent , xObj ) ; break ;
default : break ;
}
if ( pDlg )
{
pDlg - > SetHelpId ( nSlotId ) ;
return new VclAbstractDialog_Impl ( pDlg ) ;
}
return 0 ;
}
SfxAbstractPasteDialog * AbstractDialogFactory_Impl : : CreatePasteDialog ( Window * pParent )
{
return new AbstractPasteDialog_Impl ( new SvPasteObjectDialog ( pParent ) ) ;
}
SfxAbstractLinksDialog * AbstractDialogFactory_Impl : : CreateLinksDialog ( Window * pParent , sfx2 : : SvLinkManager * pMgr , BOOL bHTML , sfx2 : : SvBaseLink * p )
{
SvBaseLinksDlg * pLinkDlg = new SvBaseLinksDlg ( pParent , pMgr , bHTML ) ;
if ( p )
pLinkDlg - > SetActLink ( p ) ;
return new AbstractLinksDialog_Impl ( pLinkDlg ) ;
}