1 /**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22 // MARKER(update_precomp.py): autogen include statement, do not remove
23 #include "precompiled_sw.hxx"
24
25 #ifdef SW_DLLIMPLEMENTATION
26 #undef SW_DLLIMPLEMENTATION
27 #endif
28
29 #include "swdlgfact.hxx"
30 #include <svl/style.hxx>
31 #ifndef _SVX_SVXIDS_HRC
32 #include <svx/svxids.hrc>
33 #endif
34 #include "dialog.hrc"
35 #include "misc.hrc"
36 #include "chrdlg.hrc"
37 #include "fldui.hrc"
38 #include "table.hrc"
39 #include "frmui.hrc"
40 #include "dbui.hrc"
41 #include "globals.hrc"
42 #include "fldui.hrc"
43 #include "envelp.hrc"
44 #include "dochdl.hrc"
45 #include <index.hrc>
46 #include <regionsw.hrc>
47 #include <fmtui.hrc>
48
49 #include <wordcountdialog.hxx>
50 #include "abstract.hxx" // add for SwInsertAbstractDlg
51 #include "addrdlg.hxx" // add for SwAddrDlg
52 #include "ascfldlg.hxx" // add for SwAsciiFilterDlg
53 #include "bookmark.hxx" //add for SwInsertBookmarkDlg
54 #include "break.hxx" //add for SwBreakDlg
55 #include "changedb.hxx" //add for SwChangeDBDlg
56 #include "chrdlg.hxx" // add for SwCharDlg
57 #include "convert.hxx" //add for SwConvertTableDlg
58 #include "cption.hxx" //add for SwCaptionDialog
59 #include "dbinsdlg.hxx" //add for SwInsertDBColAutoPilot
60 #include "docfnote.hxx" //add for SwFootNoteOptionDlg
61 #include "docstdlg.hxx" //add for SwDocStatPage
62 #include "DropDownFieldDialog.hxx" //add for DropDownFieldDialog
63 #include "envlop.hxx" //add for SwEnvDlg
64 #include "label.hxx" //add for SwLabDlg
65 #include "drpcps.hxx" //add for SwDropCapsDlg
66 #include "swuipardlg.hxx" //add for SwParaDlg
67 #include "pattern.hxx" //add for SwBackgroundDlg
68 #include "rowht.hxx" //add for SwTableHeightDlg
69 #include "selglos.hxx" //add for SwSelGlossaryDlg
70 #include "splittbl.hxx" //add for SwSplitTblDlg
71 #include "srtdlg.hxx" //add for SwSortDlg
72 #include "tautofmt.hxx" //add for SwAutoFormatDlg
73 #include "tblnumfm.hxx" //add for SwNumFmtDlg
74 #include "uiborder.hxx" //add for SwBorderDlg
75 #include "wrap.hxx" //add for SwWrapDlg
76 #include "colwd.hxx" //add for SwTableWidthDlg
77 #include "tabledlg.hxx" //add for SwTableTabDlg
78 #include "fldtdlg.hxx" //add for SwFldDlg
79 #include "fldedt.hxx" //add for SwFldEditDlg
80 #include "swrenamexnameddlg.hxx" //add for SwRenameXNamedDlg
81 #include "swmodalredlineacceptdlg.hxx" //add for SwModalRedlineAcceptDlg
82 #include <frmdlg.hxx> //add for SwFrmDlg
83 #include <tmpdlg.hxx> //add for SwTemplateDlg
84 #include <glossary.hxx> //add for SwGlossaryDlg
85 #include <inpdlg.hxx> //add for SwFldInputDlg
86 #include <insfnote.hxx> //add for SwInsFootNoteDlg
87 #include <insrule.hxx> //add for SwInsertGrfRulerDlg
88 #include <instable.hxx> //add for SwInsTableDlg
89 #include <javaedit.hxx> //add for SwJavaEditDialog
90 #include <linenum.hxx> //add for SwLineNumberingDlg
91 #include <mailmrge.hxx> //add for SwMailMergeDlg, SwMailMergeCreateFromDlg, SwMailMergeFieldConnectionsDlg
92 #include <mergetbl.hxx> //add for SwMergeTblDlg
93 #include <multmrk.hxx> //add for SwMultiTOXMarkDlg
94 #include <num.hxx> //add for SwSvxNumBulletTabDialog
95 #include <outline.hxx> //add for SwOutlineTabDialog
96 #include <column.hxx> //add for SwColumnDlg
97 #include <cnttab.hxx> //add for SwMultiTOXTabDialog
98 #include <swuicnttab.hxx> //add for SwMultiTOXTabDialog
99 #include <regionsw.hxx> //add for SwEditRegionDlg, SwInsertSectionTabDialog
100 #include <optcomp.hxx> //add for SwCompatibilityOptPage
101 #include <optload.hxx> //add for SwLoadOptPage
102 #include <optpage.hxx> //add for OptPage
103 #include <swuiidxmrk.hxx> //add for SwIndexMarkDlg, SwAuthMarkDlg, SwIndexMarkModalDlg, SwAuthMarkModalDlg
104 #include <svx/dialogs.hrc>
105 #include <mailmergewizard.hxx>
106 #include <mailconfigpage.hxx>
107
108 using namespace ::com::sun::star;
109
110 IMPL_ABSTDLG_BASE(AbstractSwWordCountDialog_Impl);
111 IMPL_ABSTDLG_BASE(AbstractSwInsertAbstractDlg_Impl);
112 IMPL_ABSTDLG_BASE(AbstractSfxDialog_Impl);
113 IMPL_ABSTDLG_BASE(AbstractSwAsciiFilterDlg_Impl);
114 IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl);
115 IMPL_ABSTDLG_BASE(AbstractSplitTableDialog_Impl);
116 IMPL_ABSTDLG_BASE(AbstractSwBreakDlg_Impl); //add for SwBreakDlg
117 IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for SwCharDlg, SwFootNoteOptionDlg, SwEnvDlg SwParaDlg SwTableTabDlg
118 IMPL_ABSTDLG_BASE(AbstractSwConvertTableDlg_Impl); //add for SwConvertTableDlg
119 IMPL_ABSTDLG_BASE(AbstractSwInsertDBColAutoPilot_Impl); //add for SwInsertDBColAutoPilot
120 IMPL_ABSTDLG_BASE(AbstractDropDownFieldDialog_Impl); //add for DropDownFieldDialog
121 IMPL_ABSTDLG_BASE(AbstractSwLabDlg_Impl);//add for SwLabDlg
122 IMPL_ABSTDLG_BASE(AbstractSwSelGlossaryDlg_Impl);//add for SwSelGlossaryDlg
123 IMPL_ABSTDLG_BASE(AbstractSwAutoFormatDlg_Impl); //add for SwAutoFormatDlg
124 IMPL_ABSTDLG_BASE(AbstractSwFldDlg_Impl); //add for SwFldDlg
125 IMPL_ABSTDLG_BASE(AbstractSwRenameXNamedDlg_Impl); //add for SwRenameXNamedDlg
126 IMPL_ABSTDLG_BASE(AbstractSwModalRedlineAcceptDlg_Impl); //add for SwModalRedlineAcceptDlg
127 IMPL_ABSTDLG_BASE(AbstractGlossaryDlg_Impl);
128 IMPL_ABSTDLG_BASE(AbstractFldInputDlg_Impl);
129 IMPL_ABSTDLG_BASE(AbstractInsFootNoteDlg_Impl);
130 IMPL_ABSTDLG_BASE(AbstractInsertGrfRulerDlg_Impl);
131 IMPL_ABSTDLG_BASE(AbstractInsTableDlg_Impl);
132 IMPL_ABSTDLG_BASE(AbstractJavaEditDialog_Impl);
133 IMPL_ABSTDLG_BASE(AbstractMailMergeDlg_Impl);
134 IMPL_ABSTDLG_BASE(AbstractMailMergeCreateFromDlg_Impl);
135 IMPL_ABSTDLG_BASE(AbstractMailMergeFieldConnectionsDlg_Impl);
136 IMPL_ABSTDLG_BASE(AbstractMultiTOXTabDialog_Impl);
137 IMPL_ABSTDLG_BASE(AbstractEditRegionDlg_Impl);
138 IMPL_ABSTDLG_BASE(AbstractInsertSectionTabDialog_Impl);
139 IMPL_ABSTDLG_BASE(AbstractIndexMarkFloatDlg_Impl);
140 IMPL_ABSTDLG_BASE(AbstractAuthMarkFloatDlg_Impl);
141
142 // AbstractTabDialog_Impl begin
SetCurPageId(sal_uInt16 nId)143 void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
144 {
145 pDlg->SetCurPageId( nId );
146 }
147
GetOutputItemSet() const148 const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
149 {
150 return pDlg->GetOutputItemSet();
151 }
152
GetInputRanges(const SfxItemPool & pItem)153 const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
154 {
155 return pDlg->GetInputRanges( pItem );
156 }
157
SetInputSet(const SfxItemSet * pInSet)158 void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
159 {
160 pDlg->SetInputSet( pInSet );
161 }
162 //From class Window.
SetText(const XubString & rStr)163 void AbstractTabDialog_Impl::SetText( const XubString& rStr )
164 {
165 pDlg->SetText( rStr );
166 }
GetText() const167 String AbstractTabDialog_Impl::GetText() const
168 {
169 return pDlg->GetText();
170 }
171
172 //add for AbstractTabDialog_Impl end
173
SetValues(const SwDocStat & rCurrent,const SwDocStat & rDoc)174 void AbstractSwWordCountDialog_Impl::SetValues(const SwDocStat& rCurrent, const SwDocStat& rDoc)
175 {
176 pDlg->SetValues(rCurrent, rDoc);
177 }
178
179 //add for SwInsertAbstractDlg begin
GetLevel() const180 sal_uInt8 AbstractSwInsertAbstractDlg_Impl::GetLevel() const
181 {
182 return pDlg->GetLevel();
183 }
GetPara() const184 sal_uInt8 AbstractSwInsertAbstractDlg_Impl::GetPara() const
185 {
186 return pDlg->GetPara();
187 }
188 //add for SwInsertAbstractDlg end
189
190 //add for SwAddrDlg, SwDropCapsDlg ,SwBackgroundDlg, SwNumFmtDlg SwBorderDlg SwWrapDlg SwFldEditDlg begin
GetOutputItemSet() const191 const SfxItemSet* AbstractSfxDialog_Impl::GetOutputItemSet() const
192 {
193 return pDlg->GetOutputItemSet();
194 }
195
SetText(const XubString & rStr)196 void AbstractSfxDialog_Impl::SetText( const XubString& rStr )
197 {
198 pDlg->SetText( rStr );
199 }
GetText() const200 String AbstractSfxDialog_Impl::GetText() const
201 {
202 return pDlg->GetText();
203 }
204
205 //add for SwAddrDlg, SwDropCapsDlg ,SwBackgroundDlg, SwNumFmtDlg SwBorderDlg SwWrapDlg SwFldEditDlg end
206
207 //add for SwAsciiFilterDlg begin
FillOptions(SwAsciiOptions & rOptions)208 void AbstractSwAsciiFilterDlg_Impl::FillOptions( SwAsciiOptions& rOptions )
209 {
210 pDlg->FillOptions(rOptions);
211 }
212 //add for SwAsciiFilterDlg end
213
214 //add for SwSplitTblDlg
GetSplitMode()215 sal_uInt16 AbstractSplitTableDialog_Impl::GetSplitMode()
216 {
217 return pDlg->GetSplitMode();
218 }
219 //add for SwBreakDlg begin
GetTemplateName()220 String AbstractSwBreakDlg_Impl::GetTemplateName()
221 {
222 return pDlg->GetTemplateName();
223 }
224
GetKind()225 sal_uInt16 AbstractSwBreakDlg_Impl:: GetKind()
226 {
227 return pDlg->GetKind();
228 }
229
GetPageNumber()230 sal_uInt16 AbstractSwBreakDlg_Impl:: GetPageNumber()
231 {
232 return pDlg->GetPageNumber();
233 }
234 //add for SwBreakDlg end
235
236 //add for SwConvertTableDlg begin
GetValues(sal_Unicode & rDelim,SwInsertTableOptions & rInsTblFlags,SwTableAutoFmt * & prTAFmt)237 void AbstractSwConvertTableDlg_Impl::GetValues( sal_Unicode& rDelim,SwInsertTableOptions& rInsTblFlags,
238 SwTableAutoFmt *& prTAFmt )
239 {
240 pDlg->GetValues(rDelim,rInsTblFlags, prTAFmt);
241 }
242 //add for SwConvertTableDlg end
243
244 //add for SwInsertDBColAutoPilot begin
DataToDoc(const uno::Sequence<uno::Any> & rSelection,uno::Reference<sdbc::XDataSource> rxSource,uno::Reference<sdbc::XConnection> xConnection,uno::Reference<sdbc::XResultSet> xResultSet)245 void AbstractSwInsertDBColAutoPilot_Impl::DataToDoc( const uno::Sequence< uno::Any >& rSelection,
246 uno::Reference< sdbc::XDataSource> rxSource,
247 uno::Reference< sdbc::XConnection> xConnection,
248 uno::Reference< sdbc::XResultSet > xResultSet)
249 {
250 pDlg->DataToDoc(rSelection, rxSource, xConnection, xResultSet);
251 }
252 //add for SwInsertDBColAutoPilot end
253
254 // add for DropDownFieldDialog begin
GetWindowState(sal_uLong nMask) const255 ByteString AbstractDropDownFieldDialog_Impl::GetWindowState( sal_uLong nMask ) const
256 {
257 return pDlg->GetWindowState(nMask);
258 }
SetWindowState(const ByteString & rStr)259 void AbstractDropDownFieldDialog_Impl::SetWindowState( const ByteString& rStr )
260 {
261 pDlg->SetWindowState(rStr);
262 }
263 //add for DropDownFieldDialog end
264
265 //add for SwLabDlg begin
266
SetCurPageId(sal_uInt16 nId)267 void AbstractSwLabDlg_Impl::SetCurPageId( sal_uInt16 nId )
268 {
269 pDlg->SetCurPageId( nId );
270 }
271
GetOutputItemSet() const272 const SfxItemSet* AbstractSwLabDlg_Impl::GetOutputItemSet() const
273 {
274 return pDlg->GetOutputItemSet();
275 }
276
GetInputRanges(const SfxItemPool & pItem)277 const sal_uInt16* AbstractSwLabDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
278 {
279 return pDlg->GetInputRanges( pItem );
280 }
281
SetInputSet(const SfxItemSet * pInSet)282 void AbstractSwLabDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
283 {
284 pDlg->SetInputSet( pInSet );
285 }
286
SetText(const XubString & rStr)287 void AbstractSwLabDlg_Impl::SetText( const XubString& rStr )
288 {
289 pDlg->SetText( rStr );
290 }
GetText() const291 String AbstractSwLabDlg_Impl::GetText() const
292 {
293 return pDlg->GetText();
294 }
GetBusinessCardStr() const295 const String& AbstractSwLabDlg_Impl::GetBusinessCardStr() const
296 {
297 return pDlg->GetBusinessCardStr();
298 }
GetPrt()299 Printer * AbstractSwLabDlg_Impl::GetPrt()
300 {
301 return pDlg->GetPrt();
302 }
303 //add for SwLabDlg end
304
305
306 //add for SwSelGlossaryDlg begin
307
InsertGlos(const String & rRegion,const String & rGlosName)308 void AbstractSwSelGlossaryDlg_Impl::InsertGlos(const String &rRegion, const String &rGlosName)
309 {
310 pDlg->InsertGlos( rRegion, rGlosName );
311 }
GetSelectedIdx() const312 sal_uInt16 AbstractSwSelGlossaryDlg_Impl::GetSelectedIdx() const
313 {
314 return pDlg->GetSelectedIdx();
315 }
SelectEntryPos(sal_uInt16 nIdx)316 void AbstractSwSelGlossaryDlg_Impl::SelectEntryPos(sal_uInt16 nIdx)
317 {
318 pDlg->SelectEntryPos( nIdx );
319 }
320
321 //add for SwSelGlossaryDlg end
322
323 //add for SwAutoFormatDlg begin
324
FillAutoFmtOfIndex(SwTableAutoFmt * & rToFill) const325 void AbstractSwAutoFormatDlg_Impl::FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const
326 {
327 pDlg->FillAutoFmtOfIndex(rToFill);
328 }
329 //add for SwAutoFormatDlg end
330
331 //add for SwFldDlg begin
SetCurPageId(sal_uInt16 nId)332 void AbstractSwFldDlg_Impl::SetCurPageId( sal_uInt16 nId )
333 {
334 pDlg->SetCurPageId( nId );
335 }
336
GetOutputItemSet() const337 const SfxItemSet* AbstractSwFldDlg_Impl::GetOutputItemSet() const
338 {
339 return pDlg->GetOutputItemSet();
340 }
341
GetInputRanges(const SfxItemPool & pItem)342 const sal_uInt16* AbstractSwFldDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
343 {
344 return pDlg->GetInputRanges( pItem );
345 }
346
SetInputSet(const SfxItemSet * pInSet)347 void AbstractSwFldDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
348 {
349 pDlg->SetInputSet( pInSet );
350 }
351
SetText(const XubString & rStr)352 void AbstractSwFldDlg_Impl::SetText( const XubString& rStr )
353 {
354 pDlg->SetText( rStr );
355 }
GetText() const356 String AbstractSwFldDlg_Impl::GetText() const
357 {
358 return pDlg->GetText();
359 }
Start(sal_Bool bShowl)360 void AbstractSwFldDlg_Impl::Start( sal_Bool bShowl )
361 {
362 pDlg->Start( bShowl );
363 }
364
Initialize(SfxChildWinInfo * pInfo)365 void AbstractSwFldDlg_Impl::Initialize(SfxChildWinInfo *pInfo)
366 {
367 pDlg->Initialize( pInfo );
368 }
369
ReInitDlg()370 void AbstractSwFldDlg_Impl::ReInitDlg()
371 {
372 pDlg->ReInitDlg();
373 }
ActivateDatabasePage()374 void AbstractSwFldDlg_Impl::ActivateDatabasePage()
375 {
376 pDlg->ActivateDatabasePage();
377 }
GetWindow()378 Window* AbstractSwFldDlg_Impl::GetWindow()
379 {
380 return (Window*)pDlg;
381 }
ShowPage(sal_uInt16 nId)382 void AbstractSwFldDlg_Impl::ShowPage( sal_uInt16 nId )
383 {
384 pDlg->ShowPage(nId);
385 }
386 //add for SwFldD end
387
388 //add for SwRenameXNamedDlg begin
389
SetForbiddenChars(const String & rSet)390 void AbstractSwRenameXNamedDlg_Impl::SetForbiddenChars( const String& rSet )
391 {
392 pDlg->SetForbiddenChars( rSet );
393 }
394
SetAlternativeAccess(STAR_REFERENCE (container::XNameAccess)& xSecond,STAR_REFERENCE (container::XNameAccess)& xThird)395 void AbstractSwRenameXNamedDlg_Impl::SetAlternativeAccess(
396 STAR_REFERENCE( container::XNameAccess ) & xSecond,
397 STAR_REFERENCE( container::XNameAccess ) & xThird )
398 {
399 pDlg->SetAlternativeAccess( xSecond, xThird);
400 }
401 //add for SwRenameXNamedDlg end
402
403 //add for SwModalRedlineAcceptDlg begin
404
AcceptAll(sal_Bool bAccept)405 void AbstractSwModalRedlineAcceptDlg_Impl::AcceptAll( sal_Bool bAccept )
406 {
407 pDlg->AcceptAll( bAccept);
408 }
409 //add for SwModalRedlineAcceptDlg end
410
411 // AbstractGlossaryDlg_Impl begin
GetCurrGrpName() const412 String AbstractGlossaryDlg_Impl::GetCurrGrpName() const
413 {
414 return pDlg->GetCurrGrpName();
415 }
416
GetCurrShortName() const417 String AbstractGlossaryDlg_Impl::GetCurrShortName() const
418 {
419 return pDlg->GetCurrShortName();
420 }
421 // AbstractGlossaryDlg_Impl end
422
423 // AbstractFldInputDlg_Impl begin
SetWindowState(const ByteString & rStr)424 void AbstractFldInputDlg_Impl::SetWindowState( const ByteString& rStr )
425 {
426 pDlg->SetWindowState( rStr );
427 }
428
GetWindowState(sal_uLong nMask) const429 ByteString AbstractFldInputDlg_Impl::GetWindowState( sal_uLong nMask ) const
430 {
431 return pDlg->GetWindowState( nMask );
432 }
433 // AbstractFldInputDlg_Impl end
434
435 // AbstractInsFootNoteDlg_Impl begin
GetFontName()436 String AbstractInsFootNoteDlg_Impl::GetFontName()
437 {
438 return pDlg->GetFontName();
439 }
IsEndNote()440 sal_Bool AbstractInsFootNoteDlg_Impl::IsEndNote()
441 {
442 return pDlg->IsEndNote();
443 }
GetStr()444 String AbstractInsFootNoteDlg_Impl::GetStr()
445 {
446 return pDlg->GetStr();
447 }
SetHelpId(const rtl::OString & sHelpId)448 void AbstractInsFootNoteDlg_Impl::SetHelpId( const rtl::OString& sHelpId )
449 {
450 pDlg->SetHelpId( sHelpId );
451 }
SetText(const XubString & rStr)452 void AbstractInsFootNoteDlg_Impl::SetText( const XubString& rStr )
453 {
454 pDlg->SetText( rStr );
455 }
456 // AbstractInsFootNoteDlg_Impl end
457
458 // AbstractInsertGrfRulerDlg_Impl begin
GetGraphicName()459 String AbstractInsertGrfRulerDlg_Impl::GetGraphicName()
460 {
461 return pDlg->GetGraphicName();
462 }
IsSimpleLine()463 sal_Bool AbstractInsertGrfRulerDlg_Impl::IsSimpleLine()
464 {
465 return pDlg->IsSimpleLine();
466 }
HasImages() const467 sal_Bool AbstractInsertGrfRulerDlg_Impl::HasImages() const
468 {
469 return pDlg->HasImages();
470 }
471 // AbstractInsertGrfRulerDlg_Impl end
472
473 // AbstractInsTableDlg_Impl begin
GetValues(String & rName,sal_uInt16 & rRow,sal_uInt16 & rCol,SwInsertTableOptions & rInsTblFlags,String & rTableAutoFmtName,SwTableAutoFmt * & prTAFmt)474 void AbstractInsTableDlg_Impl::GetValues( String& rName, sal_uInt16& rRow, sal_uInt16& rCol,
475 SwInsertTableOptions& rInsTblFlags, String& rTableAutoFmtName,
476 SwTableAutoFmt *& prTAFmt )
477 {
478 pDlg->GetValues( rName, rRow, rCol, rInsTblFlags, rTableAutoFmtName, prTAFmt);
479 }
480 // AbstractInsTableDlg_Impl end
481
482 // AbstractJavaEditDialog_Impl begin
GetText()483 String AbstractJavaEditDialog_Impl::GetText()
484 {
485 return pDlg->GetText();
486 }
GetType()487 String AbstractJavaEditDialog_Impl::GetType()
488 {
489 return pDlg->GetType();
490 }
IsUrl()491 sal_Bool AbstractJavaEditDialog_Impl::IsUrl()
492 {
493 return pDlg->IsUrl();
494 }
IsNew()495 sal_Bool AbstractJavaEditDialog_Impl::IsNew()
496 {
497 return pDlg->IsNew();
498 }
IsUpdate()499 sal_Bool AbstractJavaEditDialog_Impl::IsUpdate()
500 {
501 return pDlg->IsUpdate();
502 }
503 // AbstractJavaEditDialog_Impl end
504
505 // AbstractMailMergeDlg_Impl begin
GetMergeType()506 sal_uInt16 AbstractMailMergeDlg_Impl::GetMergeType()
507 {
508 return pDlg->GetMergeType();
509 }
GetSaveFilter() const510 const ::rtl::OUString& AbstractMailMergeDlg_Impl::GetSaveFilter() const
511 {
512 return pDlg->GetSaveFilter();
513 }
514
GetSelection() const515 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > AbstractMailMergeDlg_Impl::GetSelection() const
516 {
517 return pDlg->GetSelection();
518 }
GetResultSet() const519 uno::Reference< sdbc::XResultSet> AbstractMailMergeDlg_Impl::GetResultSet() const
520 {
521 return pDlg->GetResultSet();
522 }
IsSaveIndividualDocs() const523 bool AbstractMailMergeDlg_Impl::IsSaveIndividualDocs() const
524 {
525 return pDlg->IsSaveIndividualDocs();
526 }
IsGenerateFromDataBase() const527 bool AbstractMailMergeDlg_Impl::IsGenerateFromDataBase() const
528 {
529 return pDlg->IsGenerateFromDataBase();
530 }
GetColumnName() const531 String AbstractMailMergeDlg_Impl::GetColumnName() const
532 {
533 return pDlg->GetColumnName();
534 }
GetPath() const535 String AbstractMailMergeDlg_Impl::GetPath() const
536 {
537 return pDlg->GetPath();
538 }
539
540 // AbstractMailMergeDlg_Impl end
541 // AbstractMailMergeCreateFromDlg_Impl begin
IsThisDocument() const542 sal_Bool AbstractMailMergeCreateFromDlg_Impl::IsThisDocument() const
543 {
544 return pDlg->IsThisDocument();
545 }
546 // AbstractMailMergeCreateFromDlg_Impl end
547 //AbstractMailMergeFieldConnectionsDlg_Impl begin
IsUseExistingConnections() const548 sal_Bool AbstractMailMergeFieldConnectionsDlg_Impl::IsUseExistingConnections() const
549 {
550 return pDlg->IsUseExistingConnections();
551 }
552 // AbstractMailMergeFieldConnectionsDlg_Impl end
553
554 // AbstractMultiTOXTabDialog_Impl begin
GetForm(CurTOXType eType)555 SwForm* AbstractMultiTOXTabDialog_Impl::GetForm(CurTOXType eType)
556 {
557 return pDlg->GetForm(eType);
558 }
GetCurrentTOXType() const559 CurTOXType AbstractMultiTOXTabDialog_Impl::GetCurrentTOXType() const
560 {
561 return pDlg->GetCurrentTOXType();
562 }
GetTOXDescription(CurTOXType eTOXTypes)563 SwTOXDescription& AbstractMultiTOXTabDialog_Impl::GetTOXDescription(CurTOXType eTOXTypes)
564 {
565 return pDlg->GetTOXDescription(eTOXTypes);
566 }
GetOutputItemSet() const567 const SfxItemSet* AbstractMultiTOXTabDialog_Impl::GetOutputItemSet() const
568 {
569 return pDlg->GetOutputItemSet();
570 }
571 // AbstractMultiTOXTabDialog_Impl end
572
573 // AbstractEditRegionDlg_Impl begin
SelectSection(const String & rSectionName)574 void AbstractEditRegionDlg_Impl::SelectSection(const String& rSectionName)
575 {
576 pDlg->SelectSection(rSectionName);
577 }
578 // AbstractEditRegionDlg_Impl end
579 //AbstractInsertSectionTabDialog_Impl begin
580 void
SetSectionData(SwSectionData const & rSect)581 AbstractInsertSectionTabDialog_Impl::SetSectionData(SwSectionData const& rSect)
582 {
583 pDlg->SetSectionData(rSect);
584 }
585 // AbstractInsertSectionTabDialog_Impl end
586
587 //AbstractIndexMarkFloatDlg_Impl begin
ReInitDlg(SwWrtShell & rWrtShell)588 void AbstractIndexMarkFloatDlg_Impl::ReInitDlg(SwWrtShell& rWrtShell)
589 {
590 pDlg->ReInitDlg( rWrtShell);
591 }
GetWindow()592 Window* AbstractIndexMarkFloatDlg_Impl::GetWindow()
593 {
594 return (Window*)pDlg;
595 }
596 // AbstractIndexMarkFloatDlg_Impl end
597
598 //AbstractAuthMarkFloatDlg_Impl begin
ReInitDlg(SwWrtShell & rWrtShell)599 void AbstractAuthMarkFloatDlg_Impl::ReInitDlg(SwWrtShell& rWrtShell)
600 {
601 pDlg->ReInitDlg( rWrtShell);
602 }
GetWindow()603 Window* AbstractAuthMarkFloatDlg_Impl::GetWindow()
604 {
605 return (Window*)pDlg;
606 }
607 // AbstractAuthMarkFloatDlg_Impl end
608
~AbstractMailMergeWizard_Impl()609 AbstractMailMergeWizard_Impl::~AbstractMailMergeWizard_Impl()
610 {
611 delete pDlg;
612 }
613
StartExecuteModal(const Link & rEndDialogHdl)614 void AbstractMailMergeWizard_Impl::StartExecuteModal( const Link& rEndDialogHdl )
615 {
616 aEndDlgHdl = rEndDialogHdl;
617 pDlg->StartExecuteModal(
618 LINK( this, AbstractMailMergeWizard_Impl, EndDialogHdl ) );
619 }
620
GetResult()621 long AbstractMailMergeWizard_Impl::GetResult()
622 {
623 return pDlg->GetResult();
624 }
625
626 #ifdef DBG_UTIL
IMPL_LINK(AbstractMailMergeWizard_Impl,EndDialogHdl,SwMailMergeWizard *,pDialog)627 IMPL_LINK( AbstractMailMergeWizard_Impl, EndDialogHdl, SwMailMergeWizard*, pDialog )
628 #else
629 IMPL_LINK( AbstractMailMergeWizard_Impl, EndDialogHdl, SwMailMergeWizard*, EMPTYARG )
630 #endif
631 {
632 DBG_ASSERT( pDialog == pDlg, "wrong dialog passed to EndDialogHdl!" );
633
634 aEndDlgHdl.Call( this );
635 aEndDlgHdl = Link();
636
637 return 0L;
638 }
639
SetReloadDocument(const String & rURL)640 void AbstractMailMergeWizard_Impl::SetReloadDocument(const String& rURL)
641 {
642 pDlg->SetReloadDocument(rURL);
643 }
GetReloadDocument() const644 const String& AbstractMailMergeWizard_Impl::GetReloadDocument() const
645 {
646 return pDlg->GetReloadDocument();
647 }
ShowPage(sal_uInt16 nLevel)648 sal_Bool AbstractMailMergeWizard_Impl::ShowPage( sal_uInt16 nLevel )
649 {
650 return pDlg->skipUntil(nLevel);
651 }
GetRestartPage() const652 sal_uInt16 AbstractMailMergeWizard_Impl::GetRestartPage() const
653 {
654 return pDlg->GetRestartPage();
655 }
656
657 //-------------- SwAbstractDialogFactory implementation--------------
658
CreateSwWordCountDialog(Window * pParent)659 AbstractSwWordCountDialog* SwAbstractDialogFactory_Impl::CreateSwWordCountDialog(Window* pParent)
660 {
661 SwWordCountDialog* pDlg = new SwWordCountDialog( pParent );
662 return new AbstractSwWordCountDialog_Impl( pDlg );
663 }
664
665 //add for SwInsertAbstractDlg begin
CreateSwInsertAbstractDlg(Window * pParent,int nResId)666 AbstractSwInsertAbstractDlg * SwAbstractDialogFactory_Impl::CreateSwInsertAbstractDlg( Window* pParent,
667 int nResId )
668 {
669 SwInsertAbstractDlg* pDlg=NULL;
670 switch ( nResId )
671 {
672 case DLG_INSERT_ABSTRACT :
673 pDlg = new SwInsertAbstractDlg( pParent);
674 break;
675 default:
676 break;
677 }
678
679 if ( pDlg )
680 return new AbstractSwInsertAbstractDlg_Impl( pDlg );
681 return 0;
682 }
683 //add for SwInsertAbstractDlg end
684
CreateSfxDialog(Window * pParent,const SfxItemSet & rSet,const::com::sun::star::uno::Reference<::com::sun::star::frame::XFrame> &,sal_uInt32 nResId)685 SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
686 const SfxItemSet& rSet,
687 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >&,
688 sal_uInt32 nResId
689 )
690 {
691 SfxModalDialog* pDlg=NULL;
692 switch ( nResId )
693 {
694 case RC_DLG_ADDR :
695 pDlg = new SwAddrDlg( pParent, rSet );
696 break;
697 case DLG_SWDROPCAPS :
698 pDlg = new SwDropCapsDlg( pParent, rSet );
699 break;
700 case RC_SWDLG_BACKGROUND :
701 pDlg = new SwBackgroundDlg( pParent, rSet );
702 break;
703 case RC_DLG_SWNUMFMTDLG :
704 pDlg = new SwNumFmtDlg( pParent, rSet );
705 break;
706 default:
707 break;
708 }
709
710 if ( pDlg )
711 return new AbstractSfxDialog_Impl( pDlg );
712 return 0;
713 }
714
715 // add for SwAsciiFilterDlg begin
CreateSwAsciiFilterDlg(Window * pParent,SwDocShell & rDocSh,SvStream * pStream,int nResId)716 AbstractSwAsciiFilterDlg* SwAbstractDialogFactory_Impl::CreateSwAsciiFilterDlg( Window* pParent,
717 SwDocShell& rDocSh,
718 SvStream* pStream,
719 int nResId )
720 {
721 SwAsciiFilterDlg* pDlg=NULL;
722 switch ( nResId )
723 {
724 case DLG_ASCII_FILTER :
725 pDlg = new SwAsciiFilterDlg( pParent, rDocSh, pStream );
726 break;
727
728 default:
729 break;
730 }
731
732 if ( pDlg )
733 return new AbstractSwAsciiFilterDlg_Impl( pDlg );
734 return 0;
735 }
736
737 //add for SwAsciiFilterDlg end
738
739 // add for SwInsertBookmarkDlg begin
CreateSwInsertBookmarkDlg(Window * pParent,SwWrtShell & rSh,SfxRequest & rReq,int nResId)740 VclAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwInsertBookmarkDlg( Window *pParent,
741 SwWrtShell &rSh,
742 SfxRequest& rReq,
743 int nResId )
744 {
745 Dialog* pDlg=NULL;
746 switch ( nResId )
747 {
748 case DLG_INSERT_BOOKMARK :
749 pDlg = new SwInsertBookmarkDlg( pParent, rSh, rReq );
750 break;
751
752 default:
753 break;
754 }
755
756 if ( pDlg )
757 return new VclAbstractDialog_Impl( pDlg );
758 return 0;
759 }
760
761 //add for SwInsertBookmarkDlg end
762
763 //add for SwBreakDlg begin
764
CreateSwBreakDlg(Window * pParent,SwWrtShell & rSh,int nResId)765 AbstractSwBreakDlg * SwAbstractDialogFactory_Impl::CreateSwBreakDlg ( Window *pParent,
766 SwWrtShell &rSh,
767 int nResId )
768 {
769 SwBreakDlg* pDlg=NULL;
770 switch ( nResId )
771 {
772 case DLG_BREAK :
773 pDlg = new SwBreakDlg( pParent, rSh );
774 break;
775
776 default:
777 break;
778 }
779
780 if ( pDlg )
781 return new AbstractSwBreakDlg_Impl( pDlg );
782 return 0;
783 }
784 //add for SwBreakDlg end
785
786 // add for SwChangeDBDlg begin
CreateSwChangeDBDlg(SwView & rVw,int nResId)787 VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwChangeDBDlg( SwView& rVw, int nResId )
788 {
789 Dialog* pDlg=NULL;
790 switch ( nResId )
791 {
792 case DLG_CHANGE_DB :
793 pDlg = new SwChangeDBDlg( rVw );
794 break;
795
796 default:
797 break;
798 }
799
800 if ( pDlg )
801 return new VclAbstractDialog_Impl( pDlg );
802 return 0;
803 }
804
805 // add for SwChangeDBDlg end
806
807 // add for SwCharDlg begin
CreateSwCharDlg(Window * pParent,SwView & pVw,const SfxItemSet & rCoreSet,int nResId,const String * pFmtStr,sal_Bool bIsDrwTxtDlg)808 SfxAbstractTabDialog * SwAbstractDialogFactory_Impl::CreateSwCharDlg(Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet, int nResId, // add for SwCharDlg
809 const String* pFmtStr , sal_Bool bIsDrwTxtDlg )
810 {
811
812 SfxTabDialog* pDlg=NULL;
813 switch ( nResId )
814 {
815 case DLG_CHAR :
816 pDlg = new SwCharDlg( pParent, pVw, rCoreSet, pFmtStr, bIsDrwTxtDlg );
817 break;
818 default:
819 break;
820 }
821
822 if ( pDlg )
823 return new AbstractTabDialog_Impl( pDlg );
824 return 0;
825
826 }
827 // add for SwCharDlg end
828
829 //add for SwConvertTableDlg begin
CreateSwConvertTableDlg(SwView & rView,int nResId,bool bToTable)830 AbstractSwConvertTableDlg* SwAbstractDialogFactory_Impl::CreateSwConvertTableDlg (
831 SwView& rView,int nResId, bool bToTable )
832 {
833 SwConvertTableDlg* pDlg=NULL;
834 switch ( nResId )
835 {
836 case DLG_CONV_TEXT_TABLE :
837 pDlg = new SwConvertTableDlg( rView, bToTable );
838 break;
839 default:
840 break;
841 }
842
843 if ( pDlg )
844 return new AbstractSwConvertTableDlg_Impl( pDlg );
845 return 0;
846 }
847
848 //add for SwConvertTableDlg end
849
850 //add for SwCaptionDialog begin
CreateSwCaptionDialog(Window * pParent,SwView & rV,int nResId)851 VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwCaptionDialog ( Window *pParent, SwView &rV,int nResId)
852 {
853 Dialog* pDlg=NULL;
854 switch ( nResId )
855 {
856 case DLG_CAPTION :
857 pDlg = new SwCaptionDialog( pParent, rV );
858 break;
859
860 default:
861 break;
862 }
863
864 if ( pDlg )
865 return new VclAbstractDialog_Impl( pDlg );
866 return 0;
867 }
868 //add for SwCaptionDialog end
869
870 //add for SwInsertDBColAutoPilot begin
871
CreateSwInsertDBColAutoPilot(SwView & rView,uno::Reference<sdbc::XDataSource> rxSource,uno::Reference<sdbcx::XColumnsSupplier> xColSupp,const SwDBData & rData,int nResId)872 AbstractSwInsertDBColAutoPilot* SwAbstractDialogFactory_Impl::CreateSwInsertDBColAutoPilot( SwView& rView, // add for SwInsertDBColAutoPilot
873 uno::Reference< sdbc::XDataSource> rxSource,
874 uno::Reference<sdbcx::XColumnsSupplier> xColSupp,
875 const SwDBData& rData, int nResId)
876 {
877 SwInsertDBColAutoPilot* pDlg=NULL;
878 switch ( nResId )
879 {
880 case DLG_AP_INSERT_DB_SEL :
881 pDlg = new SwInsertDBColAutoPilot( rView, rxSource, xColSupp, rData );
882 break;
883
884 default:
885 break;
886 }
887
888 if ( pDlg )
889 return new AbstractSwInsertDBColAutoPilot_Impl( pDlg );
890 return 0;
891 }
892 //add for SwInsertDBColAutoPilot end
893 //add for SwFootNoteOptionDlg begin
CreateSwFootNoteOptionDlg(Window * pParent,SwWrtShell & rSh,int nResId)894 SfxAbstractTabDialog * SwAbstractDialogFactory_Impl::CreateSwFootNoteOptionDlg( Window *pParent, SwWrtShell &rSh,int nResId)
895 {
896 SfxTabDialog* pDlg=NULL;
897 switch ( nResId )
898 {
899 case DLG_DOC_FOOTNOTE :
900 pDlg = new SwFootNoteOptionDlg( pParent, rSh );
901 break;
902
903 default:
904 break;
905 }
906
907 if ( pDlg )
908 return new AbstractTabDialog_Impl( pDlg );
909 return 0;
910 }
911 //add for SwFootNoteOptionDlg begin
912
913
914 //add for DropDownFieldDialog begin
915
CreateDropDownFieldDialog(Window * pParent,SwWrtShell & rSh,SwField * pField,int nResId,sal_Bool bNextButton)916 AbstractDropDownFieldDialog * SwAbstractDialogFactory_Impl::CreateDropDownFieldDialog ( Window *pParent, SwWrtShell &rSh, //add for DropDownFieldDialog
917 SwField* pField,int nResId, sal_Bool bNextButton )
918 {
919 sw::DropDownFieldDialog* pDlg=NULL;
920 switch ( nResId )
921 {
922 case DLG_FLD_DROPDOWN :
923 pDlg = new sw::DropDownFieldDialog( pParent, rSh, pField, bNextButton );
924 break;
925
926 default:
927 break;
928 }
929
930 if ( pDlg )
931 return new AbstractDropDownFieldDialog_Impl( pDlg );
932 return 0;
933 }
934 //add for DropDownFieldDialog end
935
936 //add for SwEnvDlg begin
CreateSwEnvDlg(Window * pParent,const SfxItemSet & rSet,SwWrtShell * pWrtSh,Printer * pPrt,sal_Bool bInsert,int nResId)937 SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet,
938 SwWrtShell* pWrtSh, Printer* pPrt,
939 sal_Bool bInsert,int nResId ) //add for SwEnvDlg
940 {
941 SfxTabDialog* pDlg=NULL;
942 switch ( nResId )
943 {
944 case DLG_ENV :
945 pDlg = new SwEnvDlg( pParent, rSet, pWrtSh,pPrt, bInsert );
946 break;
947
948 default:
949 break;
950 }
951
952 if ( pDlg )
953 return new AbstractTabDialog_Impl( pDlg );
954 return 0;
955 }
956 //add for SwEnvDlg end
957
958 //add for SwLabDlg begin
959
CreateSwLabDlg(Window * pParent,const SfxItemSet & rSet,SwNewDBMgr * pNewDBMgr,sal_Bool bLabel,int nResId)960 AbstractSwLabDlg* SwAbstractDialogFactory_Impl::CreateSwLabDlg ( Window* pParent, const SfxItemSet& rSet, //add for SwLabDlg
961 SwNewDBMgr* pNewDBMgr, sal_Bool bLabel,int nResId )
962 {
963 SwLabDlg* pDlg=NULL;
964 switch ( nResId )
965 {
966 case DLG_LAB :
967 pDlg = new SwLabDlg( pParent, rSet, pNewDBMgr,bLabel );
968 break;
969
970 default:
971 break;
972 }
973
974 if ( pDlg )
975 return new AbstractSwLabDlg_Impl( pDlg );
976 return 0;
977 }
978
GetSwLabDlgStaticMethod()979 SwLabDlgMethod SwAbstractDialogFactory_Impl::GetSwLabDlgStaticMethod ()
980 {
981 return SwLabDlg::UpdateFieldInformation;
982 }
983
984 //add for SwLabDlg end
985
986 //add for SwParaDlg begin
CreateSwParaDlg(Window * pParent,SwView & rVw,const SfxItemSet & rCoreSet,sal_uInt8 nDialogMode,int nResId,const String * pCollName,sal_Bool bDraw,sal_uInt16 nDefPage)987 SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwParaDlg ( Window *pParent, SwView& rVw,
988 const SfxItemSet& rCoreSet ,
989 sal_uInt8 nDialogMode,
990 int nResId,
991 const String *pCollName,
992 sal_Bool bDraw , sal_uInt16 nDefPage)
993 {
994 SfxTabDialog* pDlg=NULL;
995 switch ( nResId )
996 {
997 case DLG_DRAWPARA :
998 case DLG_PARA :
999 pDlg = new SwParaDlg( pParent, rVw, rCoreSet,nDialogMode, pCollName, bDraw, nDefPage );
1000 break;
1001
1002 default:
1003 break;
1004 }
1005
1006 if ( pDlg )
1007 return new AbstractTabDialog_Impl( pDlg );
1008 return 0;
1009 }
1010 //add for SwParaDlg end
1011
1012 //add for SwTableHeightDlg SwSortDlg begin
CreateVclAbstractDialog(Window * pParent,SwWrtShell & rSh,int nResId)1013 VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclAbstractDialog ( Window *pParent, SwWrtShell &rSh, int nResId )
1014 {
1015 Dialog* pDlg=NULL;
1016 switch ( nResId )
1017 {
1018 case DLG_ROW_HEIGHT :
1019 pDlg = new SwTableHeightDlg( pParent, rSh);
1020 break;
1021
1022 case DLG_SORTING :
1023 pDlg = new SwSortDlg( pParent, rSh);
1024 break;
1025 case DLG_COLUMN :
1026 pDlg = new SwColumnDlg( pParent, rSh );
1027 break;
1028 case DLG_EDIT_AUTHMARK :
1029 pDlg = new SwAuthMarkModalDlg( pParent, rSh );
1030 break;
1031 default:
1032 break;
1033 }
1034
1035 if ( pDlg )
1036 return new VclAbstractDialog_Impl( pDlg );
1037 return 0;
1038 }
1039 //add for SwTableHeightDlg SwSortDlg ,end
1040 //add for SwSplitTblDlg begin
CreateSplitTblDialog(Window * pParent,SwWrtShell & rSh)1041 AbstractSplitTableDialog * SwAbstractDialogFactory_Impl::CreateSplitTblDialog ( Window *pParent, SwWrtShell &rSh )
1042 {
1043 return new AbstractSplitTableDialog_Impl( new SwSplitTblDlg( pParent, rSh) );
1044 }
1045 //add SwSplitTblDlg end
1046
1047 //add for SwSelGlossaryDlg begin
CreateSwSelGlossaryDlg(Window * pParent,const String & rShortName,int nResId)1048 AbstractSwSelGlossaryDlg * SwAbstractDialogFactory_Impl::CreateSwSelGlossaryDlg ( Window * pParent, const String &rShortName, int nResId )
1049 {
1050 SwSelGlossaryDlg* pDlg=NULL;
1051 switch ( nResId )
1052 {
1053 case DLG_SEL_GLOS :
1054 pDlg = new SwSelGlossaryDlg( pParent, rShortName);
1055 break;
1056
1057 default:
1058 break;
1059 }
1060
1061 if ( pDlg )
1062 return new AbstractSwSelGlossaryDlg_Impl( pDlg );
1063 return 0;
1064 }
1065
1066 //add for SwSelGlossaryDlg end
1067
1068 //add for SwAutoFormatDlg begin
CreateSwAutoFormatDlg(Window * pParent,SwWrtShell * pShell,int nResId,sal_Bool bSetAutoFmt,const SwTableAutoFmt * pSelFmt)1069 AbstractSwAutoFormatDlg * SwAbstractDialogFactory_Impl::CreateSwAutoFormatDlg( Window* pParent, SwWrtShell* pShell,
1070 int nResId,
1071 sal_Bool bSetAutoFmt,
1072 const SwTableAutoFmt* pSelFmt )
1073 {
1074 SwAutoFormatDlg* pDlg=NULL;
1075 switch ( nResId )
1076 {
1077 case DLG_AUTOFMT_TABLE :
1078 pDlg = new SwAutoFormatDlg( pParent, pShell,bSetAutoFmt,pSelFmt);
1079 break;
1080
1081 default:
1082 break;
1083 }
1084
1085 if ( pDlg )
1086 return new AbstractSwAutoFormatDlg_Impl( pDlg );
1087 return 0;
1088 }
1089 //add for SwAutoFormatDlg end
1090
1091 //add for SwBorderDlg begin
CreateSwBorderDlg(Window * pParent,SfxItemSet & rSet,sal_uInt16 nType,int nResId)1092 SfxAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwBorderDlg (Window* pParent, SfxItemSet& rSet, sal_uInt16 nType,int nResId )
1093 {
1094 SfxModalDialog* pDlg=NULL;
1095 switch ( nResId )
1096 {
1097 case RC_DLG_SWBORDERDLG :
1098 pDlg = new SwBorderDlg( pParent, rSet, nType );
1099 break;
1100 default:
1101 break;
1102 }
1103
1104 if ( pDlg )
1105 return new AbstractSfxDialog_Impl( pDlg );
1106 return 0;
1107 }
1108 //add for SwBorderDlg end
1109
1110 //add for SwWrapDlg begin
CreateSwWrapDlg(Window * pParent,SfxItemSet & rSet,SwWrtShell * pSh,sal_Bool bDrawMode,int nResId)1111 SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwWrapDlg ( Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, sal_Bool bDrawMode, int nResId )
1112 {
1113 SfxModalDialog* pDlg=NULL;
1114 switch ( nResId )
1115 {
1116 case RC_DLG_SWWRAPDLG :
1117 pDlg = new SwWrapDlg( pParent, rSet, pSh, bDrawMode );
1118 break;
1119 default:
1120 break;
1121 }
1122
1123 if ( pDlg )
1124 return new AbstractSfxDialog_Impl( pDlg );
1125 return 0;
1126 }
1127 //add for SwWrapDlg end
1128
1129 //add for SwTableWidthDlg begin
CreateSwTableWidthDlg(Window * pParent,SwTableFUNC & rFnc,int nResId)1130 VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwTableWidthDlg ( Window *pParent, SwTableFUNC &rFnc , int nResId )
1131 {
1132 Dialog* pDlg=NULL;
1133 switch ( nResId )
1134 {
1135 case DLG_COL_WIDTH :
1136 pDlg = new SwTableWidthDlg( pParent, rFnc);
1137 break;
1138
1139 default:
1140 break;
1141 }
1142
1143 if ( pDlg )
1144 return new VclAbstractDialog_Impl( pDlg );
1145 return 0;
1146 }
1147 //add for SwTableWidthDlg end
1148
1149 //add for SwTableTabDlg begin
CreateSwTableTabDlg(Window * pParent,SfxItemPool & Pool,const SfxItemSet * pItemSet,SwWrtShell * pSh,int nResId)1150 SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTableTabDlg( Window* pParent, SfxItemPool& Pool,
1151 const SfxItemSet* pItemSet, SwWrtShell* pSh,int nResId )
1152 {
1153 SfxTabDialog* pDlg=NULL;
1154 switch ( nResId )
1155 {
1156 case DLG_FORMAT_TABLE :
1157 pDlg = new SwTableTabDlg( pParent, Pool, pItemSet,pSh );
1158 break;
1159
1160 default:
1161 break;
1162 }
1163
1164 if ( pDlg )
1165 return new AbstractTabDialog_Impl( pDlg );
1166 return 0;
1167 }
1168 //add for SwTableTabDlg end
1169
1170 //add for SwFldDlg begin
CreateSwFldDlg(SfxBindings * pB,SwChildWinWrapper * pCW,Window * pParent,int nResId)1171 AbstractSwFldDlg * SwAbstractDialogFactory_Impl::CreateSwFldDlg ( SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent, int nResId )
1172 {
1173 SwFldDlg* pDlg=NULL;
1174 switch ( nResId )
1175 {
1176 case DLG_FLD_INSERT :
1177 pDlg = new SwFldDlg( pB, pCW,pParent);
1178 break;
1179
1180 default:
1181 break;
1182 }
1183
1184 if ( pDlg )
1185 return new AbstractSwFldDlg_Impl( pDlg );
1186 return 0;
1187 }
1188 //add for SwFldDlg end
1189
1190 //add for SwFldEditDlg begin
CreateSwFldEditDlg(SwView & rVw,int nResId)1191 SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwFldEditDlg ( SwView& rVw, int nResId )
1192 {
1193 SfxModalDialog* pDlg=NULL;
1194 switch ( nResId )
1195 {
1196 case RC_DLG_SWFLDEDITDLG :
1197 pDlg = new SwFldEditDlg( rVw );
1198 break;
1199 default:
1200 break;
1201 }
1202
1203 if ( pDlg )
1204 return new AbstractSfxDialog_Impl( pDlg );
1205 return 0;
1206 }
1207 //add for SwFldEditDlg
1208
1209 //add for SwRenameXNamedDlg begin
CreateSwRenameXNamedDlg(Window * pParent,STAR_REFERENCE (container::XNamed)& xNamed,STAR_REFERENCE (container::XNameAccess)& xNameAccess,int nResId)1210 AbstractSwRenameXNamedDlg * SwAbstractDialogFactory_Impl::CreateSwRenameXNamedDlg( Window* pParent,
1211 STAR_REFERENCE( container::XNamed ) & xNamed,
1212 STAR_REFERENCE( container::XNameAccess ) & xNameAccess,int nResId )
1213 {
1214 SwRenameXNamedDlg* pDlg=NULL;
1215 switch ( nResId )
1216 {
1217 case DLG_RENAME_XNAMED :
1218 pDlg = new SwRenameXNamedDlg( pParent,xNamed, xNameAccess);
1219 break;
1220 default:
1221 break;
1222 }
1223
1224 if ( pDlg )
1225 return new AbstractSwRenameXNamedDlg_Impl( pDlg );
1226 return 0;
1227 }
1228
1229 //add for SwRenameXNamedDlg end
1230
1231 //add for SwModalRedlineAcceptDlg begin
CreateSwModalRedlineAcceptDlg(Window * pParent,int nResId)1232 AbstractSwModalRedlineAcceptDlg * SwAbstractDialogFactory_Impl::CreateSwModalRedlineAcceptDlg ( Window *pParent, int nResId )
1233 {
1234 SwModalRedlineAcceptDlg* pDlg=NULL;
1235 switch ( nResId )
1236 {
1237 case DLG_MOD_REDLINE_ACCEPT :
1238 pDlg = new SwModalRedlineAcceptDlg( pParent );
1239 break;
1240 default:
1241 break;
1242 }
1243
1244 if ( pDlg )
1245 return new AbstractSwModalRedlineAcceptDlg_Impl( pDlg );
1246 return 0;
1247 }
1248 //add for SwModalRedlineAcceptDlg end
1249
CreateSwVclDialog(int nResId,Window * pParent,sal_Bool & rWithPrev)1250 VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwVclDialog( int nResId,
1251 Window* pParent, sal_Bool& rWithPrev ) //add for SwMergeTblDlg
1252 {
1253 Dialog* pDlg=NULL;
1254 switch ( nResId )
1255 {
1256 case DLG_MERGE_TABLE :
1257 pDlg = new SwMergeTblDlg( pParent, rWithPrev );
1258 break;
1259 default:
1260 break;
1261 }
1262 if ( pDlg )
1263 return new VclAbstractDialog_Impl( pDlg );
1264 return 0;
1265 }
CreateFrmTabDialog(int nResId,SfxViewFrame * pFrame,Window * pParent,const SfxItemSet & rCoreSet,sal_Bool bNewFrm,sal_uInt16 nResType,sal_Bool bFmt,sal_uInt16 nDefPage,const String * pFmtStr)1266 SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateFrmTabDialog( int nResId,
1267 SfxViewFrame *pFrame, Window *pParent,
1268 const SfxItemSet& rCoreSet,
1269 sal_Bool bNewFrm,
1270 sal_uInt16 nResType,
1271 sal_Bool bFmt,
1272 sal_uInt16 nDefPage,
1273 const String* pFmtStr ) //add for SwFrmDlg
1274 {
1275 SfxTabDialog* pDlg=NULL;
1276 switch ( nResId )
1277 {
1278 case DLG_FRM_GRF :
1279 case DLG_FRM_OLE :
1280 case DLG_FRM_STD :
1281 pDlg = new SwFrmDlg( pFrame, pParent, rCoreSet, bNewFrm, nResType, bFmt, nDefPage, pFmtStr );
1282 break;
1283 default:
1284 break;
1285 }
1286
1287 if ( pDlg )
1288 return new AbstractTabDialog_Impl( pDlg );
1289 return 0;
1290 }
1291
CreateTemplateDialog(int nResId,Window * pParent,SfxStyleSheetBase & rBase,sal_uInt16 nRegion,const sal_uInt16 nSlot,SwWrtShell * pActShell,sal_Bool bNew)1292 SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateTemplateDialog( int nResId,
1293 Window* pParent,
1294 SfxStyleSheetBase& rBase,
1295 sal_uInt16 nRegion,
1296 const sal_uInt16 nSlot,
1297 SwWrtShell* pActShell,
1298 sal_Bool bNew ) //add for SwTemplateDlg
1299 {
1300 SfxTabDialog* pDlg=NULL;
1301 switch ( nResId )
1302 {
1303 case DLG_TEMPLATE_BASE :
1304 pDlg = new SwTemplateDlg( pParent, rBase, nRegion, nSlot, pActShell, bNew );
1305 break;
1306 default:
1307 break;
1308 }
1309
1310 if ( pDlg )
1311 return new AbstractTabDialog_Impl( pDlg );
1312 return 0;
1313 }
1314
CreateGlossaryDlg(int nResId,SfxViewFrame * pViewFrame,SwGlossaryHdl * pGlosHdl,SwWrtShell * pWrtShell)1315 AbstractGlossaryDlg* SwAbstractDialogFactory_Impl::CreateGlossaryDlg( int nResId,
1316 SfxViewFrame* pViewFrame,
1317 SwGlossaryHdl* pGlosHdl,
1318 SwWrtShell *pWrtShell) //add for SwGlossaryDlg
1319 {
1320 SwGlossaryDlg* pDlg=NULL;
1321 switch ( nResId )
1322 {
1323 case DLG_RENAME_GLOS :
1324 pDlg = new SwGlossaryDlg( pViewFrame, pGlosHdl, pWrtShell );
1325 break;
1326 default:
1327 break;
1328 }
1329 if ( pDlg )
1330 return new AbstractGlossaryDlg_Impl( pDlg );
1331 return 0;
1332 }
1333
CreateFldInputDlg(int nResId,Window * pParent,SwWrtShell & rSh,SwField * pField,sal_Bool bNextButton)1334 AbstractFldInputDlg* SwAbstractDialogFactory_Impl::CreateFldInputDlg( int nResId,
1335 Window *pParent, SwWrtShell &rSh,
1336 SwField* pField, sal_Bool bNextButton ) //add for SwFldInputDlg
1337 {
1338 SwFldInputDlg* pDlg=NULL;
1339 switch ( nResId )
1340 {
1341 case DLG_FLD_INPUT :
1342 pDlg = new SwFldInputDlg( pParent, rSh, pField, bNextButton );
1343 break;
1344 default:
1345 break;
1346 }
1347 if ( pDlg )
1348 return new AbstractFldInputDlg_Impl( pDlg );
1349 return 0;
1350 }
1351
CreateInsFootNoteDlg(int nResId,Window * pParent,SwWrtShell & rSh,sal_Bool bEd)1352 AbstractInsFootNoteDlg* SwAbstractDialogFactory_Impl::CreateInsFootNoteDlg( int nResId,
1353 Window * pParent, SwWrtShell &rSh, sal_Bool bEd ) //add for SwInsFootNoteDlg
1354 {
1355 SwInsFootNoteDlg* pDlg=NULL;
1356 switch ( nResId )
1357 {
1358 case DLG_INS_FOOTNOTE :
1359 pDlg = new SwInsFootNoteDlg( pParent, rSh, bEd );
1360 break;
1361 default:
1362 break;
1363 }
1364 if ( pDlg )
1365 return new AbstractInsFootNoteDlg_Impl( pDlg );
1366 return 0;
1367 }
1368
CreateVclSwViewDialog(int nResId,SwView & rView,sal_Bool)1369 VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclSwViewDialog( int nResId,
1370 SwView& rView, sal_Bool /*bCol*/ ) //add for SwInsRowColDlg, SwLineNumberingDlg
1371 {
1372 Dialog* pDlg=NULL;
1373 switch ( nResId )
1374 {
1375 case DLG_LINE_NUMBERING :
1376 pDlg = new SwLineNumberingDlg( &rView );
1377 break;
1378 default:
1379 break;
1380 }
1381
1382 if ( pDlg )
1383 return new VclAbstractDialog_Impl( pDlg );
1384 return 0;
1385 }
1386
CreateInsertGrfRulerDlg(int nResId,Window * pParent)1387 AbstractInsertGrfRulerDlg * SwAbstractDialogFactory_Impl::CreateInsertGrfRulerDlg( int nResId,
1388 Window * pParent ) //add for SwInsertGrfRulerDlg
1389 {
1390 SwInsertGrfRulerDlg* pDlg=NULL;
1391 switch ( nResId )
1392 {
1393 case DLG_INSERT_RULER :
1394 pDlg = new SwInsertGrfRulerDlg( pParent );
1395 break;
1396 default:
1397 break;
1398 }
1399
1400 if ( pDlg )
1401 return new AbstractInsertGrfRulerDlg_Impl( pDlg );
1402 return 0;
1403 }
1404
CreateInsTableDlg(int nResId,SwView & rView)1405 AbstractInsTableDlg * SwAbstractDialogFactory_Impl::CreateInsTableDlg( int nResId,
1406 SwView& rView ) //add for SwInsTableDlg
1407 {
1408 SwInsTableDlg* pDlg=NULL;
1409 switch ( nResId )
1410 {
1411 case DLG_INSERT_TABLE :
1412 pDlg = new SwInsTableDlg( rView );
1413 break;
1414 default:
1415 break;
1416 }
1417 if ( pDlg )
1418 return new AbstractInsTableDlg_Impl( pDlg );
1419 return 0;
1420 }
1421
CreateJavaEditDialog(int nResId,Window * pParent,SwWrtShell * pWrtSh)1422 AbstractJavaEditDialog * SwAbstractDialogFactory_Impl::CreateJavaEditDialog( int nResId,
1423 Window* pParent, SwWrtShell* pWrtSh ) //add for SwJavaEditDialog
1424 {
1425 SwJavaEditDialog* pDlg=NULL;
1426 switch ( nResId )
1427 {
1428 case DLG_JAVAEDIT :
1429 pDlg = new SwJavaEditDialog( pParent, pWrtSh );
1430 break;
1431 default:
1432 break;
1433 }
1434 if ( pDlg )
1435 return new AbstractJavaEditDialog_Impl( pDlg );
1436 return 0;
1437 }
1438
CreateMailMergeDlg(int nResId,Window * pParent,SwWrtShell & rSh,const String & rSourceName,const String & rTblName,sal_Int32 nCommandType,const uno::Reference<sdbc::XConnection> & xConnection,uno::Sequence<uno::Any> * pSelection)1439 AbstractMailMergeDlg * SwAbstractDialogFactory_Impl::CreateMailMergeDlg( int nResId,
1440 Window* pParent, SwWrtShell& rSh,
1441 const String& rSourceName,
1442 const String& rTblName,
1443 sal_Int32 nCommandType,
1444 const uno::Reference< sdbc::XConnection>& xConnection,
1445 uno::Sequence< uno::Any >* pSelection ) //add for SwMailMergeDlg
1446 {
1447 SwMailMergeDlg* pDlg=NULL;
1448 switch ( nResId )
1449 {
1450 case DLG_MAILMERGE :
1451 pDlg = new SwMailMergeDlg( pParent, rSh, rSourceName, rTblName, nCommandType, xConnection, pSelection );
1452 break;
1453 default:
1454 break;
1455 }
1456 if ( pDlg )
1457 return new AbstractMailMergeDlg_Impl( pDlg );
1458 return 0;
1459 }
CreateMailMergeCreateFromDlg(int nResId,Window * pParent)1460 AbstractMailMergeCreateFromDlg * SwAbstractDialogFactory_Impl::CreateMailMergeCreateFromDlg( int nResId,
1461 Window* pParent ) //add for SwMailMergeCreateFromDlg
1462 {
1463 SwMailMergeCreateFromDlg* pDlg=NULL;
1464 switch ( nResId )
1465 {
1466 case DLG_MERGE_CREATE :
1467 pDlg = new SwMailMergeCreateFromDlg( pParent );
1468 break;
1469 default:
1470 break;
1471 }
1472 if ( pDlg )
1473 return new AbstractMailMergeCreateFromDlg_Impl( pDlg );
1474 return 0;
1475 }
CreateMailMergeFieldConnectionsDlg(int nResId,Window * pParent)1476 AbstractMailMergeFieldConnectionsDlg * SwAbstractDialogFactory_Impl::CreateMailMergeFieldConnectionsDlg( int nResId,
1477 Window* pParent ) //add for SwMailMergeFieldConnectionsDlg
1478 {
1479 SwMailMergeFieldConnectionsDlg* pDlg=NULL;
1480 switch ( nResId )
1481 {
1482 case DLG_MERGE_FIELD_CONNECTIONS :
1483 pDlg = new SwMailMergeFieldConnectionsDlg( pParent );
1484 break;
1485 default:
1486 break;
1487 }
1488 if ( pDlg )
1489 return new AbstractMailMergeFieldConnectionsDlg_Impl( pDlg );
1490 return 0;
1491 }
1492
CreateMultiTOXMarkDlg(int nResId,Window * pParent,SwTOXMgr & rTOXMgr)1493 VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateMultiTOXMarkDlg( int nResId,
1494 Window* pParent, SwTOXMgr &rTOXMgr ) //add for SwMultiTOXMarkDlg
1495 {
1496 Dialog* pDlg=NULL;
1497 switch ( nResId )
1498 {
1499 case DLG_MULTMRK :
1500 pDlg = new SwMultiTOXMarkDlg( pParent, rTOXMgr );
1501 break;
1502 default:
1503 break;
1504 }
1505 if ( pDlg )
1506 return new VclAbstractDialog_Impl( pDlg );
1507 return 0;
1508 }
CreateSwTabDialog(int nResId,Window * pParent,const SfxItemSet * pSwItemSet,SwWrtShell & rWrtSh)1509 SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTabDialog( int nResId,
1510 Window* pParent,
1511 const SfxItemSet* pSwItemSet,
1512 SwWrtShell & rWrtSh ) //add for SwSvxNumBulletTabDialog, SwOutlineTabDialog
1513 {
1514 SfxTabDialog* pDlg=NULL;
1515 switch ( nResId )
1516 {
1517 case DLG_SVXTEST_NUM_BULLET :
1518 pDlg = new SwSvxNumBulletTabDialog( pParent, pSwItemSet, rWrtSh );
1519 break;
1520 case DLG_TAB_OUTLINE :
1521 pDlg = new SwOutlineTabDialog( pParent, pSwItemSet, rWrtSh );
1522 break;
1523
1524 default:
1525 break;
1526 }
1527 if ( pDlg )
1528 return new AbstractTabDialog_Impl( pDlg );
1529 return 0;
1530 }
CreateMultiTOXTabDialog(int nResId,Window * pParent,const SfxItemSet & rSet,SwWrtShell & rShell,SwTOXBase * pCurTOX,sal_uInt16 nToxType,sal_Bool bGlobal)1531 AbstractMultiTOXTabDialog * SwAbstractDialogFactory_Impl::CreateMultiTOXTabDialog( int nResId,
1532 Window* pParent, const SfxItemSet& rSet,
1533 SwWrtShell &rShell,
1534 SwTOXBase* pCurTOX, sal_uInt16 nToxType,
1535 sal_Bool bGlobal ) //add for SwMultiTOXTabDialog
1536 {
1537 SwMultiTOXTabDialog* pDlg=NULL;
1538 switch ( nResId )
1539 {
1540 case DLG_MULTI_TOX :
1541 pDlg = new SwMultiTOXTabDialog( pParent, rSet, rShell, pCurTOX, nToxType, bGlobal );
1542 break;
1543 default:
1544 break;
1545 }
1546 if ( pDlg )
1547 return new AbstractMultiTOXTabDialog_Impl( pDlg );
1548 return 0;
1549 }
CreateEditRegionDlg(int nResId,Window * pParent,SwWrtShell & rWrtSh)1550 AbstractEditRegionDlg * SwAbstractDialogFactory_Impl::CreateEditRegionDlg( int nResId,
1551 Window* pParent, SwWrtShell& rWrtSh ) //add for SwEditRegionDlg
1552 {
1553 SwEditRegionDlg* pDlg=NULL;
1554 switch ( nResId )
1555 {
1556 case MD_EDIT_REGION :
1557 pDlg = new SwEditRegionDlg( pParent, rWrtSh );
1558 break;
1559 default:
1560 break;
1561 }
1562 if ( pDlg )
1563 return new AbstractEditRegionDlg_Impl( pDlg );
1564 return 0;
1565 }
CreateInsertSectionTabDialog(int nResId,Window * pParent,const SfxItemSet & rSet,SwWrtShell & rSh)1566 AbstractInsertSectionTabDialog * SwAbstractDialogFactory_Impl::CreateInsertSectionTabDialog( int nResId,
1567 Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh) //add for SwInsertSectionTabDialog
1568 {
1569 SwInsertSectionTabDialog* pDlg=NULL;
1570 switch ( nResId )
1571 {
1572 case DLG_INSERT_SECTION :
1573 pDlg = new SwInsertSectionTabDialog( pParent, rSet, rSh );
1574 break;
1575 default:
1576 break;
1577 }
1578 if ( pDlg )
1579 return new AbstractInsertSectionTabDialog_Impl( pDlg );
1580 return 0;
1581 }
1582
CreateIndexMarkFloatDlg(int nResId,SfxBindings * pBindings,SfxChildWindow * pChild,Window * pParent,SfxChildWinInfo * pInfo,sal_Bool bNew)1583 AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateIndexMarkFloatDlg( int nResId,
1584 SfxBindings* pBindings,
1585 SfxChildWindow* pChild,
1586 Window *pParent,
1587 SfxChildWinInfo* pInfo,
1588 sal_Bool bNew ) //add for SwIndexMarkFloatDlg
1589 {
1590 SwIndexMarkFloatDlg* pDlg=NULL;
1591 switch ( nResId )
1592 {
1593 case DLG_INSIDXMARK_CJK :
1594 case DLG_INSIDXMARK :
1595 pDlg = new SwIndexMarkFloatDlg( pBindings, pChild, pParent, pInfo, bNew );
1596 break;
1597 default:
1598 break;
1599 }
1600 if ( pDlg )
1601 return new AbstractIndexMarkFloatDlg_Impl( pDlg );
1602 return 0;
1603 }
1604
CreateAuthMarkFloatDlg(int nResId,SfxBindings * pBindings,SfxChildWindow * pChild,Window * pParent,SfxChildWinInfo * pInfo,sal_Bool bNew)1605 AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg( int nResId,
1606 SfxBindings* pBindings,
1607 SfxChildWindow* pChild,
1608 Window *pParent,
1609 SfxChildWinInfo* pInfo,
1610 sal_Bool bNew ) //add for SwAuthMarkFloatDlg
1611 {
1612 SwAuthMarkFloatDlg* pDlg=NULL;
1613 switch ( nResId )
1614 {
1615 case DLG_INSAUTHMARK :
1616 pDlg = new SwAuthMarkFloatDlg( pBindings, pChild, pParent, pInfo, bNew );
1617 break;
1618 default:
1619 break;
1620 }
1621 if ( pDlg )
1622 return new AbstractAuthMarkFloatDlg_Impl( pDlg );
1623 return 0;
1624 }
1625
1626 //add for SwIndexMarkModalDlg begin
CreateIndexMarkModalDlg(int nResId,Window * pParent,SwWrtShell & rSh,SwTOXMark * pCurTOXMark)1627 VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateIndexMarkModalDlg( int nResId,
1628 Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark ) //add for SwIndexMarkModalDlg
1629 {
1630 Dialog* pDlg=NULL;
1631 switch ( nResId )
1632 {
1633 case DLG_EDIT_IDXMARK_CJK :
1634 case DLG_EDIT_IDXMARK :
1635 pDlg = new SwIndexMarkModalDlg( pParent, rSh, pCurTOXMark );
1636 break;
1637
1638 default:
1639 break;
1640 }
1641
1642 if ( pDlg )
1643 return new VclAbstractDialog_Impl( pDlg );
1644 return 0;
1645 }
1646 //add for SwIndexMarkModalDlg end
CreateMailMergeWizard(SwView & rView,SwMailMergeConfigItem & rConfigItem)1647 AbstractMailMergeWizard* SwAbstractDialogFactory_Impl::CreateMailMergeWizard(
1648 SwView& rView, SwMailMergeConfigItem& rConfigItem)
1649 {
1650 return new AbstractMailMergeWizard_Impl( new SwMailMergeWizard(rView, rConfigItem));
1651 }
1652
1653 //add for static func in SwGlossaryDlg
GetGlossaryCurrGroupFunc(sal_uInt16 nId)1654 GlossaryGetCurrGroup SwAbstractDialogFactory_Impl::GetGlossaryCurrGroupFunc( sal_uInt16 nId )
1655 {
1656 switch ( nId )
1657 {
1658 case DLG_RENAME_GLOS :
1659 return SwGlossaryDlg::GetCurrGroup;
1660 default:
1661 break;
1662 }
1663 return 0;
1664 }
SetGlossaryActGroupFunc(sal_uInt16 nId)1665 GlossarySetActGroup SwAbstractDialogFactory_Impl::SetGlossaryActGroupFunc( sal_uInt16 nId )
1666 {
1667 switch ( nId )
1668 {
1669 case DLG_RENAME_GLOS :
1670 return SwGlossaryDlg::SetActGroup;
1671 default:
1672 break;
1673 }
1674 return 0;
1675 }
1676
1677 //------------------ Factories for TabPages
GetTabPageCreatorFunc(sal_uInt16 nId)1678 CreateTabPage SwAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
1679 {
1680 CreateTabPage pRet = 0;
1681 switch ( nId )
1682 {
1683 case TP_OPTCOMPATIBILITY_PAGE :
1684 case RID_SW_TP_OPTCOMPATIBILITY_PAGE :
1685 pRet = SwCompatibilityOptPage::Create;
1686 break;
1687 case TP_OPTLOAD_PAGE :
1688 case RID_SW_TP_OPTLOAD_PAGE :
1689 pRet = SwLoadOptPage::Create;
1690 break;
1691 case TP_OPTCAPTION_PAGE:
1692 case RID_SW_TP_OPTCAPTION_PAGE:
1693 return SwCaptionOptPage::Create;
1694 case TP_CONTENT_OPT :
1695 case RID_SW_TP_CONTENT_OPT:
1696 case RID_SW_TP_HTML_CONTENT_OPT:
1697 pRet = SwContentOptPage::Create;
1698 break;
1699 case TP_OPTSHDWCRSR :
1700 case RID_SW_TP_OPTSHDWCRSR:
1701 case RID_SW_TP_HTML_OPTSHDWCRSR:
1702 pRet = SwShdwCrsrOptionsTabPage::Create;
1703 break;
1704 case RID_SW_TP_REDLINE_OPT :
1705 case TP_REDLINE_OPT :
1706 pRet = SwRedlineOptionsTabPage::Create;
1707 break;
1708 case RID_SW_TP_OPTTEST_PAGE :
1709 case TP_OPTTEST_PAGE :
1710 #ifdef DBG_UTIL
1711 pRet = SwTestTabPage::Create;
1712 #endif
1713 break;
1714 case TP_OPTPRINT_PAGE :
1715 case RID_SW_TP_HTML_OPTPRINT_PAGE:
1716 case RID_SW_TP_OPTPRINT_PAGE:
1717 pRet = SwAddPrinterTabPage::Create;
1718 break;
1719 case TP_STD_FONT :
1720 case RID_SW_TP_STD_FONT:
1721 case RID_SW_TP_STD_FONT_CJK:
1722 case RID_SW_TP_STD_FONT_CTL:
1723 pRet = SwStdFontTabPage::Create;
1724 break;
1725 case TP_OPTTABLE_PAGE :
1726 case RID_SW_TP_HTML_OPTTABLE_PAGE:
1727 case RID_SW_TP_OPTTABLE_PAGE:
1728 pRet = SwTableOptionsTabPage::Create;
1729 break;
1730 case TP_DOC_STAT :
1731 pRet = SwDocStatPage::Create;
1732 break;
1733 case RID_SW_TP_MAILCONFIG:
1734 pRet = SwMailConfigPage::Create;
1735 break;
1736 }
1737
1738 return pRet;
1739 }
1740
GetTabPageRangesFunc(sal_uInt16 nId)1741 GetTabPageRanges SwAbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
1742 {
1743 switch ( nId )
1744 {
1745 case 1 : //RID_SVXPAGE_TEXTANIMATION :
1746 //return SvxTextAnimationPage::GetRanges;
1747 break;
1748 default:
1749 break;
1750 }
1751
1752 return 0;
1753 }
1754
1755 /* vim: set noet sw=4 ts=4: */
1756