1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: swdlgfact.cxx,v $
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 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sw.hxx"
34 #ifdef SW_DLLIMPLEMENTATION
35 #undef SW_DLLIMPLEMENTATION
38 #include "swdlgfact.hxx"
39 #include <svtools/style.hxx>
40 #ifndef _SVX_SVXIDS_HRC
41 #include <svx/svxids.hrc>
50 #include "globals.hrc"
55 #include <regionsw.hrc>
58 #include <wordcountdialog.hxx>
59 #include "abstract.hxx" // add for SwInsertAbstractDlg
60 #include "addrdlg.hxx" // add for SwAddrDlg
61 #include "ascfldlg.hxx" // add for SwAsciiFilterDlg
62 #include "bookmark.hxx" //add for SwInsertBookmarkDlg
63 #include "break.hxx" //add for SwBreakDlg
64 #include "changedb.hxx" //add for SwChangeDBDlg
65 #include "chrdlg.hxx" // add for SwCharDlg
66 #include "convert.hxx" //add for SwConvertTableDlg
67 #include "cption.hxx" //add for SwCaptionDialog
68 #include "dbinsdlg.hxx" //add for SwInsertDBColAutoPilot
69 #include "docfnote.hxx" //add for SwFootNoteOptionDlg
70 #include "docstdlg.hxx" //add for SwDocStatPage
71 #include "DropDownFieldDialog.hxx" //add for DropDownFieldDialog
72 #include "envlop.hxx" //add for SwEnvDlg
73 #include "label.hxx" //add for SwLabDlg
74 #include "drpcps.hxx" //add for SwDropCapsDlg
75 #include "swuipardlg.hxx" //add for SwParaDlg
76 #include "pattern.hxx" //add for SwBackgroundDlg
77 #include "rowht.hxx" //add for SwTableHeightDlg
78 #include "selglos.hxx" //add for SwSelGlossaryDlg
79 #include "splittbl.hxx" //add for SwSplitTblDlg
80 #include "srtdlg.hxx" //add for SwSortDlg
81 #include "tautofmt.hxx" //add for SwAutoFormatDlg
82 #include "tblnumfm.hxx" //add for SwNumFmtDlg
83 #include "uiborder.hxx" //add for SwBorderDlg
84 #include "wrap.hxx" //add for SwWrapDlg
85 #include "colwd.hxx" //add for SwTableWidthDlg
86 #include "tabledlg.hxx" //add for SwTableTabDlg
87 #include "fldtdlg.hxx" //add for SwFldDlg
88 #include "fldedt.hxx" //add for SwFldEditDlg
89 #include "swrenamexnameddlg.hxx" //add for SwRenameXNamedDlg
90 #include "swmodalredlineacceptdlg.hxx" //add for SwModalRedlineAcceptDlg
91 #include <frmdlg.hxx> //add for SwFrmDlg
92 #include <tmpdlg.hxx> //add for SwTemplateDlg
93 #include <glossary.hxx> //add for SwGlossaryDlg
94 #include <inpdlg.hxx> //add for SwFldInputDlg
95 #include <insfnote.hxx> //add for SwInsFootNoteDlg
96 #include <insrule.hxx> //add for SwInsertGrfRulerDlg
97 #include <instable.hxx> //add for SwInsTableDlg
98 #include <javaedit.hxx> //add for SwJavaEditDialog
99 #include <linenum.hxx> //add for SwLineNumberingDlg
100 #include <mailmrge.hxx> //add for SwMailMergeDlg, SwMailMergeCreateFromDlg, SwMailMergeFieldConnectionsDlg
101 #include <mergetbl.hxx> //add for SwMergeTblDlg
102 #include <multmrk.hxx> //add for SwMultiTOXMarkDlg
103 #include <num.hxx> //add for SwSvxNumBulletTabDialog
104 #include <outline.hxx> //add for SwOutlineTabDialog
105 #include <column.hxx> //add for SwColumnDlg
106 #include <cnttab.hxx> //add for SwMultiTOXTabDialog
107 #include <swuicnttab.hxx> //add for SwMultiTOXTabDialog
108 #include <regionsw.hxx> //add for SwEditRegionDlg, SwInsertSectionTabDialog
109 #include <optcomp.hxx> //add for SwCompatibilityOptPage
110 #include <optload.hxx> //add for SwLoadOptPage
111 #include <optpage.hxx> //add for OptPage
112 #include <swuiidxmrk.hxx> //add for SwIndexMarkDlg, SwAuthMarkDlg, SwIndexMarkModalDlg, SwAuthMarkModalDlg
113 #include <svx/dialogs.hrc>
114 #include <mailmergewizard.hxx>
115 #include <mailconfigpage.hxx>
117 using namespace ::com::sun::star
;
119 IMPL_ABSTDLG_BASE(AbstractSwWordCountDialog_Impl
);
120 IMPL_ABSTDLG_BASE(AbstractSwInsertAbstractDlg_Impl
);
121 IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl
);
122 IMPL_ABSTDLG_BASE(AbstractSwAsciiFilterDlg_Impl
);
123 IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl
);
124 IMPL_ABSTDLG_BASE(AbstractSplitTableDialog_Impl
);
125 IMPL_ABSTDLG_BASE(AbstractSwBreakDlg_Impl
); //add for SwBreakDlg
126 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl
); //add for SwCharDlg, SwFootNoteOptionDlg, SwEnvDlg SwParaDlg SwTableTabDlg
127 IMPL_ABSTDLG_BASE(AbstractSwConvertTableDlg_Impl
); //add for SwConvertTableDlg
128 IMPL_ABSTDLG_BASE(AbstractSwInsertDBColAutoPilot_Impl
); //add for SwInsertDBColAutoPilot
129 IMPL_ABSTDLG_BASE(AbstractDropDownFieldDialog_Impl
); //add for DropDownFieldDialog
130 IMPL_ABSTDLG_BASE(AbstarctSwLabDlg_Impl
);//add for SwLabDlg
131 IMPL_ABSTDLG_BASE(AbstarctSwSelGlossaryDlg_Impl
);//add for SwSelGlossaryDlg
132 IMPL_ABSTDLG_BASE(AbstractSwAutoFormatDlg_Impl
); //add for SwAutoFormatDlg
133 IMPL_ABSTDLG_BASE(AbstractSwFldDlg_Impl
); //add for SwFldDlg
134 IMPL_ABSTDLG_BASE(AbstractSwRenameXNamedDlg_Impl
); //add for SwRenameXNamedDlg
135 IMPL_ABSTDLG_BASE(AbstractSwModalRedlineAcceptDlg_Impl
); //add for SwModalRedlineAcceptDlg
136 IMPL_ABSTDLG_BASE(AbstractGlossaryDlg_Impl
);
137 IMPL_ABSTDLG_BASE(AbstractFldInputDlg_Impl
);
138 IMPL_ABSTDLG_BASE(AbstractInsFootNoteDlg_Impl
);
139 IMPL_ABSTDLG_BASE(AbstractInsertGrfRulerDlg_Impl
);
140 IMPL_ABSTDLG_BASE(AbstractInsTableDlg_Impl
);
141 IMPL_ABSTDLG_BASE(AbstractJavaEditDialog_Impl
);
142 IMPL_ABSTDLG_BASE(AbstractMailMergeDlg_Impl
);
143 IMPL_ABSTDLG_BASE(AbstractMailMergeCreateFromDlg_Impl
);
144 IMPL_ABSTDLG_BASE(AbstractMailMergeFieldConnectionsDlg_Impl
);
145 IMPL_ABSTDLG_BASE(AbstractMultiTOXTabDialog_Impl
);
146 IMPL_ABSTDLG_BASE(AbstractEditRegionDlg_Impl
);
147 IMPL_ABSTDLG_BASE(AbstractInsertSectionTabDialog_Impl
);
148 IMPL_ABSTDLG_BASE(AbstractIndexMarkFloatDlg_Impl
);
149 IMPL_ABSTDLG_BASE(AbstractAuthMarkFloatDlg_Impl
);
151 // AbstractTabDialog_Impl begin
152 void AbstractTabDialog_Impl::SetCurPageId( USHORT nId
)
154 pDlg
->SetCurPageId( nId
);
157 const SfxItemSet
* AbstractTabDialog_Impl::GetOutputItemSet() const
159 return pDlg
->GetOutputItemSet();
162 const USHORT
* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool
& pItem
)
164 return pDlg
->GetInputRanges( pItem
);
167 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet
* pInSet
)
169 pDlg
->SetInputSet( pInSet
);
172 void AbstractTabDialog_Impl::SetText( const XubString
& rStr
)
174 pDlg
->SetText( rStr
);
176 String
AbstractTabDialog_Impl::GetText() const
178 return pDlg
->GetText();
181 //add for AbstractTabDialog_Impl end
183 void AbstractSwWordCountDialog_Impl::SetValues(const SwDocStat
& rCurrent
, const SwDocStat
& rDoc
)
185 pDlg
->SetValues(rCurrent
, rDoc
);
188 //add for SwInsertAbstractDlg begin
189 BYTE
AbstractSwInsertAbstractDlg_Impl::GetLevel() const
191 return pDlg
->GetLevel();
193 BYTE
AbstractSwInsertAbstractDlg_Impl::GetPara() const
195 return pDlg
->GetPara();
197 //add for SwInsertAbstractDlg end
199 //add for SwAddrDlg, SwDropCapsDlg ,SwBackgroundDlg, SwNumFmtDlg SwBorderDlg SwWrapDlg SwFldEditDlg begin
200 const SfxItemSet
* AbstractSfxDialog_Impl::GetOutputItemSet() const
202 return pDlg
->GetOutputItemSet();
205 void AbstractSfxDialog_Impl::SetText( const XubString
& rStr
)
207 pDlg
->SetText( rStr
);
209 String
AbstractSfxDialog_Impl::GetText() const
211 return pDlg
->GetText();
214 //add for SwAddrDlg, SwDropCapsDlg ,SwBackgroundDlg, SwNumFmtDlg SwBorderDlg SwWrapDlg SwFldEditDlg end
216 //add for SwAsciiFilterDlg begin
217 void AbstractSwAsciiFilterDlg_Impl::FillOptions( SwAsciiOptions
& rOptions
)
219 pDlg
->FillOptions(rOptions
);
221 //add for SwAsciiFilterDlg end
223 //add for SwSplitTblDlg
224 sal_uInt16
AbstractSplitTableDialog_Impl::GetSplitMode()
226 return pDlg
->GetSplitMode();
228 //add for SwBreakDlg begin
229 String
AbstractSwBreakDlg_Impl::GetTemplateName()
231 return pDlg
->GetTemplateName();
234 USHORT
AbstractSwBreakDlg_Impl:: GetKind()
236 return pDlg
->GetKind();
239 USHORT
AbstractSwBreakDlg_Impl:: GetPageNumber()
241 return pDlg
->GetPageNumber();
243 //add for SwBreakDlg end
245 //add for SwConvertTableDlg begin
246 void AbstractSwConvertTableDlg_Impl::GetValues( sal_Unicode
& rDelim
,SwInsertTableOptions
& rInsTblFlags
,
247 SwTableAutoFmt
*& prTAFmt
)
249 pDlg
->GetValues(rDelim
,rInsTblFlags
, prTAFmt
);
251 //add for SwConvertTableDlg end
253 //add for SwInsertDBColAutoPilot begin
254 void AbstractSwInsertDBColAutoPilot_Impl::DataToDoc( const uno::Sequence
< uno::Any
>& rSelection
,
255 uno::Reference
< sdbc::XDataSource
> rxSource
,
256 uno::Reference
< sdbc::XConnection
> xConnection
,
257 uno::Reference
< sdbc::XResultSet
> xResultSet
)
259 pDlg
->DataToDoc(rSelection
, rxSource
, xConnection
, xResultSet
);
261 //add for SwInsertDBColAutoPilot end
263 // add for DropDownFieldDialog begin
264 ByteString
AbstractDropDownFieldDialog_Impl::GetWindowState( ULONG nMask
) const
266 return pDlg
->GetWindowState(nMask
);
268 void AbstractDropDownFieldDialog_Impl::SetWindowState( const ByteString
& rStr
)
270 pDlg
->SetWindowState(rStr
);
272 //add for DropDownFieldDialog end
274 //add for SwLabDlg begin
276 void AbstarctSwLabDlg_Impl::SetCurPageId( USHORT nId
)
278 pDlg
->SetCurPageId( nId
);
281 const SfxItemSet
* AbstarctSwLabDlg_Impl::GetOutputItemSet() const
283 return pDlg
->GetOutputItemSet();
286 const USHORT
* AbstarctSwLabDlg_Impl::GetInputRanges(const SfxItemPool
& pItem
)
288 return pDlg
->GetInputRanges( pItem
);
291 void AbstarctSwLabDlg_Impl::SetInputSet( const SfxItemSet
* pInSet
)
293 pDlg
->SetInputSet( pInSet
);
296 void AbstarctSwLabDlg_Impl::SetText( const XubString
& rStr
)
298 pDlg
->SetText( rStr
);
300 String
AbstarctSwLabDlg_Impl::GetText() const
302 return pDlg
->GetText();
304 const String
& AbstarctSwLabDlg_Impl::GetBusinessCardStr() const
306 return pDlg
->GetBusinessCardStr();
308 Printer
* AbstarctSwLabDlg_Impl::GetPrt()
310 return pDlg
->GetPrt();
312 //add for SwLabDlg end
315 //add for SwSelGlossaryDlg begin
317 void AbstarctSwSelGlossaryDlg_Impl::InsertGlos(const String
&rRegion
, const String
&rGlosName
)
319 pDlg
->InsertGlos( rRegion
, rGlosName
);
321 USHORT
AbstarctSwSelGlossaryDlg_Impl::GetSelectedIdx() const
323 return pDlg
->GetSelectedIdx();
325 void AbstarctSwSelGlossaryDlg_Impl::SelectEntryPos(USHORT nIdx
)
327 pDlg
->SelectEntryPos( nIdx
);
330 //add for SwSelGlossaryDlg end
332 //add for SwAutoFormatDlg begin
334 void AbstractSwAutoFormatDlg_Impl::FillAutoFmtOfIndex( SwTableAutoFmt
*& rToFill
) const
336 pDlg
->FillAutoFmtOfIndex(rToFill
);
338 //add for SwAutoFormatDlg end
340 //add for SwFldDlg begin
341 void AbstractSwFldDlg_Impl::SetCurPageId( USHORT nId
)
343 pDlg
->SetCurPageId( nId
);
346 const SfxItemSet
* AbstractSwFldDlg_Impl::GetOutputItemSet() const
348 return pDlg
->GetOutputItemSet();
351 const USHORT
* AbstractSwFldDlg_Impl::GetInputRanges(const SfxItemPool
& pItem
)
353 return pDlg
->GetInputRanges( pItem
);
356 void AbstractSwFldDlg_Impl::SetInputSet( const SfxItemSet
* pInSet
)
358 pDlg
->SetInputSet( pInSet
);
361 void AbstractSwFldDlg_Impl::SetText( const XubString
& rStr
)
363 pDlg
->SetText( rStr
);
365 String
AbstractSwFldDlg_Impl::GetText() const
367 return pDlg
->GetText();
369 void AbstractSwFldDlg_Impl::Start( BOOL bShowl
)
371 pDlg
->Start( bShowl
);
374 void AbstractSwFldDlg_Impl::Initialize(SfxChildWinInfo
*pInfo
)
376 pDlg
->Initialize( pInfo
);
379 void AbstractSwFldDlg_Impl::ReInitDlg()
383 void AbstractSwFldDlg_Impl::ActivateDatabasePage()
385 pDlg
->ActivateDatabasePage();
387 Window
* AbstractSwFldDlg_Impl::GetWindow()
389 return (Window
*)pDlg
;
391 void AbstractSwFldDlg_Impl::ShowPage( USHORT nId
)
397 //add for SwRenameXNamedDlg begin
399 void AbstractSwRenameXNamedDlg_Impl::SetForbiddenChars( const String
& rSet
)
401 pDlg
->SetForbiddenChars( rSet
);
404 void AbstractSwRenameXNamedDlg_Impl::SetAlternativeAccess(
405 STAR_REFERENCE( container::XNameAccess
) & xSecond
,
406 STAR_REFERENCE( container::XNameAccess
) & xThird
)
408 pDlg
->SetAlternativeAccess( xSecond
, xThird
);
410 //add for SwRenameXNamedDlg end
412 //add for SwModalRedlineAcceptDlg begin
414 void AbstractSwModalRedlineAcceptDlg_Impl::AcceptAll( BOOL bAccept
)
416 pDlg
->AcceptAll( bAccept
);
418 //add for SwModalRedlineAcceptDlg end
420 // AbstractGlossaryDlg_Impl begin
421 String
AbstractGlossaryDlg_Impl::GetCurrGrpName() const
423 return pDlg
->GetCurrGrpName();
426 String
AbstractGlossaryDlg_Impl::GetCurrShortName() const
428 return pDlg
->GetCurrShortName();
430 // AbstractGlossaryDlg_Impl end
432 // AbstractFldInputDlg_Impl begin
433 void AbstractFldInputDlg_Impl::SetWindowState( const ByteString
& rStr
)
435 pDlg
->SetWindowState( rStr
);
438 ByteString
AbstractFldInputDlg_Impl::GetWindowState( ULONG nMask
) const
440 return pDlg
->GetWindowState( nMask
);
442 // AbstractFldInputDlg_Impl end
444 // AbstractInsFootNoteDlg_Impl begin
445 String
AbstractInsFootNoteDlg_Impl::GetFontName()
447 return pDlg
->GetFontName();
449 BOOL
AbstractInsFootNoteDlg_Impl::IsEndNote()
451 return pDlg
->IsEndNote();
453 String
AbstractInsFootNoteDlg_Impl::GetStr()
455 return pDlg
->GetStr();
457 void AbstractInsFootNoteDlg_Impl::SetHelpId( ULONG nHelpId
)
459 pDlg
->SetHelpId( nHelpId
);
461 void AbstractInsFootNoteDlg_Impl::SetText( const XubString
& rStr
)
463 pDlg
->SetText( rStr
);
465 // AbstractInsFootNoteDlg_Impl end
467 // AbstractInsertGrfRulerDlg_Impl begin
468 String
AbstractInsertGrfRulerDlg_Impl::GetGraphicName()
470 return pDlg
->GetGraphicName();
472 BOOL
AbstractInsertGrfRulerDlg_Impl::IsSimpleLine()
474 return pDlg
->IsSimpleLine();
476 BOOL
AbstractInsertGrfRulerDlg_Impl::HasImages() const
478 return pDlg
->HasImages();
480 // AbstractInsertGrfRulerDlg_Impl end
482 // AbstractInsTableDlg_Impl begin
483 void AbstractInsTableDlg_Impl::GetValues( String
& rName
, USHORT
& rRow
, USHORT
& rCol
,
484 SwInsertTableOptions
& rInsTblFlags
, String
& rTableAutoFmtName
,
485 SwTableAutoFmt
*& prTAFmt
)
487 pDlg
->GetValues( rName
, rRow
, rCol
, rInsTblFlags
, rTableAutoFmtName
, prTAFmt
);
489 // AbstractInsTableDlg_Impl end
491 // AbstractJavaEditDialog_Impl begin
492 String
AbstractJavaEditDialog_Impl::GetText()
494 return pDlg
->GetText();
496 String
AbstractJavaEditDialog_Impl::GetType()
498 return pDlg
->GetType();
500 BOOL
AbstractJavaEditDialog_Impl::IsUrl()
502 return pDlg
->IsUrl();
504 BOOL
AbstractJavaEditDialog_Impl::IsNew()
506 return pDlg
->IsNew();
508 BOOL
AbstractJavaEditDialog_Impl::IsUpdate()
510 return pDlg
->IsUpdate();
512 // AbstractJavaEditDialog_Impl end
514 // AbstractMailMergeDlg_Impl begin
515 USHORT
AbstractMailMergeDlg_Impl::GetMergeType()
517 return pDlg
->GetMergeType();
519 const ::rtl::OUString
& AbstractMailMergeDlg_Impl::GetSaveFilter() const
521 return pDlg
->GetSaveFilter();
524 const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Any
> AbstractMailMergeDlg_Impl::GetSelection() const
526 return pDlg
->GetSelection();
528 uno::Reference
< sdbc::XResultSet
> AbstractMailMergeDlg_Impl::GetResultSet() const
530 return pDlg
->GetResultSet();
532 // AbstractMailMergeDlg_Impl end
533 // AbstractMailMergeCreateFromDlg_Impl begin
534 BOOL
AbstractMailMergeCreateFromDlg_Impl::IsThisDocument() const
536 return pDlg
->IsThisDocument();
538 // AbstractMailMergeCreateFromDlg_Impl end
539 //AbstractMailMergeFieldConnectionsDlg_Impl begin
540 BOOL
AbstractMailMergeFieldConnectionsDlg_Impl::IsUseExistingConnections() const
542 return pDlg
->IsUseExistingConnections();
544 // AbstractMailMergeFieldConnectionsDlg_Impl end
546 // AbstractMultiTOXTabDialog_Impl begin
547 SwForm
* AbstractMultiTOXTabDialog_Impl::GetForm(CurTOXType eType
)
549 return pDlg
->GetForm(eType
);
551 CurTOXType
AbstractMultiTOXTabDialog_Impl::GetCurrentTOXType() const
553 return pDlg
->GetCurrentTOXType();
555 SwTOXDescription
& AbstractMultiTOXTabDialog_Impl::GetTOXDescription(CurTOXType eTOXTypes
)
557 return pDlg
->GetTOXDescription(eTOXTypes
);
559 const SfxItemSet
* AbstractMultiTOXTabDialog_Impl::GetOutputItemSet() const
561 return pDlg
->GetOutputItemSet();
563 // AbstractMultiTOXTabDialog_Impl end
565 // AbstractEditRegionDlg_Impl begin
566 void AbstractEditRegionDlg_Impl::SelectSection(const String
& rSectionName
)
568 pDlg
->SelectSection(rSectionName
);
570 // AbstractEditRegionDlg_Impl end
571 //AbstractInsertSectionTabDialog_Impl begin
572 void AbstractInsertSectionTabDialog_Impl::SetSection(const SwSection
& rSect
)
574 pDlg
->SetSection( rSect
);
576 // AbstractInsertSectionTabDialog_Impl end
578 //AbstractIndexMarkFloatDlg_Impl begin
579 void AbstractIndexMarkFloatDlg_Impl::ReInitDlg(SwWrtShell
& rWrtShell
)
581 pDlg
->ReInitDlg( rWrtShell
);
583 Window
* AbstractIndexMarkFloatDlg_Impl::GetWindow()
585 return (Window
*)pDlg
;
587 // AbstractIndexMarkFloatDlg_Impl end
589 //AbstractAuthMarkFloatDlg_Impl begin
590 void AbstractAuthMarkFloatDlg_Impl::ReInitDlg(SwWrtShell
& rWrtShell
)
592 pDlg
->ReInitDlg( rWrtShell
);
594 Window
* AbstractAuthMarkFloatDlg_Impl::GetWindow()
596 return (Window
*)pDlg
;
598 // AbstractAuthMarkFloatDlg_Impl end
600 AbstractMailMergeWizard_Impl::~AbstractMailMergeWizard_Impl()
605 void AbstractMailMergeWizard_Impl::StartExecuteModal( const Link
& rEndDialogHdl
)
607 aEndDlgHdl
= rEndDialogHdl
;
608 pDlg
->StartExecuteModal(
609 LINK( this, AbstractMailMergeWizard_Impl
, EndDialogHdl
) );
612 long AbstractMailMergeWizard_Impl::GetResult()
614 return pDlg
->GetResult();
618 IMPL_LINK( AbstractMailMergeWizard_Impl
, EndDialogHdl
, SwMailMergeWizard
*, pDialog
)
620 IMPL_LINK( AbstractMailMergeWizard_Impl
, EndDialogHdl
, SwMailMergeWizard
*, EMPTYARG
)
623 DBG_ASSERT( pDialog
== pDlg
, "wrong dialog passed to EndDialogHdl!" );
625 aEndDlgHdl
.Call( this );
631 void AbstractMailMergeWizard_Impl::SetReloadDocument(const String
& rURL
)
633 pDlg
->SetReloadDocument(rURL
);
635 const String
& AbstractMailMergeWizard_Impl::GetReloadDocument() const
637 return pDlg
->GetReloadDocument();
639 BOOL
AbstractMailMergeWizard_Impl::ShowPage( USHORT nLevel
)
641 return pDlg
->skipUntil(nLevel
);
643 sal_uInt16
AbstractMailMergeWizard_Impl::GetRestartPage() const
645 return pDlg
->GetRestartPage();
648 //-------------- SwAbstractDialogFactory implementation--------------
650 AbstractSwWordCountDialog
* SwAbstractDialogFactory_Impl::CreateSwWordCountDialog(Window
* pParent
)
652 SwWordCountDialog
* pDlg
= new SwWordCountDialog( pParent
);
653 return new AbstractSwWordCountDialog_Impl( pDlg
);
656 //add for SwInsertAbstractDlg begin
657 AbstractSwInsertAbstractDlg
* SwAbstractDialogFactory_Impl::CreateSwInsertAbstractDlg( Window
* pParent
,
660 SwInsertAbstractDlg
* pDlg
=NULL
;
663 case DLG_INSERT_ABSTRACT
:
664 pDlg
= new SwInsertAbstractDlg( pParent
);
671 return new AbstractSwInsertAbstractDlg_Impl( pDlg
);
674 //add for SwInsertAbstractDlg end
676 SfxAbstractDialog
* SwAbstractDialogFactory_Impl::CreateSfxDialog( Window
* pParent
,
677 const SfxItemSet
& rSet
,
678 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>&,
682 SfxModalDialog
* pDlg
=NULL
;
686 pDlg
= new SwAddrDlg( pParent
, rSet
);
688 case DLG_SWDROPCAPS
:
689 pDlg
= new SwDropCapsDlg( pParent
, rSet
);
691 case RC_SWDLG_BACKGROUND
:
692 pDlg
= new SwBackgroundDlg( pParent
, rSet
);
694 case RC_DLG_SWNUMFMTDLG
:
695 pDlg
= new SwNumFmtDlg( pParent
, rSet
);
702 return new AbstractSfxDialog_Impl( pDlg
);
706 // add for SwAsciiFilterDlg begin
707 AbstractSwAsciiFilterDlg
* SwAbstractDialogFactory_Impl::CreateSwAsciiFilterDlg( Window
* pParent
,
712 SwAsciiFilterDlg
* pDlg
=NULL
;
715 case DLG_ASCII_FILTER
:
716 pDlg
= new SwAsciiFilterDlg( pParent
, rDocSh
, pStream
);
724 return new AbstractSwAsciiFilterDlg_Impl( pDlg
);
728 //add for SwAsciiFilterDlg end
730 // add for SwInsertBookmarkDlg begin
731 VclAbstractDialog
* SwAbstractDialogFactory_Impl::CreateSwInsertBookmarkDlg( Window
*pParent
,
739 case DLG_INSERT_BOOKMARK
:
740 pDlg
= new SwInsertBookmarkDlg( pParent
, rSh
, rReq
);
748 return new VclAbstractDialog_Impl( pDlg
);
752 //add for SwInsertBookmarkDlg end
754 //add for SwBreakDlg begin
756 AbstractSwBreakDlg
* SwAbstractDialogFactory_Impl::CreateSwBreakDlg ( Window
*pParent
,
760 SwBreakDlg
* pDlg
=NULL
;
764 pDlg
= new SwBreakDlg( pParent
, rSh
);
772 return new AbstractSwBreakDlg_Impl( pDlg
);
775 //add for SwBreakDlg end
777 // add for SwChangeDBDlg begin
778 VclAbstractDialog
* SwAbstractDialogFactory_Impl::CreateSwChangeDBDlg( SwView
& rVw
, int nResId
)
784 pDlg
= new SwChangeDBDlg( rVw
);
792 return new VclAbstractDialog_Impl( pDlg
);
796 // add for SwChangeDBDlg end
798 // add for SwCharDlg begin
799 SfxAbstractTabDialog
* SwAbstractDialogFactory_Impl::CreateSwCharDlg(Window
* pParent
, SwView
& pVw
, const SfxItemSet
& rCoreSet
, int nResId
, // add for SwCharDlg
800 const String
* pFmtStr
, BOOL bIsDrwTxtDlg
)
803 SfxTabDialog
* pDlg
=NULL
;
807 pDlg
= new SwCharDlg( pParent
, pVw
, rCoreSet
, pFmtStr
, bIsDrwTxtDlg
);
814 return new AbstractTabDialog_Impl( pDlg
);
818 // add for SwCharDlg end
820 //add for SwConvertTableDlg begin
821 AbstractSwConvertTableDlg
* SwAbstractDialogFactory_Impl::CreateSwConvertTableDlg (
822 SwView
& rView
,int nResId
, bool bToTable
)
824 SwConvertTableDlg
* pDlg
=NULL
;
827 case DLG_CONV_TEXT_TABLE
:
828 pDlg
= new SwConvertTableDlg( rView
, bToTable
);
835 return new AbstractSwConvertTableDlg_Impl( pDlg
);
839 //add for SwConvertTableDlg end
841 //add for SwCaptionDialog begin
842 VclAbstractDialog
* SwAbstractDialogFactory_Impl::CreateSwCaptionDialog ( Window
*pParent
, SwView
&rV
,int nResId
)
848 pDlg
= new SwCaptionDialog( pParent
, rV
);
856 return new VclAbstractDialog_Impl( pDlg
);
859 //add for SwCaptionDialog end
861 //add for SwInsertDBColAutoPilot begin
863 AbstractSwInsertDBColAutoPilot
* SwAbstractDialogFactory_Impl::CreateSwInsertDBColAutoPilot( SwView
& rView
, // add for SwInsertDBColAutoPilot
864 uno::Reference
< sdbc::XDataSource
> rxSource
,
865 uno::Reference
<sdbcx::XColumnsSupplier
> xColSupp
,
866 const SwDBData
& rData
, int nResId
)
868 SwInsertDBColAutoPilot
* pDlg
=NULL
;
871 case DLG_AP_INSERT_DB_SEL
:
872 pDlg
= new SwInsertDBColAutoPilot( rView
, rxSource
, xColSupp
, rData
);
880 return new AbstractSwInsertDBColAutoPilot_Impl( pDlg
);
883 //add for SwInsertDBColAutoPilot end
884 //add for SwFootNoteOptionDlg begin
885 SfxAbstractTabDialog
* SwAbstractDialogFactory_Impl::CreateSwFootNoteOptionDlg( Window
*pParent
, SwWrtShell
&rSh
,int nResId
)
887 SfxTabDialog
* pDlg
=NULL
;
890 case DLG_DOC_FOOTNOTE
:
891 pDlg
= new SwFootNoteOptionDlg( pParent
, rSh
);
899 return new AbstractTabDialog_Impl( pDlg
);
902 //add for SwFootNoteOptionDlg begin
905 //add for DropDownFieldDialog begin
907 AbstractDropDownFieldDialog
* SwAbstractDialogFactory_Impl::CreateDropDownFieldDialog ( Window
*pParent
, SwWrtShell
&rSh
, //add for DropDownFieldDialog
908 SwField
* pField
,int nResId
, BOOL bNextButton
)
910 sw::DropDownFieldDialog
* pDlg
=NULL
;
913 case DLG_FLD_DROPDOWN
:
914 pDlg
= new sw::DropDownFieldDialog( pParent
, rSh
, pField
, bNextButton
);
922 return new AbstractDropDownFieldDialog_Impl( pDlg
);
925 //add for DropDownFieldDialog end
927 //add for SwEnvDlg begin
928 SfxAbstractTabDialog
* SwAbstractDialogFactory_Impl::CreateSwEnvDlg ( Window
* pParent
, const SfxItemSet
& rSet
,
929 SwWrtShell
* pWrtSh
, Printer
* pPrt
,
930 BOOL bInsert
,int nResId
) //add for SwEnvDlg
932 SfxTabDialog
* pDlg
=NULL
;
936 pDlg
= new SwEnvDlg( pParent
, rSet
, pWrtSh
,pPrt
, bInsert
);
944 return new AbstractTabDialog_Impl( pDlg
);
947 //add for SwEnvDlg end
949 //add for SwLabDlg begin
951 AbstarctSwLabDlg
* SwAbstractDialogFactory_Impl::CreateSwLabDlg ( Window
* pParent
, const SfxItemSet
& rSet
, //add for SwLabDlg
952 SwNewDBMgr
* pNewDBMgr
, BOOL bLabel
,int nResId
)
958 pDlg
= new SwLabDlg( pParent
, rSet
, pNewDBMgr
,bLabel
);
966 return new AbstarctSwLabDlg_Impl( pDlg
);
970 SwLabDlgMethod
SwAbstractDialogFactory_Impl::GetSwLabDlgStaticMethod ()
972 return SwLabDlg::UpdateFieldInformation
;
975 //add for SwLabDlg end
977 //add for SwParaDlg begin
978 SfxAbstractTabDialog
* SwAbstractDialogFactory_Impl::CreateSwParaDlg ( Window
*pParent
, SwView
& rVw
,
979 const SfxItemSet
& rCoreSet
,
982 const String
*pCollName
,
983 BOOL bDraw
, UINT16 nDefPage
)
985 SfxTabDialog
* pDlg
=NULL
;
990 pDlg
= new SwParaDlg( pParent
, rVw
, rCoreSet
,nDialogMode
, pCollName
, bDraw
, nDefPage
);
998 return new AbstractTabDialog_Impl( pDlg
);
1001 //add for SwParaDlg end
1003 //add for SwTableHeightDlg SwSortDlg begin
1004 VclAbstractDialog
* SwAbstractDialogFactory_Impl::CreateVclAbstractDialog ( Window
*pParent
, SwWrtShell
&rSh
, int nResId
)
1009 case DLG_ROW_HEIGHT
:
1010 pDlg
= new SwTableHeightDlg( pParent
, rSh
);
1014 pDlg
= new SwSortDlg( pParent
, rSh
);
1017 pDlg
= new SwColumnDlg( pParent
, rSh
);
1019 case DLG_EDIT_AUTHMARK
:
1020 pDlg
= new SwAuthMarkModalDlg( pParent
, rSh
);
1027 return new VclAbstractDialog_Impl( pDlg
);
1030 //add for SwTableHeightDlg SwSortDlg ,end
1031 //add for SwSplitTblDlg begin
1032 AbstractSplitTableDialog
* SwAbstractDialogFactory_Impl::CreateSplitTblDialog ( Window
*pParent
, SwWrtShell
&rSh
)
1034 return new AbstractSplitTableDialog_Impl( new SwSplitTblDlg( pParent
, rSh
) );
1036 //add SwSplitTblDlg end
1038 //add for SwSelGlossaryDlg begin
1039 AbstarctSwSelGlossaryDlg
* SwAbstractDialogFactory_Impl::CreateSwSelGlossaryDlg ( Window
* pParent
, const String
&rShortName
, int nResId
)
1041 SwSelGlossaryDlg
* pDlg
=NULL
;
1045 pDlg
= new SwSelGlossaryDlg( pParent
, rShortName
);
1053 return new AbstarctSwSelGlossaryDlg_Impl( pDlg
);
1057 //add for SwSelGlossaryDlg end
1059 //add for SwAutoFormatDlg begin
1060 AbstractSwAutoFormatDlg
* SwAbstractDialogFactory_Impl::CreateSwAutoFormatDlg( Window
* pParent
, SwWrtShell
* pShell
,
1063 const SwTableAutoFmt
* pSelFmt
)
1065 SwAutoFormatDlg
* pDlg
=NULL
;
1068 case DLG_AUTOFMT_TABLE
:
1069 pDlg
= new SwAutoFormatDlg( pParent
, pShell
,bSetAutoFmt
,pSelFmt
);
1077 return new AbstractSwAutoFormatDlg_Impl( pDlg
);
1080 //add for SwAutoFormatDlg end
1082 //add for SwBorderDlg begin
1083 SfxAbstractDialog
* SwAbstractDialogFactory_Impl::CreateSwBorderDlg (Window
* pParent
, SfxItemSet
& rSet
, USHORT nType
,int nResId
)
1085 SfxModalDialog
* pDlg
=NULL
;
1088 case RC_DLG_SWBORDERDLG
:
1089 pDlg
= new SwBorderDlg( pParent
, rSet
, nType
);
1096 return new AbstractSfxDialog_Impl( pDlg
);
1099 //add for SwBorderDlg end
1101 //add for SwWrapDlg begin
1102 SfxAbstractDialog
* SwAbstractDialogFactory_Impl::CreateSwWrapDlg ( Window
* pParent
, SfxItemSet
& rSet
, SwWrtShell
* pSh
, BOOL bDrawMode
, int nResId
)
1104 SfxModalDialog
* pDlg
=NULL
;
1107 case RC_DLG_SWWRAPDLG
:
1108 pDlg
= new SwWrapDlg( pParent
, rSet
, pSh
, bDrawMode
);
1115 return new AbstractSfxDialog_Impl( pDlg
);
1118 //add for SwWrapDlg end
1120 //add for SwTableWidthDlg begin
1121 VclAbstractDialog
* SwAbstractDialogFactory_Impl::CreateSwTableWidthDlg ( Window
*pParent
, SwTableFUNC
&rFnc
, int nResId
)
1126 case DLG_COL_WIDTH
:
1127 pDlg
= new SwTableWidthDlg( pParent
, rFnc
);
1135 return new VclAbstractDialog_Impl( pDlg
);
1138 //add for SwTableWidthDlg end
1140 //add for SwTableTabDlg begin
1141 SfxAbstractTabDialog
* SwAbstractDialogFactory_Impl::CreateSwTableTabDlg( Window
* pParent
, SfxItemPool
& Pool
,
1142 const SfxItemSet
* pItemSet
, SwWrtShell
* pSh
,int nResId
)
1144 SfxTabDialog
* pDlg
=NULL
;
1147 case DLG_FORMAT_TABLE
:
1148 pDlg
= new SwTableTabDlg( pParent
, Pool
, pItemSet
,pSh
);
1156 return new AbstractTabDialog_Impl( pDlg
);
1159 //add for SwTableTabDlg end
1161 //add for SwFldDlg begin
1162 AbstractSwFldDlg
* SwAbstractDialogFactory_Impl::CreateSwFldDlg ( SfxBindings
* pB
, SwChildWinWrapper
* pCW
, Window
*pParent
, int nResId
)
1164 SwFldDlg
* pDlg
=NULL
;
1167 case DLG_FLD_INSERT
:
1168 pDlg
= new SwFldDlg( pB
, pCW
,pParent
);
1176 return new AbstractSwFldDlg_Impl( pDlg
);
1179 //add for SwFldDlg end
1181 //add for SwFldEditDlg begin
1182 SfxAbstractDialog
* SwAbstractDialogFactory_Impl::CreateSwFldEditDlg ( SwView
& rVw
, int nResId
)
1184 SfxModalDialog
* pDlg
=NULL
;
1187 case RC_DLG_SWFLDEDITDLG
:
1188 pDlg
= new SwFldEditDlg( rVw
);
1195 return new AbstractSfxDialog_Impl( pDlg
);
1198 //add for SwFldEditDlg
1200 //add for SwRenameXNamedDlg begin
1201 AbstractSwRenameXNamedDlg
* SwAbstractDialogFactory_Impl::CreateSwRenameXNamedDlg( Window
* pParent
,
1202 STAR_REFERENCE( container::XNamed
) & xNamed
,
1203 STAR_REFERENCE( container::XNameAccess
) & xNameAccess
,int nResId
)
1205 SwRenameXNamedDlg
* pDlg
=NULL
;
1208 case DLG_RENAME_XNAMED
:
1209 pDlg
= new SwRenameXNamedDlg( pParent
,xNamed
, xNameAccess
);
1216 return new AbstractSwRenameXNamedDlg_Impl( pDlg
);
1220 //add for SwRenameXNamedDlg end
1222 //add for SwModalRedlineAcceptDlg begin
1223 AbstractSwModalRedlineAcceptDlg
* SwAbstractDialogFactory_Impl::CreateSwModalRedlineAcceptDlg ( Window
*pParent
, int nResId
)
1225 SwModalRedlineAcceptDlg
* pDlg
=NULL
;
1228 case DLG_MOD_REDLINE_ACCEPT
:
1229 pDlg
= new SwModalRedlineAcceptDlg( pParent
);
1236 return new AbstractSwModalRedlineAcceptDlg_Impl( pDlg
);
1239 //add for SwModalRedlineAcceptDlg end
1241 VclAbstractDialog
* SwAbstractDialogFactory_Impl::CreateSwVclDialog( int nResId
,
1242 Window
* pParent
, BOOL
& rWithPrev
) //add for SwMergeTblDlg
1247 case DLG_MERGE_TABLE
:
1248 pDlg
= new SwMergeTblDlg( pParent
, rWithPrev
);
1254 return new VclAbstractDialog_Impl( pDlg
);
1257 SfxAbstractTabDialog
* SwAbstractDialogFactory_Impl::CreateFrmTabDialog( int nResId
,
1258 SfxViewFrame
*pFrame
, Window
*pParent
,
1259 const SfxItemSet
& rCoreSet
,
1264 const String
* pFmtStr
) //add for SwFrmDlg
1266 SfxTabDialog
* pDlg
=NULL
;
1272 pDlg
= new SwFrmDlg( pFrame
, pParent
, rCoreSet
, bNewFrm
, nResType
, bFmt
, nDefPage
, pFmtStr
);
1279 return new AbstractTabDialog_Impl( pDlg
);
1283 SfxAbstractTabDialog
* SwAbstractDialogFactory_Impl::CreateTemplateDialog( int nResId
,
1285 SfxStyleSheetBase
& rBase
,
1288 SwWrtShell
* pActShell
,
1289 BOOL bNew
) //add for SwTemplateDlg
1291 SfxTabDialog
* pDlg
=NULL
;
1294 case DLG_TEMPLATE_BASE
:
1295 pDlg
= new SwTemplateDlg( pParent
, rBase
, nRegion
, bColumn
, pActShell
, bNew
);
1302 return new AbstractTabDialog_Impl( pDlg
);
1306 AbstractGlossaryDlg
* SwAbstractDialogFactory_Impl::CreateGlossaryDlg( int nResId
,
1307 SfxViewFrame
* pViewFrame
,
1308 SwGlossaryHdl
* pGlosHdl
,
1309 SwWrtShell
*pWrtShell
) //add for SwGlossaryDlg
1311 SwGlossaryDlg
* pDlg
=NULL
;
1314 case DLG_RENAME_GLOS
:
1315 pDlg
= new SwGlossaryDlg( pViewFrame
, pGlosHdl
, pWrtShell
);
1321 return new AbstractGlossaryDlg_Impl( pDlg
);
1325 AbstractFldInputDlg
* SwAbstractDialogFactory_Impl::CreateFldInputDlg( int nResId
,
1326 Window
*pParent
, SwWrtShell
&rSh
,
1327 SwField
* pField
, BOOL bNextButton
) //add for SwFldInputDlg
1329 SwFldInputDlg
* pDlg
=NULL
;
1332 case DLG_FLD_INPUT
:
1333 pDlg
= new SwFldInputDlg( pParent
, rSh
, pField
, bNextButton
);
1339 return new AbstractFldInputDlg_Impl( pDlg
);
1343 AbstractInsFootNoteDlg
* SwAbstractDialogFactory_Impl::CreateInsFootNoteDlg( int nResId
,
1344 Window
* pParent
, SwWrtShell
&rSh
, BOOL bEd
) //add for SwInsFootNoteDlg
1346 SwInsFootNoteDlg
* pDlg
=NULL
;
1349 case DLG_INS_FOOTNOTE
:
1350 pDlg
= new SwInsFootNoteDlg( pParent
, rSh
, bEd
);
1356 return new AbstractInsFootNoteDlg_Impl( pDlg
);
1360 VclAbstractDialog
* SwAbstractDialogFactory_Impl::CreateVclSwViewDialog( int nResId
,
1361 SwView
& rView
, BOOL
/*bCol*/ ) //add for SwInsRowColDlg, SwLineNumberingDlg
1366 case DLG_LINE_NUMBERING
:
1367 pDlg
= new SwLineNumberingDlg( &rView
);
1374 return new VclAbstractDialog_Impl( pDlg
);
1378 AbstractInsertGrfRulerDlg
* SwAbstractDialogFactory_Impl::CreateInsertGrfRulerDlg( int nResId
,
1379 Window
* pParent
) //add for SwInsertGrfRulerDlg
1381 SwInsertGrfRulerDlg
* pDlg
=NULL
;
1384 case DLG_INSERT_RULER
:
1385 pDlg
= new SwInsertGrfRulerDlg( pParent
);
1392 return new AbstractInsertGrfRulerDlg_Impl( pDlg
);
1396 AbstractInsTableDlg
* SwAbstractDialogFactory_Impl::CreateInsTableDlg( int nResId
,
1397 SwView
& rView
) //add for SwInsTableDlg
1399 SwInsTableDlg
* pDlg
=NULL
;
1402 case DLG_INSERT_TABLE
:
1403 pDlg
= new SwInsTableDlg( rView
);
1409 return new AbstractInsTableDlg_Impl( pDlg
);
1413 AbstractJavaEditDialog
* SwAbstractDialogFactory_Impl::CreateJavaEditDialog( int nResId
,
1414 Window
* pParent
, SwWrtShell
* pWrtSh
) //add for SwJavaEditDialog
1416 SwJavaEditDialog
* pDlg
=NULL
;
1420 pDlg
= new SwJavaEditDialog( pParent
, pWrtSh
);
1426 return new AbstractJavaEditDialog_Impl( pDlg
);
1430 AbstractMailMergeDlg
* SwAbstractDialogFactory_Impl::CreateMailMergeDlg( int nResId
,
1431 Window
* pParent
, SwWrtShell
& rSh
,
1432 const String
& rSourceName
,
1433 const String
& rTblName
,
1434 sal_Int32 nCommandType
,
1435 const uno::Reference
< sdbc::XConnection
>& xConnection
,
1436 uno::Sequence
< uno::Any
>* pSelection
) //add for SwMailMergeDlg
1438 SwMailMergeDlg
* pDlg
=NULL
;
1441 case DLG_MAILMERGE
:
1442 pDlg
= new SwMailMergeDlg( pParent
, rSh
, rSourceName
, rTblName
, nCommandType
, xConnection
, pSelection
);
1448 return new AbstractMailMergeDlg_Impl( pDlg
);
1451 AbstractMailMergeCreateFromDlg
* SwAbstractDialogFactory_Impl::CreateMailMergeCreateFromDlg( int nResId
,
1452 Window
* pParent
) //add for SwMailMergeCreateFromDlg
1454 SwMailMergeCreateFromDlg
* pDlg
=NULL
;
1457 case DLG_MERGE_CREATE
:
1458 pDlg
= new SwMailMergeCreateFromDlg( pParent
);
1464 return new AbstractMailMergeCreateFromDlg_Impl( pDlg
);
1467 AbstractMailMergeFieldConnectionsDlg
* SwAbstractDialogFactory_Impl::CreateMailMergeFieldConnectionsDlg( int nResId
,
1468 Window
* pParent
) //add for SwMailMergeFieldConnectionsDlg
1470 SwMailMergeFieldConnectionsDlg
* pDlg
=NULL
;
1473 case DLG_MERGE_FIELD_CONNECTIONS
:
1474 pDlg
= new SwMailMergeFieldConnectionsDlg( pParent
);
1480 return new AbstractMailMergeFieldConnectionsDlg_Impl( pDlg
);
1484 VclAbstractDialog
* SwAbstractDialogFactory_Impl::CreateMultiTOXMarkDlg( int nResId
,
1485 Window
* pParent
, SwTOXMgr
&rTOXMgr
) //add for SwMultiTOXMarkDlg
1491 pDlg
= new SwMultiTOXMarkDlg( pParent
, rTOXMgr
);
1497 return new VclAbstractDialog_Impl( pDlg
);
1500 SfxAbstractTabDialog
* SwAbstractDialogFactory_Impl::CreateSwTabDialog( int nResId
,
1502 const SfxItemSet
* pSwItemSet
,
1503 SwWrtShell
& rWrtSh
) //add for SwSvxNumBulletTabDialog, SwOutlineTabDialog
1505 SfxTabDialog
* pDlg
=NULL
;
1508 case DLG_SVXTEST_NUM_BULLET
:
1509 pDlg
= new SwSvxNumBulletTabDialog( pParent
, pSwItemSet
, rWrtSh
);
1511 case DLG_TAB_OUTLINE
:
1512 pDlg
= new SwOutlineTabDialog( pParent
, pSwItemSet
, rWrtSh
);
1519 return new AbstractTabDialog_Impl( pDlg
);
1522 AbstractMultiTOXTabDialog
* SwAbstractDialogFactory_Impl::CreateMultiTOXTabDialog( int nResId
,
1523 Window
* pParent
, const SfxItemSet
& rSet
,
1525 SwTOXBase
* pCurTOX
, USHORT nToxType
,
1526 BOOL bGlobal
) //add for SwMultiTOXTabDialog
1528 SwMultiTOXTabDialog
* pDlg
=NULL
;
1531 case DLG_MULTI_TOX
:
1532 pDlg
= new SwMultiTOXTabDialog( pParent
, rSet
, rShell
, pCurTOX
, nToxType
, bGlobal
);
1538 return new AbstractMultiTOXTabDialog_Impl( pDlg
);
1541 AbstractEditRegionDlg
* SwAbstractDialogFactory_Impl::CreateEditRegionDlg( int nResId
,
1542 Window
* pParent
, SwWrtShell
& rWrtSh
) //add for SwEditRegionDlg
1544 SwEditRegionDlg
* pDlg
=NULL
;
1547 case MD_EDIT_REGION
:
1548 pDlg
= new SwEditRegionDlg( pParent
, rWrtSh
);
1554 return new AbstractEditRegionDlg_Impl( pDlg
);
1557 AbstractInsertSectionTabDialog
* SwAbstractDialogFactory_Impl::CreateInsertSectionTabDialog( int nResId
,
1558 Window
* pParent
, const SfxItemSet
& rSet
, SwWrtShell
& rSh
) //add for SwInsertSectionTabDialog
1560 SwInsertSectionTabDialog
* pDlg
=NULL
;
1563 case DLG_INSERT_SECTION
:
1564 pDlg
= new SwInsertSectionTabDialog( pParent
, rSet
, rSh
);
1570 return new AbstractInsertSectionTabDialog_Impl( pDlg
);
1574 AbstractMarkFloatDlg
* SwAbstractDialogFactory_Impl::CreateIndexMarkFloatDlg( int nResId
,
1575 SfxBindings
* pBindings
,
1576 SfxChildWindow
* pChild
,
1578 SfxChildWinInfo
* pInfo
,
1579 sal_Bool bNew
) //add for SwIndexMarkFloatDlg
1581 SwIndexMarkFloatDlg
* pDlg
=NULL
;
1584 case DLG_INSIDXMARK_CJK
:
1585 case DLG_INSIDXMARK
:
1586 pDlg
= new SwIndexMarkFloatDlg( pBindings
, pChild
, pParent
, pInfo
, bNew
);
1592 return new AbstractIndexMarkFloatDlg_Impl( pDlg
);
1596 AbstractMarkFloatDlg
* SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg( int nResId
,
1597 SfxBindings
* pBindings
,
1598 SfxChildWindow
* pChild
,
1600 SfxChildWinInfo
* pInfo
,
1601 sal_Bool bNew
) //add for SwAuthMarkFloatDlg
1603 SwAuthMarkFloatDlg
* pDlg
=NULL
;
1606 case DLG_INSAUTHMARK
:
1607 pDlg
= new SwAuthMarkFloatDlg( pBindings
, pChild
, pParent
, pInfo
, bNew
);
1613 return new AbstractAuthMarkFloatDlg_Impl( pDlg
);
1617 //add for SwIndexMarkModalDlg begin
1618 VclAbstractDialog
* SwAbstractDialogFactory_Impl::CreateIndexMarkModalDlg( int nResId
,
1619 Window
*pParent
, SwWrtShell
& rSh
, SwTOXMark
* pCurTOXMark
) //add for SwIndexMarkModalDlg
1624 case DLG_EDIT_IDXMARK_CJK
:
1625 case DLG_EDIT_IDXMARK
:
1626 pDlg
= new SwIndexMarkModalDlg( pParent
, rSh
, pCurTOXMark
);
1634 return new VclAbstractDialog_Impl( pDlg
);
1637 //add for SwIndexMarkModalDlg end
1638 AbstractMailMergeWizard
* SwAbstractDialogFactory_Impl::CreateMailMergeWizard(
1639 SwView
& rView
, SwMailMergeConfigItem
& rConfigItem
)
1641 return new AbstractMailMergeWizard_Impl( new SwMailMergeWizard(rView
, rConfigItem
));
1644 //add for static func in SwGlossaryDlg
1645 GlossaryGetCurrGroup
SwAbstractDialogFactory_Impl::GetGlossaryCurrGroupFunc( USHORT nId
)
1649 case DLG_RENAME_GLOS
:
1650 return SwGlossaryDlg::GetCurrGroup
;
1656 GlossarySetActGroup
SwAbstractDialogFactory_Impl::SetGlossaryActGroupFunc( USHORT nId
)
1660 case DLG_RENAME_GLOS
:
1661 return SwGlossaryDlg::SetActGroup
;
1668 //------------------ Factories for TabPages
1669 CreateTabPage
SwAbstractDialogFactory_Impl::GetTabPageCreatorFunc( USHORT nId
)
1671 CreateTabPage pRet
= 0;
1674 case TP_OPTCOMPATIBILITY_PAGE
:
1675 case RID_SW_TP_OPTCOMPATIBILITY_PAGE
:
1676 pRet
= SwCompatibilityOptPage::Create
;
1678 case TP_OPTLOAD_PAGE
:
1679 case RID_SW_TP_OPTLOAD_PAGE
:
1680 pRet
= SwLoadOptPage::Create
;
1682 case TP_OPTCAPTION_PAGE
:
1683 case RID_SW_TP_OPTCAPTION_PAGE
:
1684 return SwCaptionOptPage::Create
;
1685 case TP_CONTENT_OPT
:
1686 case RID_SW_TP_CONTENT_OPT
:
1687 case RID_SW_TP_HTML_CONTENT_OPT
:
1688 pRet
= SwContentOptPage::Create
;
1690 case TP_OPTSHDWCRSR
:
1691 case RID_SW_TP_OPTSHDWCRSR
:
1692 case RID_SW_TP_HTML_OPTSHDWCRSR
:
1693 pRet
= SwShdwCrsrOptionsTabPage::Create
;
1695 case RID_SW_TP_REDLINE_OPT
:
1696 case TP_REDLINE_OPT
:
1697 pRet
= SwRedlineOptionsTabPage::Create
;
1699 case RID_SW_TP_OPTTEST_PAGE
:
1700 case TP_OPTTEST_PAGE
:
1702 pRet
= SwTestTabPage::Create
;
1705 case TP_OPTPRINT_PAGE
:
1706 case RID_SW_TP_HTML_OPTPRINT_PAGE
:
1707 case RID_SW_TP_OPTPRINT_PAGE
:
1708 pRet
= SwAddPrinterTabPage::Create
;
1711 case RID_SW_TP_STD_FONT
:
1712 case RID_SW_TP_STD_FONT_CJK
:
1713 case RID_SW_TP_STD_FONT_CTL
:
1714 pRet
= SwStdFontTabPage::Create
;
1716 case TP_OPTTABLE_PAGE
:
1717 case RID_SW_TP_HTML_OPTTABLE_PAGE
:
1718 case RID_SW_TP_OPTTABLE_PAGE
:
1719 pRet
= SwTableOptionsTabPage::Create
;
1722 pRet
= SwDocStatPage::Create
;
1724 case RID_SW_TP_MAILCONFIG
:
1725 pRet
= SwMailConfigPage::Create
;
1732 GetTabPageRanges
SwAbstractDialogFactory_Impl::GetTabPageRangesFunc( USHORT nId
)
1736 case 1 : //RID_SVXPAGE_TEXTANIMATION :
1737 //return SvxTextAnimationPage::GetRanges;