2010-10-14 08:30:41 +02:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2011-03-31 10:05:04 +02:00
/*
* This file is part of the LibreOffice project .
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License , v . 2.0 . If a copy of the MPL was not distributed with this
* file , You can obtain one at http : //mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice :
*
* Licensed to the Apache Software Foundation ( ASF ) under one or more
* contributor license agreements . See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership . The ASF licenses this file to you under the Apache
* License , Version 2.0 ( the " License " ) ; you may not use this file
* except in compliance with the License . You may obtain a copy of
* the License at http : //www.apache.org/licenses/LICENSE-2.0 .
*/
2004-05-10 15:22:07 +00:00
# ifndef _SW_DLGFACT_HXX
# define _SW_DLGFACT_HXX
2007-09-27 10:38:18 +00:00
# include "swabstdlg.hxx"
2004-05-10 15:22:07 +00:00
class SwInsertAbstractDlg ;
class SfxSingleTabDialog ;
class SwAsciiFilterDlg ;
class Dialog ;
class SwBreakDlg ;
class SfxTabDialog ;
class SwConvertTableDlg ;
class SwInsertDBColAutoPilot ;
class SwLabDlg ;
class SwSelGlossaryDlg ;
class SwAutoFormatDlg ;
class SwFldDlg ;
class SwRenameXNamedDlg ;
class SwModalRedlineAcceptDlg ;
class SwTOXMark ;
2009-01-06 16:42:28 +00:00
class SwSplitTblDlg ;
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) \
2012-12-13 10:12:13 +00:00
protected : \
2004-05-10 15:22:07 +00:00
DialogClass * pDlg ; \
public : \
Class ( DialogClass * p ) \
: pDlg ( p ) \
{ } \
virtual ~ Class ( ) ; \
2008-03-12 11:48:33 +00:00
virtual short Execute ( ) ;
2004-05-10 15:22:07 +00:00
# define IMPL_ABSTDLG_BASE(Class) \
Class : : ~ Class ( ) \
{ \
delete pDlg ; \
} \
2008-03-12 11:48:33 +00:00
short Class : : Execute ( ) \
2004-05-10 15:22:07 +00:00
{ \
return pDlg - > Execute ( ) ; \
}
2011-11-01 22:47:33 -06:00
class SwWordCountFloatDlg ;
class AbstractSwWordCountFloatDlg_Impl : public AbstractSwWordCountFloatDlg
2004-05-13 11:31:27 +00:00
{
2011-11-01 22:47:33 -06:00
DECL_ABSTDLG_BASE ( AbstractSwWordCountFloatDlg_Impl , SwWordCountFloatDlg )
virtual void UpdateCounts ( ) ;
2012-08-27 16:05:11 +01:00
virtual void SetCounts ( const SwDocStat & rCurrCnt , const SwDocStat & rDocStat ) ;
2011-11-01 22:47:33 -06:00
virtual Window * GetWindow ( ) ; //this method is added for return a Window type pointer
2004-05-13 11:31:27 +00:00
} ;
2004-05-10 15:22:07 +00:00
//add for SwInsertAbstractDlg begin
class AbstractSwInsertAbstractDlg_Impl : public AbstractSwInsertAbstractDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractSwInsertAbstractDlg_Impl , SwInsertAbstractDlg )
2011-01-17 15:06:54 +01:00
virtual sal_uInt8 GetLevel ( ) const ;
virtual sal_uInt8 GetPara ( ) const ;
2004-05-10 15:22:07 +00:00
} ;
//add for SwInsertAbstractDlg end
// add for SwAddrDlg, SwDropCapsDlg, SwBackgroundDlg SwNumFmtDlg SwWrapDlg SwBorderDlg, SwFldEditDlg begin
class SfxSingleTabDialog ;
2012-10-09 09:25:16 +03:00
class SwAbstractSfxDialog_Impl : public SfxAbstractDialog
2004-05-10 15:22:07 +00:00
{
2012-10-09 09:25:16 +03:00
DECL_ABSTDLG_BASE ( SwAbstractSfxDialog_Impl , SfxModalDialog )
2004-05-10 15:22:07 +00:00
virtual const SfxItemSet * GetOutputItemSet ( ) const ;
2009-05-06 10:59:57 +00:00
virtual void SetText ( const XubString & rStr ) ;
virtual String GetText ( ) const ;
2004-05-10 15:22:07 +00:00
} ;
// add for SwAddrDlg,SwDropCapsDlg , SwBackgroundDlg SwNumFmtDlg SwWrapDlg SwBorderDlg, SwFldEditDlg end
// add for SwAsciiFilterDlg begin
class AbstractSwAsciiFilterDlg_Impl : public AbstractSwAsciiFilterDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractSwAsciiFilterDlg_Impl , SwAsciiFilterDlg )
2004-05-10 15:22:07 +00:00
virtual void FillOptions ( SwAsciiOptions & rOptions ) ;
} ;
// add for SwAsciiFilterDlg end
// add for SwInsertBookmarkDlg SwChangeDBDlg, SwTableHeightDlg, SwSplitTblDlg SwSortDlg SwTableWidthDlgbegin
class VclAbstractDialog_Impl : public VclAbstractDialog
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( VclAbstractDialog_Impl , Dialog )
2004-05-10 15:22:07 +00:00
} ;
// add for SwInsertBookmarkDlg SwChangeDBDlg, SwTableHeightDlg SwSplitTblDlg SwSortDlg SwTableWidthDlg end
// add for SwBreakDlg begin
class AbstractSwBreakDlg_Impl : public AbstractSwBreakDlg // add for SwBreakDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractSwBreakDlg_Impl , SwBreakDlg )
2004-05-10 15:22:07 +00:00
virtual String GetTemplateName ( ) ;
2011-01-17 15:06:54 +01:00
virtual sal_uInt16 GetKind ( ) ;
virtual sal_uInt16 GetPageNumber ( ) ;
2004-05-10 15:22:07 +00:00
} ;
2009-01-06 16:42:28 +00:00
class AbstractSplitTableDialog_Impl : public AbstractSplitTableDialog // add for
{
DECL_ABSTDLG_BASE ( AbstractSplitTableDialog_Impl , SwSplitTblDlg )
virtual sal_uInt16 GetSplitMode ( ) ;
} ;
2004-05-10 15:22:07 +00:00
// add for SwBreakDlg end
//add for SwCharDlg , SwEnvDlg , SwFootNoteOptionDlg SwParaDlg SwTableTabDlg begin
2012-12-13 10:12:13 +00:00
class AbstractTabDialog_Impl : virtual public SfxAbstractTabDialog
2004-05-10 15:22:07 +00:00
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractTabDialog_Impl , SfxTabDialog )
2011-01-17 15:06:54 +01:00
virtual void SetCurPageId ( sal_uInt16 nId ) ;
2013-01-18 13:33:18 +00:00
virtual void SetCurPageId ( const OString & rName ) ;
2004-05-10 15:22:07 +00:00
virtual const SfxItemSet * GetOutputItemSet ( ) const ;
2011-01-17 15:06:54 +01:00
virtual const sal_uInt16 * GetInputRanges ( const SfxItemPool & pItem ) ;
2007-09-27 10:38:18 +00:00
virtual void SetInputSet ( const SfxItemSet * pInSet ) ;
2004-05-10 15:22:07 +00:00
//From class Window.
2007-09-27 10:38:18 +00:00
virtual void SetText ( const XubString & rStr ) ;
virtual String GetText ( ) const ;
2004-05-10 15:22:07 +00:00
} ;
//add for SwCharDlg, SwEnvDlg ,SwFootNoteOptionDlg SwParaDlg SwTableTabDlg end
2012-12-13 10:12:13 +00:00
class AbstractApplyTabDialog_Impl : public AbstractTabDialog_Impl , virtual public SfxAbstractApplyTabDialog
{
public :
AbstractApplyTabDialog_Impl ( SfxTabDialog * p )
: AbstractTabDialog_Impl ( p )
{
}
DECL_LINK ( ApplyHdl , void * ) ;
private :
Link m_aHandler ;
virtual void SetApplyHdl ( const Link & rLink ) ;
} ;
2004-05-10 15:22:07 +00:00
//add for SwConvertTableDlg begin
class AbstractSwConvertTableDlg_Impl : public AbstractSwConvertTableDlg // add for SwConvertTableDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractSwConvertTableDlg_Impl , SwConvertTableDlg )
2004-05-12 14:10:18 +00:00
virtual void GetValues ( sal_Unicode & rDelim , SwInsertTableOptions & rInsTblFlags ,
2012-05-15 00:25:35 +02:00
SwTableAutoFmt const * & prTAFmt ) ;
2004-05-10 15:22:07 +00:00
} ;
//add for SwConvertTableDlg end
//add for SwInsertDBColAutoPilot begin
class AbstractSwInsertDBColAutoPilot_Impl : public AbstractSwInsertDBColAutoPilot // add for SwInsertDBColAutoPilot
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractSwInsertDBColAutoPilot_Impl , SwInsertDBColAutoPilot )
2004-05-10 15:22:07 +00:00
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
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractDropDownFieldDialog_Impl , sw : : DropDownFieldDialog )
2011-10-28 21:44:12 +01:00
virtual rtl : : OString GetWindowState ( sal_uLong nMask = WINDOWSTATE_MASK_ALL ) const ; //this method inherit from SystemWindow
virtual void SetWindowState ( const rtl : : OString & rStr ) ; //this method inherit from SystemWindow
2004-05-10 15:22:07 +00:00
} ;
//add for DropDownFieldDialog end
2011-02-07 21:20:16 +01:00
class AbstractSwLabDlg_Impl : public AbstractSwLabDlg
2004-05-10 15:22:07 +00:00
{
2011-02-07 21:20:16 +01:00
DECL_ABSTDLG_BASE ( AbstractSwLabDlg_Impl , SwLabDlg )
2011-01-17 15:06:54 +01:00
virtual void SetCurPageId ( sal_uInt16 nId ) ;
2013-01-18 13:33:18 +00:00
virtual void SetCurPageId ( const OString & rName ) ;
2004-05-10 15:22:07 +00:00
virtual const SfxItemSet * GetOutputItemSet ( ) const ;
2011-01-17 15:06:54 +01:00
virtual const sal_uInt16 * GetInputRanges ( const SfxItemPool & pItem ) ;
2007-09-27 10:38:18 +00:00
virtual void SetInputSet ( const SfxItemSet * pInSet ) ;
2004-05-10 15:22:07 +00:00
//From class Window.
2007-09-27 10:38:18 +00:00
virtual void SetText ( const XubString & rStr ) ;
virtual String GetText ( ) const ;
2004-05-10 15:22:07 +00:00
virtual const String & GetBusinessCardStr ( ) const ;
virtual Printer * GetPrt ( ) ;
} ;
//add for SwLabDlg end
//add for SwSelGlossaryDlg begin
2011-02-07 21:20:16 +01:00
class AbstractSwSelGlossaryDlg_Impl : public AbstractSwSelGlossaryDlg
2004-05-10 15:22:07 +00:00
{
2011-02-07 21:20:16 +01:00
DECL_ABSTDLG_BASE ( AbstractSwSelGlossaryDlg_Impl , SwSelGlossaryDlg )
2004-05-10 15:22:07 +00:00
virtual void InsertGlos ( const String & rRegion , const String & rGlosName ) ; // inline
2011-01-17 15:06:54 +01:00
virtual sal_uInt16 GetSelectedIdx ( ) const ; // inline
virtual void SelectEntryPos ( sal_uInt16 nIdx ) ; // inline
2004-05-10 15:22:07 +00:00
} ;
//add for SwSelGlossaryDlg end
//add for SwAutoFormatDlg begin
class AbstractSwAutoFormatDlg_Impl : public AbstractSwAutoFormatDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractSwAutoFormatDlg_Impl , SwAutoFormatDlg )
2004-05-10 15:22:07 +00:00
virtual void FillAutoFmtOfIndex ( SwTableAutoFmt * & rToFill ) const ;
} ;
//add for SwAutoFormatDlg end
//add for SwFldDlg begin
class AbstractSwFldDlg_Impl : public AbstractSwFldDlg //add for SwFldDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractSwFldDlg_Impl , SwFldDlg )
2011-01-17 15:06:54 +01:00
virtual void SetCurPageId ( sal_uInt16 nId ) ;
2013-01-18 13:33:18 +00:00
virtual void SetCurPageId ( const OString & rName ) ;
2004-05-10 15:22:07 +00:00
virtual const SfxItemSet * GetOutputItemSet ( ) const ;
2011-01-17 15:06:54 +01:00
virtual const sal_uInt16 * GetInputRanges ( const SfxItemPool & pItem ) ;
2007-09-27 10:38:18 +00:00
virtual void SetInputSet ( const SfxItemSet * pInSet ) ;
2004-05-10 15:22:07 +00:00
//From class Window.
2007-09-27 10:38:18 +00:00
virtual void SetText ( const XubString & rStr ) ;
virtual String GetText ( ) const ;
2011-01-17 15:06:54 +01:00
virtual void Start ( sal_Bool bShow = sal_True ) ; //this method from SfxTabDialog
virtual void ShowPage ( sal_uInt16 nId ) ; // this method from SfxTabDialog
2004-05-10 15:22:07 +00:00
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
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractSwRenameXNamedDlg_Impl , SwRenameXNamedDlg )
2004-05-10 15:22:07 +00:00
virtual void SetForbiddenChars ( const String & rSet ) ;
virtual void SetAlternativeAccess (
2012-02-20 20:45:25 +01:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : container : : XNameAccess > & xSecond ,
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : container : : XNameAccess > & xThird ) ;
2004-05-10 15:22:07 +00:00
} ;
//add for SwRenameXNamedDlg end
//add for SwModalRedlineAcceptDlg begin
class AbstractSwModalRedlineAcceptDlg_Impl : public AbstractSwModalRedlineAcceptDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractSwModalRedlineAcceptDlg_Impl , SwModalRedlineAcceptDlg )
2011-01-17 15:06:54 +01:00
virtual void AcceptAll ( sal_Bool bAccept ) ;
2004-05-10 15:22:07 +00:00
} ;
//add for SwModalRedlineAcceptDlg end
//for SwGlossaryDlg begin
class SwGlossaryDlg ;
class AbstractGlossaryDlg_Impl : public AbstractGlossaryDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractGlossaryDlg_Impl , SwGlossaryDlg )
2004-05-10 15:22:07 +00:00
virtual String GetCurrGrpName ( ) const ;
virtual String GetCurrShortName ( ) const ;
} ;
//for SwGlossaryDlg end
//for SwFldInputDlg begin
class SwFldInputDlg ;
class AbstractFldInputDlg_Impl : public AbstractFldInputDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractFldInputDlg_Impl , SwFldInputDlg )
2004-05-10 15:22:07 +00:00
//from class SalFrame
2011-10-28 21:44:12 +01:00
virtual void SetWindowState ( const rtl : : OString & rStr ) ;
virtual rtl : : OString GetWindowState ( sal_uLong nMask = WINDOWSTATE_MASK_ALL ) const ;
2004-05-10 15:22:07 +00:00
} ;
//for SwFldInputDlg end
//for SwInsFootNoteDlg begin
class SwInsFootNoteDlg ;
class AbstractInsFootNoteDlg_Impl : public AbstractInsFootNoteDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractInsFootNoteDlg_Impl , SwInsFootNoteDlg )
2004-05-10 15:22:07 +00:00
virtual String GetFontName ( ) ;
2011-01-17 15:06:54 +01:00
virtual sal_Bool IsEndNote ( ) ;
2004-05-10 15:22:07 +00:00
virtual String GetStr ( ) ;
//from class Window
2010-07-10 18:21:24 +02:00
virtual void SetHelpId ( const rtl : : OString & sHelpId ) ;
2004-05-10 15:22:07 +00:00
virtual void SetText ( const XubString & rStr ) ;
} ;
//for SwInsFootNoteDlg end
//for SwInsTableDlg begin
class SwInsTableDlg ;
class AbstractInsTableDlg_Impl : public AbstractInsTableDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractInsTableDlg_Impl , SwInsTableDlg )
2011-01-17 15:06:54 +01:00
virtual void GetValues ( String & rName , sal_uInt16 & rRow , sal_uInt16 & 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
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractJavaEditDialog_Impl , SwJavaEditDialog )
2004-05-10 15:22:07 +00:00
virtual String GetText ( ) ;
virtual String GetType ( ) ;
2011-01-17 15:06:54 +01:00
virtual sal_Bool IsUrl ( ) ;
virtual sal_Bool IsNew ( ) ;
virtual sal_Bool IsUpdate ( ) ;
2004-05-10 15:22:07 +00:00
} ;
//for SwJavaEditDialog end
//for SwMailMergeDlg begin
class SwMailMergeDlg ;
class AbstractMailMergeDlg_Impl : public AbstractMailMergeDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractMailMergeDlg_Impl , SwMailMergeDlg )
2011-01-17 15:06:54 +01:00
virtual sal_uInt16 GetMergeType ( ) ;
2007-07-05 06:39:40 +00:00
virtual const : : rtl : : OUString & GetSaveFilter ( ) const ;
2004-05-10 15:22:07 +00:00
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 ;
2011-03-15 14:20:47 +01:00
virtual bool IsSaveIndividualDocs ( ) const ;
virtual bool IsGenerateFromDataBase ( ) const ;
virtual String GetColumnName ( ) const ;
virtual String GetPath ( ) const ;
2004-05-10 15:22:07 +00:00
} ;
//for SwMailMergeDlg end
//for SwMailMergeCreateFromDlg begin
class SwMailMergeCreateFromDlg ;
class AbstractMailMergeCreateFromDlg_Impl : public AbstractMailMergeCreateFromDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractMailMergeCreateFromDlg_Impl , SwMailMergeCreateFromDlg )
2011-01-17 15:06:54 +01:00
virtual sal_Bool IsThisDocument ( ) const ;
2004-05-10 15:22:07 +00:00
} ;
//for SwMailMergeCreateFromDlg end
//for SwMailMergeFieldConnectionsDlg begin
class SwMailMergeFieldConnectionsDlg ;
class AbstractMailMergeFieldConnectionsDlg_Impl : public AbstractMailMergeFieldConnectionsDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractMailMergeFieldConnectionsDlg_Impl , SwMailMergeFieldConnectionsDlg )
2011-01-17 15:06:54 +01:00
virtual sal_Bool IsUseExistingConnections ( ) const ;
2004-05-10 15:22:07 +00:00
} ;
//for SwMailMergeFieldConnectionsDlg end
//for SwMultiTOXTabDialog begin
class SwMultiTOXTabDialog ;
class AbstractMultiTOXTabDialog_Impl : public AbstractMultiTOXTabDialog
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractMultiTOXTabDialog_Impl , SwMultiTOXTabDialog )
2004-05-10 15:22:07 +00:00
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
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractEditRegionDlg_Impl , SwEditRegionDlg )
2004-05-10 15:22:07 +00:00
virtual void SelectSection ( const String & rSectionName ) ;
} ;
//for SwEditRegionDlg end
//for SwInsertSectionTabDialog begin
class SwInsertSectionTabDialog ;
class AbstractInsertSectionTabDialog_Impl : public AbstractInsertSectionTabDialog
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractInsertSectionTabDialog_Impl , SwInsertSectionTabDialog )
2010-03-16 11:28:30 +01:00
virtual void SetSectionData ( SwSectionData const & rSect ) ;
2004-05-10 15:22:07 +00:00
} ;
//for SwInsertSectionTabDialog end
//for SwIndexMarkFloatDlg begin
class SwIndexMarkFloatDlg ;
class AbstractIndexMarkFloatDlg_Impl : public AbstractMarkFloatDlg
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractIndexMarkFloatDlg_Impl , SwIndexMarkFloatDlg )
2004-05-10 15:22:07 +00:00
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
{
2007-09-27 10:38:18 +00:00
DECL_ABSTDLG_BASE ( AbstractAuthMarkFloatDlg_Impl , SwAuthMarkFloatDlg )
2004-05-10 15:22:07 +00:00
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 ;
2011-01-17 15:06:54 +01:00
virtual sal_Bool ShowPage ( sal_uInt16 nLevel ) ;
2004-09-20 12:21:29 +00:00
virtual sal_uInt16 GetRestartPage ( ) const ;
} ;
2004-05-10 15:22:07 +00:00
//------------------------------------------------------------------------
//AbstractDialogFactory_Impl implementations
class SwAbstractDialogFactory_Impl : public SwAbstractDialogFactory
{
public :
2012-03-14 13:27:56 +01:00
virtual ~ SwAbstractDialogFactory_Impl ( ) { }
2009-05-06 10:59:57 +00:00
virtual SfxAbstractDialog * CreateSfxDialog ( Window * pParent , //add for SvxMeasureDialog & SvxConnectionDialog
const SfxItemSet & rAttr ,
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : frame : : XFrame > & _rxFrame ,
sal_uInt32 nResId
) ;
2012-08-29 22:17:19 +01:00
virtual AbstractSwWordCountFloatDlg * CreateSwWordCountDialog ( SfxBindings * pBindings ,
SfxChildWindow * pChild , Window * pParent , SfxChildWinInfo * pInfo ) ;
2012-10-24 14:10:20 +01:00
virtual AbstractSwInsertAbstractDlg * CreateSwInsertAbstractDlg ( Window * pParent ) ;
2004-05-10 15:22:07 +00:00
virtual AbstractSwAsciiFilterDlg * CreateSwAsciiFilterDlg ( Window * pParent , SwDocShell & rDocSh ,
2007-09-27 10:38:18 +00:00
SvStream * pStream , int nResId ) ; //add for SwAsciiFilterDlg
virtual VclAbstractDialog * CreateSwInsertBookmarkDlg ( Window * pParent , SwWrtShell & rSh , SfxRequest & rReq , int nResId ) ; //add for SwInsertBookmarkDlg
2012-10-02 13:17:28 +01:00
virtual AbstractSwBreakDlg * CreateSwBreakDlg ( Window * pParent , SwWrtShell & rSh ) ; // add for SwBreakDlg
2013-01-09 16:06:30 +00:00
virtual VclAbstractDialog * CreateSwChangeDBDlg ( SwView & rVw ) ; //add for SwChangeDBDlg
2007-04-26 08:06:34 +00:00
virtual SfxAbstractTabDialog * CreateSwCharDlg ( Window * pParent , SwView & pVw , const SfxItemSet & rCoreSet , int nResId , // add for SwCharDlg
2011-01-17 15:06:54 +01:00
const String * pFmtStr = 0 , sal_Bool bIsDrwTxtDlg = sal_False ) ;
2012-09-17 15:14:55 +01:00
virtual AbstractSwConvertTableDlg * CreateSwConvertTableDlg ( SwView & rView , bool bToTable ) ; //add for SwConvertTableDlg
2007-04-26 08:06:34 +00:00
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
2011-01-17 15:06:54 +01:00
SwField * pField , int nResId , sal_Bool bNextButton = sal_False ) ;
virtual SfxAbstractTabDialog * CreateSwEnvDlg ( Window * pParent , const SfxItemSet & rSet , SwWrtShell * pWrtSh , Printer * pPrt , sal_Bool bInsert , int nResId ) ; //add for SwEnvDlg
2011-02-07 21:20:16 +01:00
virtual AbstractSwLabDlg * CreateSwLabDlg ( Window * pParent , const SfxItemSet & rSet , //add for SwLabDlg
2011-01-17 15:06:54 +01:00
SwNewDBMgr * pNewDBMgr , sal_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 ,
2011-01-17 15:06:54 +01:00
sal_uInt8 nDialogMode ,
2007-04-26 08:06:34 +00:00
int nResId ,
2004-05-10 15:22:07 +00:00
const String * pCollName = 0 ,
2011-01-17 15:06:54 +01:00
sal_Bool bDraw = sal_False ,
sal_uInt16 nDefPage = 0 ) ;
2004-05-10 15:22:07 +00:00
2011-02-07 21:20:16 +01:00
virtual AbstractSwSelGlossaryDlg * CreateSwSelGlossaryDlg ( Window * pParent , const String & rShortName , int nResId ) ; //add for SwSelGlossaryDlg
2009-01-06 16:42:28 +00:00
virtual VclAbstractDialog * CreateVclAbstractDialog ( Window * pParent , SwWrtShell & rSh , int nResId ) ; //add for SwTableHeightDlg SwSortDlg
virtual AbstractSplitTableDialog * CreateSplitTblDialog ( Window * pParent , SwWrtShell & rSh ) ; //add for SwSplitTblDlg
2004-05-10 15:22:07 +00:00
virtual AbstractSwAutoFormatDlg * CreateSwAutoFormatDlg ( Window * pParent , SwWrtShell * pShell , //add for SwAutoFormatDlg
2011-01-17 15:06:54 +01:00
sal_Bool bSetAutoFmt = sal_True ,
2004-05-10 15:22:07 +00:00
const SwTableAutoFmt * pSelFmt = 0 ) ;
2011-01-17 15:06:54 +01:00
virtual SfxAbstractDialog * CreateSwBorderDlg ( Window * pParent , SfxItemSet & rSet , sal_uInt16 nType , int nResId ) ; //add for SwBorderDlg
2004-05-10 15:22:07 +00:00
2011-01-17 15:06:54 +01:00
virtual SfxAbstractDialog * CreateSwWrapDlg ( Window * pParent , SfxItemSet & rSet , SwWrtShell * pSh , sal_Bool bDrawMode , int nResId ) ; //add for SwWrapDlg
2012-09-17 12:23:57 +01:00
virtual VclAbstractDialog * CreateSwTableWidthDlg ( Window * pParent , SwTableFUNC & rFnc ) ;
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
2009-05-06 10:59:57 +00:00
virtual SfxAbstractDialog * CreateSwFldEditDlg ( SwView & rVw , int nResId ) ; //add for SwFldEditDlg
2004-05-10 15:22:07 +00:00
virtual AbstractSwRenameXNamedDlg * CreateSwRenameXNamedDlg ( Window * pParent , //add for SwRenameXNamedDlg
2012-02-20 20:45:25 +01:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : container : : XNamed > & xNamed ,
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : container : : XNameAccess > & xNameAccess , int nResId ) ;
2007-04-26 08:06:34 +00:00
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 ,
2011-01-17 15:06:54 +01:00
Window * pParent , sal_Bool & rWithPrev ) ; //add for SwMergeTblDlg
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 ,
2011-01-17 15:06:54 +01:00
sal_Bool bNewFrm = sal_True ,
sal_uInt16 nResType = DLG_FRM_STD ,
sal_Bool bFmt = sal_False ,
sal_uInt16 nDefPage = 0 ,
2004-05-10 15:22:07 +00:00
const String * pFmtStr = 0 ) ; //add for SwFrmDlg
2012-12-13 10:12:13 +00:00
virtual SfxAbstractApplyTabDialog * CreateTemplateDialog (
2004-05-10 15:22:07 +00:00
Window * pParent ,
SfxStyleSheetBase & rBase ,
2011-01-17 15:06:54 +01:00
sal_uInt16 nRegion ,
2011-09-08 15:38:50 +02:00
sal_uInt16 nPageId = 0 ,
2004-05-10 15:22:07 +00:00
SwWrtShell * pActShell = 0 ,
2011-01-17 15:06:54 +01:00
sal_Bool bNew = sal_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 ,
2011-01-17 15:06:54 +01:00
SwField * pField , sal_Bool bNextButton = sal_False ) ; //add for SwFldInputDlg
2012-12-03 15:36:09 +00:00
virtual AbstractInsFootNoteDlg * CreateInsFootNoteDlg (
Window * pParent , SwWrtShell & rSh , sal_Bool bEd = sal_False ) ; //add for SwInsFootNoteDlg
2012-12-11 17:14:12 +00:00
virtual VclAbstractDialog * CreateTitlePageDlg ( Window * pParent ) ;
virtual VclAbstractDialog * CreateVclSwViewDialog ( SwView & rView ) ; //add for SwInsRowColDlg, SwLineNumberingDlg
2012-09-04 16:49:42 +01:00
virtual AbstractInsTableDlg * CreateInsTableDlg ( SwView & rView ) ; //add for SwInsTableDlg
2012-12-03 15:36:09 +00:00
virtual AbstractJavaEditDialog * CreateJavaEditDialog ( 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 ,
2011-01-17 15:06:54 +01:00
SwTOXBase * pCurTOX , sal_uInt16 nToxType = USHRT_MAX ,
sal_Bool bGlobal = sal_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
2012-10-24 14:10:20 +01:00
virtual AbstractMarkFloatDlg * CreateIndexMarkFloatDlg (
2004-05-10 15:22:07 +00:00
SfxBindings * pBindings ,
SfxChildWindow * pChild ,
Window * pParent ,
SfxChildWinInfo * pInfo ,
sal_Bool bNew = sal_True ) ; //add for SwIndexMarkFloatDlg
2012-10-19 18:20:58 +01:00
virtual AbstractMarkFloatDlg * CreateAuthMarkFloatDlg (
2004-05-10 15:22:07 +00:00
SfxBindings * pBindings ,
SfxChildWindow * pChild ,
Window * pParent ,
SfxChildWinInfo * pInfo ,
sal_Bool bNew = sal_True ) ; //add for SwAuthMarkFloatDlg
2012-10-24 14:10:20 +01:00
virtual VclAbstractDialog * CreateIndexMarkModalDlg (
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
2011-01-17 15:06:54 +01:00
virtual GlossaryGetCurrGroup GetGlossaryCurrGroupFunc ( sal_uInt16 nId ) ;
virtual GlossarySetActGroup SetGlossaryActGroupFunc ( sal_uInt16 nId ) ;
2004-05-10 15:22:07 +00:00
// For TabPage
2011-01-17 15:06:54 +01:00
virtual CreateTabPage GetTabPageCreatorFunc ( sal_uInt16 nId ) ;
2004-05-10 15:22:07 +00:00
2011-01-17 15:06:54 +01:00
virtual GetTabPageRanges GetTabPageRangesFunc ( sal_uInt16 nId ) ;
2004-05-10 15:22:07 +00:00
} ;
# endif
2011-04-22 15:10:19 +02:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */