Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include "swdlgfact.hxx"
21 : #include <svl/style.hxx>
22 : #include <svx/svxids.hrc>
23 : #include "dialog.hrc"
24 : #include "misc.hrc"
25 : #include "chrdlg.hrc"
26 : #include "table.hrc"
27 : #include "frmui.hrc"
28 : #include "dbui.hrc"
29 : #include "globals.hrc"
30 : #include "fldui.hrc"
31 : #include "envelp.hrc"
32 : #include "dochdl.hrc"
33 : #include <index.hrc>
34 : #include <regionsw.hrc>
35 : #include <fmtui.hrc>
36 :
37 : #include <wordcountdialog.hxx>
38 : #include "abstract.hxx" // add for SwInsertAbstractDlg
39 : #include "addrdlg.hxx" // add for SwAddrDlg
40 : #include "ascfldlg.hxx" // add for SwAsciiFilterDlg
41 : #include "bookmark.hxx" //add for SwInsertBookmarkDlg
42 : #include "break.hxx" //add for SwBreakDlg
43 : #include "changedb.hxx" //add for SwChangeDBDlg
44 : #include "chrdlg.hxx" // add for SwCharDlg
45 : #include "convert.hxx" //add for SwConvertTableDlg
46 : #include "cption.hxx" //add for SwCaptionDialog
47 : #include "dbinsdlg.hxx" //add for SwInsertDBColAutoPilot
48 : #include "docfnote.hxx" //add for SwFootNoteOptionDlg
49 : #include "docstdlg.hxx" //add for SwDocStatPage
50 : #include "DropDownFieldDialog.hxx" //add for DropDownFieldDialog
51 : #include "envlop.hxx" //add for SwEnvDlg
52 : #include "label.hxx" //add for SwLabDlg
53 : #include "drpcps.hxx" //add for SwDropCapsDlg
54 : #include "swuipardlg.hxx" //add for SwParaDlg
55 : #include "pattern.hxx" //add for SwBackgroundDlg
56 : #include "rowht.hxx" //add for SwTableHeightDlg
57 : #include "selglos.hxx" //add for SwSelGlossaryDlg
58 : #include "splittbl.hxx" //add for SwSplitTblDlg
59 : #include "srtdlg.hxx" //add for SwSortDlg
60 : #include "tautofmt.hxx" //add for SwAutoFormatDlg
61 : #include "tblnumfm.hxx" //add for SwNumFmtDlg
62 : #include "uiborder.hxx" //add for SwBorderDlg
63 : #include "wrap.hxx" //add for SwWrapDlg
64 : #include "colwd.hxx" //add for SwTableWidthDlg
65 : #include "tabledlg.hxx" //add for SwTableTabDlg
66 : #include "fldtdlg.hxx" //add for SwFldDlg
67 : #include "fldedt.hxx" //add for SwFldEditDlg
68 : #include "swrenamexnameddlg.hxx" //add for SwRenameXNamedDlg
69 : #include "swmodalredlineacceptdlg.hxx" //add for SwModalRedlineAcceptDlg
70 : #include <frmdlg.hxx> //add for SwFrmDlg
71 : #include <tmpdlg.hxx> //add for SwTemplateDlg
72 : #include <glossary.hxx> //add for SwGlossaryDlg
73 : #include <inpdlg.hxx> //add for SwFldInputDlg
74 : #include <insfnote.hxx> //add for SwInsFootNoteDlg
75 : #include <instable.hxx> //add for SwInsTableDlg
76 : #include <javaedit.hxx> //add for SwJavaEditDialog
77 : #include <linenum.hxx> //add for SwLineNumberingDlg
78 : #include <titlepage.hxx> //add for SwTitlePageDlg
79 : #include <mailmrge.hxx> //add for SwMailMergeDlg, SwMailMergeCreateFromDlg, SwMailMergeFieldConnectionsDlg
80 : #include <mergetbl.hxx> //add for SwMergeTblDlg
81 : #include <multmrk.hxx> //add for SwMultiTOXMarkDlg
82 : #include <num.hxx> //add for SwSvxNumBulletTabDialog
83 : #include <outline.hxx> //add for SwOutlineTabDialog
84 : #include <column.hxx> //add for SwColumnDlg
85 : #include <cnttab.hxx> //add for SwMultiTOXTabDialog
86 : #include <swuicnttab.hxx> //add for SwMultiTOXTabDialog
87 : #include <regionsw.hxx> //add for SwEditRegionDlg, SwInsertSectionTabDialog
88 : #include <optcomp.hxx> //add for SwCompatibilityOptPage
89 : #include <optload.hxx> //add for SwLoadOptPage
90 : #include <optpage.hxx> //add for OptPage
91 : #include <swuiidxmrk.hxx> //add for SwIndexMarkDlg, SwAuthMarkDlg, SwIndexMarkModalDlg, SwAuthMarkModalDlg
92 : #include <svx/dialogs.hrc>
93 : #include <mailmergewizard.hxx>
94 : #include <mailconfigpage.hxx>
95 :
96 : using namespace ::com::sun::star;
97 :
98 0 : IMPL_ABSTDLG_BASE(AbstractSwWordCountFloatDlg_Impl);
99 0 : IMPL_ABSTDLG_BASE(AbstractSwInsertAbstractDlg_Impl);
100 0 : IMPL_ABSTDLG_BASE(SwAbstractSfxDialog_Impl);
101 0 : IMPL_ABSTDLG_BASE(AbstractSwAsciiFilterDlg_Impl);
102 0 : IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl);
103 0 : IMPL_ABSTDLG_BASE(AbstractSplitTableDialog_Impl);
104 0 : IMPL_ABSTDLG_BASE(AbstractSwBreakDlg_Impl); //add for SwBreakDlg
105 0 : IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl); //add for SwCharDlg, SwFootNoteOptionDlg, SwEnvDlg SwParaDlg SwTableTabDlg
106 0 : IMPL_ABSTDLG_BASE(AbstractSwConvertTableDlg_Impl); //add for SwConvertTableDlg
107 0 : IMPL_ABSTDLG_BASE(AbstractSwInsertDBColAutoPilot_Impl); //add for SwInsertDBColAutoPilot
108 0 : IMPL_ABSTDLG_BASE(AbstractDropDownFieldDialog_Impl); //add for DropDownFieldDialog
109 0 : IMPL_ABSTDLG_BASE(AbstractSwLabDlg_Impl);//add for SwLabDlg
110 0 : IMPL_ABSTDLG_BASE(AbstractSwSelGlossaryDlg_Impl);//add for SwSelGlossaryDlg
111 0 : IMPL_ABSTDLG_BASE(AbstractSwAutoFormatDlg_Impl); //add for SwAutoFormatDlg
112 0 : IMPL_ABSTDLG_BASE(AbstractSwFldDlg_Impl); //add for SwFldDlg
113 0 : IMPL_ABSTDLG_BASE(AbstractSwRenameXNamedDlg_Impl); //add for SwRenameXNamedDlg
114 0 : IMPL_ABSTDLG_BASE(AbstractSwModalRedlineAcceptDlg_Impl); //add for SwModalRedlineAcceptDlg
115 0 : IMPL_ABSTDLG_BASE(AbstractGlossaryDlg_Impl);
116 0 : IMPL_ABSTDLG_BASE(AbstractFldInputDlg_Impl);
117 0 : IMPL_ABSTDLG_BASE(AbstractInsFootNoteDlg_Impl);
118 0 : IMPL_ABSTDLG_BASE(AbstractInsTableDlg_Impl);
119 0 : IMPL_ABSTDLG_BASE(AbstractJavaEditDialog_Impl);
120 0 : IMPL_ABSTDLG_BASE(AbstractMailMergeDlg_Impl);
121 0 : IMPL_ABSTDLG_BASE(AbstractMailMergeCreateFromDlg_Impl);
122 0 : IMPL_ABSTDLG_BASE(AbstractMailMergeFieldConnectionsDlg_Impl);
123 0 : IMPL_ABSTDLG_BASE(AbstractMultiTOXTabDialog_Impl);
124 0 : IMPL_ABSTDLG_BASE(AbstractEditRegionDlg_Impl);
125 0 : IMPL_ABSTDLG_BASE(AbstractInsertSectionTabDialog_Impl);
126 0 : IMPL_ABSTDLG_BASE(AbstractIndexMarkFloatDlg_Impl);
127 0 : IMPL_ABSTDLG_BASE(AbstractAuthMarkFloatDlg_Impl);
128 :
129 0 : void AbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
130 : {
131 0 : pDlg->SetCurPageId( nId );
132 0 : }
133 :
134 0 : void AbstractTabDialog_Impl::SetCurPageId( const OString &rName )
135 : {
136 0 : pDlg->SetCurPageId( rName );
137 0 : }
138 :
139 0 : const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
140 : {
141 0 : return pDlg->GetOutputItemSet();
142 : }
143 :
144 0 : const sal_uInt16* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
145 : {
146 0 : return pDlg->GetInputRanges( pItem );
147 : }
148 :
149 0 : void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
150 : {
151 0 : pDlg->SetInputSet( pInSet );
152 0 : }
153 :
154 : //From class Window.
155 0 : void AbstractTabDialog_Impl::SetText( const OUString& rStr )
156 : {
157 0 : pDlg->SetText( rStr );
158 0 : }
159 :
160 0 : OUString AbstractTabDialog_Impl::GetText() const
161 : {
162 0 : return pDlg->GetText();
163 : }
164 :
165 0 : IMPL_LINK_NOARG(AbstractApplyTabDialog_Impl, ApplyHdl)
166 : {
167 0 : if (pDlg->Apply())
168 0 : m_aHandler.Call(NULL);
169 0 : return 0;
170 : }
171 :
172 0 : void AbstractApplyTabDialog_Impl::SetApplyHdl( const Link& rLink )
173 : {
174 0 : m_aHandler = rLink;
175 0 : pDlg->SetApplyHandler(LINK(this, AbstractApplyTabDialog_Impl, ApplyHdl));
176 0 : }
177 :
178 0 : sal_uInt8 AbstractSwInsertAbstractDlg_Impl::GetLevel() const
179 : {
180 0 : return pDlg->GetLevel();
181 : }
182 0 : sal_uInt8 AbstractSwInsertAbstractDlg_Impl::GetPara() const
183 : {
184 0 : return pDlg->GetPara();
185 : }
186 :
187 : //add for SwAddrDlg, SwDropCapsDlg ,SwBackgroundDlg, SwNumFmtDlg SwBorderDlg SwWrapDlg SwFldEditDlg begin
188 0 : const SfxItemSet* SwAbstractSfxDialog_Impl::GetOutputItemSet() const
189 : {
190 0 : return pDlg->GetOutputItemSet();
191 : }
192 :
193 0 : void SwAbstractSfxDialog_Impl::SetText( const OUString& rStr )
194 : {
195 0 : pDlg->SetText( rStr );
196 0 : }
197 :
198 0 : OUString SwAbstractSfxDialog_Impl::GetText() const
199 : {
200 0 : return pDlg->GetText();
201 : }
202 :
203 0 : void AbstractSwAsciiFilterDlg_Impl::FillOptions( SwAsciiOptions& rOptions )
204 : {
205 0 : pDlg->FillOptions(rOptions);
206 0 : }
207 :
208 0 : sal_uInt16 AbstractSplitTableDialog_Impl::GetSplitMode()
209 : {
210 0 : return pDlg->GetSplitMode();
211 : }
212 :
213 0 : String AbstractSwBreakDlg_Impl::GetTemplateName()
214 : {
215 0 : return pDlg->GetTemplateName();
216 : }
217 :
218 0 : sal_uInt16 AbstractSwBreakDlg_Impl:: GetKind()
219 : {
220 0 : return pDlg->GetKind();
221 : }
222 :
223 0 : sal_uInt16 AbstractSwBreakDlg_Impl:: GetPageNumber()
224 : {
225 0 : return pDlg->GetPageNumber();
226 : }
227 :
228 0 : void AbstractSwConvertTableDlg_Impl::GetValues( sal_Unicode& rDelim,SwInsertTableOptions& rInsTblFlags,
229 : SwTableAutoFmt const*& prTAFmt)
230 : {
231 0 : pDlg->GetValues(rDelim,rInsTblFlags, prTAFmt);
232 0 : }
233 :
234 0 : void AbstractSwInsertDBColAutoPilot_Impl::DataToDoc( const uno::Sequence< uno::Any >& rSelection,
235 : uno::Reference< sdbc::XDataSource> rxSource,
236 : uno::Reference< sdbc::XConnection> xConnection,
237 : uno::Reference< sdbc::XResultSet > xResultSet)
238 : {
239 0 : pDlg->DataToDoc(rSelection, rxSource, xConnection, xResultSet);
240 0 : }
241 :
242 0 : OString AbstractDropDownFieldDialog_Impl::GetWindowState( sal_uLong nMask ) const
243 : {
244 0 : return pDlg->GetWindowState(nMask);
245 : }
246 :
247 0 : void AbstractDropDownFieldDialog_Impl::SetWindowState( const OString& rStr )
248 : {
249 0 : pDlg->SetWindowState(rStr);
250 0 : }
251 :
252 0 : void AbstractSwLabDlg_Impl::SetCurPageId( sal_uInt16 nId )
253 : {
254 0 : pDlg->SetCurPageId( nId );
255 0 : }
256 :
257 0 : void AbstractSwLabDlg_Impl::SetCurPageId( const OString &rName )
258 : {
259 0 : pDlg->SetCurPageId( rName );
260 0 : }
261 :
262 0 : const SfxItemSet* AbstractSwLabDlg_Impl::GetOutputItemSet() const
263 : {
264 0 : return pDlg->GetOutputItemSet();
265 : }
266 :
267 0 : const sal_uInt16* AbstractSwLabDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
268 : {
269 0 : return pDlg->GetInputRanges( pItem );
270 : }
271 :
272 0 : void AbstractSwLabDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
273 : {
274 0 : pDlg->SetInputSet( pInSet );
275 0 : }
276 :
277 0 : void AbstractSwLabDlg_Impl::SetText( const OUString& rStr )
278 : {
279 0 : pDlg->SetText( rStr );
280 0 : }
281 :
282 0 : OUString AbstractSwLabDlg_Impl::GetText() const
283 : {
284 0 : return pDlg->GetText();
285 : }
286 :
287 0 : const String& AbstractSwLabDlg_Impl::GetBusinessCardStr() const
288 : {
289 0 : return pDlg->GetBusinessCardStr();
290 : }
291 :
292 0 : Printer * AbstractSwLabDlg_Impl::GetPrt()
293 : {
294 0 : return pDlg->GetPrt();
295 : }
296 :
297 0 : void AbstractSwSelGlossaryDlg_Impl::InsertGlos(const String &rRegion, const String &rGlosName)
298 : {
299 0 : pDlg->InsertGlos( rRegion, rGlosName );
300 0 : }
301 :
302 0 : sal_uInt16 AbstractSwSelGlossaryDlg_Impl::GetSelectedIdx() const
303 : {
304 0 : return pDlg->GetSelectedIdx();
305 : }
306 :
307 0 : void AbstractSwSelGlossaryDlg_Impl::SelectEntryPos(sal_uInt16 nIdx)
308 : {
309 0 : pDlg->SelectEntryPos( nIdx );
310 0 : }
311 :
312 0 : void AbstractSwAutoFormatDlg_Impl::FillAutoFmtOfIndex( SwTableAutoFmt*& rToFill ) const
313 : {
314 0 : pDlg->FillAutoFmtOfIndex(rToFill);
315 0 : }
316 :
317 0 : void AbstractSwFldDlg_Impl::SetCurPageId( sal_uInt16 nId )
318 : {
319 0 : pDlg->SetCurPageId( nId );
320 0 : }
321 :
322 0 : void AbstractSwFldDlg_Impl::SetCurPageId( const OString &rName )
323 : {
324 0 : pDlg->SetCurPageId( rName );
325 0 : }
326 :
327 0 : const SfxItemSet* AbstractSwFldDlg_Impl::GetOutputItemSet() const
328 : {
329 0 : return pDlg->GetOutputItemSet();
330 : }
331 :
332 0 : const sal_uInt16* AbstractSwFldDlg_Impl::GetInputRanges(const SfxItemPool& pItem )
333 : {
334 0 : return pDlg->GetInputRanges( pItem );
335 : }
336 :
337 0 : void AbstractSwFldDlg_Impl::SetInputSet( const SfxItemSet* pInSet )
338 : {
339 0 : pDlg->SetInputSet( pInSet );
340 0 : }
341 :
342 0 : void AbstractSwFldDlg_Impl::SetText( const OUString& rStr )
343 : {
344 0 : pDlg->SetText( rStr );
345 0 : }
346 :
347 0 : OUString AbstractSwFldDlg_Impl::GetText() const
348 : {
349 0 : return pDlg->GetText();
350 : }
351 :
352 0 : void AbstractSwFldDlg_Impl::Start( sal_Bool bShowl )
353 : {
354 0 : pDlg->Start( bShowl );
355 0 : }
356 :
357 0 : void AbstractSwFldDlg_Impl::Initialize(SfxChildWinInfo *pInfo)
358 : {
359 0 : pDlg->Initialize( pInfo );
360 0 : }
361 :
362 0 : void AbstractSwFldDlg_Impl::ReInitDlg()
363 : {
364 0 : pDlg->ReInitDlg();
365 0 : }
366 :
367 0 : void AbstractSwFldDlg_Impl::ActivateDatabasePage()
368 : {
369 0 : pDlg->ActivateDatabasePage();
370 0 : }
371 :
372 0 : Window* AbstractSwFldDlg_Impl::GetWindow()
373 : {
374 0 : return (Window*)pDlg;
375 : }
376 0 : void AbstractSwFldDlg_Impl::ShowPage( sal_uInt16 nId )
377 : {
378 0 : pDlg->ShowPage(nId);
379 0 : }
380 :
381 0 : void AbstractSwRenameXNamedDlg_Impl::SetForbiddenChars( const String& rSet )
382 : {
383 0 : pDlg->SetForbiddenChars( rSet );
384 0 : }
385 :
386 0 : void AbstractSwRenameXNamedDlg_Impl::SetAlternativeAccess(
387 : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xSecond,
388 : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xThird )
389 : {
390 0 : pDlg->SetAlternativeAccess( xSecond, xThird);
391 0 : }
392 :
393 0 : void AbstractSwModalRedlineAcceptDlg_Impl::AcceptAll( sal_Bool bAccept )
394 : {
395 0 : pDlg->AcceptAll( bAccept);
396 0 : }
397 :
398 0 : String AbstractGlossaryDlg_Impl::GetCurrGrpName() const
399 : {
400 0 : return pDlg->GetCurrGrpName();
401 : }
402 :
403 0 : String AbstractGlossaryDlg_Impl::GetCurrShortName() const
404 : {
405 0 : return pDlg->GetCurrShortName();
406 : }
407 :
408 0 : void AbstractFldInputDlg_Impl::SetWindowState( const OString& rStr )
409 : {
410 0 : pDlg->SetWindowState( rStr );
411 0 : }
412 :
413 0 : OString AbstractFldInputDlg_Impl::GetWindowState( sal_uLong nMask ) const
414 : {
415 0 : return pDlg->GetWindowState( nMask );
416 : }
417 :
418 0 : String AbstractInsFootNoteDlg_Impl::GetFontName()
419 : {
420 0 : return pDlg->GetFontName();
421 : }
422 0 : sal_Bool AbstractInsFootNoteDlg_Impl::IsEndNote()
423 : {
424 0 : return pDlg->IsEndNote();
425 : }
426 :
427 0 : String AbstractInsFootNoteDlg_Impl::GetStr()
428 : {
429 0 : return pDlg->GetStr();
430 : }
431 0 : void AbstractInsFootNoteDlg_Impl::SetHelpId( const OString& sHelpId )
432 : {
433 0 : pDlg->SetHelpId( sHelpId );
434 0 : }
435 :
436 0 : void AbstractInsFootNoteDlg_Impl::SetText( const OUString& rStr )
437 : {
438 0 : pDlg->SetText( rStr );
439 0 : }
440 :
441 0 : void AbstractInsTableDlg_Impl::GetValues( String& rName, sal_uInt16& rRow, sal_uInt16& rCol,
442 : SwInsertTableOptions& rInsTblFlags, String& rTableAutoFmtName,
443 : SwTableAutoFmt *& prTAFmt )
444 : {
445 0 : pDlg->GetValues( rName, rRow, rCol, rInsTblFlags, rTableAutoFmtName, prTAFmt);
446 0 : }
447 :
448 0 : OUString AbstractJavaEditDialog_Impl::GetText()
449 : {
450 0 : return pDlg->GetText();
451 : }
452 :
453 0 : String AbstractJavaEditDialog_Impl::GetType()
454 : {
455 0 : return pDlg->GetType();
456 : }
457 0 : sal_Bool AbstractJavaEditDialog_Impl::IsUrl()
458 : {
459 0 : return pDlg->IsUrl();
460 : }
461 0 : sal_Bool AbstractJavaEditDialog_Impl::IsNew()
462 : {
463 0 : return pDlg->IsNew();
464 : }
465 0 : bool AbstractJavaEditDialog_Impl::IsUpdate()
466 : {
467 0 : return pDlg->IsUpdate();
468 : }
469 :
470 0 : sal_uInt16 AbstractMailMergeDlg_Impl::GetMergeType()
471 : {
472 0 : return pDlg->GetMergeType();
473 : }
474 :
475 0 : const OUString& AbstractMailMergeDlg_Impl::GetSaveFilter() const
476 : {
477 0 : return pDlg->GetSaveFilter();
478 : }
479 :
480 0 : const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > AbstractMailMergeDlg_Impl::GetSelection() const
481 : {
482 0 : return pDlg->GetSelection();
483 : }
484 :
485 0 : uno::Reference< sdbc::XResultSet> AbstractMailMergeDlg_Impl::GetResultSet() const
486 : {
487 0 : return pDlg->GetResultSet();
488 : }
489 0 : bool AbstractMailMergeDlg_Impl::IsSaveIndividualDocs() const
490 : {
491 0 : return pDlg->IsSaveIndividualDocs();
492 : }
493 0 : bool AbstractMailMergeDlg_Impl::IsGenerateFromDataBase() const
494 : {
495 0 : return pDlg->IsGenerateFromDataBase();
496 : }
497 0 : String AbstractMailMergeDlg_Impl::GetColumnName() const
498 : {
499 0 : return pDlg->GetColumnName();
500 : }
501 0 : String AbstractMailMergeDlg_Impl::GetPath() const
502 : {
503 0 : return pDlg->GetPath();
504 : }
505 :
506 0 : sal_Bool AbstractMailMergeCreateFromDlg_Impl::IsThisDocument() const
507 : {
508 0 : return pDlg->IsThisDocument();
509 : }
510 :
511 0 : sal_Bool AbstractMailMergeFieldConnectionsDlg_Impl::IsUseExistingConnections() const
512 : {
513 0 : return pDlg->IsUseExistingConnections();
514 : }
515 :
516 0 : SwForm* AbstractMultiTOXTabDialog_Impl::GetForm(CurTOXType eType)
517 : {
518 0 : return pDlg->GetForm(eType);
519 : }
520 :
521 0 : CurTOXType AbstractMultiTOXTabDialog_Impl::GetCurrentTOXType() const
522 : {
523 0 : return pDlg->GetCurrentTOXType();
524 : }
525 :
526 0 : SwTOXDescription& AbstractMultiTOXTabDialog_Impl::GetTOXDescription(CurTOXType eTOXTypes)
527 : {
528 0 : return pDlg->GetTOXDescription(eTOXTypes);
529 : }
530 :
531 0 : const SfxItemSet* AbstractMultiTOXTabDialog_Impl::GetOutputItemSet() const
532 : {
533 0 : return pDlg->GetOutputItemSet();
534 : }
535 :
536 0 : void AbstractEditRegionDlg_Impl::SelectSection(const String& rSectionName)
537 : {
538 0 : pDlg->SelectSection(rSectionName);
539 0 : }
540 :
541 : void
542 0 : AbstractInsertSectionTabDialog_Impl::SetSectionData(SwSectionData const& rSect)
543 : {
544 0 : pDlg->SetSectionData(rSect);
545 0 : }
546 :
547 0 : void AbstractIndexMarkFloatDlg_Impl::ReInitDlg(SwWrtShell& rWrtShell)
548 : {
549 0 : pDlg->ReInitDlg( rWrtShell);
550 0 : }
551 :
552 0 : Window* AbstractIndexMarkFloatDlg_Impl::GetWindow()
553 : {
554 0 : return (Window*)pDlg;
555 : }
556 :
557 0 : void AbstractAuthMarkFloatDlg_Impl::ReInitDlg(SwWrtShell& rWrtShell)
558 : {
559 0 : pDlg->ReInitDlg( rWrtShell);
560 0 : }
561 :
562 0 : Window* AbstractAuthMarkFloatDlg_Impl::GetWindow()
563 : {
564 0 : return (Window*)pDlg;
565 : }
566 :
567 :
568 0 : Window* AbstractSwWordCountFloatDlg_Impl::GetWindow()
569 : {
570 0 : return (Window*)pDlg;
571 : }
572 :
573 0 : void AbstractSwWordCountFloatDlg_Impl::UpdateCounts()
574 : {
575 0 : pDlg->UpdateCounts();
576 0 : }
577 :
578 0 : void AbstractSwWordCountFloatDlg_Impl::SetCounts(const SwDocStat &rCurrCnt, const SwDocStat &rDocStat)
579 : {
580 0 : pDlg->SetCounts(rCurrCnt, rDocStat);
581 0 : }
582 :
583 0 : AbstractMailMergeWizard_Impl::~AbstractMailMergeWizard_Impl()
584 : {
585 0 : delete pDlg;
586 0 : }
587 :
588 0 : void AbstractMailMergeWizard_Impl::StartExecuteModal( const Link& rEndDialogHdl )
589 : {
590 0 : aEndDlgHdl = rEndDialogHdl;
591 : pDlg->StartExecuteModal(
592 0 : LINK( this, AbstractMailMergeWizard_Impl, EndDialogHdl ) );
593 0 : }
594 :
595 0 : long AbstractMailMergeWizard_Impl::GetResult()
596 : {
597 0 : return pDlg->GetResult();
598 : }
599 :
600 0 : IMPL_LINK( AbstractMailMergeWizard_Impl, EndDialogHdl, SwMailMergeWizard*, pDialog )
601 : {
602 : OSL_ENSURE( pDialog == pDlg, "wrong dialog passed to EndDialogHdl!" );
603 : (void) pDialog; // unused in non-debug
604 :
605 0 : aEndDlgHdl.Call( this );
606 0 : aEndDlgHdl = Link();
607 :
608 0 : return 0L;
609 : }
610 :
611 0 : void AbstractMailMergeWizard_Impl::SetReloadDocument(const String& rURL)
612 : {
613 0 : pDlg->SetReloadDocument(rURL);
614 0 : }
615 :
616 0 : const String& AbstractMailMergeWizard_Impl::GetReloadDocument() const
617 : {
618 0 : return pDlg->GetReloadDocument();
619 : }
620 0 : sal_Bool AbstractMailMergeWizard_Impl::ShowPage( sal_uInt16 nLevel )
621 : {
622 0 : return pDlg->skipUntil(nLevel);
623 : }
624 :
625 0 : sal_uInt16 AbstractMailMergeWizard_Impl::GetRestartPage() const
626 : {
627 0 : return pDlg->GetRestartPage();
628 : }
629 :
630 0 : AbstractSwInsertAbstractDlg * SwAbstractDialogFactory_Impl::CreateSwInsertAbstractDlg(Window* pParent)
631 : {
632 0 : SwInsertAbstractDlg* pDlg = new SwInsertAbstractDlg( pParent);
633 0 : return new AbstractSwInsertAbstractDlg_Impl(pDlg);
634 : }
635 :
636 0 : SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent,
637 : const SfxItemSet& rSet,
638 : const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >&,
639 : sal_uInt32 nResId
640 : )
641 : {
642 0 : SfxModalDialog* pDlg=NULL;
643 0 : switch ( nResId )
644 : {
645 : case RC_DLG_ADDR :
646 0 : pDlg = new SwAddrDlg( pParent, rSet );
647 0 : break;
648 : case DLG_SWDROPCAPS :
649 0 : pDlg = new SwDropCapsDlg( pParent, rSet );
650 0 : break;
651 : case RC_SWDLG_BACKGROUND :
652 0 : pDlg = new SwBackgroundDlg( pParent, rSet );
653 0 : break;
654 : case RC_DLG_SWNUMFMTDLG :
655 0 : pDlg = new SwNumFmtDlg( pParent, rSet );
656 0 : break;
657 : default:
658 0 : break;
659 : }
660 :
661 0 : if ( pDlg )
662 0 : return new SwAbstractSfxDialog_Impl( pDlg );
663 0 : return 0;
664 : }
665 :
666 0 : AbstractSwAsciiFilterDlg* SwAbstractDialogFactory_Impl::CreateSwAsciiFilterDlg( Window* pParent,
667 : SwDocShell& rDocSh,
668 : SvStream* pStream )
669 : {
670 0 : SwAsciiFilterDlg* pDlg = new SwAsciiFilterDlg( pParent, rDocSh, pStream );
671 0 : return new AbstractSwAsciiFilterDlg_Impl( pDlg );
672 : }
673 :
674 0 : VclAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwInsertBookmarkDlg( Window *pParent,
675 : SwWrtShell &rSh,
676 : SfxRequest& rReq,
677 : int nResId )
678 : {
679 0 : Dialog* pDlg=NULL;
680 0 : switch ( nResId )
681 : {
682 : case DLG_INSERT_BOOKMARK :
683 0 : pDlg = new SwInsertBookmarkDlg( pParent, rSh, rReq );
684 0 : break;
685 :
686 : default:
687 0 : break;
688 : }
689 :
690 0 : if ( pDlg )
691 0 : return new VclAbstractDialog_Impl( pDlg );
692 0 : return 0;
693 : }
694 :
695 0 : AbstractSwBreakDlg * SwAbstractDialogFactory_Impl::CreateSwBreakDlg(Window *pParent,
696 : SwWrtShell &rSh)
697 : {
698 0 : SwBreakDlg* pDlg = new SwBreakDlg(pParent, rSh);
699 0 : return new AbstractSwBreakDlg_Impl(pDlg);
700 : }
701 :
702 0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwChangeDBDlg(SwView& rVw)
703 : {
704 0 : Dialog* pDlg = new SwChangeDBDlg(rVw);
705 0 : return new VclAbstractDialog_Impl(pDlg);
706 : }
707 :
708 : // add for SwCharDlg
709 0 : SfxAbstractTabDialog * SwAbstractDialogFactory_Impl::CreateSwCharDlg(Window* pParent, SwView& pVw,
710 : const SfxItemSet& rCoreSet, const String* pFmtStr, sal_Bool bIsDrwTxtDlg)
711 : {
712 :
713 0 : SfxTabDialog* pDlg = new SwCharDlg(pParent, pVw, rCoreSet, pFmtStr, bIsDrwTxtDlg);
714 0 : return new AbstractTabDialog_Impl(pDlg);
715 : }
716 :
717 0 : AbstractSwConvertTableDlg* SwAbstractDialogFactory_Impl::CreateSwConvertTableDlg(SwView& rView, bool bToTable)
718 : {
719 0 : SwConvertTableDlg* pDlg = new SwConvertTableDlg(rView, bToTable);
720 0 : return new AbstractSwConvertTableDlg_Impl(pDlg);
721 : }
722 :
723 0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwCaptionDialog ( Window *pParent, SwView &rV,int nResId)
724 : {
725 0 : Dialog* pDlg=NULL;
726 0 : switch ( nResId )
727 : {
728 : case DLG_CAPTION :
729 0 : pDlg = new SwCaptionDialog( pParent, rV );
730 0 : break;
731 :
732 : default:
733 0 : break;
734 : }
735 :
736 0 : if ( pDlg )
737 0 : return new VclAbstractDialog_Impl( pDlg );
738 0 : return 0;
739 : }
740 :
741 0 : AbstractSwInsertDBColAutoPilot* SwAbstractDialogFactory_Impl::CreateSwInsertDBColAutoPilot( SwView& rView, // add for SwInsertDBColAutoPilot
742 : uno::Reference< sdbc::XDataSource> rxSource,
743 : uno::Reference<sdbcx::XColumnsSupplier> xColSupp,
744 : const SwDBData& rData, int nResId)
745 : {
746 0 : SwInsertDBColAutoPilot* pDlg=NULL;
747 0 : switch ( nResId )
748 : {
749 : case DLG_AP_INSERT_DB_SEL :
750 0 : pDlg = new SwInsertDBColAutoPilot( rView, rxSource, xColSupp, rData );
751 0 : break;
752 :
753 : default:
754 0 : break;
755 : }
756 :
757 0 : if ( pDlg )
758 0 : return new AbstractSwInsertDBColAutoPilot_Impl( pDlg );
759 0 : return 0;
760 : }
761 :
762 0 : SfxAbstractTabDialog * SwAbstractDialogFactory_Impl::CreateSwFootNoteOptionDlg(Window *pParent, SwWrtShell &rSh)
763 : {
764 0 : SfxTabDialog* pDlg = new SwFootNoteOptionDlg( pParent, rSh );
765 0 : return new AbstractTabDialog_Impl( pDlg );
766 : }
767 :
768 : //add for DropDownFieldDialog
769 0 : AbstractDropDownFieldDialog * SwAbstractDialogFactory_Impl::CreateDropDownFieldDialog(Window *pParent,
770 : SwWrtShell &rSh, SwField* pField, sal_Bool bNextButton)
771 : {
772 0 : sw::DropDownFieldDialog* pDlg = new sw::DropDownFieldDialog(pParent, rSh, pField, bNextButton);
773 0 : return new AbstractDropDownFieldDialog_Impl( pDlg );
774 : }
775 :
776 0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet,
777 : SwWrtShell* pWrtSh, Printer* pPrt,
778 : sal_Bool bInsert,int nResId ) //add for SwEnvDlg
779 : {
780 0 : SfxTabDialog* pDlg=NULL;
781 0 : switch ( nResId )
782 : {
783 : case DLG_ENV :
784 0 : pDlg = new SwEnvDlg( pParent, rSet, pWrtSh,pPrt, bInsert );
785 0 : break;
786 :
787 : default:
788 0 : break;
789 : }
790 :
791 0 : if ( pDlg )
792 0 : return new AbstractTabDialog_Impl( pDlg );
793 0 : return 0;
794 : }
795 :
796 0 : AbstractSwLabDlg* SwAbstractDialogFactory_Impl::CreateSwLabDlg ( Window* pParent, const SfxItemSet& rSet, //add for SwLabDlg
797 : SwNewDBMgr* pNewDBMgr, sal_Bool bLabel,int nResId )
798 : {
799 0 : SwLabDlg* pDlg=NULL;
800 0 : switch ( nResId )
801 : {
802 : case DLG_LAB :
803 0 : pDlg = new SwLabDlg( pParent, rSet, pNewDBMgr,bLabel );
804 0 : break;
805 :
806 : default:
807 0 : break;
808 : }
809 :
810 0 : if ( pDlg )
811 0 : return new AbstractSwLabDlg_Impl( pDlg );
812 0 : return 0;
813 : }
814 :
815 0 : SwLabDlgMethod SwAbstractDialogFactory_Impl::GetSwLabDlgStaticMethod ()
816 : {
817 0 : return SwLabDlg::UpdateFieldInformation;
818 : }
819 :
820 :
821 0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwParaDlg ( Window *pParent, SwView& rVw,
822 : const SfxItemSet& rCoreSet ,
823 : sal_uInt8 nDialogMode,
824 : int nResId,
825 : const String *pCollName,
826 : sal_Bool bDraw , sal_uInt16 nDefPage)
827 : {
828 0 : SfxTabDialog* pDlg=NULL;
829 0 : switch ( nResId )
830 : {
831 : case DLG_DRAWPARA :
832 : case DLG_PARA :
833 0 : pDlg = new SwParaDlg( pParent, rVw, rCoreSet,nDialogMode, pCollName, bDraw, nDefPage );
834 0 : break;
835 :
836 : default:
837 0 : break;
838 : }
839 :
840 0 : if ( pDlg )
841 0 : return new AbstractTabDialog_Impl( pDlg );
842 0 : return 0;
843 : }
844 :
845 0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclAbstractDialog ( Window *pParent, SwWrtShell &rSh, int nResId )
846 : {
847 0 : Dialog* pDlg=NULL;
848 0 : switch ( nResId )
849 : {
850 : case DLG_ROW_HEIGHT :
851 0 : pDlg = new SwTableHeightDlg( pParent, rSh);
852 0 : break;
853 : case DLG_SORTING :
854 0 : pDlg = new SwSortDlg( pParent, rSh);
855 0 : break;
856 : case DLG_COLUMN :
857 0 : pDlg = new SwColumnDlg( pParent, rSh );
858 0 : break;
859 : case DLG_EDIT_AUTHMARK :
860 0 : pDlg = new SwAuthMarkModalDlg( pParent, rSh );
861 0 : break;
862 : default:
863 0 : break;
864 : }
865 :
866 0 : if ( pDlg )
867 0 : return new VclAbstractDialog_Impl( pDlg );
868 0 : return 0;
869 : }
870 :
871 0 : AbstractSplitTableDialog * SwAbstractDialogFactory_Impl::CreateSplitTblDialog ( Window *pParent, SwWrtShell &rSh )
872 : {
873 0 : return new AbstractSplitTableDialog_Impl( new SwSplitTblDlg( pParent, rSh) );
874 : }
875 :
876 0 : AbstractSwSelGlossaryDlg * SwAbstractDialogFactory_Impl::CreateSwSelGlossaryDlg ( Window * pParent, const String &rShortName, int nResId )
877 : {
878 0 : SwSelGlossaryDlg* pDlg=NULL;
879 0 : switch ( nResId )
880 : {
881 : case DLG_SEL_GLOS :
882 0 : pDlg = new SwSelGlossaryDlg( pParent, rShortName);
883 0 : break;
884 :
885 : default:
886 0 : break;
887 : }
888 :
889 0 : if ( pDlg )
890 0 : return new AbstractSwSelGlossaryDlg_Impl( pDlg );
891 0 : return 0;
892 : }
893 :
894 0 : AbstractSwAutoFormatDlg * SwAbstractDialogFactory_Impl::CreateSwAutoFormatDlg(Window* pParent,
895 : SwWrtShell* pShell, sal_Bool bSetAutoFmt, const SwTableAutoFmt* pSelFmt)
896 : {
897 0 : SwAutoFormatDlg* pDlg = new SwAutoFormatDlg(pParent, pShell, bSetAutoFmt, pSelFmt);
898 0 : return new AbstractSwAutoFormatDlg_Impl(pDlg);
899 : }
900 :
901 0 : SfxAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwBorderDlg (Window* pParent, SfxItemSet& rSet, sal_uInt16 nType,int nResId )
902 : {
903 0 : SfxModalDialog* pDlg=NULL;
904 0 : switch ( nResId )
905 : {
906 : case RC_DLG_SWBORDERDLG :
907 0 : pDlg = new SwBorderDlg( pParent, rSet, nType );
908 0 : break;
909 : default:
910 0 : break;
911 : }
912 :
913 0 : if ( pDlg )
914 0 : return new SwAbstractSfxDialog_Impl( pDlg );
915 0 : return 0;
916 : }
917 :
918 0 : SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwWrapDlg ( Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, sal_Bool bDrawMode, int nResId )
919 : {
920 0 : SfxModalDialog* pDlg=NULL;
921 0 : switch ( nResId )
922 : {
923 : case RC_DLG_SWWRAPDLG :
924 0 : pDlg = new SwWrapDlg( pParent, rSet, pSh, bDrawMode );
925 0 : break;
926 : default:
927 0 : break;
928 : }
929 :
930 0 : if ( pDlg )
931 0 : return new SwAbstractSfxDialog_Impl( pDlg );
932 0 : return 0;
933 : }
934 :
935 0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwTableWidthDlg(Window *pParent, SwTableFUNC &rFnc)
936 : {
937 0 : Dialog* pDlg = new SwTableWidthDlg(pParent, rFnc);
938 0 : return new VclAbstractDialog_Impl( pDlg );
939 : }
940 :
941 0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTableTabDlg(Window* pParent, SfxItemPool& Pool,
942 : const SfxItemSet* pItemSet, SwWrtShell* pSh)
943 : {
944 0 : SfxTabDialog* pDlg = new SwTableTabDlg(pParent, Pool, pItemSet, pSh);
945 0 : return new AbstractTabDialog_Impl(pDlg);
946 : }
947 :
948 0 : AbstractSwFldDlg * SwAbstractDialogFactory_Impl::CreateSwFldDlg ( SfxBindings* pB, SwChildWinWrapper* pCW, Window *pParent, int nResId )
949 : {
950 0 : SwFldDlg* pDlg=NULL;
951 0 : switch ( nResId )
952 : {
953 : case DLG_FLD_INSERT :
954 0 : pDlg = new SwFldDlg( pB, pCW,pParent);
955 0 : break;
956 :
957 : default:
958 0 : break;
959 : }
960 :
961 0 : if ( pDlg )
962 0 : return new AbstractSwFldDlg_Impl( pDlg );
963 0 : return 0;
964 : }
965 :
966 0 : SfxAbstractDialog* SwAbstractDialogFactory_Impl::CreateSwFldEditDlg ( SwView& rVw, int nResId )
967 : {
968 0 : SfxModalDialog* pDlg=NULL;
969 0 : switch ( nResId )
970 : {
971 : case RC_DLG_SWFLDEDITDLG :
972 0 : pDlg = new SwFldEditDlg( rVw );
973 0 : break;
974 : default:
975 0 : break;
976 : }
977 :
978 0 : if ( pDlg )
979 0 : return new SwAbstractSfxDialog_Impl( pDlg );
980 0 : return 0;
981 : }
982 :
983 0 : AbstractSwRenameXNamedDlg * SwAbstractDialogFactory_Impl::CreateSwRenameXNamedDlg(Window* pParent,
984 : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNamed > & xNamed,
985 : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xNameAccess)
986 : {
987 0 : SwRenameXNamedDlg* pDlg = new SwRenameXNamedDlg( pParent,xNamed, xNameAccess);
988 0 : return new AbstractSwRenameXNamedDlg_Impl( pDlg );
989 : }
990 :
991 0 : AbstractSwModalRedlineAcceptDlg * SwAbstractDialogFactory_Impl::CreateSwModalRedlineAcceptDlg(Window *pParent)
992 : {
993 0 : SwModalRedlineAcceptDlg* pDlg = new SwModalRedlineAcceptDlg( pParent );
994 0 : return new AbstractSwModalRedlineAcceptDlg_Impl( pDlg );
995 : }
996 :
997 0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateTblMergeDialog(Window* pParent, sal_Bool& rWithPrev) //add for SwMergeTblDlg
998 : {
999 0 : Dialog* pDlg = new SwMergeTblDlg( pParent, rWithPrev );
1000 0 : return new VclAbstractDialog_Impl( pDlg );
1001 : }
1002 :
1003 0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateFrmTabDialog( int nResId,
1004 : SfxViewFrame *pFrame, Window *pParent,
1005 : const SfxItemSet& rCoreSet,
1006 : sal_Bool bNewFrm,
1007 : sal_uInt16 nResType,
1008 : sal_Bool bFmt,
1009 : sal_uInt16 nDefPage,
1010 : const String* pFmtStr ) //add for SwFrmDlg
1011 : {
1012 0 : SfxTabDialog* pDlg=NULL;
1013 0 : switch ( nResId )
1014 : {
1015 : case DLG_FRM_GRF :
1016 : case DLG_FRM_OLE :
1017 : case DLG_FRM_STD :
1018 0 : pDlg = new SwFrmDlg( pFrame, pParent, rCoreSet, bNewFrm, nResType, bFmt, nDefPage, pFmtStr );
1019 0 : break;
1020 : default:
1021 0 : break;
1022 : }
1023 :
1024 0 : if ( pDlg )
1025 0 : return new AbstractTabDialog_Impl( pDlg );
1026 0 : return 0;
1027 : }
1028 :
1029 0 : SfxAbstractApplyTabDialog* SwAbstractDialogFactory_Impl::CreateTemplateDialog(
1030 : Window* pParent,
1031 : SfxStyleSheetBase& rBase,
1032 : sal_uInt16 nRegion,
1033 : const sal_uInt16 nSlot,
1034 : SwWrtShell* pActShell,
1035 : sal_Bool bNew ) //add for SwTemplateDlg
1036 : {
1037 0 : SfxTabDialog* pDlg = new SwTemplateDlg( pParent, rBase, nRegion, nSlot, pActShell, bNew );
1038 0 : return new AbstractApplyTabDialog_Impl( pDlg );
1039 : }
1040 :
1041 0 : AbstractGlossaryDlg* SwAbstractDialogFactory_Impl::CreateGlossaryDlg(SfxViewFrame* pViewFrame,
1042 : SwGlossaryHdl* pGlosHdl,
1043 : SwWrtShell *pWrtShell) //add for SwGlossaryDlg
1044 : {
1045 0 : SwGlossaryDlg* pDlg = new SwGlossaryDlg(pViewFrame, pGlosHdl, pWrtShell);
1046 0 : return new AbstractGlossaryDlg_Impl( pDlg );
1047 : }
1048 :
1049 0 : AbstractFldInputDlg* SwAbstractDialogFactory_Impl::CreateFldInputDlg(Window *pParent,
1050 : SwWrtShell &rSh, SwField* pField, bool bNextButton) //add for SwFldInputDlg
1051 : {
1052 0 : SwFldInputDlg* pDlg = new SwFldInputDlg( pParent, rSh, pField, bNextButton );
1053 0 : return new AbstractFldInputDlg_Impl( pDlg );
1054 : }
1055 :
1056 0 : AbstractInsFootNoteDlg* SwAbstractDialogFactory_Impl::CreateInsFootNoteDlg(
1057 : Window * pParent, SwWrtShell &rSh, sal_Bool bEd ) //add for SwInsFootNoteDlg
1058 : {
1059 0 : SwInsFootNoteDlg* pDlg = new SwInsFootNoteDlg(pParent, rSh, bEd);
1060 0 : return new AbstractInsFootNoteDlg_Impl( pDlg );
1061 : }
1062 :
1063 0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateTitlePageDlg ( Window *pParent )
1064 : {
1065 0 : Dialog* pDlg = new SwTitlePageDlg( pParent );
1066 0 : if ( pDlg )
1067 0 : return new VclAbstractDialog_Impl( pDlg );
1068 0 : return 0;
1069 : }
1070 :
1071 0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclSwViewDialog(SwView& rView)
1072 : {
1073 0 : Dialog* pDlg = new SwLineNumberingDlg( &rView );
1074 0 : return new VclAbstractDialog_Impl( pDlg );
1075 : }
1076 :
1077 0 : AbstractInsTableDlg * SwAbstractDialogFactory_Impl::CreateInsTableDlg(SwView& rView) //add for SwInsTableDlg
1078 : {
1079 0 : SwInsTableDlg* pDlg = new SwInsTableDlg(rView);
1080 0 : return new AbstractInsTableDlg_Impl( pDlg );
1081 : }
1082 :
1083 0 : AbstractJavaEditDialog * SwAbstractDialogFactory_Impl::CreateJavaEditDialog(
1084 : Window* pParent, SwWrtShell* pWrtSh) //add for SwJavaEditDialog
1085 : {
1086 0 : SwJavaEditDialog* pDlg = new SwJavaEditDialog(pParent, pWrtSh);
1087 0 : return new AbstractJavaEditDialog_Impl( pDlg );
1088 : }
1089 :
1090 0 : AbstractMailMergeDlg * SwAbstractDialogFactory_Impl::CreateMailMergeDlg( int nResId,
1091 : Window* pParent, SwWrtShell& rSh,
1092 : const String& rSourceName,
1093 : const String& rTblName,
1094 : sal_Int32 nCommandType,
1095 : const uno::Reference< sdbc::XConnection>& xConnection,
1096 : uno::Sequence< uno::Any >* pSelection ) //add for SwMailMergeDlg
1097 : {
1098 0 : SwMailMergeDlg* pDlg=NULL;
1099 0 : switch ( nResId )
1100 : {
1101 : case DLG_MAILMERGE :
1102 0 : pDlg = new SwMailMergeDlg( pParent, rSh, rSourceName, rTblName, nCommandType, xConnection, pSelection );
1103 0 : break;
1104 : default:
1105 0 : break;
1106 : }
1107 0 : if ( pDlg )
1108 0 : return new AbstractMailMergeDlg_Impl( pDlg );
1109 0 : return 0;
1110 : }
1111 :
1112 0 : AbstractMailMergeCreateFromDlg * SwAbstractDialogFactory_Impl::CreateMailMergeCreateFromDlg(Window* pParent)
1113 : {
1114 0 : SwMailMergeCreateFromDlg* pDlg = new SwMailMergeCreateFromDlg(pParent);
1115 0 : return new AbstractMailMergeCreateFromDlg_Impl(pDlg);
1116 : }
1117 :
1118 0 : AbstractMailMergeFieldConnectionsDlg * SwAbstractDialogFactory_Impl::CreateMailMergeFieldConnectionsDlg( int nResId,
1119 : Window* pParent ) //add for SwMailMergeFieldConnectionsDlg
1120 : {
1121 0 : SwMailMergeFieldConnectionsDlg* pDlg=NULL;
1122 0 : switch ( nResId )
1123 : {
1124 : case DLG_MERGE_FIELD_CONNECTIONS :
1125 0 : pDlg = new SwMailMergeFieldConnectionsDlg( pParent );
1126 0 : break;
1127 : default:
1128 0 : break;
1129 : }
1130 0 : if ( pDlg )
1131 0 : return new AbstractMailMergeFieldConnectionsDlg_Impl( pDlg );
1132 0 : return 0;
1133 : }
1134 :
1135 0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateMultiTOXMarkDlg( int nResId,
1136 : Window* pParent, SwTOXMgr &rTOXMgr ) //add for SwMultiTOXMarkDlg
1137 : {
1138 0 : Dialog* pDlg=NULL;
1139 0 : switch ( nResId )
1140 : {
1141 : case DLG_MULTMRK :
1142 0 : pDlg = new SwMultiTOXMarkDlg( pParent, rTOXMgr );
1143 0 : break;
1144 : default:
1145 0 : break;
1146 : }
1147 0 : if ( pDlg )
1148 0 : return new VclAbstractDialog_Impl( pDlg );
1149 0 : return 0;
1150 : }
1151 :
1152 0 : SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwTabDialog( int nResId,
1153 : Window* pParent,
1154 : const SfxItemSet* pSwItemSet,
1155 : SwWrtShell & rWrtSh ) //add for SwSvxNumBulletTabDialog, SwOutlineTabDialog
1156 : {
1157 0 : SfxTabDialog* pDlg=NULL;
1158 0 : switch ( nResId )
1159 : {
1160 : case DLG_SVXTEST_NUM_BULLET :
1161 0 : pDlg = new SwSvxNumBulletTabDialog( pParent, pSwItemSet, rWrtSh );
1162 0 : break;
1163 : case DLG_TAB_OUTLINE :
1164 0 : pDlg = new SwOutlineTabDialog( pParent, pSwItemSet, rWrtSh );
1165 0 : break;
1166 :
1167 : default:
1168 0 : break;
1169 : }
1170 0 : if ( pDlg )
1171 0 : return new AbstractTabDialog_Impl( pDlg );
1172 0 : return 0;
1173 : }
1174 :
1175 0 : AbstractMultiTOXTabDialog * SwAbstractDialogFactory_Impl::CreateMultiTOXTabDialog( int nResId,
1176 : Window* pParent, const SfxItemSet& rSet,
1177 : SwWrtShell &rShell,
1178 : SwTOXBase* pCurTOX, sal_uInt16 nToxType,
1179 : sal_Bool bGlobal ) //add for SwMultiTOXTabDialog
1180 : {
1181 0 : SwMultiTOXTabDialog* pDlg=NULL;
1182 0 : switch ( nResId )
1183 : {
1184 : case DLG_MULTI_TOX :
1185 0 : pDlg = new SwMultiTOXTabDialog( pParent, rSet, rShell, pCurTOX, nToxType, bGlobal );
1186 0 : break;
1187 : default:
1188 0 : break;
1189 : }
1190 0 : if ( pDlg )
1191 0 : return new AbstractMultiTOXTabDialog_Impl( pDlg );
1192 0 : return 0;
1193 : }
1194 :
1195 0 : AbstractEditRegionDlg * SwAbstractDialogFactory_Impl::CreateEditRegionDlg(Window* pParent, SwWrtShell& rWrtSh) //add for SwEditRegionDlg
1196 : {
1197 0 : SwEditRegionDlg* pDlg = new SwEditRegionDlg( pParent, rWrtSh );
1198 0 : return new AbstractEditRegionDlg_Impl( pDlg );
1199 : }
1200 :
1201 0 : AbstractInsertSectionTabDialog * SwAbstractDialogFactory_Impl::CreateInsertSectionTabDialog( int nResId,
1202 : Window* pParent, const SfxItemSet& rSet, SwWrtShell& rSh) //add for SwInsertSectionTabDialog
1203 : {
1204 0 : SwInsertSectionTabDialog* pDlg=NULL;
1205 0 : switch ( nResId )
1206 : {
1207 : case DLG_INSERT_SECTION :
1208 0 : pDlg = new SwInsertSectionTabDialog( pParent, rSet, rSh );
1209 0 : break;
1210 : default:
1211 0 : break;
1212 : }
1213 0 : if ( pDlg )
1214 0 : return new AbstractInsertSectionTabDialog_Impl( pDlg );
1215 0 : return 0;
1216 : }
1217 :
1218 0 : AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateIndexMarkFloatDlg(
1219 : SfxBindings* pBindings,
1220 : SfxChildWindow* pChild,
1221 : Window *pParent,
1222 : SfxChildWinInfo* pInfo,
1223 : sal_Bool bNew ) //add for SwIndexMarkFloatDlg
1224 : {
1225 0 : SwIndexMarkFloatDlg* pDlg = new SwIndexMarkFloatDlg(pBindings, pChild, pParent, pInfo, bNew);
1226 0 : return new AbstractIndexMarkFloatDlg_Impl(pDlg);
1227 : }
1228 :
1229 0 : AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg(
1230 : SfxBindings* pBindings,
1231 : SfxChildWindow* pChild,
1232 : Window *pParent,
1233 : SfxChildWinInfo* pInfo,
1234 : sal_Bool bNew) //add for SwAuthMarkFloatDlg
1235 : {
1236 0 : SwAuthMarkFloatDlg* pDlg = new SwAuthMarkFloatDlg( pBindings, pChild, pParent, pInfo, bNew );
1237 0 : return new AbstractAuthMarkFloatDlg_Impl( pDlg );
1238 : }
1239 :
1240 0 : AbstractSwWordCountFloatDlg * SwAbstractDialogFactory_Impl::CreateSwWordCountDialog(
1241 : SfxBindings* pBindings,
1242 : SfxChildWindow* pChild,
1243 : Window *pParent,
1244 : SfxChildWinInfo* pInfo)
1245 : {
1246 0 : SwWordCountFloatDlg* pDlg = new SwWordCountFloatDlg( pBindings, pChild, pParent, pInfo );
1247 0 : return new AbstractSwWordCountFloatDlg_Impl( pDlg );
1248 : }
1249 :
1250 : //add for SwIndexMarkModalDlg begin
1251 0 : VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateIndexMarkModalDlg(
1252 : Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark ) //add for SwIndexMarkModalDlg
1253 : {
1254 0 : Dialog* pDlg = new SwIndexMarkModalDlg( pParent, rSh, pCurTOXMark );
1255 0 : return new VclAbstractDialog_Impl( pDlg );
1256 : }
1257 :
1258 : //add for SwIndexMarkModalDlg end
1259 0 : AbstractMailMergeWizard* SwAbstractDialogFactory_Impl::CreateMailMergeWizard(
1260 : SwView& rView, SwMailMergeConfigItem& rConfigItem)
1261 : {
1262 0 : return new AbstractMailMergeWizard_Impl( new SwMailMergeWizard(rView, rConfigItem));
1263 : }
1264 :
1265 : //add for static func in SwGlossaryDlg
1266 0 : GlossaryGetCurrGroup SwAbstractDialogFactory_Impl::GetGlossaryCurrGroupFunc()
1267 : {
1268 0 : return SwGlossaryDlg::GetCurrGroup;
1269 : }
1270 :
1271 0 : GlossarySetActGroup SwAbstractDialogFactory_Impl::SetGlossaryActGroupFunc()
1272 : {
1273 0 : return SwGlossaryDlg::SetActGroup;
1274 : }
1275 :
1276 :
1277 : //------------------ Factories for TabPages
1278 0 : CreateTabPage SwAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
1279 : {
1280 0 : CreateTabPage pRet = 0;
1281 0 : switch ( nId )
1282 : {
1283 : case TP_OPTCOMPATIBILITY_PAGE :
1284 : case RID_SW_TP_OPTCOMPATIBILITY_PAGE :
1285 0 : pRet = SwCompatibilityOptPage::Create;
1286 0 : break;
1287 : case RID_SW_TP_OPTLOAD_PAGE :
1288 0 : pRet = SwLoadOptPage::Create;
1289 0 : break;
1290 : case TP_OPTCAPTION_PAGE:
1291 : case RID_SW_TP_OPTCAPTION_PAGE:
1292 0 : return SwCaptionOptPage::Create;
1293 : case TP_CONTENT_OPT :
1294 : case RID_SW_TP_CONTENT_OPT:
1295 : case RID_SW_TP_HTML_CONTENT_OPT:
1296 0 : pRet = SwContentOptPage::Create;
1297 0 : break;
1298 : case TP_OPTSHDWCRSR :
1299 : case RID_SW_TP_OPTSHDWCRSR:
1300 : case RID_SW_TP_HTML_OPTSHDWCRSR:
1301 0 : pRet = SwShdwCrsrOptionsTabPage::Create;
1302 0 : break;
1303 : case RID_SW_TP_REDLINE_OPT :
1304 : case TP_REDLINE_OPT :
1305 0 : pRet = SwRedlineOptionsTabPage::Create;
1306 0 : break;
1307 : case RID_SW_TP_OPTTEST_PAGE :
1308 : case TP_OPTTEST_PAGE :
1309 : #ifdef DBG_UTIL
1310 : pRet = SwTestTabPage::Create;
1311 : #endif
1312 0 : break;
1313 : case TP_OPTPRINT_PAGE :
1314 : case RID_SW_TP_HTML_OPTPRINT_PAGE:
1315 : case RID_SW_TP_OPTPRINT_PAGE:
1316 0 : pRet = SwAddPrinterTabPage::Create;
1317 0 : break;
1318 : case TP_STD_FONT :
1319 : case RID_SW_TP_STD_FONT:
1320 : case RID_SW_TP_STD_FONT_CJK:
1321 : case RID_SW_TP_STD_FONT_CTL:
1322 0 : pRet = SwStdFontTabPage::Create;
1323 0 : break;
1324 : case TP_OPTTABLE_PAGE :
1325 : case RID_SW_TP_HTML_OPTTABLE_PAGE:
1326 : case RID_SW_TP_OPTTABLE_PAGE:
1327 0 : pRet = SwTableOptionsTabPage::Create;
1328 0 : break;
1329 : case TP_DOC_STAT :
1330 0 : pRet = SwDocStatPage::Create;
1331 0 : break;
1332 : case RID_SW_TP_MAILCONFIG:
1333 0 : pRet = SwMailConfigPage::Create;
1334 0 : break;
1335 : case RID_SW_TP_COMPARISON_OPT :
1336 0 : pRet = SwCompareOptionsTabPage::Create;
1337 0 : break;
1338 : }
1339 :
1340 0 : return pRet;
1341 : }
1342 :
1343 0 : GetTabPageRanges SwAbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
1344 : {
1345 0 : switch ( nId )
1346 : {
1347 : case 1 : //RID_SVXPAGE_TEXTANIMATION :
1348 : //return SvxTextAnimationPage::GetRanges;
1349 0 : break;
1350 : default:
1351 0 : break;
1352 : }
1353 :
1354 0 : return 0;
1355 0 : }
1356 :
1357 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|