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 :
21 : #undef SC_DLLIMPLEMENTATION
22 :
23 : #include "scdlgfact.hxx"
24 :
25 : #include "sc.hrc"
26 : #include "scuiasciiopt.hxx"
27 : #include "scuiautofmt.hxx"
28 : #include "corodlg.hxx"
29 : #include "crdlg.hxx"
30 : #include "dapidata.hxx"
31 : #include "dapitype.hxx"
32 : #include "delcldlg.hxx"
33 : #include "delcodlg.hxx"
34 : #include "filldlg.hxx"
35 : #include "groupdlg.hxx"
36 : #include "inscldlg.hxx"
37 : #include "inscodlg.hxx"
38 : #include "instbdlg.hxx"
39 : #include "lbseldlg.hxx"
40 : #include "linkarea.hxx"
41 : #include "mtrindlg.hxx"
42 : #include "mvtabdlg.hxx"
43 : #include "namecrea.hxx"
44 : #include "namepast.hxx"
45 : #include "namedefdlg.hxx"
46 : #include "pfiltdlg.hxx"
47 : #include "pvfundlg.hxx"
48 : #include "dpgroupdlg.hxx"
49 : #include "scendlg.hxx"
50 : #include "shtabdlg.hxx"
51 : #include "strindlg.hxx"
52 : #include "tabbgcolordlg.hxx"
53 : #include "scuiimoptdlg.hxx"
54 : #include "attrdlg.hxx"
55 : #include "hfedtdlg.hxx"
56 : #include "styledlg.hxx"
57 : #include "subtdlg.hxx"
58 : #include "textdlgs.hxx"
59 : #include "validate.hxx"
60 : #include "validate.hrc"
61 : #include "sortdlg.hxx"
62 : #include "textimportoptions.hxx"
63 : #include "opredlin.hxx"
64 : #include "tpcalc.hxx"
65 : #include "tpprint.hxx"
66 : #include "tpstat.hxx"
67 : #include "tpusrlst.hxx"
68 : #include "tpview.hxx"
69 : #include "tpformula.hxx"
70 : #include "datafdlg.hxx"
71 : #include "tpcompatibility.hxx"
72 : #include "tpdefaults.hxx"
73 : #include "colorformat.hxx"
74 : #include "condformatdlg.hxx"
75 : #include "condformatmgr.hxx"
76 : #include "xmlsourcedlg.hxx"
77 :
78 : // ause
79 : #include "editutil.hxx"
80 :
81 0 : IMPL_ABSTDLG_BASE(ScVclAbstractDialog_Impl);
82 0 : IMPL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl);
83 0 : IMPL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl);
84 0 : IMPL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl);
85 0 : IMPL_ABSTDLG_BASE(AbstractScCondFormatManagerDlg_Impl);
86 0 : IMPL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl);
87 0 : IMPL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl);
88 0 : IMPL_ABSTDLG_BASE(AbstractScDataPilotServiceDlg_Impl);
89 0 : IMPL_ABSTDLG_BASE(AbstractScDeleteCellDlg_Impl);
90 : //for dataform
91 0 : IMPL_ABSTDLG_BASE(AbstractScDataFormDlg_Impl);
92 0 : IMPL_ABSTDLG_BASE(AbstractScDeleteContentsDlg_Impl);
93 0 : IMPL_ABSTDLG_BASE(AbstractScFillSeriesDlg_Impl);
94 0 : IMPL_ABSTDLG_BASE(AbstractScGroupDlg_Impl);
95 0 : IMPL_ABSTDLG_BASE(AbstractScInsertCellDlg_Impl);
96 0 : IMPL_ABSTDLG_BASE(AbstractScInsertContentsDlg_Impl);
97 0 : IMPL_ABSTDLG_BASE(AbstractScInsertTableDlg_Impl);
98 0 : IMPL_ABSTDLG_BASE(AbstractScSelEntryDlg_Impl);
99 0 : IMPL_ABSTDLG2_BASE(AbstractScLinkedAreaDlg_Impl);
100 0 : IMPL_ABSTDLG_BASE(AbstractScMetricInputDlg_Impl);
101 0 : IMPL_ABSTDLG_BASE(AbstractScMoveTableDlg_Impl);
102 0 : IMPL_ABSTDLG_BASE(AbstractScNameCreateDlg_Impl);
103 0 : IMPL_ABSTDLG_BASE(AbstractScNamePasteDlg_Impl);
104 0 : IMPL_ABSTDLG_BASE(AbstractScPivotFilterDlg_Impl);
105 0 : IMPL_ABSTDLG_BASE(AbstractScDPFunctionDlg_Impl);
106 0 : IMPL_ABSTDLG_BASE(AbstractScDPSubtotalDlg_Impl);
107 0 : IMPL_ABSTDLG_BASE(AbstractScDPNumGroupDlg_Impl);
108 0 : IMPL_ABSTDLG_BASE(AbstractScDPDateGroupDlg_Impl);
109 0 : IMPL_ABSTDLG_BASE(AbstractScDPShowDetailDlg_Impl);
110 0 : IMPL_ABSTDLG_BASE(AbstractScNewScenarioDlg_Impl);
111 0 : IMPL_ABSTDLG_BASE(AbstractScShowTabDlg_Impl);
112 0 : IMPL_ABSTDLG_BASE(AbstractScSortWarningDlg_Impl);
113 0 : IMPL_ABSTDLG_BASE(AbstractScStringInputDlg_Impl);
114 0 : IMPL_ABSTDLG_BASE(AbstractScTabBgColorDlg_Impl);
115 0 : IMPL_ABSTDLG_BASE(AbstractScImportOptionsDlg_Impl);
116 0 : IMPL_ABSTDLG_BASE(AbstractScTextImportOptionsDlg_Impl);
117 0 : IMPL_ABSTDLG_BASE(ScAbstractTabDialog_Impl);
118 :
119 : // ScAbstractTabDialog_Impl begin
120 0 : void ScAbstractTabDialog_Impl::SetCurPageId( sal_uInt16 nId )
121 : {
122 0 : pDlg->SetCurPageId( nId );
123 0 : }
124 :
125 0 : void ScAbstractTabDialog_Impl::SetCurPageId( const OString& rName )
126 : {
127 0 : pDlg->SetCurPageId( rName );
128 0 : }
129 :
130 0 : const SfxItemSet* ScAbstractTabDialog_Impl::GetOutputItemSet() const
131 : {
132 0 : return pDlg->GetOutputItemSet();
133 : }
134 :
135 0 : const sal_uInt16* ScAbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
136 : {
137 0 : return pDlg->GetInputRanges( pItem );
138 : }
139 :
140 0 : void ScAbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
141 : {
142 0 : pDlg->SetInputSet( pInSet );
143 0 : }
144 : //From class Window.
145 0 : void ScAbstractTabDialog_Impl::SetText( const OUString& rStr )
146 : {
147 0 : pDlg->SetText( rStr );
148 0 : }
149 0 : OUString ScAbstractTabDialog_Impl::GetText() const
150 : {
151 0 : return pDlg->GetText();
152 : }
153 :
154 : // AbstractScImportAsciiDlg_Impl begin
155 0 : void AbstractScImportAsciiDlg_Impl::GetOptions( ScAsciiOptions& rOpt )
156 : {
157 0 : pDlg->GetOptions( rOpt );
158 0 : }
159 :
160 0 : void AbstractScImportAsciiDlg_Impl::SaveParameters()
161 : {
162 0 : pDlg->SaveParameters();
163 0 : }
164 :
165 : // AbstractScImportAsciiDlg_Impl end
166 :
167 : //AbstractScAutoFormatDlg_Impl begin
168 0 : sal_uInt16 AbstractScAutoFormatDlg_Impl::GetIndex() const
169 : {
170 0 : return pDlg->GetIndex();
171 : }
172 :
173 0 : String AbstractScAutoFormatDlg_Impl::GetCurrFormatName()
174 : {
175 0 : return pDlg->GetCurrFormatName();
176 : }
177 :
178 : //AbstractScAutoFormatDlg_Impl end
179 :
180 :
181 :
182 : //AbstractScColRowLabelDlg_Impl begin
183 0 : sal_Bool AbstractScColRowLabelDlg_Impl::IsCol()
184 : {
185 0 : return pDlg->IsCol();
186 : }
187 0 : sal_Bool AbstractScColRowLabelDlg_Impl::IsRow()
188 : {
189 0 : return pDlg->IsRow();
190 : }
191 :
192 : //AbstractScColRowLabelDlg_Impl end
193 :
194 :
195 : //AbstractScDataPilotDatabaseDlg_Impl begin
196 :
197 :
198 0 : void AbstractScDataPilotDatabaseDlg_Impl::GetValues( ScImportSourceDesc& rDesc )
199 : {
200 0 : pDlg->GetValues(rDesc);
201 0 : }
202 :
203 : //AbstractScDataPilotDatabaseDlg_Impl end
204 :
205 : //AbstractScDataPilotSourceTypeDlg_Impl begin
206 :
207 0 : bool AbstractScDataPilotSourceTypeDlg_Impl::IsDatabase() const
208 : {
209 0 : return pDlg->IsDatabase();
210 : }
211 :
212 0 : bool AbstractScDataPilotSourceTypeDlg_Impl::IsExternal() const
213 : {
214 0 : return pDlg->IsExternal();
215 : }
216 :
217 0 : bool AbstractScDataPilotSourceTypeDlg_Impl::IsNamedRange() const
218 : {
219 0 : return pDlg->IsNamedRange();
220 : }
221 :
222 0 : OUString AbstractScDataPilotSourceTypeDlg_Impl::GetSelectedNamedRange() const
223 : {
224 0 : return pDlg->GetSelectedNamedRange();
225 : }
226 :
227 0 : void AbstractScDataPilotSourceTypeDlg_Impl::AppendNamedRange(const OUString& rName)
228 : {
229 0 : pDlg->AppendNamedRange(rName);
230 0 : }
231 :
232 : //AbstractScDataPilotSourceTypeDlg_Impl end
233 :
234 :
235 : // AbstractScDataPilotServiceDlg_Impl begin
236 0 : String AbstractScDataPilotServiceDlg_Impl::GetServiceName() const
237 : {
238 0 : return pDlg->GetServiceName();
239 : }
240 :
241 0 : String AbstractScDataPilotServiceDlg_Impl::GetParSource() const
242 : {
243 0 : return pDlg->GetParSource();
244 : }
245 0 : String AbstractScDataPilotServiceDlg_Impl::GetParName() const
246 : {
247 0 : return pDlg->GetParName();
248 : }
249 0 : String AbstractScDataPilotServiceDlg_Impl::GetParUser() const
250 : {
251 0 : return pDlg->GetParUser();
252 : }
253 0 : String AbstractScDataPilotServiceDlg_Impl::GetParPass() const
254 : {
255 0 : return pDlg->GetParPass();
256 : }
257 :
258 : //AbstractScDataPilotServiceDlg_Impl end
259 :
260 : //AbstractScDeleteCellDlg_Impl begin
261 0 : DelCellCmd AbstractScDeleteCellDlg_Impl::GetDelCellCmd() const
262 : {
263 0 : return pDlg->GetDelCellCmd();
264 : }
265 : //AbstractScDeleteCellDlg_Impl end
266 :
267 :
268 0 : void AbstractScDeleteContentsDlg_Impl::DisableObjects()
269 : {
270 0 : pDlg->DisableObjects();
271 0 : }
272 0 : sal_uInt16 AbstractScDeleteContentsDlg_Impl::GetDelContentsCmdBits() const
273 : {
274 0 : return pDlg->GetDelContentsCmdBits();
275 : }
276 :
277 :
278 :
279 0 : FillDir AbstractScFillSeriesDlg_Impl::GetFillDir() const
280 : {
281 0 : return pDlg->GetFillDir();
282 : }
283 :
284 0 : FillCmd AbstractScFillSeriesDlg_Impl::GetFillCmd() const
285 : {
286 0 : return pDlg->GetFillCmd();
287 : }
288 :
289 0 : FillDateCmd AbstractScFillSeriesDlg_Impl::GetFillDateCmd() const
290 : {
291 0 : return pDlg->GetFillDateCmd();
292 : }
293 :
294 0 : double AbstractScFillSeriesDlg_Impl::GetStart() const
295 : {
296 0 : return pDlg->GetStart();
297 : }
298 0 : double AbstractScFillSeriesDlg_Impl::GetStep() const
299 : {
300 0 : return pDlg->GetStep();
301 : }
302 0 : double AbstractScFillSeriesDlg_Impl::GetMax() const
303 : {
304 0 : return pDlg->GetMax();
305 : }
306 0 : String AbstractScFillSeriesDlg_Impl::GetStartStr() const
307 : {
308 0 : return pDlg->GetStartStr();
309 : }
310 0 : void AbstractScFillSeriesDlg_Impl::SetEdStartValEnabled(sal_Bool bFlag)
311 : {
312 0 : pDlg->SetEdStartValEnabled(bFlag);
313 0 : }
314 :
315 :
316 :
317 0 : sal_Bool AbstractScGroupDlg_Impl::GetColsChecked() const
318 : {
319 0 : return pDlg->GetColsChecked();
320 : }
321 :
322 :
323 :
324 :
325 0 : InsCellCmd AbstractScInsertCellDlg_Impl::GetInsCellCmd() const
326 : {
327 0 : return pDlg->GetInsCellCmd();
328 : }
329 :
330 :
331 :
332 :
333 :
334 0 : sal_uInt16 AbstractScInsertContentsDlg_Impl::GetInsContentsCmdBits() const
335 : {
336 0 : return pDlg->GetInsContentsCmdBits();
337 : }
338 :
339 :
340 0 : sal_uInt16 AbstractScInsertContentsDlg_Impl::GetFormulaCmdBits() const
341 : {
342 0 : return pDlg->GetFormulaCmdBits();
343 : }
344 0 : sal_Bool AbstractScInsertContentsDlg_Impl::IsSkipEmptyCells() const
345 : {
346 0 : return pDlg->IsSkipEmptyCells();
347 : }
348 0 : sal_Bool AbstractScInsertContentsDlg_Impl::IsLink() const
349 : {
350 0 : return pDlg->IsLink();
351 : }
352 0 : void AbstractScInsertContentsDlg_Impl::SetFillMode( sal_Bool bSet )
353 : {
354 0 : pDlg->SetFillMode( bSet );
355 0 : }
356 :
357 0 : void AbstractScInsertContentsDlg_Impl::SetOtherDoc( sal_Bool bSet )
358 : {
359 0 : pDlg->SetOtherDoc( bSet );
360 0 : }
361 :
362 0 : sal_Bool AbstractScInsertContentsDlg_Impl::IsTranspose() const
363 : {
364 0 : return pDlg->IsTranspose();
365 : }
366 0 : void AbstractScInsertContentsDlg_Impl::SetChangeTrack( sal_Bool bSet )
367 : {
368 0 : pDlg->SetChangeTrack( bSet );
369 0 : }
370 0 : void AbstractScInsertContentsDlg_Impl::SetCellShiftDisabled( int nDisable )
371 : {
372 0 : pDlg->SetCellShiftDisabled( nDisable );
373 0 : }
374 :
375 0 : InsCellCmd AbstractScInsertContentsDlg_Impl::GetMoveMode()
376 : {
377 0 : return pDlg->GetMoveMode();
378 : }
379 :
380 :
381 :
382 :
383 0 : sal_Bool AbstractScInsertTableDlg_Impl::GetTablesFromFile()
384 : {
385 0 : return pDlg->GetTablesFromFile();
386 : }
387 :
388 0 : sal_Bool AbstractScInsertTableDlg_Impl::GetTablesAsLink()
389 : {
390 0 : return pDlg->GetTablesAsLink();
391 : }
392 0 : const String* AbstractScInsertTableDlg_Impl::GetFirstTable( sal_uInt16* pN )
393 : {
394 0 : return pDlg->GetFirstTable( pN );
395 : }
396 0 : ScDocShell* AbstractScInsertTableDlg_Impl::GetDocShellTables()
397 : {
398 0 : return pDlg->GetDocShellTables();
399 : }
400 0 : sal_Bool AbstractScInsertTableDlg_Impl::IsTableBefore()
401 : {
402 0 : return pDlg->IsTableBefore();
403 : }
404 0 : sal_uInt16 AbstractScInsertTableDlg_Impl::GetTableCount()
405 : {
406 0 : return pDlg->GetTableCount();
407 : }
408 0 : const String* AbstractScInsertTableDlg_Impl::GetNextTable( sal_uInt16* pN )
409 : {
410 0 : return pDlg->GetNextTable( pN );
411 : }
412 :
413 :
414 :
415 0 : String AbstractScSelEntryDlg_Impl::GetSelectEntry() const
416 : {
417 0 : return pDlg->GetSelectEntry();
418 : }
419 :
420 :
421 :
422 0 : void AbstractScLinkedAreaDlg_Impl::InitFromOldLink( const String& rFile, const String& rFilter,
423 : const String& rOptions, const String& rSource,
424 : sal_uLong nRefresh )
425 : {
426 0 : pDlg->InitFromOldLink( rFile, rFilter, rOptions, rSource, nRefresh);
427 0 : }
428 :
429 0 : String AbstractScLinkedAreaDlg_Impl::GetURL()
430 : {
431 0 : return pDlg->GetURL();
432 : }
433 0 : String AbstractScLinkedAreaDlg_Impl::GetFilter()
434 : {
435 0 : return pDlg->GetFilter();
436 : }
437 0 : String AbstractScLinkedAreaDlg_Impl::GetOptions()
438 : {
439 0 : return pDlg->GetOptions();
440 : }
441 0 : String AbstractScLinkedAreaDlg_Impl::GetSource()
442 : {
443 0 : return pDlg->GetSource();
444 : }
445 0 : sal_uLong AbstractScLinkedAreaDlg_Impl::GetRefresh()
446 : {
447 0 : return pDlg->GetRefresh();
448 : }
449 :
450 :
451 0 : ScConditionalFormatList* AbstractScCondFormatManagerDlg_Impl::GetConditionalFormatList()
452 : {
453 0 : return pDlg->GetConditionalFormatList();
454 : }
455 :
456 0 : bool AbstractScCondFormatManagerDlg_Impl::CondFormatsChanged()
457 : {
458 0 : return pDlg->CondFormatsChanged();
459 : }
460 :
461 :
462 0 : long AbstractScMetricInputDlg_Impl::GetInputValue( FieldUnit eUnit ) const
463 : {
464 :
465 0 : return pDlg->GetInputValue( eUnit );
466 : }
467 :
468 :
469 :
470 0 : sal_uInt16 AbstractScMoveTableDlg_Impl::GetSelectedDocument() const
471 : {
472 0 : return pDlg->GetSelectedDocument();
473 : }
474 :
475 0 : sal_uInt16 AbstractScMoveTableDlg_Impl::GetSelectedTable() const
476 : {
477 0 : return pDlg->GetSelectedTable();
478 : }
479 0 : bool AbstractScMoveTableDlg_Impl::GetCopyTable() const
480 : {
481 0 : return pDlg->GetCopyTable();
482 : }
483 0 : bool AbstractScMoveTableDlg_Impl::GetRenameTable() const
484 : {
485 0 : return pDlg->GetRenameTable();
486 : }
487 0 : void AbstractScMoveTableDlg_Impl::GetTabNameString( OUString& rString ) const
488 : {
489 0 : pDlg->GetTabNameString( rString );
490 0 : }
491 0 : void AbstractScMoveTableDlg_Impl::SetForceCopyTable()
492 : {
493 0 : return pDlg->SetForceCopyTable();
494 : }
495 0 : void AbstractScMoveTableDlg_Impl::EnableCopyTable(sal_Bool bFlag)
496 : {
497 0 : return pDlg->EnableCopyTable( bFlag);
498 : }
499 0 : void AbstractScMoveTableDlg_Impl::EnableRenameTable(sal_Bool bFlag)
500 : {
501 0 : return pDlg->EnableRenameTable( bFlag);
502 : }
503 :
504 :
505 :
506 :
507 0 : sal_uInt16 AbstractScNameCreateDlg_Impl::GetFlags() const
508 : {
509 0 : return pDlg->GetFlags();
510 : }
511 :
512 :
513 :
514 0 : std::vector<OUString> AbstractScNamePasteDlg_Impl::GetSelectedNames() const
515 : {
516 0 : return pDlg->GetSelectedNames();
517 : }
518 :
519 :
520 0 : bool AbstractScNamePasteDlg_Impl::IsAllSelected() const
521 : {
522 0 : return pDlg->IsAllSelected();
523 : }
524 :
525 :
526 0 : const ScQueryItem& AbstractScPivotFilterDlg_Impl::GetOutputItem()
527 : {
528 0 : return pDlg->GetOutputItem();
529 : }
530 :
531 :
532 :
533 0 : sal_uInt16 AbstractScDPFunctionDlg_Impl::GetFuncMask() const
534 : {
535 0 : return pDlg->GetFuncMask();
536 : }
537 0 : ::com::sun::star::sheet::DataPilotFieldReference AbstractScDPFunctionDlg_Impl::GetFieldRef() const
538 : {
539 0 : return pDlg->GetFieldRef();
540 : }
541 :
542 :
543 :
544 0 : sal_uInt16 AbstractScDPSubtotalDlg_Impl::GetFuncMask() const
545 : {
546 0 : return pDlg->GetFuncMask();
547 : }
548 0 : void AbstractScDPSubtotalDlg_Impl::FillLabelData( ScDPLabelData& rLabelData ) const
549 : {
550 0 : pDlg->FillLabelData( rLabelData );
551 0 : }
552 :
553 :
554 0 : ScDPNumGroupInfo AbstractScDPNumGroupDlg_Impl::GetGroupInfo() const
555 : {
556 0 : return pDlg->GetGroupInfo();
557 : }
558 :
559 0 : ScDPNumGroupInfo AbstractScDPDateGroupDlg_Impl::GetGroupInfo() const
560 : {
561 0 : return pDlg->GetGroupInfo();
562 : }
563 :
564 0 : sal_Int32 AbstractScDPDateGroupDlg_Impl::GetDatePart() const
565 : {
566 0 : return pDlg->GetDatePart();
567 : }
568 :
569 :
570 0 : String AbstractScDPShowDetailDlg_Impl::GetDimensionName() const
571 : {
572 0 : return pDlg->GetDimensionName();
573 : }
574 :
575 0 : void AbstractScNewScenarioDlg_Impl::SetScenarioData(
576 : const OUString& rName, const OUString& rComment, const Color& rColor, sal_uInt16 nFlags )
577 : {
578 0 : pDlg->SetScenarioData(rName, rComment, rColor, nFlags);
579 0 : }
580 :
581 0 : void AbstractScNewScenarioDlg_Impl::GetScenarioData(
582 : OUString& rName, OUString& rComment, Color& rColor, sal_uInt16& rFlags ) const
583 : {
584 0 : pDlg->GetScenarioData(rName, rComment, rColor, rFlags);
585 0 : }
586 :
587 0 : void AbstractScShowTabDlg_Impl::Insert( const String& rString, sal_Bool bSelected )
588 : {
589 0 : pDlg->Insert( rString, bSelected);
590 0 : }
591 :
592 0 : sal_uInt16 AbstractScShowTabDlg_Impl::GetSelectEntryCount() const
593 : {
594 0 : return pDlg->GetSelectEntryCount();
595 : }
596 0 : void AbstractScShowTabDlg_Impl::SetDescription(
597 : const String& rTitle, const String& rFixedText,
598 : const OString& sDlgHelpId, const OString& sLbHelpId )
599 : {
600 0 : pDlg->SetDescription( rTitle, rFixedText, sDlgHelpId, sLbHelpId );
601 0 : }
602 0 : sal_uInt16 AbstractScShowTabDlg_Impl::GetSelectEntryPos(sal_uInt16 nPos) const
603 : {
604 0 : return pDlg->GetSelectEntryPos( nPos);
605 : }
606 0 : String AbstractScShowTabDlg_Impl::GetSelectEntry(sal_uInt16 nPos) const
607 : {
608 0 : return pDlg->GetSelectEntry(nPos);
609 : }
610 :
611 :
612 :
613 0 : void AbstractScStringInputDlg_Impl::GetInputString( OUString& rString ) const
614 : {
615 0 : pDlg->GetInputString( rString );
616 0 : }
617 :
618 :
619 :
620 0 : void AbstractScTabBgColorDlg_Impl::GetSelectedColor( Color& rColor ) const
621 : {
622 0 : pDlg->GetSelectedColor( rColor );
623 0 : }
624 :
625 :
626 :
627 :
628 0 : void AbstractScImportOptionsDlg_Impl::GetImportOptions( ScImportOptions& rOptions ) const
629 : {
630 0 : pDlg->GetImportOptions(rOptions);
631 0 : }
632 : // add for AbstractScImportOptionsDlg_Impl end
633 :
634 :
635 0 : LanguageType AbstractScTextImportOptionsDlg_Impl::GetLanguageType() const
636 : {
637 0 : return pDlg->getLanguageType();
638 : }
639 :
640 0 : bool AbstractScTextImportOptionsDlg_Impl::IsDateConversionSet() const
641 : {
642 0 : return pDlg->isDateConversionSet();
643 : }
644 :
645 :
646 :
647 : // =========================Factories for createdialog ===================
648 :
649 :
650 0 : AbstractScImportAsciiDlg * ScAbstractDialogFactory_Impl::CreateScImportAsciiDlg ( Window* pParent, String aDatName,
651 : SvStream* pInStream, ScImportAsciiCall eCall )
652 : {
653 0 : ScImportAsciiDlg* pDlg = new ScImportAsciiDlg( pParent, aDatName,pInStream, eCall );
654 0 : return new AbstractScImportAsciiDlg_Impl( pDlg );
655 : }
656 : // ScImportAsciiDlg end
657 :
658 0 : AbstractScTextImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScTextImportOptionsDlg(Window* pParent)
659 : {
660 0 : ScTextImportOptionsDlg* pDlg = new ScTextImportOptionsDlg(pParent);
661 0 : return new AbstractScTextImportOptionsDlg_Impl(pDlg);
662 : }
663 :
664 0 : AbstractScAutoFormatDlg * ScAbstractDialogFactory_Impl::CreateScAutoFormatDlg( Window* pParent,
665 : ScAutoFormat* pAutoFormat,
666 : const ScAutoFormatData* pSelFormatData,
667 : ScDocument* pDoc,
668 : int nId)
669 : {
670 0 : ScAutoFormatDlg* pDlg=NULL;
671 0 : switch ( nId )
672 : {
673 : case RID_SCDLG_AUTOFORMAT :
674 0 : pDlg = new ScAutoFormatDlg( pParent, pAutoFormat,pSelFormatData, pDoc );
675 0 : break;
676 : default:
677 0 : break;
678 : }
679 :
680 0 : if ( pDlg )
681 0 : return new AbstractScAutoFormatDlg_Impl( pDlg );
682 0 : return 0;
683 : }
684 :
685 :
686 :
687 :
688 0 : AbstractScColRowLabelDlg * ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(Window* pParent,
689 : int nId,
690 : sal_Bool bCol ,
691 : sal_Bool bRow)
692 : {
693 0 : ScColRowLabelDlg* pDlg=NULL;
694 0 : switch ( nId )
695 : {
696 : case RID_SCDLG_CHARTCOLROW :
697 0 : pDlg = new ScColRowLabelDlg( pParent, bCol,bRow );
698 0 : break;
699 : default:
700 0 : break;
701 : }
702 :
703 0 : if ( pDlg )
704 0 : return new AbstractScColRowLabelDlg_Impl( pDlg );
705 0 : return 0;
706 : }
707 :
708 :
709 :
710 :
711 :
712 0 : VclAbstractDialog * ScAbstractDialogFactory_Impl::CreateScColOrRowDlg(Window* pParent,
713 : const String& rStrTitle,
714 : const String& rStrLabel,
715 : int nId,
716 : sal_Bool bColDefault)
717 : {
718 0 : Dialog * pDlg=NULL;
719 0 : switch ( nId )
720 : {
721 : case RID_SCDLG_COLORROW :
722 0 : pDlg = new ScColOrRowDlg( pParent, rStrTitle,rStrLabel,bColDefault );
723 0 : break;
724 : default:
725 0 : break;
726 : }
727 :
728 0 : if ( pDlg )
729 0 : return new ScVclAbstractDialog_Impl( pDlg );
730 0 : return 0;
731 : }
732 :
733 0 : AbstractScSortWarningDlg* ScAbstractDialogFactory_Impl::CreateScSortWarningDlg( Window* pParent, const String& rExtendText, const String& rCurrentText )
734 : {
735 0 : ScSortWarningDlg* pDlg = new ScSortWarningDlg(pParent, rExtendText, rCurrentText );
736 0 : return new AbstractScSortWarningDlg_Impl( pDlg );
737 : }
738 :
739 :
740 0 : AbstractScCondFormatManagerDlg* ScAbstractDialogFactory_Impl::CreateScCondFormatMgrDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormatList* pFormatList,
741 : const ScAddress& rPos, int nId )
742 : {
743 0 : ScCondFormatManagerDlg* pDlg = NULL;
744 0 : switch( nId )
745 : {
746 : case RID_SCDLG_COND_FORMAT_MANAGER:
747 0 : pDlg = new ScCondFormatManagerDlg( pParent, pDoc, pFormatList, rPos );
748 0 : break;
749 : default:
750 0 : break;
751 : }
752 0 : if(pDlg)
753 0 : return new AbstractScCondFormatManagerDlg_Impl( pDlg );
754 :
755 0 : return NULL;
756 : }
757 :
758 0 : AbstractScDataPilotDatabaseDlg * ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg (Window* pParent ,
759 : int nId )
760 : {
761 0 : ScDataPilotDatabaseDlg * pDlg=NULL;
762 0 : switch ( nId )
763 : {
764 : case RID_SCDLG_DAPIDATA :
765 0 : pDlg = new ScDataPilotDatabaseDlg( pParent );
766 0 : break;
767 : default:
768 0 : break;
769 : }
770 :
771 0 : if ( pDlg )
772 0 : return new AbstractScDataPilotDatabaseDlg_Impl( pDlg );
773 0 : return 0;
774 : }
775 :
776 0 : AbstractScDataPilotSourceTypeDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg(
777 : Window* pParent, bool bEnableExternal)
778 : {
779 0 : ScDataPilotSourceTypeDlg* pDlg = new ScDataPilotSourceTypeDlg(pParent, bEnableExternal);
780 0 : return new AbstractScDataPilotSourceTypeDlg_Impl(pDlg);
781 : }
782 :
783 0 : AbstractScDataPilotServiceDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotServiceDlg( Window* pParent,
784 : const com::sun::star::uno::Sequence<OUString>& rServices,
785 : int nId )
786 : {
787 0 : ScDataPilotServiceDlg * pDlg=NULL;
788 0 : switch ( nId )
789 : {
790 : case RID_SCDLG_DAPISERVICE :
791 0 : pDlg = new ScDataPilotServiceDlg( pParent, rServices );
792 0 : break;
793 : default:
794 0 : break;
795 : }
796 :
797 0 : if ( pDlg )
798 0 : return new AbstractScDataPilotServiceDlg_Impl( pDlg );
799 0 : return 0;
800 : }
801 :
802 : // add for ScDataPilotServiceDlg end
803 :
804 :
805 0 : AbstractScDeleteCellDlg* ScAbstractDialogFactory_Impl::CreateScDeleteCellDlg(Window* pParent,
806 : bool bDisallowCellMove)
807 : {
808 0 : ScDeleteCellDlg * pDlg = new ScDeleteCellDlg(pParent, bDisallowCellMove);
809 0 : return new AbstractScDeleteCellDlg_Impl( pDlg );
810 : }
811 :
812 0 : AbstractScDataFormDlg* ScAbstractDialogFactory_Impl::CreateScDataFormDlg(Window* pParent,
813 : ScTabViewShell* pTabViewShell)
814 : {
815 0 : ScDataFormDlg* pDlg = new ScDataFormDlg(pParent, pTabViewShell);
816 0 : return new AbstractScDataFormDlg_Impl(pDlg);
817 : }
818 :
819 0 : AbstractScDeleteContentsDlg* ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(Window* pParent,
820 : sal_uInt16 nCheckDefaults)
821 : {
822 0 : ScDeleteContentsDlg* pDlg = new ScDeleteContentsDlg(pParent, nCheckDefaults);
823 0 : return new AbstractScDeleteContentsDlg_Impl( pDlg );
824 : }
825 :
826 :
827 :
828 :
829 0 : AbstractScFillSeriesDlg* ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg( Window* pParent,
830 : ScDocument& rDocument,
831 : FillDir eFillDir,
832 : FillCmd eFillCmd,
833 : FillDateCmd eFillDateCmd,
834 : String aStartStr,
835 : double fStep,
836 : double fMax,
837 : sal_uInt16 nPossDir,
838 : int nId)
839 : {
840 0 : ScFillSeriesDlg * pDlg=NULL;
841 0 : switch ( nId )
842 : {
843 : case RID_SCDLG_FILLSERIES :
844 0 : pDlg = new ScFillSeriesDlg( pParent, rDocument,eFillDir, eFillCmd,eFillDateCmd, aStartStr,fStep,fMax,nPossDir);
845 0 : break;
846 : default:
847 0 : break;
848 : }
849 :
850 0 : if ( pDlg )
851 0 : return new AbstractScFillSeriesDlg_Impl( pDlg );
852 0 : return 0;
853 : }
854 :
855 0 : AbstractScGroupDlg* ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg( Window* pParent,
856 : bool bUnGroup,
857 : bool bRows )
858 : {
859 0 : ScGroupDlg * pDlg = new ScGroupDlg( pParent, bUnGroup, bRows);
860 0 : return new AbstractScGroupDlg_Impl( pDlg );
861 : }
862 :
863 0 : AbstractScInsertCellDlg * ScAbstractDialogFactory_Impl::CreateScInsertCellDlg( Window* pParent,
864 : int nId,
865 : sal_Bool bDisallowCellMove )
866 : {
867 0 : ScInsertCellDlg * pDlg=NULL;
868 0 : switch ( nId )
869 : {
870 : case RID_SCDLG_INSCELL :
871 0 : pDlg = new ScInsertCellDlg( pParent, bDisallowCellMove);
872 0 : break;
873 : default:
874 0 : break;
875 : }
876 :
877 0 : if ( pDlg )
878 0 : return new AbstractScInsertCellDlg_Impl( pDlg );
879 0 : return 0;
880 : }
881 :
882 :
883 :
884 :
885 0 : AbstractScInsertContentsDlg * ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg( Window* pParent,
886 : int nId,
887 : sal_uInt16 nCheckDefaults,
888 : const OUString* pStrTitle )
889 : {
890 0 : ScInsertContentsDlg * pDlg=NULL;
891 0 : switch ( nId )
892 : {
893 : case RID_SCDLG_INSCONT :
894 0 : pDlg = new ScInsertContentsDlg( pParent, nCheckDefaults,pStrTitle );
895 0 : break;
896 : default:
897 0 : break;
898 : }
899 :
900 0 : if ( pDlg )
901 0 : return new AbstractScInsertContentsDlg_Impl( pDlg );
902 0 : return 0;
903 : }
904 :
905 0 : AbstractScInsertTableDlg * ScAbstractDialogFactory_Impl::CreateScInsertTableDlg(Window* pParent, ScViewData& rViewData,
906 : SCTAB nTabCount, bool bFromFile)
907 : {
908 0 : ScInsertTableDlg* pDlg = new ScInsertTableDlg( pParent, rViewData,nTabCount, bFromFile );
909 0 : return new AbstractScInsertTableDlg_Impl( pDlg );
910 : }
911 :
912 : // add for ScSelEntryDlg begin
913 0 : AbstractScSelEntryDlg * ScAbstractDialogFactory_Impl::CreateScSelEntryDlg ( Window* pParent,
914 : const std::vector<String> &rEntryList )
915 : {
916 0 : ScSelEntryDlg * pDlg = new ScSelEntryDlg( pParent, rEntryList );
917 0 : return new AbstractScSelEntryDlg_Impl( pDlg );
918 : }
919 : // add for ScSelEntryDlg end
920 :
921 0 : AbstractScLinkedAreaDlg * ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg(Window* pParent)
922 : {
923 0 : ScLinkedAreaDlg* pDlg = new ScLinkedAreaDlg( pParent );
924 0 : return new AbstractScLinkedAreaDlg_Impl( pDlg );
925 : }
926 :
927 0 : AbstractScMetricInputDlg * ScAbstractDialogFactory_Impl::CreateScMetricInputDlg ( Window* pParent,
928 : sal_uInt16 nResId, // Ableitung fuer jeden Dialog!
929 : long nCurrent,
930 : long nDefault,
931 : int nId ,
932 : FieldUnit eFUnit,
933 : sal_uInt16 nDecimals,
934 : long nMaximum ,
935 : long nMinimum,
936 : long nFirst,
937 : long nLast )
938 : {
939 0 : ScMetricInputDlg * pDlg=NULL;
940 0 : switch ( nId )
941 : {
942 : case RID_SCDLG_ROW_MAN :
943 : case RID_SCDLG_ROW_OPT :
944 : case RID_SCDLG_COL_MAN :
945 : case RID_SCDLG_COL_OPT :
946 : pDlg = new ScMetricInputDlg( pParent , nResId,nCurrent ,nDefault, eFUnit,
947 0 : nDecimals, nMaximum , nMinimum , nFirst, nLast);
948 0 : break;
949 : default:
950 0 : break;
951 : }
952 :
953 0 : if ( pDlg )
954 0 : return new AbstractScMetricInputDlg_Impl( pDlg );
955 0 : return 0;
956 : }
957 :
958 :
959 :
960 :
961 0 : AbstractScMoveTableDlg * ScAbstractDialogFactory_Impl::CreateScMoveTableDlg( Window* pParent,
962 : const String& rDefault,
963 : int nId )
964 : {
965 0 : ScMoveTableDlg * pDlg=NULL;
966 0 : switch ( nId )
967 : {
968 : case RID_SCDLG_MOVETAB :
969 0 : pDlg = new ScMoveTableDlg( pParent, rDefault );
970 0 : break;
971 : default:
972 0 : break;
973 : }
974 :
975 0 : if ( pDlg )
976 0 : return new AbstractScMoveTableDlg_Impl( pDlg );
977 0 : return 0;
978 : }
979 :
980 0 : AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg(Window * pParent, sal_uInt16 nFlags)
981 : {
982 0 : ScNameCreateDlg * pDlg = new ScNameCreateDlg( pParent, nFlags );
983 0 : return new AbstractScNameCreateDlg_Impl( pDlg );
984 : }
985 :
986 0 : AbstractScNamePasteDlg * ScAbstractDialogFactory_Impl::CreateScNamePasteDlg ( Window * pParent, ScDocShell* pShell, bool bInsList )
987 : {
988 0 : ScNamePasteDlg * pDlg = new ScNamePasteDlg( pParent, pShell, bInsList );
989 0 : return new AbstractScNamePasteDlg_Impl( pDlg );
990 : }
991 :
992 :
993 0 : AbstractScPivotFilterDlg * ScAbstractDialogFactory_Impl::CreateScPivotFilterDlg ( Window* pParent,
994 : const SfxItemSet& rArgSet, sal_uInt16 nSourceTab , int nId )
995 : {
996 0 : ScPivotFilterDlg * pDlg=NULL;
997 0 : switch ( nId )
998 : {
999 : case RID_SCDLG_PIVOTFILTER :
1000 0 : pDlg = new ScPivotFilterDlg( pParent, rArgSet, nSourceTab );
1001 0 : break;
1002 : default:
1003 0 : break;
1004 : }
1005 :
1006 0 : if ( pDlg )
1007 0 : return new AbstractScPivotFilterDlg_Impl( pDlg );
1008 0 : return 0;
1009 : }
1010 :
1011 :
1012 :
1013 :
1014 0 : AbstractScDPFunctionDlg * ScAbstractDialogFactory_Impl::CreateScDPFunctionDlg ( Window* pParent,
1015 : int nId,
1016 : const ScDPLabelDataVector& rLabelVec,
1017 : const ScDPLabelData& rLabelData,
1018 : const ScPivotFuncData& rFuncData )
1019 : {
1020 0 : ScDPFunctionDlg * pDlg=NULL;
1021 0 : switch ( nId )
1022 : {
1023 : case RID_SCDLG_DPDATAFIELD :
1024 0 : pDlg = new ScDPFunctionDlg( pParent, rLabelVec, rLabelData, rFuncData );
1025 0 : break;
1026 : default:
1027 0 : break;
1028 : }
1029 :
1030 0 : if ( pDlg )
1031 0 : return new AbstractScDPFunctionDlg_Impl( pDlg );
1032 0 : return 0;
1033 : }
1034 :
1035 :
1036 :
1037 0 : AbstractScDPSubtotalDlg * ScAbstractDialogFactory_Impl::CreateScDPSubtotalDlg ( Window* pParent,
1038 : int nId,
1039 : ScDPObject& rDPObj,
1040 : const ScDPLabelData& rLabelData,
1041 : const ScPivotFuncData& rFuncData,
1042 : const ScDPNameVec& rDataFields,
1043 : bool bEnableLayout )
1044 : {
1045 0 : ScDPSubtotalDlg * pDlg=NULL;
1046 0 : switch ( nId )
1047 : {
1048 : case RID_SCDLG_PIVOTSUBT :
1049 0 : pDlg = new ScDPSubtotalDlg( pParent, rDPObj, rLabelData, rFuncData, rDataFields, bEnableLayout );
1050 0 : break;
1051 : default:
1052 0 : break;
1053 : }
1054 :
1055 0 : if ( pDlg )
1056 0 : return new AbstractScDPSubtotalDlg_Impl( pDlg );
1057 0 : return 0;
1058 : }
1059 :
1060 :
1061 0 : AbstractScDPNumGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPNumGroupDlg(
1062 : Window* pParent, int nId, const ScDPNumGroupInfo& rInfo )
1063 : {
1064 0 : if( nId == RID_SCDLG_DPNUMGROUP )
1065 0 : return new AbstractScDPNumGroupDlg_Impl( new ScDPNumGroupDlg( pParent, rInfo ) );
1066 0 : return 0;
1067 : }
1068 :
1069 0 : AbstractScDPDateGroupDlg * ScAbstractDialogFactory_Impl::CreateScDPDateGroupDlg(
1070 : Window* pParent, int nId,
1071 : const ScDPNumGroupInfo& rInfo, sal_Int32 nDatePart, const Date& rNullDate )
1072 : {
1073 0 : if( nId == RID_SCDLG_DPDATEGROUP )
1074 0 : return new AbstractScDPDateGroupDlg_Impl( new ScDPDateGroupDlg( pParent, rInfo, nDatePart, rNullDate ) );
1075 0 : return 0;
1076 : }
1077 :
1078 :
1079 0 : AbstractScDPShowDetailDlg * ScAbstractDialogFactory_Impl::CreateScDPShowDetailDlg (
1080 : Window* pParent, int nId, ScDPObject& rDPObj, sal_uInt16 nOrient )
1081 : {
1082 0 : if( nId == RID_SCDLG_DPSHOWDETAIL )
1083 0 : return new AbstractScDPShowDetailDlg_Impl( new ScDPShowDetailDlg( pParent, rDPObj, nOrient ) );
1084 0 : return 0;
1085 : }
1086 :
1087 :
1088 :
1089 0 : AbstractScNewScenarioDlg * ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg ( Window* pParent, const String& rName,
1090 : int nId,
1091 : sal_Bool bEdit , sal_Bool bSheetProtected )
1092 : {
1093 0 : ScNewScenarioDlg * pDlg=NULL;
1094 0 : switch ( nId )
1095 : {
1096 : case RID_SCDLG_NEWSCENARIO :
1097 0 : pDlg = new ScNewScenarioDlg( pParent, rName, bEdit,bSheetProtected );
1098 0 : break;
1099 : default:
1100 0 : break;
1101 : }
1102 :
1103 0 : if ( pDlg )
1104 0 : return new AbstractScNewScenarioDlg_Impl( pDlg );
1105 0 : return 0;
1106 : }
1107 :
1108 :
1109 :
1110 0 : AbstractScShowTabDlg * ScAbstractDialogFactory_Impl::CreateScShowTabDlg ( Window* pParent, int nId )
1111 : {
1112 0 : ScShowTabDlg * pDlg=NULL;
1113 0 : switch ( nId )
1114 : {
1115 : case RID_SCDLG_SHOW_TAB :
1116 0 : pDlg = new ScShowTabDlg( pParent);
1117 0 : break;
1118 : default:
1119 0 : break;
1120 : }
1121 :
1122 0 : if ( pDlg )
1123 0 : return new AbstractScShowTabDlg_Impl( pDlg );
1124 0 : return 0;
1125 : }
1126 :
1127 :
1128 :
1129 :
1130 :
1131 0 : AbstractScStringInputDlg * ScAbstractDialogFactory_Impl::CreateScStringInputDlg ( Window* pParent,
1132 : const String& rTitle,
1133 : const String& rEditTitle,
1134 : const String& rDefault,
1135 : const OString& sHelpId, const OString& sEditHelpId,
1136 : int nId )
1137 : {
1138 0 : ScStringInputDlg * pDlg=NULL;
1139 0 : switch ( nId )
1140 : {
1141 : case RID_SCDLG_STRINPUT :
1142 0 : pDlg = new ScStringInputDlg( pParent, rTitle, rEditTitle, rDefault, sHelpId, sEditHelpId );
1143 0 : break;
1144 : default:
1145 0 : break;
1146 : }
1147 :
1148 0 : if ( pDlg )
1149 0 : return new AbstractScStringInputDlg_Impl( pDlg );
1150 0 : return 0;
1151 : }
1152 :
1153 :
1154 :
1155 0 : AbstractScTabBgColorDlg * ScAbstractDialogFactory_Impl::CreateScTabBgColorDlg (
1156 : Window* pParent,
1157 : const String& rTitle,
1158 : const String& rTabBgColorNoColorText,
1159 : const Color& rDefaultColor,
1160 : const OString& sHelpId ,
1161 : int nId )
1162 : {
1163 0 : ScTabBgColorDlg * pDlg=NULL;
1164 0 : switch ( nId )
1165 : {
1166 : case RID_SCDLG_TAB_BG_COLOR :
1167 0 : pDlg = new ScTabBgColorDlg( pParent, rTitle, rTabBgColorNoColorText, rDefaultColor, sHelpId );
1168 0 : break;
1169 : default:
1170 0 : break;
1171 : }
1172 :
1173 0 : if ( pDlg )
1174 0 : return new AbstractScTabBgColorDlg_Impl( pDlg );
1175 0 : return 0;
1176 : }
1177 :
1178 :
1179 :
1180 0 : AbstractScImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg ( Window* pParent,
1181 : int nId,
1182 : sal_Bool bAscii,
1183 : const ScImportOptions* pOptions,
1184 : const String* pStrTitle,
1185 : sal_Bool bMultiByte,
1186 : sal_Bool bOnlyDbtoolsEncodings,
1187 : sal_Bool bImport )
1188 : {
1189 0 : ScImportOptionsDlg * pDlg=NULL;
1190 0 : switch ( nId )
1191 : {
1192 : case RID_SCDLG_IMPORTOPT :
1193 0 : pDlg = new ScImportOptionsDlg( pParent, bAscii, pOptions,pStrTitle, bMultiByte,bOnlyDbtoolsEncodings, bImport );
1194 0 : break;
1195 : default:
1196 0 : break;
1197 : }
1198 :
1199 0 : if ( pDlg )
1200 0 : return new AbstractScImportOptionsDlg_Impl( pDlg );
1201 0 : return 0;
1202 : }
1203 :
1204 :
1205 0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScAttrDlg(SfxViewFrame* pFrame,
1206 : Window* pParent, const SfxItemSet* pCellAttrs)
1207 : {
1208 0 : SfxTabDialog* pDlg = new ScAttrDlg(pFrame, pParent, pCellAttrs);
1209 0 : return new ScAbstractTabDialog_Impl(pDlg);
1210 : }
1211 :
1212 : #undef SfxTabDialog
1213 : #undef ScAbstractTabDialog_Impl
1214 :
1215 :
1216 0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScHFEditDlg( SfxViewFrame* pFrame,
1217 : Window* pParent,
1218 : const SfxItemSet& rCoreSet,
1219 : const OUString& rPageStyle,
1220 : sal_uInt16 nResId )
1221 : {
1222 0 : SfxTabDialog* pDlg = NULL;
1223 :
1224 0 : switch (nResId)
1225 : {
1226 : case RID_SCDLG_HFED_HEADER:
1227 : case RID_SCDLG_HFEDIT_HEADER:
1228 0 : pDlg = new ScHFEditHeaderDlg(pFrame, pParent, rCoreSet, rPageStyle);
1229 0 : break;
1230 : case RID_SCDLG_HFED_FOOTER:
1231 : case RID_SCDLG_HFEDIT_FOOTER:
1232 0 : pDlg = new ScHFEditFooterDlg(pFrame, pParent, rCoreSet, rPageStyle);
1233 0 : break;
1234 : case RID_SCDLG_HFEDIT_LEFTHEADER:
1235 0 : pDlg = new ScHFEditLeftHeaderDlg(pFrame, pParent, rCoreSet, rPageStyle);
1236 0 : break;
1237 : case RID_SCDLG_HFEDIT_RIGHTHEADER:
1238 0 : pDlg = new ScHFEditRightHeaderDlg(pFrame, pParent, rCoreSet, rPageStyle);
1239 0 : break;
1240 : case RID_SCDLG_HFEDIT_LEFTFOOTER:
1241 0 : pDlg = new ScHFEditLeftFooterDlg(pFrame, pParent, rCoreSet, rPageStyle);
1242 0 : break;
1243 : case RID_SCDLG_HFEDIT_RIGHTFOOTER:
1244 0 : pDlg = new ScHFEditRightFooterDlg(pFrame, pParent, rCoreSet, rPageStyle);
1245 0 : break;
1246 : case RID_SCDLG_HFEDIT_SHDR:
1247 0 : pDlg = new ScHFEditSharedHeaderDlg(pFrame, pParent, rCoreSet, rPageStyle);
1248 0 : break;
1249 : case RID_SCDLG_HFEDIT_SFTR:
1250 0 : pDlg = new ScHFEditSharedFooterDlg(pFrame, pParent, rCoreSet, rPageStyle);
1251 0 : break;
1252 : case RID_SCDLG_HFEDIT_ALL:
1253 0 : pDlg = new ScHFEditAllDlg(pFrame, pParent, rCoreSet, rPageStyle);
1254 0 : break;
1255 : default:
1256 : case RID_SCDLG_HFEDIT:
1257 0 : pDlg = new ScHFEditActiveDlg(pFrame, pParent, rCoreSet, rPageStyle);
1258 0 : break;
1259 : }
1260 :
1261 0 : return pDlg ? new ScAbstractTabDialog_Impl( pDlg ) : NULL;
1262 : }
1263 :
1264 :
1265 :
1266 0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScStyleDlg( Window* pParent,
1267 : SfxStyleSheetBase& rStyleBase,
1268 : sal_uInt16 nRscId,
1269 : int nId)
1270 : {
1271 0 : SfxTabDialog* pDlg=NULL;
1272 0 : switch ( nId )
1273 : {
1274 : case RID_SCDLG_STYLES_PAGE :
1275 : case RID_SCDLG_STYLES_PAR :
1276 0 : pDlg = new ScStyleDlg( pParent, rStyleBase, nRscId );
1277 0 : break;
1278 : default:
1279 0 : break;
1280 : }
1281 :
1282 0 : if ( pDlg )
1283 0 : return new ScAbstractTabDialog_Impl( pDlg );
1284 0 : return 0;
1285 : }
1286 :
1287 :
1288 :
1289 0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSubTotalDlg( Window* pParent,
1290 : const SfxItemSet* pArgSet,
1291 : int nId)
1292 : {
1293 0 : SfxTabDialog* pDlg=NULL;
1294 0 : switch ( nId )
1295 : {
1296 : case RID_SCDLG_SUBTOTALS :
1297 0 : pDlg = new ScSubTotalDlg( pParent, pArgSet );
1298 0 : break;
1299 : default:
1300 0 : break;
1301 : }
1302 :
1303 0 : if ( pDlg )
1304 0 : return new ScAbstractTabDialog_Impl( pDlg );
1305 0 : return 0;
1306 : }
1307 :
1308 :
1309 :
1310 0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr,
1311 : const SfxObjectShell* pDocShell, int nId )
1312 : {
1313 0 : SfxTabDialog* pDlg=NULL;
1314 0 : switch ( nId )
1315 : {
1316 : case RID_SCDLG_CHAR :
1317 0 : pDlg = new ScCharDlg( pParent, pAttr, pDocShell );
1318 0 : break;
1319 : default:
1320 0 : break;
1321 : }
1322 :
1323 0 : if ( pDlg )
1324 0 : return new ScAbstractTabDialog_Impl( pDlg );
1325 0 : return 0;
1326 : }
1327 :
1328 :
1329 :
1330 0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ,
1331 : int nId )
1332 : {
1333 0 : SfxTabDialog* pDlg=NULL;
1334 0 : switch ( nId )
1335 : {
1336 : case RID_SCDLG_PARAGRAPH :
1337 0 : pDlg = new ScParagraphDlg( pParent, pAttr );
1338 0 : break;
1339 : default:
1340 0 : break;
1341 : }
1342 :
1343 0 : if ( pDlg )
1344 0 : return new ScAbstractTabDialog_Impl( pDlg );
1345 0 : return 0;
1346 : }
1347 :
1348 :
1349 :
1350 0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScValidationDlg( Window* pParent,
1351 : const SfxItemSet* pArgSet,int nId, ScTabViewShell *pTabVwSh )
1352 : {
1353 0 : SfxTabDialog* pDlg=NULL;
1354 0 : switch ( nId )
1355 : {
1356 : case TAB_DLG_VALIDATION :
1357 0 : pDlg = new ScValidationDlg( pParent, pArgSet, pTabVwSh );
1358 0 : break;
1359 : default:
1360 0 : break;
1361 : }
1362 :
1363 0 : if ( pDlg )
1364 0 : return new ScAbstractTabDialog_Impl( pDlg );
1365 0 : return 0;
1366 : }
1367 :
1368 :
1369 0 : SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScSortDlg( Window* pParent,
1370 : const SfxItemSet* pArgSet,int nId )
1371 : {
1372 0 : SfxTabDialog* pDlg=NULL;
1373 0 : switch ( nId )
1374 : {
1375 : case RID_SCDLG_SORT :
1376 0 : pDlg = new ScSortDlg( pParent, pArgSet );
1377 0 : break;
1378 : default:
1379 0 : break;
1380 : }
1381 :
1382 0 : if ( pDlg )
1383 0 : return new ScAbstractTabDialog_Impl( pDlg );
1384 0 : return 0;
1385 : }
1386 :
1387 : #undef SfxTabDialog
1388 : #undef ScAbstractTabDialog_Impl
1389 :
1390 :
1391 : //------------------ Factories for TabPages--------------------
1392 0 : CreateTabPage ScAbstractDialogFactory_Impl::GetTabPageCreatorFunc( sal_uInt16 nId )
1393 : {
1394 0 : switch ( nId )
1395 : {
1396 : case RID_SCPAGE_OPREDLINE :
1397 0 : return ScRedlineOptionsTabPage::Create;
1398 : //break;
1399 : case RID_SCPAGE_CALC :
1400 0 : return ScTpCalcOptions::Create;
1401 : //break;
1402 : case RID_SCPAGE_FORMULA:
1403 0 : return ScTpFormulaOptions::Create;
1404 : case RID_SCPAGE_COMPATIBILITY:
1405 0 : return ScTpCompatOptions::Create;
1406 : case RID_SCPAGE_DEFAULTS:
1407 0 : return ScTpDefaultsOptions::Create;
1408 : case RID_SCPAGE_PRINT :
1409 0 : return ScTpPrintOptions::Create;
1410 : //break;
1411 : case RID_SCPAGE_STAT :
1412 0 : return ScDocStatPage::Create;
1413 : //break;
1414 : case RID_SCPAGE_USERLISTS :
1415 0 : return ScTpUserLists::Create;
1416 : //break;
1417 : case RID_SCPAGE_CONTENT :
1418 0 : return ScTpContentOptions::Create;
1419 : //break;
1420 : case RID_SCPAGE_LAYOUT :
1421 0 : return ScTpLayoutOptions::Create;
1422 : //break;
1423 :
1424 : default:
1425 0 : break;
1426 : }
1427 :
1428 0 : return 0;
1429 : }
1430 :
1431 0 : GetTabPageRanges ScAbstractDialogFactory_Impl::GetTabPageRangesFunc( sal_uInt16 nId )
1432 : {
1433 0 : switch ( nId )
1434 : {
1435 : case TP_VALIDATION_VALUES :
1436 0 : return ScTPValidationValue::GetRanges;
1437 : //break;
1438 : default:
1439 0 : break;
1440 : }
1441 :
1442 0 : return 0;
1443 0 : }
1444 :
1445 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|