LCOV - code coverage report
Current view: top level - libreoffice/sw/inc - swabstdlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 29 0.0 %
Date: 2012-12-27 Functions: 0 85 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef _SW_ABSTDLG_HXX
      20             : #define _SW_ABSTDLG_HXX
      21             : 
      22             : 
      23             : #include <tools/solar.h>
      24             : #include <tools/string.hxx>
      25             : #include <sfx2/sfxdlg.hxx>
      26             : #include <svx/svxdlg.hxx>
      27             : #include <vcl/syswin.hxx>
      28             : #include <globals.hrc>
      29             : #include <com/sun/star/uno/Reference.h>
      30             : #include <com/sun/star/uno/Sequence.h>
      31             : #include <com/sun/star/frame/XModel.hpp>
      32             : #include <com/sun/star/frame/XController.hpp>
      33             : #include <com/sun/star/text/XTextCursor.hpp>
      34             : #include <com/sun/star/container/XNameAccess.hpp>
      35             : #include <com/sun/star/awt/XControl.hpp>
      36             : #include <com/sun/star/container/XNamed.hpp>
      37             : #include "itabenum.hxx"
      38             : 
      39             : class SfxViewFrame;
      40             : class SfxBindings;
      41             : class SfxItemSet;
      42             : class ResId;
      43             : class Window;
      44             : class String;
      45             : class SfxItemPool;
      46             : class SfxStyleSheetBase;
      47             : class SwGlossaryHdl;
      48             : class SwField;
      49             : 
      50             : class SwLabFmtPage;
      51             : class SwLabRec;
      52             : class SwAsciiOptions;
      53             : class SwDocShell;
      54             : class SvStream;
      55             : class SwWrtShell;
      56             : class SfxRequest;
      57             : class SwView;
      58             : class SwTableAutoFmt;
      59             : class SwTOXMgr;
      60             : class SwForm;
      61             : struct CurTOXType;
      62             : class SwTOXDescription;
      63             : class SwTOXBase;
      64             : class SwSectionData;
      65             : struct SwDBData;
      66             : class SwField;
      67             : class Printer;
      68             : class SwLabItem;
      69             : class SwNewDBMgr;
      70             : class SwTableFUNC;
      71             : class SwChildWinWrapper;
      72             : struct SfxChildWinInfo;
      73             : class SwTOXMark;
      74             : struct SwDocStat;
      75             : #include <cnttab.hxx> //add for struct CurTOXType
      76             : 
      77             : namespace com{namespace sun{namespace star{
      78             :     namespace frame{
      79             :         class XFrame;
      80             :     }
      81             :     namespace sdbcx{
      82             :     class XColumnsSupplier;
      83             :     }
      84             :     namespace sdbc{
      85             :     class XDataSource;
      86             :     class XConnection;
      87             :     class XResultSet;
      88             :     }
      89             : }}}
      90             : 
      91             : typedef   void (*SwLabDlgMethod) (::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>& xModel,   const SwLabItem& rItem);
      92             : 
      93             : typedef String      (*GlossaryGetCurrGroup)();
      94             : typedef void        (*GlossarySetActGroup)(const String& rNewGroup);
      95             : 
      96           0 : class AbstractGlossaryDlg : public VclAbstractDialog  //add for SwGlossaryDlg
      97             : {
      98             : public:
      99             :     virtual String          GetCurrGrpName() const = 0;
     100             :     virtual String          GetCurrShortName() const = 0;
     101             : };
     102             : 
     103           0 : class AbstractFldInputDlg : public VclAbstractDialog  //add for SwFldInputDlg
     104             : {
     105             : public:
     106             :     //from class SalFrame
     107             :     virtual void         SetWindowState( const rtl::OString & rStr ) = 0;
     108             :     virtual rtl::OString GetWindowState( sal_uLong nMask = WINDOWSTATE_MASK_ALL ) const = 0;
     109             : };
     110             : 
     111           0 : class AbstractInsFootNoteDlg : public VclAbstractDialog  //add for SwInsFootNoteDlg
     112             : {
     113             : public:
     114             :     virtual String          GetFontName() = 0;
     115             :     virtual sal_Bool            IsEndNote() = 0;
     116             :     virtual String          GetStr() = 0;
     117             :     //from class Window
     118             :     virtual void    SetHelpId( const rtl::OString& sHelpId ) = 0;
     119             :     virtual void    SetText( const XubString& rStr ) = 0;
     120             : };
     121             : 
     122             : class AbstractInsertGrfRulerDlg : public VclAbstractDialog  //add for SwInsertGrfRulerDlg
     123             : {
     124             : public:
     125             :     virtual String          GetGraphicName() = 0;
     126             :     virtual sal_Bool            IsSimpleLine() = 0;
     127             :     virtual sal_Bool            HasImages() const  = 0;
     128             : };
     129             : 
     130           0 : class AbstractInsTableDlg : public VclAbstractDialog  //add for SwInsTableDlg
     131             : {
     132             : public:
     133             :     virtual void            GetValues( String& rName, sal_uInt16& rRow, sal_uInt16& rCol,
     134             :                                 SwInsertTableOptions& rInsTblFlags, String& rTableAutoFmtName,
     135             :                                 SwTableAutoFmt *& prTAFmt ) = 0;
     136             : };
     137             : 
     138           0 : class AbstractJavaEditDialog : public VclAbstractDialog  //add for SwJavaEditDialog
     139             : {
     140             : public:
     141             :     virtual String              GetText() = 0;
     142             :     virtual String              GetType() = 0;
     143             :     virtual sal_Bool                IsUrl() = 0;
     144             :     virtual sal_Bool                IsNew() = 0;
     145             :     virtual sal_Bool                IsUpdate() = 0;
     146             : };
     147             : 
     148           0 : class AbstractMailMergeDlg : public VclAbstractDialog  //add for SwMailMergeDlg
     149             : {
     150             : public:
     151             :     virtual sal_uInt16  GetMergeType() = 0;
     152             :     virtual const ::rtl::OUString& GetSaveFilter() const = 0;
     153             :     virtual const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > GetSelection() const = 0;
     154             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> GetResultSet() const = 0;
     155             :     virtual bool IsSaveIndividualDocs() const = 0;
     156             :     virtual bool IsGenerateFromDataBase() const = 0;
     157             :     virtual String GetColumnName() const = 0;
     158             :     virtual String GetPath() const = 0;
     159             : 
     160             : };
     161           0 : class AbstractMailMergeCreateFromDlg : public VclAbstractDialog  //add for SwMailMergeCreateFromDlg
     162             : {
     163             : public:
     164             :     virtual sal_Bool    IsThisDocument() const = 0;
     165             : };
     166           0 : class AbstractMailMergeFieldConnectionsDlg : public VclAbstractDialog  //add for SwMailMergeFieldConnectionsDlg
     167             : {
     168             : public:
     169             :     virtual sal_Bool    IsUseExistingConnections() const = 0;
     170             : };
     171             : 
     172           0 : class AbstractMultiTOXTabDialog : public VclAbstractDialog  //add for SwMultiTOXTabDialog
     173             : {
     174             : public:
     175             :     virtual SwForm*             GetForm(CurTOXType eType) = 0;
     176             :     virtual CurTOXType          GetCurrentTOXType() const = 0;
     177             :     virtual SwTOXDescription&   GetTOXDescription(CurTOXType eTOXTypes) = 0;
     178             :     //from SfxTabDialog
     179             :     virtual const SfxItemSet*   GetOutputItemSet() const = 0;
     180             : };
     181             : 
     182           0 : class AbstractEditRegionDlg : public VclAbstractDialog  //add for SwEditRegionDlg
     183             : {
     184             : public:
     185             :     virtual void    SelectSection(const String& rSectionName) = 0;
     186             : };
     187           0 : class AbstractInsertSectionTabDialog : public VclAbstractDialog  //add for SwInsertSectionTabDialog
     188             : {
     189             : public:
     190             :     virtual void     SetSectionData(SwSectionData const& rSect) = 0;
     191             : };
     192             : 
     193           0 : class AbstractSwWordCountFloatDlg : public VclAbstractDialog
     194             : {
     195             : public:
     196             :     virtual void        UpdateCounts() = 0;
     197             :     virtual void        SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat) = 0;
     198             :     virtual Window *    GetWindow() = 0; //this method is added for return a Window type pointer
     199             : };
     200             : 
     201           0 : class AbstractSwInsertAbstractDlg : public VclAbstractDialog    // add for SwInsertAbstractDlg
     202             : {
     203             : public:
     204             :     virtual sal_uInt8   GetLevel() const = 0;
     205             :     virtual sal_uInt8   GetPara() const = 0;
     206             : };
     207             : 
     208           0 : class AbstractSwAsciiFilterDlg : public VclAbstractDialog // add for SwAsciiFilterDlg
     209             : {
     210             : public:
     211             :     virtual void FillOptions( SwAsciiOptions& rOptions ) = 0;
     212             : 
     213             : };
     214             : 
     215           0 : class AbstractSwBreakDlg : public VclAbstractDialog // add for SwBreakDlg
     216             : {
     217             : public:
     218             :     virtual String  GetTemplateName() = 0;
     219             :     virtual sal_uInt16  GetKind() = 0;
     220             :     virtual sal_uInt16  GetPageNumber() = 0;
     221             : 
     222             : };
     223             : 
     224           0 : class AbstractSplitTableDialog : public VclAbstractDialog // add for
     225             : {
     226             : public:
     227             :     virtual sal_uInt16 GetSplitMode() = 0;
     228             : };
     229             : 
     230           0 : class AbstractSwConvertTableDlg :  public VclAbstractDialog // add for SwConvertTableDlg
     231             : {
     232             : public:
     233             :     virtual void GetValues( sal_Unicode& rDelim,
     234             :                     SwInsertTableOptions& rInsTblFlags,
     235             :                     SwTableAutoFmt const*& prTAFmt ) = 0;
     236             : };
     237             : 
     238           0 : class AbstractSwInsertDBColAutoPilot :  public VclAbstractDialog // add for SwInsertDBColAutoPilot
     239             : {
     240             : public:
     241             : 
     242             :     virtual void DataToDoc( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rSelection,
     243             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> rxSource,
     244             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> xConnection,
     245             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > xResultSet) = 0;
     246             : };
     247             : 
     248           0 : class AbstractDropDownFieldDialog : public VclAbstractDialog //add for DropDownFieldDialog
     249             : {
     250             : public:
     251             :      virtual rtl::OString GetWindowState( sal_uLong nMask = WINDOWSTATE_MASK_ALL ) const = 0; //this method inherit from SystemWindow
     252             :      virtual void         SetWindowState( const rtl::OString & rStr ) =0;//this method inherit from SystemWindow
     253             : };
     254             : 
     255           0 : class AbstractSwLabDlg  : public SfxAbstractTabDialog //add for SwLabDlg
     256             : {
     257             : public:
     258             :      virtual const String& GetBusinessCardStr() const = 0;
     259             :      virtual Printer *GetPrt() =0;
     260             : };
     261             : 
     262           0 : class AbstractSwSelGlossaryDlg : public VclAbstractDialog //add for SwSelGlossaryDlg
     263             : {
     264             : public:
     265             :     virtual void InsertGlos(const String &rRegion, const String &rGlosName) = 0;    // inline
     266             :     virtual sal_uInt16 GetSelectedIdx() const = 0;  // inline
     267             :     virtual void SelectEntryPos(sal_uInt16 nIdx) = 0;   // inline
     268             : };
     269             : 
     270             : class AbstractSwSplitTableDlg :public VclAbstractDialog //add for SwSplitTableDlg
     271             : {
     272             : public:
     273             :     virtual sal_Bool                IsHorizontal() const = 0;
     274             :     virtual sal_Bool                IsProportional() const = 0;
     275             :     virtual long                GetCount() const = 0;
     276             : };
     277             : 
     278           0 : class AbstractSwAutoFormatDlg : public VclAbstractDialog //add for SwAutoFormatDlg
     279             : {
     280             : public:
     281             :     virtual void FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const = 0;
     282             : };
     283             : 
     284           0 : class AbstractSwFldDlg : public SfxAbstractTabDialog //add for SwFldDlg
     285             : {
     286             : public:
     287             :     virtual void                Start( sal_Bool bShow = sal_True ) = 0;  //this method from sfxtabdialog
     288             :     virtual void                Initialize(SfxChildWinInfo *pInfo) = 0;
     289             :     virtual void                ReInitDlg() = 0;
     290             :     virtual void                ActivateDatabasePage() = 0;
     291             :     virtual void                ShowPage( sal_uInt16 nId ) = 0;// this method from SfxTabDialog
     292             :     virtual Window *            GetWindow() = 0; //this method is added for return a Window type pointer
     293             : };
     294             : 
     295           0 : class AbstractSwRenameXNamedDlg : public VclAbstractDialog //add for SwRenameXNamedDlg
     296             : {
     297             : public:
     298             :     virtual void    SetForbiddenChars( const String& rSet ) = 0;
     299             :     virtual void SetAlternativeAccess(
     300             :              ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xSecond,
     301             :              ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xThird ) = 0;
     302             : };
     303             : 
     304           0 : class AbstractSwModalRedlineAcceptDlg : public VclAbstractDialog //add for SwModalRedlineAcceptDlg
     305             : {
     306             : public:
     307             :     virtual void            AcceptAll( sal_Bool bAccept ) = 0;
     308             : };
     309             : 
     310           0 : class AbstractMarkFloatDlg : public VclAbstractDialog     //add for SwIndexMarkFloatDlg & SwAuthMarkFloatDlg
     311             : {
     312             : public:
     313             :     virtual void    ReInitDlg(SwWrtShell& rWrtShell) = 0;
     314             :     virtual Window *    GetWindow() = 0; //this method is added for return a Window type pointer
     315             : };
     316             : 
     317             : #define RET_LOAD_DOC            100
     318             : #define RET_EDIT_DOC            101
     319             : #define RET_EDIT_RESULT_DOC     102
     320             : #define RET_TARGET_CREATED      103
     321             : #define RET_REMOVE_TARGET       104
     322             : #define RET_APPLY_TEMPLATE      105
     323             : 
     324             : class SwView;
     325             : class SwMailMergeConfigItem;
     326             : 
     327           0 : class AbstractMailMergeWizard : public VclAbstractDialog2
     328             : {
     329             : public:
     330             :     virtual void                SetReloadDocument(const String& rURL) = 0;
     331             :     virtual const String&       GetReloadDocument() const = 0;
     332             :     virtual sal_Bool                ShowPage( sal_uInt16 nLevel ) = 0;
     333             :     virtual sal_uInt16          GetRestartPage() const = 0;
     334             : };
     335             : 
     336             : 
     337             : // Swabstract fractory
     338           0 : class SwAbstractDialogFactory
     339             : {
     340             : public:
     341             :     static SwAbstractDialogFactory*     Create();
     342             : 
     343             :     virtual SfxAbstractDialog*              CreateSfxDialog( Window* pParent, //add for SvxMeasureDialog & SvxConnectionDialog
     344             :                                                                         const SfxItemSet& rAttr,
     345             :                                     const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame,
     346             :                                                                         sal_uInt32 nResId
     347             :                                                                         ) = 0;
     348             :     virtual AbstractSwWordCountFloatDlg* CreateSwWordCountDialog(SfxBindings* pBindings,
     349             :         SfxChildWindow* pChild, Window *pParent, SfxChildWinInfo* pInfo) = 0;
     350             : 
     351             :     virtual AbstractSwInsertAbstractDlg * CreateSwInsertAbstractDlg(Window* pParent) = 0; // add for SwInsertAbstractDlg
     352             :     virtual AbstractSwAsciiFilterDlg*  CreateSwAsciiFilterDlg ( Window* pParent, SwDocShell& rDocSh,
     353             :                                                                 SvStream* pStream, int nResId ) = 0;// add for SwAsciiFilterDlg
     354             :     virtual VclAbstractDialog * CreateSwInsertBookmarkDlg( Window *pParent, SwWrtShell &rSh, SfxRequest& rReq, int nResId ) = 0;// add for SwInsertBookmarkDlg
     355             : 
     356             :     virtual AbstractSwBreakDlg * CreateSwBreakDlg(Window *pParent, SwWrtShell &rSh) = 0; // add for SwBreakDlg
     357             :     virtual VclAbstractDialog   * CreateSwChangeDBDlg( SwView& rVw, int nResId ) = 0; //add for SwChangeDBDlg
     358             :     virtual SfxAbstractTabDialog *  CreateSwCharDlg( Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet, int nResId, // add for SwCharDlg
     359             :                                                 const String* pFmtStr = 0, sal_Bool bIsDrwTxtDlg = sal_False) = 0;
     360             :     virtual AbstractSwConvertTableDlg* CreateSwConvertTableDlg(SwView& rView, bool bToTable) = 0; //add for SwConvertTableDlg
     361             :     virtual VclAbstractDialog * CreateSwCaptionDialog ( Window *pParent, SwView &rV,int nResId) = 0; //add for SwCaptionDialog
     362             : 
     363             :     virtual AbstractSwInsertDBColAutoPilot* CreateSwInsertDBColAutoPilot( SwView& rView, // add for SwInsertDBColAutoPilot
     364             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> rxSource,
     365             :         com::sun::star::uno::Reference<com::sun::star::sdbcx::XColumnsSupplier> xColSupp,
     366             :         const SwDBData& rData,  int nResId) = 0;
     367             :     virtual SfxAbstractTabDialog * CreateSwFootNoteOptionDlg( Window *pParent, SwWrtShell &rSh,int nResId) = 0;//add for  SwFootNoteOptionDlg
     368             : 
     369             :     virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog ( Window *pParent, SwWrtShell &rSh, //add for DropDownFieldDialog
     370             :                                 SwField* pField,int nResId, sal_Bool bNextButton = sal_False ) = 0;
     371             :     virtual SfxAbstractTabDialog* CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, sal_Bool bInsert,int nResId ) = 0; //add for SwEnvDlg
     372             : 
     373             : 
     374             :     virtual AbstractSwLabDlg* CreateSwLabDlg ( Window* pParent, const SfxItemSet& rSet, //add for SwLabDlg
     375             :                                                      SwNewDBMgr* pNewDBMgr, sal_Bool bLabel,int nResId  ) = 0;
     376             : 
     377             :     virtual SwLabDlgMethod GetSwLabDlgStaticMethod () =0;//add for SwLabDlg
     378             : 
     379             :     virtual SfxAbstractTabDialog* CreateSwParaDlg ( Window *pParent, //add for SwParaDlg
     380             :                                                     SwView& rVw,
     381             :                                                     const SfxItemSet& rCoreSet,
     382             :                                                     sal_uInt8 nDialogMode,
     383             :                                                     int nResId,
     384             :                                                     const String *pCollName = 0,
     385             :                                                     sal_Bool bDraw = sal_False,
     386             :                                                     sal_uInt16 nDefPage = 0) = 0;
     387             : 
     388             :     virtual AbstractSwSelGlossaryDlg * CreateSwSelGlossaryDlg ( Window * pParent, const String &rShortName, int nResId ) = 0; //add for SwSelGlossaryDlg
     389             : 
     390             :     virtual VclAbstractDialog * CreateVclAbstractDialog ( Window * pParent, SwWrtShell &rSh, int nResId ) = 0; //add for  SwTableHeightDlg SwSortDlg
     391             :     virtual AbstractSplitTableDialog * CreateSplitTblDialog ( Window * pParent, SwWrtShell &rSh ) = 0; //add for  SwSplitTblDlg
     392             : 
     393             :     virtual AbstractSwAutoFormatDlg * CreateSwAutoFormatDlg( Window* pParent, SwWrtShell* pShell, //add for SwAutoFormatDlg
     394             :                                                             sal_Bool bSetAutoFmt = sal_True,
     395             :                                                             const SwTableAutoFmt* pSelFmt = 0 ) = 0;
     396             :     virtual SfxAbstractDialog * CreateSwBorderDlg ( Window* pParent, SfxItemSet& rSet, sal_uInt16 nType, int nResId ) = 0;//add for SwBorderDlg
     397             :     virtual SfxAbstractDialog * CreateSwWrapDlg ( Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, sal_Bool bDrawMode, int nResId ) = 0; //add for SwWrapDlg
     398             : 
     399             :     virtual VclAbstractDialog * CreateSwTableWidthDlg(Window *pParent, SwTableFUNC &rFnc) = 0; //add for SwTableWidthDlg
     400             :     virtual SfxAbstractTabDialog* CreateSwTableTabDlg( Window* pParent, SfxItemPool& Pool,
     401             :                                                         const SfxItemSet* pItemSet, SwWrtShell* pSh,int nResId ) = 0; //add for SwTableTabDlg
     402             : 
     403             :     virtual AbstractSwFldDlg * CreateSwFldDlg ( SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent, int nResId ) = 0; //add for SwFldDlg
     404             :     virtual SfxAbstractDialog*   CreateSwFldEditDlg ( SwView& rVw, int nResId ) = 0; //add for SwFldEditDlg
     405             :     virtual AbstractSwRenameXNamedDlg * CreateSwRenameXNamedDlg( Window* pParent, //add for SwRenameXNamedDlg
     406             :                                                                 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > & xNamed,
     407             :                                                                 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xNameAccess, int nResId ) = 0;
     408             :     virtual AbstractSwModalRedlineAcceptDlg * CreateSwModalRedlineAcceptDlg ( Window *pParent, int nResId ) = 0; //add for SwModalRedlineAcceptDlg
     409             : 
     410             :     virtual VclAbstractDialog*          CreateSwVclDialog( int nResId, Window* pParent, sal_Bool& rWithPrev ) = 0; //add for SwMergeTblDlg
     411             :     virtual SfxAbstractTabDialog*       CreateFrmTabDialog( int nResId,
     412             :                                                 SfxViewFrame *pFrame, Window *pParent,
     413             :                                                 const SfxItemSet& rCoreSet,
     414             :                                                 sal_Bool            bNewFrm  = sal_True,
     415             :                                                 sal_uInt16          nResType = DLG_FRM_STD,
     416             :                                                 sal_Bool            bFmt     = sal_False,
     417             :                                                 sal_uInt16          nDefPage = 0,
     418             :                                                 const String*   pFmtStr  = 0) = 0;  //add for SwFrmDlg
     419             :     virtual SfxAbstractApplyTabDialog*  CreateTemplateDialog(
     420             :                                                 Window*             pParent,
     421             :                                                 SfxStyleSheetBase&  rBase,
     422             :                                                 sal_uInt16              nRegion,
     423             :                                                 sal_uInt16              nPageId = 0,
     424             :                                                 SwWrtShell*         pActShell = 0,
     425             :                                                 sal_Bool                bNew = sal_False ) = 0; //add for SwTemplateDlg
     426             :     virtual AbstractGlossaryDlg*        CreateGlossaryDlg( int nResId,
     427             :                                                 SfxViewFrame* pViewFrame,
     428             :                                                 SwGlossaryHdl* pGlosHdl,
     429             :                                                 SwWrtShell *pWrtShell) = 0; //add for SwGlossaryDlg
     430             :     virtual AbstractFldInputDlg*        CreateFldInputDlg( int nResId,
     431             :                                                 Window *pParent, SwWrtShell &rSh,
     432             :                                                 SwField* pField, sal_Bool bNextButton = sal_False ) = 0; //add for SwFldInputDlg
     433             :     virtual AbstractInsFootNoteDlg*     CreateInsFootNoteDlg(Window * pParent,
     434             :         SwWrtShell &rSh, sal_Bool bEd = sal_False) = 0; //add for SwInsFootNoteDlg
     435             :     virtual VclAbstractDialog*          CreateTitlePageDlg ( Window * pParent ) = 0;
     436             :     virtual VclAbstractDialog *         CreateVclSwViewDialog(SwView& rView) = 0; //add for SwInsRowColDlg, SwLineNumberingDlg
     437             :     virtual AbstractInsTableDlg*        CreateInsTableDlg(SwView& rView) = 0; //add for SwInsTableDlg
     438             :     virtual AbstractJavaEditDialog*     CreateJavaEditDialog(Window* pParent,
     439             :         SwWrtShell* pWrtSh) = 0; //add for SwJavaEditDialog
     440             :     virtual AbstractMailMergeDlg*       CreateMailMergeDlg( int nResId,
     441             :                                                 Window* pParent, SwWrtShell& rSh,
     442             :                                                  const String& rSourceName,
     443             :                                                 const String& rTblName,
     444             :                                                 sal_Int32 nCommandType,
     445             :                                                 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& xConnection,
     446             :                                                 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >* pSelection = 0 ) = 0; //add for SwMailMergeDlg
     447             :     virtual AbstractMailMergeCreateFromDlg*     CreateMailMergeCreateFromDlg( int nResId,
     448             :                                                     Window* pParent ) = 0; //add for SwMailMergeCreateFromDlg
     449             :     virtual AbstractMailMergeFieldConnectionsDlg*       CreateMailMergeFieldConnectionsDlg( int nResId,
     450             :                                                             Window* pParent ) = 0; //add for SwMailMergeFieldConnectionsDlg
     451             :     virtual VclAbstractDialog*          CreateMultiTOXMarkDlg( int nResId,
     452             :                                                 Window* pParent, SwTOXMgr &rTOXMgr ) = 0; //add for SwMultiTOXMarkDlg
     453             :     virtual SfxAbstractTabDialog*       CreateSwTabDialog( int nResId,
     454             :                                                 Window* pParent,
     455             :                                                 const SfxItemSet* pSwItemSet,
     456             :                                                 SwWrtShell &) = 0; //add for SwSvxNumBulletTabDialog, SwOutlineTabDialog
     457             :     virtual AbstractMultiTOXTabDialog*      CreateMultiTOXTabDialog( int nResId,
     458             :                                                 Window* pParent, const SfxItemSet& rSet,
     459             :                                                 SwWrtShell &rShell,
     460             :                                                 SwTOXBase* pCurTOX, sal_uInt16 nToxType = USHRT_MAX,
     461             :                                                 sal_Bool bGlobal = sal_False) = 0; //add for SwMultiTOXTabDialog
     462             :     virtual AbstractEditRegionDlg*      CreateEditRegionDlg( int nResId,
     463             :                                                 Window* pParent, SwWrtShell& rWrtSh ) = 0; //add for SwEditRegionDlg
     464             :     virtual AbstractInsertSectionTabDialog*     CreateInsertSectionTabDialog( int nResId,
     465             :                                                     Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh ) = 0; //add for SwInsertSectionTabDialog
     466             :     virtual AbstractMarkFloatDlg*       CreateIndexMarkFloatDlg(
     467             :                                                     SfxBindings* pBindings,
     468             :                                                        SfxChildWindow* pChild,
     469             :                                                        Window *pParent,
     470             :                                                     SfxChildWinInfo* pInfo,
     471             :                                                        sal_Bool bNew=sal_True) = 0; //add for SwIndexMarkFloatDlg
     472             :     virtual AbstractMarkFloatDlg*       CreateAuthMarkFloatDlg(
     473             :                                                     SfxBindings* pBindings,
     474             :                                                        SfxChildWindow* pChild,
     475             :                                                        Window *pParent,
     476             :                                                     SfxChildWinInfo* pInfo,
     477             :                                                        sal_Bool bNew=sal_True) = 0; //add for SwAuthMarkFloatDlg
     478             :     virtual VclAbstractDialog *         CreateIndexMarkModalDlg(
     479             :                                                 Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark) = 0; //add for SwIndexMarkModalDlg
     480             : 
     481             :     virtual AbstractMailMergeWizard*    CreateMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rConfigItem) = 0;
     482             : 
     483             :     //add for static func in SwGlossaryDlg
     484             :     virtual GlossaryGetCurrGroup        GetGlossaryCurrGroupFunc( sal_uInt16 nId ) = 0;
     485             :     virtual GlossarySetActGroup         SetGlossaryActGroupFunc( sal_uInt16 nId ) = 0;
     486             : 
     487             :     // for tabpage
     488             :     virtual CreateTabPage               GetTabPageCreatorFunc( sal_uInt16 nId ) = 0;
     489             :     virtual GetTabPageRanges            GetTabPageRangesFunc( sal_uInt16 nId ) = 0;
     490             : 
     491             : protected:
     492           0 :     ~SwAbstractDialogFactory() {}
     493             : };
     494             : 
     495             : #endif
     496             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10