bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / dialog / swdlgfact.hxx
blob7ca57c28219191d57bcb628d439fe77ed43ba6f8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef _SW_DLGFACT_HXX
20 #define _SW_DLGFACT_HXX
22 #include "swabstdlg.hxx"
24 class SwInsertAbstractDlg;
25 class SfxNoLayoutSingleTabDialog;
26 class SwAsciiFilterDlg;
27 class Dialog;
28 class SwBreakDlg;
29 class SfxTabDialog;
30 class SwConvertTableDlg;
31 class SwInsertDBColAutoPilot;
32 class SwLabDlg;
33 class SwSelGlossaryDlg;
34 class SwAutoFormatDlg;
35 class SwFldDlg;
36 class SwRenameXNamedDlg;
37 class SwModalRedlineAcceptDlg;
38 class SwTOXMark;
39 class SwSplitTblDlg;
41 #include "itabenum.hxx"
43 namespace sw
45 class DropDownFieldDialog;
48 #define DECL_ABSTDLG_BASE(Class,DialogClass) \
49 protected: \
50 DialogClass* pDlg; \
51 public: \
52 Class( DialogClass* p) \
53 : pDlg(p) \
54 {} \
55 virtual ~Class(); \
56 virtual short Execute() ;
58 #define IMPL_ABSTDLG_BASE(Class) \
59 Class::~Class() \
60 { \
61 delete pDlg; \
62 } \
63 short Class::Execute() \
64 { \
65 return pDlg->Execute(); \
68 class SwWordCountFloatDlg;
69 class AbstractSwWordCountFloatDlg_Impl : public AbstractSwWordCountFloatDlg
71 DECL_ABSTDLG_BASE(AbstractSwWordCountFloatDlg_Impl,SwWordCountFloatDlg)
72 virtual void UpdateCounts();
73 virtual void SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat);
74 virtual Window * GetWindow(); //this method is added for return a Window type pointer
77 //add for SwInsertAbstractDlg begin
78 class AbstractSwInsertAbstractDlg_Impl : public AbstractSwInsertAbstractDlg
80 DECL_ABSTDLG_BASE(AbstractSwInsertAbstractDlg_Impl,SwInsertAbstractDlg)
81 virtual sal_uInt8 GetLevel() const ;
82 virtual sal_uInt8 GetPara() const ;
85 //add for SwInsertAbstractDlg end
87 // add for SwAddrDlg, SwDropCapsDlg, SwBackgroundDlg SwNumFmtDlg SwWrapDlg SwBorderDlg, SwFldEditDlg begin
88 class SfxNoLayoutSingleTabDialog;
89 class SwAbstractSfxDialog_Impl :public SfxAbstractDialog
91 DECL_ABSTDLG_BASE(SwAbstractSfxDialog_Impl,SfxModalDialog)
92 virtual const SfxItemSet* GetOutputItemSet() const;
93 virtual void SetText( const OUString& rStr );
94 virtual OUString GetText() const;
96 // add for SwAddrDlg,SwDropCapsDlg , SwBackgroundDlg SwNumFmtDlg SwWrapDlg SwBorderDlg, SwFldEditDlg end
98 // add for SwAsciiFilterDlg begin
99 class AbstractSwAsciiFilterDlg_Impl : public AbstractSwAsciiFilterDlg
101 DECL_ABSTDLG_BASE( AbstractSwAsciiFilterDlg_Impl,SwAsciiFilterDlg )
102 virtual void FillOptions( SwAsciiOptions& rOptions );
105 // add for SwAsciiFilterDlg end
107 // add for SwInsertBookmarkDlg SwChangeDBDlg, SwTableHeightDlg, SwSplitTblDlg SwSortDlg SwTableWidthDlgbegin
108 class VclAbstractDialog_Impl : public VclAbstractDialog
110 DECL_ABSTDLG_BASE(VclAbstractDialog_Impl,Dialog)
112 // add for SwInsertBookmarkDlg SwChangeDBDlg, SwTableHeightDlg SwSplitTblDlg SwSortDlg SwTableWidthDlg end
114 // add for SwBreakDlg begin
115 class AbstractSwBreakDlg_Impl : public AbstractSwBreakDlg // add for SwBreakDlg
117 DECL_ABSTDLG_BASE(AbstractSwBreakDlg_Impl,SwBreakDlg)
118 virtual String GetTemplateName();
119 virtual sal_uInt16 GetKind();
120 virtual sal_uInt16 GetPageNumber();
123 class AbstractSplitTableDialog_Impl : public AbstractSplitTableDialog // add for
125 DECL_ABSTDLG_BASE(AbstractSplitTableDialog_Impl, SwSplitTblDlg)
126 virtual sal_uInt16 GetSplitMode();
129 // add for SwBreakDlg end
131 //add for SwCharDlg , SwEnvDlg , SwFootNoteOptionDlg SwParaDlg SwTableTabDlg begin
132 class AbstractTabDialog_Impl : virtual public SfxAbstractTabDialog
134 DECL_ABSTDLG_BASE( AbstractTabDialog_Impl,SfxTabDialog )
135 virtual void SetCurPageId( sal_uInt16 nId );
136 virtual void SetCurPageId( const OString &rName );
137 virtual const SfxItemSet* GetOutputItemSet() const;
138 virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
139 virtual void SetInputSet( const SfxItemSet* pInSet );
140 //From class Window.
141 virtual void SetText( const OUString& rStr );
142 virtual OUString GetText() const;
144 //add for SwCharDlg, SwEnvDlg ,SwFootNoteOptionDlg SwParaDlg SwTableTabDlg end
146 class AbstractApplyTabDialog_Impl : public AbstractTabDialog_Impl, virtual public SfxAbstractApplyTabDialog
148 public:
149 AbstractApplyTabDialog_Impl( SfxTabDialog* p)
150 : AbstractTabDialog_Impl(p)
153 DECL_LINK(ApplyHdl, void*);
154 private:
155 Link m_aHandler;
156 virtual void SetApplyHdl( const Link& rLink );
159 //add for SwConvertTableDlg begin
160 class AbstractSwConvertTableDlg_Impl : public AbstractSwConvertTableDlg // add for SwConvertTableDlg
162 DECL_ABSTDLG_BASE( AbstractSwConvertTableDlg_Impl,SwConvertTableDlg)
163 virtual void GetValues( sal_Unicode& rDelim,SwInsertTableOptions& rInsTblFlags,
164 SwTableAutoFmt const*& prTAFmt);
166 //add for SwConvertTableDlg end
168 //add for SwInsertDBColAutoPilot begin
169 class AbstractSwInsertDBColAutoPilot_Impl : public AbstractSwInsertDBColAutoPilot // add for SwInsertDBColAutoPilot
171 DECL_ABSTDLG_BASE( AbstractSwInsertDBColAutoPilot_Impl,SwInsertDBColAutoPilot)
172 virtual void DataToDoc( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rSelection,
173 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource> rxSource,
174 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> xConnection,
175 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet > xResultSet);
177 //add for SwInsertDBColAutoPilot end
179 //add for DropDownFieldDialog begin
180 class AbstractDropDownFieldDialog_Impl : public AbstractDropDownFieldDialog //add for DropDownFieldDialog
182 DECL_ABSTDLG_BASE(AbstractDropDownFieldDialog_Impl, sw::DropDownFieldDialog)
183 virtual OString GetWindowState( sal_uLong nMask = WINDOWSTATE_MASK_ALL ) const; //this method inherit from SystemWindow
184 virtual void SetWindowState( const OString& rStr );//this method inherit from SystemWindow
186 //add for DropDownFieldDialog end
189 class AbstractSwLabDlg_Impl : public AbstractSwLabDlg
191 DECL_ABSTDLG_BASE(AbstractSwLabDlg_Impl,SwLabDlg)
192 virtual void SetCurPageId( sal_uInt16 nId );
193 virtual void SetCurPageId( const OString &rName );
194 virtual const SfxItemSet* GetOutputItemSet() const;
195 virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
196 virtual void SetInputSet( const SfxItemSet* pInSet );
197 //From class Window.
198 virtual void SetText( const OUString& rStr );
199 virtual OUString GetText() const;
200 virtual const String& GetBusinessCardStr() const;
201 virtual Printer *GetPrt();
203 //add for SwLabDlg end
205 //add for SwSelGlossaryDlg begin
206 class AbstractSwSelGlossaryDlg_Impl : public AbstractSwSelGlossaryDlg
208 DECL_ABSTDLG_BASE(AbstractSwSelGlossaryDlg_Impl,SwSelGlossaryDlg)
209 virtual void InsertGlos(const String &rRegion, const String &rGlosName); // inline
210 virtual sal_uInt16 GetSelectedIdx() const; // inline
211 virtual void SelectEntryPos(sal_uInt16 nIdx); // inline
213 //add for SwSelGlossaryDlg end
215 //add for SwAutoFormatDlg begin
216 class AbstractSwAutoFormatDlg_Impl : public AbstractSwAutoFormatDlg
218 DECL_ABSTDLG_BASE(AbstractSwAutoFormatDlg_Impl,SwAutoFormatDlg )
219 virtual void FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const;
221 //add for SwAutoFormatDlg end
223 //add for SwFldDlg begin
225 class AbstractSwFldDlg_Impl : public AbstractSwFldDlg //add for SwFldDlg
227 DECL_ABSTDLG_BASE(AbstractSwFldDlg_Impl,SwFldDlg )
228 virtual void SetCurPageId( sal_uInt16 nId );
229 virtual void SetCurPageId( const OString &rName );
230 virtual const SfxItemSet* GetOutputItemSet() const;
231 virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
232 virtual void SetInputSet( const SfxItemSet* pInSet );
233 //From class Window.
234 virtual void SetText( const OUString& rStr );
235 virtual OUString GetText() const;
236 virtual void Start( sal_Bool bShow = sal_True ); //this method from SfxTabDialog
237 virtual void ShowPage( sal_uInt16 nId );// this method from SfxTabDialog
238 virtual void Initialize(SfxChildWinInfo *pInfo);
239 virtual void ReInitDlg();
240 virtual void ActivateDatabasePage();
241 virtual Window * GetWindow(); //this method is added for return a Window type pointer
243 //add for SwFldD end
245 //add for SwRenameXNamedDlg begin
246 class AbstractSwRenameXNamedDlg_Impl : public AbstractSwRenameXNamedDlg
248 DECL_ABSTDLG_BASE(AbstractSwRenameXNamedDlg_Impl,SwRenameXNamedDlg )
249 virtual void SetForbiddenChars( const String& rSet );
250 virtual void SetAlternativeAccess(
251 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xSecond,
252 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xThird );
254 //add for SwRenameXNamedDlg end
255 //add for SwModalRedlineAcceptDlg begin
256 class AbstractSwModalRedlineAcceptDlg_Impl : public AbstractSwModalRedlineAcceptDlg
258 DECL_ABSTDLG_BASE(AbstractSwModalRedlineAcceptDlg_Impl,SwModalRedlineAcceptDlg )
259 virtual void AcceptAll( sal_Bool bAccept );
261 //add for SwModalRedlineAcceptDlg end
263 //for SwGlossaryDlg begin
264 class SwGlossaryDlg;
265 class AbstractGlossaryDlg_Impl : public AbstractGlossaryDlg
267 DECL_ABSTDLG_BASE(AbstractGlossaryDlg_Impl,SwGlossaryDlg)
268 virtual String GetCurrGrpName() const;
269 virtual String GetCurrShortName() const;
271 //for SwGlossaryDlg end
273 //for SwFldInputDlg begin
274 class SwFldInputDlg;
275 class AbstractFldInputDlg_Impl : public AbstractFldInputDlg
277 DECL_ABSTDLG_BASE(AbstractFldInputDlg_Impl,SwFldInputDlg)
278 //from class SalFrame
279 virtual void SetWindowState( const OString & rStr ) ;
280 virtual OString GetWindowState( sal_uLong nMask = WINDOWSTATE_MASK_ALL ) const ;
282 //for SwFldInputDlg end
284 //for SwInsFootNoteDlg begin
285 class SwInsFootNoteDlg;
286 class AbstractInsFootNoteDlg_Impl : public AbstractInsFootNoteDlg
288 DECL_ABSTDLG_BASE(AbstractInsFootNoteDlg_Impl,SwInsFootNoteDlg)
289 virtual String GetFontName();
290 virtual sal_Bool IsEndNote();
291 virtual String GetStr();
292 //from class Window
293 virtual void SetHelpId( const OString& sHelpId );
294 virtual void SetText( const OUString& rStr );
296 //for SwInsFootNoteDlg end
298 //for SwInsTableDlg begin
299 class SwInsTableDlg;
300 class AbstractInsTableDlg_Impl : public AbstractInsTableDlg
302 DECL_ABSTDLG_BASE(AbstractInsTableDlg_Impl,SwInsTableDlg)
303 virtual void GetValues( String& rName, sal_uInt16& rRow, sal_uInt16& rCol,
304 SwInsertTableOptions& rInsTblFlags, String& rTableAutoFmtName,
305 SwTableAutoFmt *& prTAFmt );
307 //for SwInsTableDlg end
309 //for SwJavaEditDialog begin
310 class SwJavaEditDialog;
311 class AbstractJavaEditDialog_Impl : public AbstractJavaEditDialog
313 DECL_ABSTDLG_BASE(AbstractJavaEditDialog_Impl,SwJavaEditDialog)
314 virtual OUString GetText();
315 virtual String GetType();
316 virtual sal_Bool IsUrl();
317 virtual sal_Bool IsNew();
318 virtual bool IsUpdate();
320 //for SwJavaEditDialog end
322 //for SwMailMergeDlg begin
323 class SwMailMergeDlg;
324 class AbstractMailMergeDlg_Impl : public AbstractMailMergeDlg
326 DECL_ABSTDLG_BASE(AbstractMailMergeDlg_Impl,SwMailMergeDlg)
327 virtual sal_uInt16 GetMergeType() ;
328 virtual const OUString& GetSaveFilter() const;
329 virtual const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > GetSelection() const ;
330 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> GetResultSet() const;
331 virtual bool IsSaveIndividualDocs() const;
332 virtual bool IsGenerateFromDataBase() const;
333 virtual String GetColumnName() const;
334 virtual String GetPath() const;
336 //for SwMailMergeDlg end
337 //for SwMailMergeCreateFromDlg begin
338 class SwMailMergeCreateFromDlg;
339 class AbstractMailMergeCreateFromDlg_Impl : public AbstractMailMergeCreateFromDlg
341 DECL_ABSTDLG_BASE(AbstractMailMergeCreateFromDlg_Impl,SwMailMergeCreateFromDlg)
342 virtual sal_Bool IsThisDocument() const ;
344 //for SwMailMergeCreateFromDlg end
345 //for SwMailMergeFieldConnectionsDlg begin
346 class SwMailMergeFieldConnectionsDlg;
347 class AbstractMailMergeFieldConnectionsDlg_Impl : public AbstractMailMergeFieldConnectionsDlg
349 DECL_ABSTDLG_BASE(AbstractMailMergeFieldConnectionsDlg_Impl,SwMailMergeFieldConnectionsDlg)
350 virtual sal_Bool IsUseExistingConnections() const ;
352 //for SwMailMergeFieldConnectionsDlg end
354 //for SwMultiTOXTabDialog begin
355 class SwMultiTOXTabDialog;
356 class AbstractMultiTOXTabDialog_Impl : public AbstractMultiTOXTabDialog
358 DECL_ABSTDLG_BASE(AbstractMultiTOXTabDialog_Impl,SwMultiTOXTabDialog)
359 virtual SwForm* GetForm(CurTOXType eType);
360 virtual CurTOXType GetCurrentTOXType() const ;
361 virtual SwTOXDescription& GetTOXDescription(CurTOXType eTOXTypes);
362 //from SfxTabDialog
363 virtual const SfxItemSet* GetOutputItemSet() const;
365 //for SwMultiTOXTabDialog end
367 //for SwEditRegionDlg begin
368 class SwEditRegionDlg;
369 class AbstractEditRegionDlg_Impl : public AbstractEditRegionDlg
371 DECL_ABSTDLG_BASE(AbstractEditRegionDlg_Impl,SwEditRegionDlg)
372 virtual void SelectSection(const String& rSectionName);
374 //for SwEditRegionDlg end
375 //for SwInsertSectionTabDialog begin
376 class SwInsertSectionTabDialog;
377 class AbstractInsertSectionTabDialog_Impl : public AbstractInsertSectionTabDialog
379 DECL_ABSTDLG_BASE(AbstractInsertSectionTabDialog_Impl,SwInsertSectionTabDialog)
380 virtual void SetSectionData(SwSectionData const& rSect);
382 //for SwInsertSectionTabDialog end
384 //for SwIndexMarkFloatDlg begin
385 class SwIndexMarkFloatDlg;
386 class AbstractIndexMarkFloatDlg_Impl : public AbstractMarkFloatDlg
388 DECL_ABSTDLG_BASE(AbstractIndexMarkFloatDlg_Impl,SwIndexMarkFloatDlg)
389 virtual void ReInitDlg(SwWrtShell& rWrtShell);
390 virtual Window * GetWindow(); //this method is added for return a Window type pointer
392 //for SwIndexMarkFloatDlg end
394 //for SwAuthMarkFloatDlg begin
395 class SwAuthMarkFloatDlg;
396 class AbstractAuthMarkFloatDlg_Impl : public AbstractMarkFloatDlg
398 DECL_ABSTDLG_BASE(AbstractAuthMarkFloatDlg_Impl,SwAuthMarkFloatDlg)
399 virtual void ReInitDlg(SwWrtShell& rWrtShell);
400 virtual Window * GetWindow(); //this method is added for return a Window type pointer
402 //for SwAuthMarkFloatDlg end
404 class SwMailMergeWizard;
405 class AbstractMailMergeWizard_Impl : public AbstractMailMergeWizard
407 SwMailMergeWizard* pDlg;
408 Link aEndDlgHdl;
410 DECL_LINK( EndDialogHdl, SwMailMergeWizard* );
411 public:
412 AbstractMailMergeWizard_Impl( SwMailMergeWizard* p )
413 : pDlg(p)
415 virtual ~AbstractMailMergeWizard_Impl();
416 virtual void StartExecuteModal( const Link& rEndDialogHdl );
417 virtual long GetResult();
419 virtual void SetReloadDocument(const String& rURL);
420 virtual const String& GetReloadDocument() const;
421 virtual sal_Bool ShowPage( sal_uInt16 nLevel );
422 virtual sal_uInt16 GetRestartPage() const;
425 //------------------------------------------------------------------------
426 //AbstractDialogFactory_Impl implementations
427 class SwAbstractDialogFactory_Impl : public SwAbstractDialogFactory
430 public:
431 virtual ~SwAbstractDialogFactory_Impl() {}
433 virtual SfxAbstractDialog* CreateSfxDialog( Window* pParent, //add for SvxMeasureDialog & SvxConnectionDialog
434 const SfxItemSet& rAttr,
435 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame,
436 sal_uInt32 nResId
438 virtual AbstractSwWordCountFloatDlg* CreateSwWordCountDialog(SfxBindings* pBindings,
439 SfxChildWindow* pChild, Window *pParent, SfxChildWinInfo* pInfo);
440 virtual AbstractSwInsertAbstractDlg * CreateSwInsertAbstractDlg(Window* pParent);
441 virtual AbstractSwAsciiFilterDlg* CreateSwAsciiFilterDlg ( Window* pParent, SwDocShell& rDocSh,
442 SvStream* pStream ); //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); // add for SwBreakDlg
445 virtual VclAbstractDialog * CreateSwChangeDBDlg(SwView& rVw); //add for SwChangeDBDlg
446 virtual SfxAbstractTabDialog * CreateSwCharDlg(Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet,
447 const String* pFmtStr = 0, sal_Bool bIsDrwTxtDlg = sal_False); // add for SwCharDlg
448 virtual AbstractSwConvertTableDlg* CreateSwConvertTableDlg(SwView& rView, 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 //add for DropDownFieldDialog
458 virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog (Window *pParent, SwWrtShell &rSh,
459 SwField* pField, sal_Bool bNextButton = sal_False);
460 virtual SfxAbstractTabDialog* CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, sal_Bool bInsert,int nResId ); //add for SwEnvDlg
461 virtual AbstractSwLabDlg* CreateSwLabDlg ( Window* pParent, const SfxItemSet& rSet, //add for SwLabDlg
462 SwNewDBMgr* pNewDBMgr, sal_Bool bLabel,int nResId );
464 virtual SwLabDlgMethod GetSwLabDlgStaticMethod (); //add for SwLabDlg
465 virtual SfxAbstractTabDialog* CreateSwParaDlg ( Window *pParent, //add for SwParaDlg
466 SwView& rVw,
467 const SfxItemSet& rCoreSet,
468 sal_uInt8 nDialogMode,
469 int nResId,
470 const String *pCollName = 0,
471 sal_Bool bDraw = sal_False,
472 sal_uInt16 nDefPage = 0);
474 virtual AbstractSwSelGlossaryDlg * CreateSwSelGlossaryDlg ( Window * pParent, const String &rShortName, int nResId ); //add for SwSelGlossaryDlg
475 virtual VclAbstractDialog * CreateVclAbstractDialog ( Window * pParent, SwWrtShell &rSh, int nResId ); //add for SwTableHeightDlg SwSortDlg
476 virtual AbstractSplitTableDialog * CreateSplitTblDialog ( Window * pParent, SwWrtShell &rSh ); //add for SwSplitTblDlg
478 virtual AbstractSwAutoFormatDlg * CreateSwAutoFormatDlg( Window* pParent, SwWrtShell* pShell, //add for SwAutoFormatDlg
479 sal_Bool bSetAutoFmt = sal_True,
480 const SwTableAutoFmt* pSelFmt = 0 );
481 virtual SfxAbstractDialog * CreateSwBorderDlg (Window* pParent, SfxItemSet& rSet, sal_uInt16 nType,int nResId );//add for SwBorderDlg
483 virtual SfxAbstractDialog * CreateSwWrapDlg ( Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, sal_Bool bDrawMode, int nResId ); //add for SwWrapDlg
484 virtual VclAbstractDialog * CreateSwTableWidthDlg(Window *pParent, SwTableFUNC &rFnc);
485 virtual SfxAbstractTabDialog* CreateSwTableTabDlg(Window* pParent, SfxItemPool& Pool,
486 const SfxItemSet* pItemSet, SwWrtShell* pSh); //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 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > & xNamed,
491 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xNameAccess);
492 virtual AbstractSwModalRedlineAcceptDlg * CreateSwModalRedlineAcceptDlg(Window *pParent); //add for SwModalRedlineAcceptDlg
494 virtual VclAbstractDialog* CreateTblMergeDialog(Window* pParent, sal_Bool& rWithPrev); //add for SwMergeTblDlg
495 virtual SfxAbstractTabDialog* CreateFrmTabDialog( int nResId,
496 SfxViewFrame *pFrame, Window *pParent,
497 const SfxItemSet& rCoreSet,
498 sal_Bool bNewFrm = sal_True,
499 sal_uInt16 nResType = DLG_FRM_STD,
500 sal_Bool bFmt = sal_False,
501 sal_uInt16 nDefPage = 0,
502 const String* pFmtStr = 0); //add for SwFrmDlg
503 virtual SfxAbstractApplyTabDialog* CreateTemplateDialog(
504 Window* pParent,
505 SfxStyleSheetBase& rBase,
506 sal_uInt16 nRegion,
507 const sal_uInt16 nSlot = 0,
508 SwWrtShell* pActShell = 0,
509 sal_Bool bNew = sal_False ); //add for SwTemplateDlg
510 virtual AbstractGlossaryDlg* CreateGlossaryDlg(SfxViewFrame* pViewFrame,
511 SwGlossaryHdl* pGlosHdl,
512 SwWrtShell *pWrtShell); //add for SwGlossaryDlg
513 virtual AbstractFldInputDlg* CreateFldInputDlg(Window *pParent,
514 SwWrtShell &rSh, SwField* pField, bool bNextButton = false); //add for SwFldInputDlg
515 virtual AbstractInsFootNoteDlg* CreateInsFootNoteDlg(
516 Window * pParent, SwWrtShell &rSh, sal_Bool bEd = sal_False); //add for SwInsFootNoteDlg
517 virtual VclAbstractDialog * CreateTitlePageDlg ( Window * pParent );
518 virtual VclAbstractDialog * CreateVclSwViewDialog(SwView& rView); //add for SwInsRowColDlg, SwLineNumberingDlg
519 virtual AbstractInsTableDlg* CreateInsTableDlg(SwView& rView); //add for SwInsTableDlg
520 virtual AbstractJavaEditDialog* CreateJavaEditDialog(Window* pParent,
521 SwWrtShell* pWrtSh); //add for SwJavaEditDialog
522 virtual AbstractMailMergeDlg* CreateMailMergeDlg( int nResId,
523 Window* pParent, SwWrtShell& rSh,
524 const String& rSourceName,
525 const String& rTblName,
526 sal_Int32 nCommandType,
527 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& xConnection,
528 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >* pSelection = 0 ); //add for SwMailMergeDlg
529 virtual AbstractMailMergeCreateFromDlg* CreateMailMergeCreateFromDlg( int nResId,
530 Window* pParent ); //add for SwMailMergeCreateFromDlg
531 virtual AbstractMailMergeFieldConnectionsDlg* CreateMailMergeFieldConnectionsDlg( int nResId,
532 Window* pParent ); //add for SwMailMergeFieldConnectionsDlg
533 virtual VclAbstractDialog* CreateMultiTOXMarkDlg( int nResId,
534 Window* pParent, SwTOXMgr &rTOXMgr ); //add for SwMultiTOXMarkDlg
535 virtual SfxAbstractTabDialog* CreateSwTabDialog( int nResId,
536 Window* pParent,
537 const SfxItemSet* pSwItemSet,
538 SwWrtShell &); //add for SwSvxNumBulletTabDialog, SwOutlineTabDialog
539 virtual AbstractMultiTOXTabDialog* CreateMultiTOXTabDialog( int nResId,
540 Window* pParent, const SfxItemSet& rSet,
541 SwWrtShell &rShell,
542 SwTOXBase* pCurTOX, sal_uInt16 nToxType = USHRT_MAX,
543 sal_Bool bGlobal = sal_False); //add for SwMultiTOXTabDialog
544 virtual AbstractEditRegionDlg* CreateEditRegionDlg(Window* pParent, SwWrtShell& rWrtSh); //add for SwEditRegionDlg
545 virtual AbstractInsertSectionTabDialog* CreateInsertSectionTabDialog( int nResId,
546 Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh); //add for SwInsertSectionTabDialog
547 virtual AbstractMarkFloatDlg* CreateIndexMarkFloatDlg(
548 SfxBindings* pBindings,
549 SfxChildWindow* pChild,
550 Window *pParent,
551 SfxChildWinInfo* pInfo,
552 sal_Bool bNew=sal_True); //add for SwIndexMarkFloatDlg
553 virtual AbstractMarkFloatDlg* CreateAuthMarkFloatDlg(
554 SfxBindings* pBindings,
555 SfxChildWindow* pChild,
556 Window *pParent,
557 SfxChildWinInfo* pInfo,
558 sal_Bool bNew=sal_True); //add for SwAuthMarkFloatDlg
559 virtual VclAbstractDialog * CreateIndexMarkModalDlg(
560 Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark ); //add for SwIndexMarkModalDlg
562 virtual AbstractMailMergeWizard* CreateMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rConfigItem);
564 //add for static func in SwGlossaryDlg
565 virtual GlossaryGetCurrGroup GetGlossaryCurrGroupFunc();
566 virtual GlossarySetActGroup SetGlossaryActGroupFunc();
568 // For TabPage
569 virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId );
571 virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId );
575 #endif
577 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */