2004-05-10 15:22:07 +00:00
/*************************************************************************
*
2005-09-09 06:15:41 +00:00
* OpenOffice . org - a multi - platform office productivity suite
2004-05-10 15:22:07 +00:00
*
2005-09-09 06:15:41 +00:00
* $ RCSfile : swdlgfact . hxx , v $
2004-05-10 15:22:07 +00:00
*
2007-04-26 08:06:34 +00:00
* $ Revision : 1.9 $
2004-05-10 15:22:07 +00:00
*
2007-04-26 08:06:34 +00:00
* last change : $ Author : rt $ $ Date : 2007 - 04 - 26 09 : 06 : 34 $
2004-05-10 15:22:07 +00:00
*
2005-09-09 06:15:41 +00:00
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1 .
2004-05-10 15:22:07 +00:00
*
*
2005-09-09 06:15:41 +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-05-10 15:22:07 +00:00
*
2005-09-09 06:15:41 +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-05-10 15:22:07 +00:00
*
2005-09-09 06:15:41 +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-05-10 15:22:07 +00:00
*
2005-09-09 06:15:41 +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-05-10 15:22:07 +00:00
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
# ifndef _SW_DLGFACT_HXX
# define _SW_DLGFACT_HXX
// include ---------------------------------------------------------------
# include "swabstdlg.hxx" //CHINA001
class SwSaveLabelDlg ;
class SwInsertAbstractDlg ;
class SfxSingleTabDialog ;
class SwAsciiFilterDlg ;
class Dialog ;
class SwBreakDlg ;
class SfxTabDialog ;
class SwConvertTableDlg ;
class SwInsertDBColAutoPilot ;
class SwLabDlg ;
class SwSelGlossaryDlg ;
class SwSplitTableDlg ;
class SwAutoFormatDlg ;
class SwFldDlg ;
class SwRenameXNamedDlg ;
class SwModalRedlineAcceptDlg ;
class SwTOXMark ;
2004-05-13 11:31:27 +00:00
class SwWordCountDialog ;
2004-05-10 15:22:07 +00:00
2004-05-12 14:10:18 +00:00
# include "itabenum.hxx"
2004-05-10 15:22:07 +00:00
namespace sw
{
class DropDownFieldDialog ;
}
# define DECL_ABSTDLG_BASE(Class,DialogClass) \
DialogClass * pDlg ; \
public : \
Class ( DialogClass * p ) \
: pDlg ( p ) \
{ } \
virtual ~ Class ( ) ; \
virtual USHORT Execute ( ) ;
// virtual void Show( BOOL bVisible = TRUE, USHORT nFlags = 0 )
# define IMPL_ABSTDLG_BASE(Class) \
Class : : ~ Class ( ) \
{ \
delete pDlg ; \
} \
USHORT Class : : Execute ( ) \
{ \
return pDlg - > Execute ( ) ; \
}
//CHINA001 class AbstractSwSaveLabelDlg_Impl : public AbstractSwSaveLabelDlg //CHINA001 add for SwSaveLabelDlg
//CHINA001 {
//CHINA001 DECL_ABSTDLG_BASE(AbstractSwSaveLabelDlg_Impl,SwSaveLabelDlg);
//CHINA001 virtual void SetLabel(const rtl::OUString& rMake, const rtl::OUString& rType);
//CHINA001 virtual sal_Bool GetLabel(SwLabItem& rItem);
//CHINA001 }
2004-05-13 11:31:27 +00:00
class AbstractSwWordCountDialog_Impl : public AbstractSwWordCountDialog
{
DECL_ABSTDLG_BASE ( AbstractSwWordCountDialog_Impl , SwWordCountDialog ) ;
void SetValues ( const SwDocStat & rCurrent , const SwDocStat & rDoc ) ;
} ;
2004-05-10 15:22:07 +00:00
//add for SwInsertAbstractDlg begin
class AbstractSwInsertAbstractDlg_Impl : public AbstractSwInsertAbstractDlg
{
DECL_ABSTDLG_BASE ( AbstractSwInsertAbstractDlg_Impl , SwInsertAbstractDlg ) ;
virtual BYTE GetLevel ( ) const ;
virtual BYTE GetPara ( ) const ;
} ;
//add for SwInsertAbstractDlg end
// add for SwAddrDlg, SwDropCapsDlg, SwBackgroundDlg SwNumFmtDlg SwWrapDlg SwBorderDlg, SwFldEditDlg begin
class SfxSingleTabDialog ;
class AbstractSfxSingleTabDialog_Impl : public AbstractSfxSingleTabDialog
{
DECL_ABSTDLG_BASE ( AbstractSfxSingleTabDialog_Impl , SfxSingleTabDialog ) ;
virtual const SfxItemSet * GetOutputItemSet ( ) const ;
} ;
// add for SwAddrDlg,SwDropCapsDlg , SwBackgroundDlg SwNumFmtDlg SwWrapDlg SwBorderDlg, SwFldEditDlg end
// add for SwAsciiFilterDlg begin
class AbstractSwAsciiFilterDlg_Impl : public AbstractSwAsciiFilterDlg
{
DECL_ABSTDLG_BASE ( AbstractSwAsciiFilterDlg_Impl , SwAsciiFilterDlg ) ;
virtual void FillOptions ( SwAsciiOptions & rOptions ) ;
} ;
// add for SwAsciiFilterDlg end
// add for SwInsertBookmarkDlg SwChangeDBDlg, SwTableHeightDlg, SwSplitTblDlg SwSortDlg SwTableWidthDlgbegin
class VclAbstractDialog_Impl : public VclAbstractDialog
{
DECL_ABSTDLG_BASE ( VclAbstractDialog_Impl , Dialog ) ;
} ;
// add for SwInsertBookmarkDlg SwChangeDBDlg, SwTableHeightDlg SwSplitTblDlg SwSortDlg SwTableWidthDlg end
// add for SwBreakDlg begin
class AbstractSwBreakDlg_Impl : public AbstractSwBreakDlg // add for SwBreakDlg
{
DECL_ABSTDLG_BASE ( AbstractSwBreakDlg_Impl , SwBreakDlg ) ;
virtual String GetTemplateName ( ) ;
virtual USHORT GetKind ( ) ;
virtual USHORT GetPageNumber ( ) ;
} ;
// add for SwBreakDlg end
//add for SwCharDlg , SwEnvDlg , SwFootNoteOptionDlg SwParaDlg SwTableTabDlg begin
class AbstractTabDialog_Impl : public SfxAbstractTabDialog
{
DECL_ABSTDLG_BASE ( AbstractTabDialog_Impl , SfxTabDialog ) ;
virtual void SetCurPageId ( USHORT nId ) ;
virtual const SfxItemSet * GetOutputItemSet ( ) const ;
virtual const USHORT * GetInputRanges ( const SfxItemPool & pItem ) ; //add by CHINA001
virtual void SetInputSet ( const SfxItemSet * pInSet ) ; //add by CHINA001
//From class Window.
virtual void SetText ( const XubString & rStr ) ; //add by CHINA001
virtual String GetText ( ) const ; //add by CHINA001
} ;
//add for SwCharDlg, SwEnvDlg ,SwFootNoteOptionDlg SwParaDlg SwTableTabDlg end
//add for SwConvertTableDlg begin
class AbstractSwConvertTableDlg_Impl : public AbstractSwConvertTableDlg // add for SwConvertTableDlg
{
DECL_ABSTDLG_BASE ( AbstractSwConvertTableDlg_Impl , SwConvertTableDlg ) ;
2004-05-12 14:10:18 +00:00
virtual void GetValues ( sal_Unicode & rDelim , SwInsertTableOptions & rInsTblFlags ,
2004-05-10 15:22:07 +00:00
SwTableAutoFmt * & prTAFmt ) ;
} ;
//add for SwConvertTableDlg end
//add for SwInsertDBColAutoPilot begin
class AbstractSwInsertDBColAutoPilot_Impl : public AbstractSwInsertDBColAutoPilot // add for SwInsertDBColAutoPilot
{
DECL_ABSTDLG_BASE ( AbstractSwInsertDBColAutoPilot_Impl , SwInsertDBColAutoPilot ) ;
virtual void DataToDoc ( const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : uno : : Any > & rSelection ,
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : sdbc : : XDataSource > rxSource ,
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : sdbc : : XConnection > xConnection ,
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : sdbc : : XResultSet > xResultSet ) ;
} ;
//add for SwInsertDBColAutoPilot end
//add for DropDownFieldDialog begin
class AbstractDropDownFieldDialog_Impl : public AbstractDropDownFieldDialog //add for DropDownFieldDialog
{
DECL_ABSTDLG_BASE ( AbstractDropDownFieldDialog_Impl , sw : : DropDownFieldDialog ) ;
virtual ByteString GetWindowState ( ULONG nMask = WINDOWSTATE_MASK_ALL ) const ; //this method inherit from SystemWindow
virtual void SetWindowState ( const ByteString & rStr ) ; //this method inherit from SystemWindow
} ;
//add for DropDownFieldDialog end
class AbstarctSwLabDlg_Impl : public AbstarctSwLabDlg
{
DECL_ABSTDLG_BASE ( AbstarctSwLabDlg_Impl , SwLabDlg ) ;
virtual void SetCurPageId ( USHORT nId ) ;
virtual const SfxItemSet * GetOutputItemSet ( ) const ;
virtual const USHORT * GetInputRanges ( const SfxItemPool & pItem ) ; //add by CHINA001
virtual void SetInputSet ( const SfxItemSet * pInSet ) ; //add by CHINA001
//From class Window.
virtual void SetText ( const XubString & rStr ) ; //add by CHINA001
virtual String GetText ( ) const ; //add by CHINA001
virtual const String & GetBusinessCardStr ( ) const ;
virtual Printer * GetPrt ( ) ;
} ;
//add for SwLabDlg end
//add for SwSelGlossaryDlg begin
class AbstarctSwSelGlossaryDlg_Impl : public AbstarctSwSelGlossaryDlg
{
DECL_ABSTDLG_BASE ( AbstarctSwSelGlossaryDlg_Impl , SwSelGlossaryDlg ) ;
virtual void InsertGlos ( const String & rRegion , const String & rGlosName ) ; // inline
virtual USHORT GetSelectedIdx ( ) const ; // inline
virtual void SelectEntryPos ( USHORT nIdx ) ; // inline
} ;
//add for SwSelGlossaryDlg end
//add for SwSplitTableDlg begin
class AbstractSwSplitTableDlg_Impl : public AbstractSwSplitTableDlg
{
DECL_ABSTDLG_BASE ( AbstractSwSplitTableDlg_Impl , SwSplitTableDlg ) ;
virtual BOOL IsHorizontal ( ) const ;
virtual BOOL IsProportional ( ) const ;
virtual long GetCount ( ) const ;
} ;
//add for SwSplitTableDlg end
//add for SwAutoFormatDlg begin
class AbstractSwAutoFormatDlg_Impl : public AbstractSwAutoFormatDlg
{
DECL_ABSTDLG_BASE ( AbstractSwAutoFormatDlg_Impl , SwAutoFormatDlg ) ;
virtual void FillAutoFmtOfIndex ( SwTableAutoFmt * & rToFill ) const ;
} ;
//add for SwAutoFormatDlg end
//add for SwFldDlg begin
class AbstractSwFldDlg_Impl : public AbstractSwFldDlg //add for SwFldDlg
{
DECL_ABSTDLG_BASE ( AbstractSwFldDlg_Impl , SwFldDlg ) ;
virtual void SetCurPageId ( USHORT nId ) ;
virtual const SfxItemSet * GetOutputItemSet ( ) const ;
virtual const USHORT * GetInputRanges ( const SfxItemPool & pItem ) ; //add by CHINA001
virtual void SetInputSet ( const SfxItemSet * pInSet ) ; //add by CHINA001
//From class Window.
virtual void SetText ( const XubString & rStr ) ; //add by CHINA001
virtual String GetText ( ) const ; //add by CHINA001
virtual void Start ( BOOL bShow = TRUE ) ; //this method from SfxTabDialog
virtual void ShowPage ( USHORT nId ) ; // this method from SfxTabDialog
virtual void Initialize ( SfxChildWinInfo * pInfo ) ;
virtual void ReInitDlg ( ) ;
virtual void ActivateDatabasePage ( ) ;
virtual Window * GetWindow ( ) ; //this method is added for return a Window type pointer
} ;
//add for SwFldD end
//add for SwRenameXNamedDlg begin
class AbstractSwRenameXNamedDlg_Impl : public AbstractSwRenameXNamedDlg
{
DECL_ABSTDLG_BASE ( AbstractSwRenameXNamedDlg_Impl , SwRenameXNamedDlg ) ;
virtual void SetForbiddenChars ( const String & rSet ) ;
virtual void SetAlternativeAccess (
STAR_REFERENCE ( container : : XNameAccess ) & xSecond ,
STAR_REFERENCE ( container : : XNameAccess ) & xThird ) ;
} ;
//add for SwRenameXNamedDlg end
//add for SwModalRedlineAcceptDlg begin
class AbstractSwModalRedlineAcceptDlg_Impl : public AbstractSwModalRedlineAcceptDlg
{
DECL_ABSTDLG_BASE ( AbstractSwModalRedlineAcceptDlg_Impl , SwModalRedlineAcceptDlg ) ;
virtual void AcceptAll ( BOOL bAccept ) ;
} ;
//add for SwModalRedlineAcceptDlg end
//for SwGlossaryDlg begin
class SwGlossaryDlg ;
class AbstractGlossaryDlg_Impl : public AbstractGlossaryDlg
{
DECL_ABSTDLG_BASE ( AbstractGlossaryDlg_Impl , SwGlossaryDlg ) ;
virtual String GetCurrGrpName ( ) const ;
virtual String GetCurrShortName ( ) const ;
} ;
//for SwGlossaryDlg end
//for SwFldInputDlg begin
class SwFldInputDlg ;
class AbstractFldInputDlg_Impl : public AbstractFldInputDlg
{
DECL_ABSTDLG_BASE ( AbstractFldInputDlg_Impl , SwFldInputDlg ) ;
//from class SalFrame
virtual void SetWindowState ( const ByteString & rStr ) ;
virtual ByteString GetWindowState ( ULONG nMask = WINDOWSTATE_MASK_ALL ) const ;
} ;
//for SwFldInputDlg end
//for SwInsFootNoteDlg begin
class SwInsFootNoteDlg ;
class AbstractInsFootNoteDlg_Impl : public AbstractInsFootNoteDlg
{
DECL_ABSTDLG_BASE ( AbstractInsFootNoteDlg_Impl , SwInsFootNoteDlg ) ;
virtual String GetFontName ( ) ;
virtual BOOL IsEndNote ( ) ;
virtual String GetStr ( ) ;
//from class Window
virtual void SetHelpId ( ULONG nHelpId ) ;
virtual void SetText ( const XubString & rStr ) ;
} ;
//for SwInsFootNoteDlg end
//for SwInsertGrfRulerDlg begin
class SwInsertGrfRulerDlg ;
class AbstractInsertGrfRulerDlg_Impl : public AbstractInsertGrfRulerDlg
{
DECL_ABSTDLG_BASE ( AbstractInsertGrfRulerDlg_Impl , SwInsertGrfRulerDlg ) ;
virtual String GetGraphicName ( ) ;
virtual BOOL IsSimpleLine ( ) ;
virtual BOOL HasImages ( ) const ;
} ;
//for SwInsertGrfRulerDlg end
//for SwInsTableDlg begin
class SwInsTableDlg ;
class AbstractInsTableDlg_Impl : public AbstractInsTableDlg
{
DECL_ABSTDLG_BASE ( AbstractInsTableDlg_Impl , SwInsTableDlg ) ;
virtual void GetValues ( String & rName , USHORT & rRow , USHORT & rCol ,
2004-05-12 14:10:18 +00:00
SwInsertTableOptions & rInsTblFlags , String & rTableAutoFmtName ,
2004-05-10 15:22:07 +00:00
SwTableAutoFmt * & prTAFmt ) ;
} ;
//for SwInsTableDlg end
//for SwJavaEditDialog begin
class SwJavaEditDialog ;
class AbstractJavaEditDialog_Impl : public AbstractJavaEditDialog
{
DECL_ABSTDLG_BASE ( AbstractJavaEditDialog_Impl , SwJavaEditDialog ) ;
virtual String GetText ( ) ;
virtual String GetType ( ) ;
virtual BOOL IsUrl ( ) ;
virtual BOOL IsNew ( ) ;
virtual BOOL IsUpdate ( ) ;
} ;
//for SwJavaEditDialog end
//for SwMailMergeDlg begin
class SwMailMergeDlg ;
class AbstractMailMergeDlg_Impl : public AbstractMailMergeDlg
{
DECL_ABSTDLG_BASE ( AbstractMailMergeDlg_Impl , SwMailMergeDlg ) ;
virtual USHORT GetMergeType ( ) ;
virtual const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : uno : : Any > GetSelection ( ) const ;
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : sdbc : : XResultSet > GetResultSet ( ) const ;
} ;
//for SwMailMergeDlg end
//for SwMailMergeCreateFromDlg begin
class SwMailMergeCreateFromDlg ;
class AbstractMailMergeCreateFromDlg_Impl : public AbstractMailMergeCreateFromDlg
{
DECL_ABSTDLG_BASE ( AbstractMailMergeCreateFromDlg_Impl , SwMailMergeCreateFromDlg ) ;
virtual BOOL IsThisDocument ( ) const ;
} ;
//for SwMailMergeCreateFromDlg end
//for SwMailMergeFieldConnectionsDlg begin
class SwMailMergeFieldConnectionsDlg ;
class AbstractMailMergeFieldConnectionsDlg_Impl : public AbstractMailMergeFieldConnectionsDlg
{
DECL_ABSTDLG_BASE ( AbstractMailMergeFieldConnectionsDlg_Impl , SwMailMergeFieldConnectionsDlg ) ;
virtual BOOL IsUseExistingConnections ( ) const ;
} ;
//for SwMailMergeFieldConnectionsDlg end
//for SwMultiTOXTabDialog begin
class SwMultiTOXTabDialog ;
class AbstractMultiTOXTabDialog_Impl : public AbstractMultiTOXTabDialog
{
DECL_ABSTDLG_BASE ( AbstractMultiTOXTabDialog_Impl , SwMultiTOXTabDialog ) ;
virtual SwForm * GetForm ( CurTOXType eType ) ;
virtual CurTOXType GetCurrentTOXType ( ) const ;
virtual SwTOXDescription & GetTOXDescription ( CurTOXType eTOXTypes ) ;
//from SfxTabDialog
virtual const SfxItemSet * GetOutputItemSet ( ) const ;
} ;
//for SwMultiTOXTabDialog end
//for SwEditRegionDlg begin
class SwEditRegionDlg ;
class AbstractEditRegionDlg_Impl : public AbstractEditRegionDlg
{
DECL_ABSTDLG_BASE ( AbstractEditRegionDlg_Impl , SwEditRegionDlg ) ;
virtual void SelectSection ( const String & rSectionName ) ;
} ;
//for SwEditRegionDlg end
//for SwInsertSectionTabDialog begin
class SwInsertSectionTabDialog ;
class AbstractInsertSectionTabDialog_Impl : public AbstractInsertSectionTabDialog
{
DECL_ABSTDLG_BASE ( AbstractInsertSectionTabDialog_Impl , SwInsertSectionTabDialog ) ;
virtual void SetSection ( const SwSection & rSect ) ;
} ;
//for SwInsertSectionTabDialog end
//for SwIndexMarkFloatDlg begin
class SwIndexMarkFloatDlg ;
class AbstractIndexMarkFloatDlg_Impl : public AbstractMarkFloatDlg
{
DECL_ABSTDLG_BASE ( AbstractIndexMarkFloatDlg_Impl , SwIndexMarkFloatDlg ) ;
virtual void ReInitDlg ( SwWrtShell & rWrtShell ) ;
virtual Window * GetWindow ( ) ; //this method is added for return a Window type pointer
} ;
//for SwIndexMarkFloatDlg end
//for SwAuthMarkFloatDlg begin
class SwAuthMarkFloatDlg ;
class AbstractAuthMarkFloatDlg_Impl : public AbstractMarkFloatDlg
{
DECL_ABSTDLG_BASE ( AbstractAuthMarkFloatDlg_Impl , SwAuthMarkFloatDlg ) ;
virtual void ReInitDlg ( SwWrtShell & rWrtShell ) ;
virtual Window * GetWindow ( ) ; //this method is added for return a Window type pointer
} ;
//for SwAuthMarkFloatDlg end
2004-09-20 12:21:29 +00:00
class SwMailMergeWizard ;
class AbstractMailMergeWizard_Impl : public AbstractMailMergeWizard
{
2006-11-22 09:25:35 +00:00
SwMailMergeWizard * pDlg ;
Link aEndDlgHdl ;
DECL_LINK ( EndDialogHdl , SwMailMergeWizard * ) ;
public :
AbstractMailMergeWizard_Impl ( SwMailMergeWizard * p )
: pDlg ( p )
{ }
virtual ~ AbstractMailMergeWizard_Impl ( ) ;
virtual void StartExecuteModal ( const Link & rEndDialogHdl ) ;
virtual long GetResult ( ) ;
2004-09-20 12:21:29 +00:00
virtual void SetReloadDocument ( const String & rURL ) ;
virtual const String & GetReloadDocument ( ) const ;
virtual BOOL ShowPage ( USHORT nLevel ) ;
virtual sal_uInt16 GetRestartPage ( ) const ;
} ;
2004-05-10 15:22:07 +00:00
//------------------------------------------------------------------------
//AbstractDialogFactory_Impl implementations
class SwAbstractDialogFactory_Impl : public SwAbstractDialogFactory
{
public :
2007-04-26 08:06:34 +00:00
//CHINA001 AbstractSwSaveLabelDlg* CreateSwSaveLabelDlg(SwLabFmtPage* pParent, SwLabRec& rRec, int nResId );
2004-05-10 15:22:07 +00:00
2004-05-13 11:31:27 +00:00
virtual AbstractSwWordCountDialog * CreateSwWordCountDialog ( Window * pParent ) ;
2007-04-26 08:06:34 +00:00
virtual AbstractSwInsertAbstractDlg * CreateSwInsertAbstractDlg ( Window * pParent , int nResId ) ; //CHINA001 add for SwInsertAbstractDlg
virtual AbstractSfxSingleTabDialog * CreateSfxSingleTabDialog ( Window * pParent , SfxItemSet & rSet , int nResId ) ; //CHINA001 add for SwAddrDlg SwDropCapsDlg, SwBackgroundDlg,SwNumFmtDlg,
2004-05-10 15:22:07 +00:00
virtual AbstractSwAsciiFilterDlg * CreateSwAsciiFilterDlg ( Window * pParent , SwDocShell & rDocSh ,
2007-04-26 08:06:34 +00:00
SvStream * pStream , int nResId ) ; //CHINA001 add for SwAsciiFilterDlg
virtual VclAbstractDialog * CreateSwInsertBookmarkDlg ( Window * pParent , SwWrtShell & rSh , SfxRequest & rReq , int nResId ) ; //CHINA001 add for SwInsertBookmarkDlg
virtual AbstractSwBreakDlg * CreateSwBreakDlg ( Window * pParent , SwWrtShell & rSh , int nResId ) ; // add for SwBreakDlg
virtual VclAbstractDialog * CreateSwChangeDBDlg ( SwView & rVw , int nResId ) ; //add for SwChangeDBDlg
virtual SfxAbstractTabDialog * CreateSwCharDlg ( Window * pParent , SwView & pVw , const SfxItemSet & rCoreSet , int nResId , // add for SwCharDlg
2004-05-10 15:22:07 +00:00
const String * pFmtStr = 0 , BOOL bIsDrwTxtDlg = FALSE ) ;
2007-04-26 08:06:34 +00:00
virtual AbstractSwConvertTableDlg * CreateSwConvertTableDlg ( SwView & rView , int nResId , bool bToTable ) ; //add for SwConvertTableDlg
virtual VclAbstractDialog * CreateSwCaptionDialog ( Window * pParent , SwView & rV , int nResId ) ; //add for SwCaptionDialog
2004-05-10 15:22:07 +00:00
virtual AbstractSwInsertDBColAutoPilot * CreateSwInsertDBColAutoPilot ( SwView & rView , // add for SwInsertDBColAutoPilot
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : sdbc : : XDataSource > rxSource ,
com : : sun : : star : : uno : : Reference < com : : sun : : star : : sdbcx : : XColumnsSupplier > xColSupp ,
2007-04-26 08:06:34 +00:00
const SwDBData & rData , int nResId ) ;
virtual SfxAbstractTabDialog * CreateSwFootNoteOptionDlg ( Window * pParent , SwWrtShell & rSh , int nResId ) ; //add for SwFootNoteOptionDlg
2004-05-10 15:22:07 +00:00
virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog ( Window * pParent , SwWrtShell & rSh , //add for DropDownFieldDialog
2007-04-26 08:06:34 +00:00
SwField * pField , int nResId , BOOL bNextButton = FALSE ) ;
virtual SfxAbstractTabDialog * CreateSwEnvDlg ( Window * pParent , const SfxItemSet & rSet , SwWrtShell * pWrtSh , Printer * pPrt , BOOL bInsert , int nResId ) ; //add for SwEnvDlg
2004-05-10 15:22:07 +00:00
virtual AbstarctSwLabDlg * CreateSwLabDlg ( Window * pParent , const SfxItemSet & rSet , //add for SwLabDlg
2007-04-26 08:06:34 +00:00
SwNewDBMgr * pNewDBMgr , BOOL bLabel , int nResId ) ;
2004-05-10 15:22:07 +00:00
virtual SwLabDlgMethod GetSwLabDlgStaticMethod ( ) ; //add for SwLabDlg
virtual SfxAbstractTabDialog * CreateSwParaDlg ( Window * pParent , //add for SwParaDlg
SwView & rVw ,
const SfxItemSet & rCoreSet ,
BYTE nDialogMode ,
2007-04-26 08:06:34 +00:00
int nResId ,
2004-05-10 15:22:07 +00:00
const String * pCollName = 0 ,
BOOL bDraw = FALSE ,
UINT16 nDefPage = 0 ) ;
2007-04-26 08:06:34 +00:00
virtual AbstarctSwSelGlossaryDlg * CreateSwSelGlossaryDlg ( Window * pParent , const String & rShortName , int nResId ) ; //add for SwSelGlossaryDlg
virtual AbstractSwSplitTableDlg * CreateSwSplitTableDlg ( Window * pParent , SwWrtShell & rShell , int nResId ) ; //add for SwSplitTableDlg
virtual VclAbstractDialog * CreateVclAbstractDialog ( Window * pParent , SwWrtShell & rSh , int nResId ) ; //add for SwTableHeightDlg SwSortDlg ,SwSplitTblDlg
2004-05-10 15:22:07 +00:00
virtual AbstractSwAutoFormatDlg * CreateSwAutoFormatDlg ( Window * pParent , SwWrtShell * pShell , //add for SwAutoFormatDlg
2007-04-26 08:06:34 +00:00
int nResId ,
2004-05-10 15:22:07 +00:00
BOOL bSetAutoFmt = TRUE ,
const SwTableAutoFmt * pSelFmt = 0 ) ;
2007-04-26 08:06:34 +00:00
virtual AbstractSfxSingleTabDialog * CreateSwBorderDlg ( Window * pParent , SfxItemSet & rSet , USHORT nType , int nResId ) ; //add for SwBorderDlg
2004-05-10 15:22:07 +00:00
2007-04-26 08:06:34 +00:00
virtual AbstractSfxSingleTabDialog * CreateSwWrapDlg ( Window * pParent , SfxItemSet & rSet , SwWrtShell * pSh , BOOL bDrawMode , int nResId ) ; //add for SwWrapDlg
virtual VclAbstractDialog * CreateSwTableWidthDlg ( Window * pParent , SwTableFUNC & rFnc , int nResId ) ; //add for SwTableWidthDlg
2004-05-10 15:22:07 +00:00
virtual SfxAbstractTabDialog * CreateSwTableTabDlg ( Window * pParent , SfxItemPool & Pool ,
2007-04-26 08:06:34 +00:00
const SfxItemSet * pItemSet , SwWrtShell * pSh , int nResId ) ; //add for SwTableTabDlg
virtual AbstractSwFldDlg * CreateSwFldDlg ( SfxBindings * pB , SwChildWinWrapper * pCW , Window * pParent , int nResId ) ; //add for SwFldDlg
virtual AbstractSfxSingleTabDialog * CreateSwFldEditDlg ( SwView & rVw , int nResId ) ; //add for SwFldEditDlg
2004-05-10 15:22:07 +00:00
virtual AbstractSwRenameXNamedDlg * CreateSwRenameXNamedDlg ( Window * pParent , //add for SwRenameXNamedDlg
STAR_REFERENCE ( container : : XNamed ) & xNamed ,
2007-04-26 08:06:34 +00:00
STAR_REFERENCE ( container : : XNameAccess ) & xNameAccess , int nResId ) ;
virtual AbstractSwModalRedlineAcceptDlg * CreateSwModalRedlineAcceptDlg ( Window * pParent , int nResId ) ; //add for SwModalRedlineAcceptDlg
2004-05-10 15:22:07 +00:00
2007-04-26 08:06:34 +00:00
virtual VclAbstractDialog * CreateSwVclDialog ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent , BOOL & rWithPrev ) ; //add for SwMergeTblDlg
2007-04-26 08:06:34 +00:00
//CHINA001 virtual VclAbstractDialog* CreateSwWrtShDialog( int nResId,
2004-05-10 15:22:07 +00:00
//CHINA001 Window* pParent, SwWrtShell& rSh ); //add for SwColumnDlg
2007-04-26 08:06:34 +00:00
virtual SfxAbstractTabDialog * CreateFrmTabDialog ( int nResId ,
2004-05-10 15:22:07 +00:00
SfxViewFrame * pFrame , Window * pParent ,
const SfxItemSet & rCoreSet ,
BOOL bNewFrm = TRUE ,
USHORT nResType = DLG_FRM_STD ,
BOOL bFmt = FALSE ,
UINT16 nDefPage = 0 ,
const String * pFmtStr = 0 ) ; //add for SwFrmDlg
2007-04-26 08:06:34 +00:00
virtual SfxAbstractTabDialog * CreateTemplateDialog ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent ,
SfxStyleSheetBase & rBase ,
USHORT nRegion ,
BOOL bColumn = FALSE ,
SwWrtShell * pActShell = 0 ,
BOOL bNew = FALSE ) ; //add for SwTemplateDlg
2007-04-26 08:06:34 +00:00
virtual AbstractGlossaryDlg * CreateGlossaryDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
SfxViewFrame * pViewFrame ,
SwGlossaryHdl * pGlosHdl ,
SwWrtShell * pWrtShell ) ; //add for SwGlossaryDlg
2007-04-26 08:06:34 +00:00
virtual AbstractFldInputDlg * CreateFldInputDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent , SwWrtShell & rSh ,
SwField * pField , BOOL bNextButton = FALSE ) ; //add for SwFldInputDlg
2007-04-26 08:06:34 +00:00
virtual AbstractInsFootNoteDlg * CreateInsFootNoteDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent , SwWrtShell & rSh , BOOL bEd = FALSE ) ; //add for SwInsFootNoteDlg
2007-04-26 08:06:34 +00:00
virtual VclAbstractDialog * CreateVclSwViewDialog ( int nResId ,
2004-05-10 15:22:07 +00:00
SwView & rView , BOOL bCol = FALSE ) ; //add for SwInsRowColDlg, SwLineNumberingDlg
2007-04-26 08:06:34 +00:00
virtual AbstractInsertGrfRulerDlg * CreateInsertGrfRulerDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent ) ; //add for SwInsertGrfRulerDlg
2007-04-26 08:06:34 +00:00
virtual AbstractInsTableDlg * CreateInsTableDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
SwView & rView ) ; //add for SwInsTableDlg
2007-04-26 08:06:34 +00:00
virtual AbstractJavaEditDialog * CreateJavaEditDialog ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent , SwWrtShell * pWrtSh ) ; //add for SwJavaEditDialog
2007-04-26 08:06:34 +00:00
virtual AbstractMailMergeDlg * CreateMailMergeDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent , SwWrtShell & rSh ,
const String & rSourceName ,
const String & rTblName ,
sal_Int32 nCommandType ,
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : sdbc : : XConnection > & xConnection ,
: : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : uno : : Any > * pSelection = 0 ) ; //add for SwMailMergeDlg
2007-04-26 08:06:34 +00:00
virtual AbstractMailMergeCreateFromDlg * CreateMailMergeCreateFromDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent ) ; //add for SwMailMergeCreateFromDlg
2007-04-26 08:06:34 +00:00
virtual AbstractMailMergeFieldConnectionsDlg * CreateMailMergeFieldConnectionsDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent ) ; //add for SwMailMergeFieldConnectionsDlg
2007-04-26 08:06:34 +00:00
virtual VclAbstractDialog * CreateMultiTOXMarkDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent , SwTOXMgr & rTOXMgr ) ; //add for SwMultiTOXMarkDlg
2007-04-26 08:06:34 +00:00
virtual SfxAbstractTabDialog * CreateSwTabDialog ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent ,
const SfxItemSet * pSwItemSet ,
SwWrtShell & ) ; //add for SwSvxNumBulletTabDialog, SwOutlineTabDialog
2007-04-26 08:06:34 +00:00
virtual AbstractMultiTOXTabDialog * CreateMultiTOXTabDialog ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent , const SfxItemSet & rSet ,
SwWrtShell & rShell ,
SwTOXBase * pCurTOX , USHORT nToxType = USHRT_MAX ,
BOOL bGlobal = FALSE ) ; //add for SwMultiTOXTabDialog
2007-04-26 08:06:34 +00:00
virtual AbstractEditRegionDlg * CreateEditRegionDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent , SwWrtShell & rWrtSh ) ; //add for SwEditRegionDlg
2007-04-26 08:06:34 +00:00
virtual AbstractInsertSectionTabDialog * CreateInsertSectionTabDialog ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent , const SfxItemSet & rSet , SwWrtShell & rSh ) ; //add for SwInsertSectionTabDialog
2007-04-26 08:06:34 +00:00
virtual AbstractMarkFloatDlg * CreateIndexMarkFloatDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
SfxBindings * pBindings ,
SfxChildWindow * pChild ,
Window * pParent ,
SfxChildWinInfo * pInfo ,
sal_Bool bNew = sal_True ) ; //add for SwIndexMarkFloatDlg
2007-04-26 08:06:34 +00:00
virtual AbstractMarkFloatDlg * CreateAuthMarkFloatDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
SfxBindings * pBindings ,
SfxChildWindow * pChild ,
Window * pParent ,
SfxChildWinInfo * pInfo ,
sal_Bool bNew = sal_True ) ; //add for SwAuthMarkFloatDlg
2007-04-26 08:06:34 +00:00
virtual VclAbstractDialog * CreateIndexMarkModalDlg ( int nResId ,
2004-05-10 15:22:07 +00:00
Window * pParent , SwWrtShell & rSh , SwTOXMark * pCurTOXMark ) ; //add for SwIndexMarkModalDlg
2004-09-20 12:21:29 +00:00
virtual AbstractMailMergeWizard * CreateMailMergeWizard ( SwView & rView , SwMailMergeConfigItem & rConfigItem ) ;
2004-05-10 15:22:07 +00:00
//add for static func in SwGlossaryDlg
virtual GlossaryGetCurrGroup GetGlossaryCurrGroupFunc ( USHORT nId ) ;
virtual GlossarySetActGroup SetGlossaryActGroupFunc ( USHORT nId ) ;
// For TabPage
virtual CreateTabPage GetTabPageCreatorFunc ( USHORT nId ) ;
virtual GetTabPageRanges GetTabPageRangesFunc ( USHORT nId ) ;
} ;
struct SwDialogsResMgr
{
static ResMgr * GetResMgr ( ) ;
} ;
# endif