merge the formfield patch from ooo-build
[ooovba.git] / sw / source / ui / dialog / swdlgfact.hxx
blob8e31e93b8a37daa6bb2449664efb4ac0f4047ffa
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: swdlgfact.hxx,v $
10 * $Revision: 1.13 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SW_DLGFACT_HXX
31 #define _SW_DLGFACT_HXX
33 // include ---------------------------------------------------------------
34 #include "swabstdlg.hxx"
36 class SwSaveLabelDlg;
37 class SwInsertAbstractDlg;
38 class SfxSingleTabDialog;
39 class SwAsciiFilterDlg;
40 class Dialog;
41 class SwBreakDlg;
42 class SfxTabDialog;
43 class SwConvertTableDlg;
44 class SwInsertDBColAutoPilot;
45 class SwLabDlg;
46 class SwSelGlossaryDlg;
47 class SwAutoFormatDlg;
48 class SwFldDlg;
49 class SwRenameXNamedDlg;
50 class SwModalRedlineAcceptDlg;
51 class SwTOXMark;
52 class SwWordCountDialog;
53 class SwSplitTblDlg;
55 #include "itabenum.hxx"
57 namespace sw
59 class DropDownFieldDialog;
62 #define DECL_ABSTDLG_BASE(Class,DialogClass) \
63 DialogClass* pDlg; \
64 public: \
65 Class( DialogClass* p) \
66 : pDlg(p) \
67 {} \
68 virtual ~Class(); \
69 virtual short Execute() ;
70 // virtual void Show( BOOL bVisible = TRUE, USHORT nFlags = 0 )
72 #define IMPL_ABSTDLG_BASE(Class) \
73 Class::~Class() \
74 { \
75 delete pDlg; \
76 } \
77 short Class::Execute() \
78 { \
79 return pDlg->Execute(); \
83 class AbstractSwWordCountDialog_Impl : public AbstractSwWordCountDialog
85 DECL_ABSTDLG_BASE(AbstractSwWordCountDialog_Impl,SwWordCountDialog)
86 void SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc);
89 //add for SwInsertAbstractDlg begin
90 class AbstractSwInsertAbstractDlg_Impl : public AbstractSwInsertAbstractDlg
92 DECL_ABSTDLG_BASE(AbstractSwInsertAbstractDlg_Impl,SwInsertAbstractDlg)
93 virtual BYTE GetLevel() const ;
94 virtual BYTE GetPara() const ;
97 //add for SwInsertAbstractDlg end
99 // add for SwAddrDlg, SwDropCapsDlg, SwBackgroundDlg SwNumFmtDlg SwWrapDlg SwBorderDlg, SwFldEditDlg begin
100 class SfxSingleTabDialog;
101 class AbstractSfxDialog_Impl :public SfxAbstractDialog
103 DECL_ABSTDLG_BASE(AbstractSfxDialog_Impl,SfxModalDialog)
104 virtual const SfxItemSet* GetOutputItemSet() const;
105 virtual void SetText( const XubString& rStr );
106 virtual String GetText() const;
108 // add for SwAddrDlg,SwDropCapsDlg , SwBackgroundDlg SwNumFmtDlg SwWrapDlg SwBorderDlg, SwFldEditDlg end
110 // add for SwAsciiFilterDlg begin
111 class AbstractSwAsciiFilterDlg_Impl : public AbstractSwAsciiFilterDlg
113 DECL_ABSTDLG_BASE( AbstractSwAsciiFilterDlg_Impl,SwAsciiFilterDlg )
114 virtual void FillOptions( SwAsciiOptions& rOptions );
117 // add for SwAsciiFilterDlg end
119 // add for SwInsertBookmarkDlg SwChangeDBDlg, SwTableHeightDlg, SwSplitTblDlg SwSortDlg SwTableWidthDlgbegin
120 class VclAbstractDialog_Impl : public VclAbstractDialog
122 DECL_ABSTDLG_BASE(VclAbstractDialog_Impl,Dialog)
124 // add for SwInsertBookmarkDlg SwChangeDBDlg, SwTableHeightDlg SwSplitTblDlg SwSortDlg SwTableWidthDlg end
126 // add for SwBreakDlg begin
127 class AbstractSwBreakDlg_Impl : public AbstractSwBreakDlg // add for SwBreakDlg
129 DECL_ABSTDLG_BASE(AbstractSwBreakDlg_Impl,SwBreakDlg)
130 virtual String GetTemplateName();
131 virtual USHORT GetKind();
132 virtual USHORT GetPageNumber();
135 class AbstractSplitTableDialog_Impl : public AbstractSplitTableDialog // add for
137 DECL_ABSTDLG_BASE(AbstractSplitTableDialog_Impl, SwSplitTblDlg)
138 virtual sal_uInt16 GetSplitMode();
141 // add for SwBreakDlg end
143 //add for SwCharDlg , SwEnvDlg , SwFootNoteOptionDlg SwParaDlg SwTableTabDlg begin
144 class AbstractTabDialog_Impl : public SfxAbstractTabDialog
146 DECL_ABSTDLG_BASE( AbstractTabDialog_Impl,SfxTabDialog )
147 virtual void SetCurPageId( USHORT nId );
148 virtual const SfxItemSet* GetOutputItemSet() const;
149 virtual const USHORT* GetInputRanges( const SfxItemPool& pItem );
150 virtual void SetInputSet( const SfxItemSet* pInSet );
151 //From class Window.
152 virtual void SetText( const XubString& rStr );
153 virtual String GetText() const;
155 //add for SwCharDlg, SwEnvDlg ,SwFootNoteOptionDlg SwParaDlg SwTableTabDlg end
157 //add for SwConvertTableDlg begin
158 class AbstractSwConvertTableDlg_Impl : public AbstractSwConvertTableDlg // add for SwConvertTableDlg
160 DECL_ABSTDLG_BASE( AbstractSwConvertTableDlg_Impl,SwConvertTableDlg)
161 virtual void GetValues( sal_Unicode& rDelim,SwInsertTableOptions& rInsTblFlags,
162 SwTableAutoFmt *& prTAFmt );
164 //add for SwConvertTableDlg end
166 //add for SwInsertDBColAutoPilot begin
167 class AbstractSwInsertDBColAutoPilot_Impl : public AbstractSwInsertDBColAutoPilot // add for SwInsertDBColAutoPilot
169 DECL_ABSTDLG_BASE( AbstractSwInsertDBColAutoPilot_Impl,SwInsertDBColAutoPilot)
170 virtual void DataToDoc( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rSelection,
171 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> rxSource,
172 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> xConnection,
173 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > xResultSet);
175 //add for SwInsertDBColAutoPilot end
177 //add for DropDownFieldDialog begin
178 class AbstractDropDownFieldDialog_Impl : public AbstractDropDownFieldDialog //add for DropDownFieldDialog
180 DECL_ABSTDLG_BASE(AbstractDropDownFieldDialog_Impl, sw::DropDownFieldDialog)
181 virtual ByteString GetWindowState( ULONG nMask = WINDOWSTATE_MASK_ALL ) const; //this method inherit from SystemWindow
182 virtual void SetWindowState( const ByteString& rStr );//this method inherit from SystemWindow
184 //add for DropDownFieldDialog end
187 class AbstarctSwLabDlg_Impl : public AbstarctSwLabDlg
189 DECL_ABSTDLG_BASE(AbstarctSwLabDlg_Impl,SwLabDlg)
190 virtual void SetCurPageId( USHORT nId );
191 virtual const SfxItemSet* GetOutputItemSet() const;
192 virtual const USHORT* GetInputRanges( const SfxItemPool& pItem );
193 virtual void SetInputSet( const SfxItemSet* pInSet );
194 //From class Window.
195 virtual void SetText( const XubString& rStr );
196 virtual String GetText() const;
197 virtual const String& GetBusinessCardStr() const;
198 virtual Printer *GetPrt();
200 //add for SwLabDlg end
202 //add for SwSelGlossaryDlg begin
203 class AbstarctSwSelGlossaryDlg_Impl : public AbstarctSwSelGlossaryDlg
205 DECL_ABSTDLG_BASE(AbstarctSwSelGlossaryDlg_Impl,SwSelGlossaryDlg)
206 virtual void InsertGlos(const String &rRegion, const String &rGlosName); // inline
207 virtual USHORT GetSelectedIdx() const; // inline
208 virtual void SelectEntryPos(USHORT nIdx); // inline
210 //add for SwSelGlossaryDlg end
212 //add for SwAutoFormatDlg begin
213 class AbstractSwAutoFormatDlg_Impl : public AbstractSwAutoFormatDlg
215 DECL_ABSTDLG_BASE(AbstractSwAutoFormatDlg_Impl,SwAutoFormatDlg )
216 virtual void FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const;
218 //add for SwAutoFormatDlg end
220 //add for SwFldDlg begin
222 class AbstractSwFldDlg_Impl : public AbstractSwFldDlg //add for SwFldDlg
224 DECL_ABSTDLG_BASE(AbstractSwFldDlg_Impl,SwFldDlg )
225 virtual void SetCurPageId( USHORT nId );
226 virtual const SfxItemSet* GetOutputItemSet() const;
227 virtual const USHORT* GetInputRanges( const SfxItemPool& pItem );
228 virtual void SetInputSet( const SfxItemSet* pInSet );
229 //From class Window.
230 virtual void SetText( const XubString& rStr );
231 virtual String GetText() const;
232 virtual void Start( BOOL bShow = TRUE ); //this method from SfxTabDialog
233 virtual void ShowPage( USHORT nId );// this method from SfxTabDialog
234 virtual void Initialize(SfxChildWinInfo *pInfo);
235 virtual void ReInitDlg();
236 virtual void ActivateDatabasePage();
237 virtual Window * GetWindow(); //this method is added for return a Window type pointer
239 //add for SwFldD end
241 //add for SwRenameXNamedDlg begin
242 class AbstractSwRenameXNamedDlg_Impl : public AbstractSwRenameXNamedDlg
244 DECL_ABSTDLG_BASE(AbstractSwRenameXNamedDlg_Impl,SwRenameXNamedDlg )
245 virtual void SetForbiddenChars( const String& rSet );
246 virtual void SetAlternativeAccess(
247 STAR_REFERENCE( container::XNameAccess ) & xSecond,
248 STAR_REFERENCE( container::XNameAccess ) & xThird );
250 //add for SwRenameXNamedDlg end
251 //add for SwModalRedlineAcceptDlg begin
252 class AbstractSwModalRedlineAcceptDlg_Impl : public AbstractSwModalRedlineAcceptDlg
254 DECL_ABSTDLG_BASE(AbstractSwModalRedlineAcceptDlg_Impl,SwModalRedlineAcceptDlg )
255 virtual void AcceptAll( BOOL bAccept );
257 //add for SwModalRedlineAcceptDlg end
259 //for SwGlossaryDlg begin
260 class SwGlossaryDlg;
261 class AbstractGlossaryDlg_Impl : public AbstractGlossaryDlg
263 DECL_ABSTDLG_BASE(AbstractGlossaryDlg_Impl,SwGlossaryDlg)
264 virtual String GetCurrGrpName() const;
265 virtual String GetCurrShortName() const;
267 //for SwGlossaryDlg end
269 //for SwFldInputDlg begin
270 class SwFldInputDlg;
271 class AbstractFldInputDlg_Impl : public AbstractFldInputDlg
273 DECL_ABSTDLG_BASE(AbstractFldInputDlg_Impl,SwFldInputDlg)
274 //from class SalFrame
275 virtual void SetWindowState( const ByteString& rStr ) ;
276 virtual ByteString GetWindowState( ULONG nMask = WINDOWSTATE_MASK_ALL ) const ;
278 //for SwFldInputDlg end
280 //for SwInsFootNoteDlg begin
281 class SwInsFootNoteDlg;
282 class AbstractInsFootNoteDlg_Impl : public AbstractInsFootNoteDlg
284 DECL_ABSTDLG_BASE(AbstractInsFootNoteDlg_Impl,SwInsFootNoteDlg)
285 virtual String GetFontName();
286 virtual BOOL IsEndNote();
287 virtual String GetStr();
288 //from class Window
289 virtual void SetHelpId( ULONG nHelpId );
290 virtual void SetText( const XubString& rStr );
292 //for SwInsFootNoteDlg end
294 //for SwInsertGrfRulerDlg begin
295 class SwInsertGrfRulerDlg;
296 class AbstractInsertGrfRulerDlg_Impl : public AbstractInsertGrfRulerDlg
298 DECL_ABSTDLG_BASE(AbstractInsertGrfRulerDlg_Impl,SwInsertGrfRulerDlg)
299 virtual String GetGraphicName();
300 virtual BOOL IsSimpleLine();
301 virtual BOOL HasImages() const ;
303 //for SwInsertGrfRulerDlg end
305 //for SwInsTableDlg begin
306 class SwInsTableDlg;
307 class AbstractInsTableDlg_Impl : public AbstractInsTableDlg
309 DECL_ABSTDLG_BASE(AbstractInsTableDlg_Impl,SwInsTableDlg)
310 virtual void GetValues( String& rName, USHORT& rRow, USHORT& rCol,
311 SwInsertTableOptions& rInsTblFlags, String& rTableAutoFmtName,
312 SwTableAutoFmt *& prTAFmt );
314 //for SwInsTableDlg end
316 //for SwJavaEditDialog begin
317 class SwJavaEditDialog;
318 class AbstractJavaEditDialog_Impl : public AbstractJavaEditDialog
320 DECL_ABSTDLG_BASE(AbstractJavaEditDialog_Impl,SwJavaEditDialog)
321 virtual String GetText();
322 virtual String GetType();
323 virtual BOOL IsUrl();
324 virtual BOOL IsNew();
325 virtual BOOL IsUpdate();
327 //for SwJavaEditDialog end
329 //for SwMailMergeDlg begin
330 class SwMailMergeDlg;
331 class AbstractMailMergeDlg_Impl : public AbstractMailMergeDlg
333 DECL_ABSTDLG_BASE(AbstractMailMergeDlg_Impl,SwMailMergeDlg)
334 virtual USHORT GetMergeType() ;
335 virtual const ::rtl::OUString& GetSaveFilter() const;
336 virtual const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > GetSelection() const ;
337 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> GetResultSet() const;
339 //for SwMailMergeDlg end
340 //for SwMailMergeCreateFromDlg begin
341 class SwMailMergeCreateFromDlg;
342 class AbstractMailMergeCreateFromDlg_Impl : public AbstractMailMergeCreateFromDlg
344 DECL_ABSTDLG_BASE(AbstractMailMergeCreateFromDlg_Impl,SwMailMergeCreateFromDlg)
345 virtual BOOL IsThisDocument() const ;
347 //for SwMailMergeCreateFromDlg end
348 //for SwMailMergeFieldConnectionsDlg begin
349 class SwMailMergeFieldConnectionsDlg;
350 class AbstractMailMergeFieldConnectionsDlg_Impl : public AbstractMailMergeFieldConnectionsDlg
352 DECL_ABSTDLG_BASE(AbstractMailMergeFieldConnectionsDlg_Impl,SwMailMergeFieldConnectionsDlg)
353 virtual BOOL IsUseExistingConnections() const ;
355 //for SwMailMergeFieldConnectionsDlg end
357 //for SwMultiTOXTabDialog begin
358 class SwMultiTOXTabDialog;
359 class AbstractMultiTOXTabDialog_Impl : public AbstractMultiTOXTabDialog
361 DECL_ABSTDLG_BASE(AbstractMultiTOXTabDialog_Impl,SwMultiTOXTabDialog)
362 virtual SwForm* GetForm(CurTOXType eType);
363 virtual CurTOXType GetCurrentTOXType() const ;
364 virtual SwTOXDescription& GetTOXDescription(CurTOXType eTOXTypes);
365 //from SfxTabDialog
366 virtual const SfxItemSet* GetOutputItemSet() const;
368 //for SwMultiTOXTabDialog end
370 //for SwEditRegionDlg begin
371 class SwEditRegionDlg;
372 class AbstractEditRegionDlg_Impl : public AbstractEditRegionDlg
374 DECL_ABSTDLG_BASE(AbstractEditRegionDlg_Impl,SwEditRegionDlg)
375 virtual void SelectSection(const String& rSectionName);
377 //for SwEditRegionDlg end
378 //for SwInsertSectionTabDialog begin
379 class SwInsertSectionTabDialog;
380 class AbstractInsertSectionTabDialog_Impl : public AbstractInsertSectionTabDialog
382 DECL_ABSTDLG_BASE(AbstractInsertSectionTabDialog_Impl,SwInsertSectionTabDialog)
383 virtual void SetSection(const SwSection& rSect);
385 //for SwInsertSectionTabDialog end
387 //for SwIndexMarkFloatDlg begin
388 class SwIndexMarkFloatDlg;
389 class AbstractIndexMarkFloatDlg_Impl : public AbstractMarkFloatDlg
391 DECL_ABSTDLG_BASE(AbstractIndexMarkFloatDlg_Impl,SwIndexMarkFloatDlg)
392 virtual void ReInitDlg(SwWrtShell& rWrtShell);
393 virtual Window * GetWindow(); //this method is added for return a Window type pointer
395 //for SwIndexMarkFloatDlg end
397 //for SwAuthMarkFloatDlg begin
398 class SwAuthMarkFloatDlg;
399 class AbstractAuthMarkFloatDlg_Impl : public AbstractMarkFloatDlg
401 DECL_ABSTDLG_BASE(AbstractAuthMarkFloatDlg_Impl,SwAuthMarkFloatDlg)
402 virtual void ReInitDlg(SwWrtShell& rWrtShell);
403 virtual Window * GetWindow(); //this method is added for return a Window type pointer
405 //for SwAuthMarkFloatDlg end
407 class SwMailMergeWizard;
408 class AbstractMailMergeWizard_Impl : public AbstractMailMergeWizard
410 SwMailMergeWizard* pDlg;
411 Link aEndDlgHdl;
413 DECL_LINK( EndDialogHdl, SwMailMergeWizard* );
414 public:
415 AbstractMailMergeWizard_Impl( SwMailMergeWizard* p )
416 : pDlg(p)
418 virtual ~AbstractMailMergeWizard_Impl();
419 virtual void StartExecuteModal( const Link& rEndDialogHdl );
420 virtual long GetResult();
422 virtual void SetReloadDocument(const String& rURL);
423 virtual const String& GetReloadDocument() const;
424 virtual BOOL ShowPage( USHORT nLevel );
425 virtual sal_uInt16 GetRestartPage() const;
428 //------------------------------------------------------------------------
429 //AbstractDialogFactory_Impl implementations
430 class SwAbstractDialogFactory_Impl : public SwAbstractDialogFactory
433 public:
434 virtual SfxAbstractDialog* CreateSfxDialog( Window* pParent, //add for SvxMeasureDialog & SvxConnectionDialog
435 const SfxItemSet& rAttr,
436 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame,
437 sal_uInt32 nResId
439 virtual AbstractSwWordCountDialog* CreateSwWordCountDialog(Window* pParent);
440 virtual AbstractSwInsertAbstractDlg * CreateSwInsertAbstractDlg( Window* pParent,int nResId );
441 virtual AbstractSwAsciiFilterDlg* CreateSwAsciiFilterDlg ( Window* pParent, SwDocShell& rDocSh,
442 SvStream* pStream, int nResId ); //add for SwAsciiFilterDlg
443 virtual VclAbstractDialog * CreateSwInsertBookmarkDlg( Window *pParent, SwWrtShell &rSh, SfxRequest& rReq, int nResId );//add for SwInsertBookmarkDlg
444 virtual AbstractSwBreakDlg * CreateSwBreakDlg ( Window *pParent, SwWrtShell &rSh,int nResId ); // add for SwBreakDlg
445 virtual VclAbstractDialog * CreateSwChangeDBDlg( SwView& rVw, int nResId ); //add for SwChangeDBDlg
446 virtual SfxAbstractTabDialog * CreateSwCharDlg( Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet, int nResId, // add for SwCharDlg
447 const String* pFmtStr = 0, BOOL bIsDrwTxtDlg = FALSE);
448 virtual AbstractSwConvertTableDlg* CreateSwConvertTableDlg ( SwView& rView, int nResId, bool bToTable ); //add for SwConvertTableDlg
449 virtual VclAbstractDialog * CreateSwCaptionDialog ( Window *pParent, SwView &rV,int nResId); //add for SwCaptionDialog
451 virtual AbstractSwInsertDBColAutoPilot* CreateSwInsertDBColAutoPilot( SwView& rView, // add for SwInsertDBColAutoPilot
452 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> rxSource,
453 com::sun::star::uno::Reference<com::sun::star::sdbcx::XColumnsSupplier> xColSupp,
454 const SwDBData& rData, int nResId);
455 virtual SfxAbstractTabDialog * CreateSwFootNoteOptionDlg( Window *pParent, SwWrtShell &rSh,int nResId);//add for SwFootNoteOptionDlg
457 virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog ( Window *pParent, SwWrtShell &rSh, //add for DropDownFieldDialog
458 SwField* pField,int nResId, BOOL bNextButton = FALSE );
459 virtual SfxAbstractTabDialog* CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, BOOL bInsert,int nResId ); //add for SwEnvDlg
460 virtual AbstarctSwLabDlg* CreateSwLabDlg ( Window* pParent, const SfxItemSet& rSet, //add for SwLabDlg
461 SwNewDBMgr* pNewDBMgr, BOOL bLabel,int nResId );
463 virtual SwLabDlgMethod GetSwLabDlgStaticMethod (); //add for SwLabDlg
464 virtual SfxAbstractTabDialog* CreateSwParaDlg ( Window *pParent, //add for SwParaDlg
465 SwView& rVw,
466 const SfxItemSet& rCoreSet,
467 BYTE nDialogMode,
468 int nResId,
469 const String *pCollName = 0,
470 BOOL bDraw = FALSE,
471 UINT16 nDefPage = 0);
473 virtual AbstarctSwSelGlossaryDlg * CreateSwSelGlossaryDlg ( Window * pParent, const String &rShortName, int nResId ); //add for SwSelGlossaryDlg
474 virtual VclAbstractDialog * CreateVclAbstractDialog ( Window * pParent, SwWrtShell &rSh, int nResId ); //add for SwTableHeightDlg SwSortDlg
475 virtual AbstractSplitTableDialog * CreateSplitTblDialog ( Window * pParent, SwWrtShell &rSh ); //add for SwSplitTblDlg
477 virtual AbstractSwAutoFormatDlg * CreateSwAutoFormatDlg( Window* pParent, SwWrtShell* pShell, //add for SwAutoFormatDlg
478 int nResId,
479 BOOL bSetAutoFmt = TRUE,
480 const SwTableAutoFmt* pSelFmt = 0 );
481 virtual SfxAbstractDialog * CreateSwBorderDlg (Window* pParent, SfxItemSet& rSet, USHORT nType,int nResId );//add for SwBorderDlg
483 virtual SfxAbstractDialog * CreateSwWrapDlg ( Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, BOOL bDrawMode, int nResId ); //add for SwWrapDlg
484 virtual VclAbstractDialog * CreateSwTableWidthDlg ( Window *pParent, SwTableFUNC &rFnc , int nResId ); //add for SwTableWidthDlg
485 virtual SfxAbstractTabDialog* CreateSwTableTabDlg( Window* pParent, SfxItemPool& Pool,
486 const SfxItemSet* pItemSet, SwWrtShell* pSh,int nResId ); //add for SwTableTabDlg
487 virtual AbstractSwFldDlg * CreateSwFldDlg ( SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent, int nResId ); //add for SwFldDlg
488 virtual SfxAbstractDialog* CreateSwFldEditDlg ( SwView& rVw, int nResId ); //add for SwFldEditDlg
489 virtual AbstractSwRenameXNamedDlg * CreateSwRenameXNamedDlg( Window* pParent, //add for SwRenameXNamedDlg
490 STAR_REFERENCE( container::XNamed ) & xNamed,
491 STAR_REFERENCE( container::XNameAccess ) & xNameAccess, int nResId );
492 virtual AbstractSwModalRedlineAcceptDlg * CreateSwModalRedlineAcceptDlg ( Window *pParent, int nResId ); //add for SwModalRedlineAcceptDlg
494 virtual VclAbstractDialog* CreateSwVclDialog( int nResId,
495 Window* pParent, BOOL& rWithPrev ); //add for SwMergeTblDlg
496 virtual SfxAbstractTabDialog* CreateFrmTabDialog( int nResId,
497 SfxViewFrame *pFrame, Window *pParent,
498 const SfxItemSet& rCoreSet,
499 BOOL bNewFrm = TRUE,
500 USHORT nResType = DLG_FRM_STD,
501 BOOL bFmt = FALSE,
502 UINT16 nDefPage = 0,
503 const String* pFmtStr = 0); //add for SwFrmDlg
504 virtual SfxAbstractTabDialog* CreateTemplateDialog( int nResId,
505 Window* pParent,
506 SfxStyleSheetBase& rBase,
507 USHORT nRegion,
508 BOOL bColumn = FALSE,
509 SwWrtShell* pActShell = 0,
510 BOOL bNew = FALSE ); //add for SwTemplateDlg
511 virtual AbstractGlossaryDlg* CreateGlossaryDlg( int nResId,
512 SfxViewFrame* pViewFrame,
513 SwGlossaryHdl* pGlosHdl,
514 SwWrtShell *pWrtShell); //add for SwGlossaryDlg
515 virtual AbstractFldInputDlg* CreateFldInputDlg( int nResId,
516 Window *pParent, SwWrtShell &rSh,
517 SwField* pField, BOOL bNextButton = FALSE ); //add for SwFldInputDlg
518 virtual AbstractInsFootNoteDlg* CreateInsFootNoteDlg( int nResId,
519 Window * pParent, SwWrtShell &rSh, BOOL bEd = FALSE); //add for SwInsFootNoteDlg
520 virtual VclAbstractDialog * CreateVclSwViewDialog( int nResId,
521 SwView& rView, BOOL bCol = FALSE ); //add for SwInsRowColDlg, SwLineNumberingDlg
522 virtual AbstractInsertGrfRulerDlg* CreateInsertGrfRulerDlg( int nResId,
523 Window * pParent ); //add for SwInsertGrfRulerDlg
524 virtual AbstractInsTableDlg* CreateInsTableDlg( int nResId,
525 SwView& rView ); //add for SwInsTableDlg
526 virtual AbstractJavaEditDialog* CreateJavaEditDialog( int nResId,
527 Window* pParent, SwWrtShell* pWrtSh ); //add for SwJavaEditDialog
528 virtual AbstractMailMergeDlg* CreateMailMergeDlg( int nResId,
529 Window* pParent, SwWrtShell& rSh,
530 const String& rSourceName,
531 const String& rTblName,
532 sal_Int32 nCommandType,
533 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& xConnection,
534 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >* pSelection = 0 ); //add for SwMailMergeDlg
535 virtual AbstractMailMergeCreateFromDlg* CreateMailMergeCreateFromDlg( int nResId,
536 Window* pParent ); //add for SwMailMergeCreateFromDlg
537 virtual AbstractMailMergeFieldConnectionsDlg* CreateMailMergeFieldConnectionsDlg( int nResId,
538 Window* pParent ); //add for SwMailMergeFieldConnectionsDlg
539 virtual VclAbstractDialog* CreateMultiTOXMarkDlg( int nResId,
540 Window* pParent, SwTOXMgr &rTOXMgr ); //add for SwMultiTOXMarkDlg
541 virtual SfxAbstractTabDialog* CreateSwTabDialog( int nResId,
542 Window* pParent,
543 const SfxItemSet* pSwItemSet,
544 SwWrtShell &); //add for SwSvxNumBulletTabDialog, SwOutlineTabDialog
545 virtual AbstractMultiTOXTabDialog* CreateMultiTOXTabDialog( int nResId,
546 Window* pParent, const SfxItemSet& rSet,
547 SwWrtShell &rShell,
548 SwTOXBase* pCurTOX, USHORT nToxType = USHRT_MAX,
549 BOOL bGlobal = FALSE); //add for SwMultiTOXTabDialog
550 virtual AbstractEditRegionDlg* CreateEditRegionDlg( int nResId,
551 Window* pParent, SwWrtShell& rWrtSh ); //add for SwEditRegionDlg
552 virtual AbstractInsertSectionTabDialog* CreateInsertSectionTabDialog( int nResId,
553 Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh); //add for SwInsertSectionTabDialog
554 virtual AbstractMarkFloatDlg* CreateIndexMarkFloatDlg( int nResId,
555 SfxBindings* pBindings,
556 SfxChildWindow* pChild,
557 Window *pParent,
558 SfxChildWinInfo* pInfo,
559 sal_Bool bNew=sal_True); //add for SwIndexMarkFloatDlg
560 virtual AbstractMarkFloatDlg* CreateAuthMarkFloatDlg( int nResId,
561 SfxBindings* pBindings,
562 SfxChildWindow* pChild,
563 Window *pParent,
564 SfxChildWinInfo* pInfo,
565 sal_Bool bNew=sal_True); //add for SwAuthMarkFloatDlg
566 virtual VclAbstractDialog * CreateIndexMarkModalDlg( int nResId,
567 Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark ); //add for SwIndexMarkModalDlg
569 virtual AbstractMailMergeWizard* CreateMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rConfigItem);
571 //add for static func in SwGlossaryDlg
572 virtual GlossaryGetCurrGroup GetGlossaryCurrGroupFunc( USHORT nId );
573 virtual GlossarySetActGroup SetGlossaryActGroupFunc( USHORT nId );
575 // For TabPage
576 virtual CreateTabPage GetTabPageCreatorFunc( USHORT nId );
578 virtual GetTabPageRanges GetTabPageRangesFunc( USHORT nId );
582 struct SwDialogsResMgr
584 static ResMgr* GetResMgr();
587 #endif