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 : #ifndef _SC_DLGFACT_HXX
20 : #define _SC_DLGFACT_HXX
21 :
22 : #include "scabstdlg.hxx"
23 : class Dialog;
24 : class ScImportAsciiDlg;
25 : class ScAutoFormatDlg;
26 : class ScColRowLabelDlg;
27 : class ScDataPilotDatabaseDlg;
28 : class ScDataPilotSourceTypeDlg;
29 : class ScDataPilotServiceDlg;
30 : class ScDeleteCellDlg;
31 : class ScDataFormDlg;
32 : class ScDeleteContentsDlg;
33 : class ScFillSeriesDlg;
34 : class ScGroupDlg;
35 : class ScInsertCellDlg;
36 : class ScInsertContentsDlg;
37 : class ScInsertTableDlg;
38 : class ScSelEntryDlg;
39 : class ScLinkedAreaDlg;
40 : class ScMetricInputDlg;
41 : class ScMoveTableDlg;
42 : class ScNameCreateDlg;
43 : class ScNamePasteDlg;
44 : class ScPivotFilterDlg;
45 : class ScDPFunctionDlg;
46 : class ScDPSubtotalDlg;
47 : class ScDPNumGroupDlg;
48 : class ScDPDateGroupDlg;
49 : class ScDPShowDetailDlg;
50 : class ScNewScenarioDlg;
51 : class ScShowTabDlg;
52 : class ScStringInputDlg;
53 : class ScTabBgColorDlg;
54 : class ScImportOptionsDlg;
55 : class SfxTabDialog;
56 : class ScTextImportOptionsDlg;
57 : class ScCondFormatManagerDlg;
58 :
59 : #define DECL_ABSTDLG_BASE(Class,DialogClass) \
60 : DialogClass* pDlg; \
61 : public: \
62 : Class( DialogClass* p) \
63 : : pDlg(p) \
64 : {} \
65 : virtual ~Class(); \
66 : virtual short Execute() ;
67 :
68 : #define DECL_ABSTDLG2_BASE(Class,DialogClass) \
69 : DialogClass* pDlg; \
70 : public: \
71 : Class( DialogClass* p) \
72 : : pDlg(p) \
73 : {} \
74 : virtual ~Class(); \
75 : virtual void StartExecuteModal( const Link& rEndDialogHdl ); \
76 : long GetResult();
77 :
78 : #define IMPL_ABSTDLG_BASE(Class) \
79 : Class::~Class() \
80 : { \
81 : delete pDlg; \
82 : } \
83 : short Class::Execute() \
84 : { \
85 : return pDlg->Execute(); \
86 : }
87 :
88 : #define IMPL_ABSTDLG2_BASE(Class) \
89 : Class::~Class() \
90 : { \
91 : delete pDlg; \
92 : } \
93 : void Class::StartExecuteModal( const Link& rEndDialogHdl ) \
94 : { \
95 : pDlg->StartExecuteModal( rEndDialogHdl ) ; \
96 : } \
97 : long Class::GetResult() \
98 : { \
99 : return pDlg->GetResult(); \
100 : }
101 :
102 : class ScVclAbstractDialog_Impl : public VclAbstractDialog //add for ScColOrRowDlg
103 : {
104 0 : DECL_ABSTDLG_BASE(ScVclAbstractDialog_Impl,Dialog)
105 : };
106 :
107 : class AbstractScImportAsciiDlg_Impl : public AbstractScImportAsciiDlg //add for ScImportAsciiDlg
108 : {
109 0 : DECL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl, ScImportAsciiDlg)
110 : virtual void GetOptions( ScAsciiOptions& rOpt );
111 : virtual void SaveParameters();
112 : };
113 :
114 : class AbstractScAutoFormatDlg_Impl : public AbstractScAutoFormatDlg //add for ScAutoFormatDlg
115 : {
116 0 : DECL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl, ScAutoFormatDlg)
117 : virtual sal_uInt16 GetIndex() const;
118 : virtual String GetCurrFormatName();
119 : };
120 :
121 : class AbstractScColRowLabelDlg_Impl : public AbstractScColRowLabelDlg //add for ScColRowLabelDlg
122 : {
123 0 : DECL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl,ScColRowLabelDlg)
124 : virtual sal_Bool IsCol();
125 : virtual sal_Bool IsRow();
126 : };
127 :
128 : class AbstractScCondFormatManagerDlg_Impl : public AbstractScCondFormatManagerDlg
129 : {
130 0 : DECL_ABSTDLG_BASE(AbstractScCondFormatManagerDlg_Impl, ScCondFormatManagerDlg)
131 :
132 : virtual ScConditionalFormatList* GetConditionalFormatList();
133 :
134 : virtual bool CondFormatsChanged();
135 : };
136 :
137 : class AbstractScDataPilotDatabaseDlg_Impl :public AbstractScDataPilotDatabaseDlg //add for ScDataPilotDatabaseDlg
138 : {
139 0 : DECL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl, ScDataPilotDatabaseDlg)
140 : virtual void GetValues( ScImportSourceDesc& rDesc );
141 : };
142 :
143 : class AbstractScDataPilotSourceTypeDlg_Impl :public AbstractScDataPilotSourceTypeDlg //add for ScDataPilotSourceTypeDlg
144 : {
145 0 : DECL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl, ScDataPilotSourceTypeDlg)
146 : virtual bool IsDatabase() const;
147 : virtual bool IsExternal() const;
148 : virtual bool IsNamedRange() const;
149 : virtual rtl::OUString GetSelectedNamedRange() const;
150 : virtual void AppendNamedRange(const ::rtl::OUString& rName);
151 : };
152 :
153 : class AbstractScDataPilotServiceDlg_Impl : public AbstractScDataPilotServiceDlg //add for ScDataPilotServiceDlg
154 : {
155 0 : DECL_ABSTDLG_BASE(AbstractScDataPilotServiceDlg_Impl, ScDataPilotServiceDlg)
156 : virtual String GetServiceName() const;
157 : virtual String GetParSource() const;
158 : virtual String GetParName() const;
159 : virtual String GetParUser() const;
160 : virtual String GetParPass() const;
161 : };
162 :
163 : class AbstractScDeleteCellDlg_Impl : public AbstractScDeleteCellDlg //add for ScDeleteCellDlg
164 : {
165 0 : DECL_ABSTDLG_BASE(AbstractScDeleteCellDlg_Impl,ScDeleteCellDlg)
166 : virtual DelCellCmd GetDelCellCmd() const;
167 : };
168 :
169 : //for dataform
170 : class AbstractScDataFormDlg_Impl : public AbstractScDataFormDlg //add for ScDataFormDlg
171 : {
172 0 : DECL_ABSTDLG_BASE(AbstractScDataFormDlg_Impl,ScDataFormDlg);
173 : };
174 :
175 : class AbstractScDeleteContentsDlg_Impl : public AbstractScDeleteContentsDlg //add for ScDeleteContentsDlg
176 : {
177 0 : DECL_ABSTDLG_BASE( AbstractScDeleteContentsDlg_Impl,ScDeleteContentsDlg)
178 : virtual void DisableObjects();
179 : virtual sal_uInt16 GetDelContentsCmdBits() const;
180 : };
181 :
182 : class AbstractScFillSeriesDlg_Impl:public AbstractScFillSeriesDlg //add for ScFillSeriesDlg
183 : {
184 0 : DECL_ABSTDLG_BASE(AbstractScFillSeriesDlg_Impl, ScFillSeriesDlg)
185 : virtual FillDir GetFillDir() const;
186 : virtual FillCmd GetFillCmd() const;
187 : virtual FillDateCmd GetFillDateCmd() const;
188 : virtual double GetStart() const;
189 : virtual double GetStep() const;
190 : virtual double GetMax() const;
191 : virtual String GetStartStr() const;
192 : virtual void SetEdStartValEnabled(sal_Bool bFlag=false);
193 : };
194 :
195 : class AbstractScGroupDlg_Impl : public AbstractScGroupDlg //add for ScGroupDlg
196 : {
197 0 : DECL_ABSTDLG_BASE( AbstractScGroupDlg_Impl, ScGroupDlg)
198 : virtual sal_Bool GetColsChecked() const;
199 : };
200 :
201 : class AbstractScInsertCellDlg_Impl : public AbstractScInsertCellDlg //add for ScInsertCellDlg
202 : {
203 0 : DECL_ABSTDLG_BASE( AbstractScInsertCellDlg_Impl, ScInsertCellDlg)
204 : virtual InsCellCmd GetInsCellCmd() const ;
205 : };
206 :
207 : class AbstractScInsertContentsDlg_Impl : public AbstractScInsertContentsDlg //add for ScInsertContentsDlg
208 : {
209 0 : DECL_ABSTDLG_BASE(AbstractScInsertContentsDlg_Impl, ScInsertContentsDlg)
210 : virtual sal_uInt16 GetInsContentsCmdBits() const;
211 : virtual sal_uInt16 GetFormulaCmdBits() const;
212 : virtual sal_Bool IsSkipEmptyCells() const;
213 : virtual sal_Bool IsLink() const;
214 : virtual void SetFillMode( sal_Bool bSet );
215 : virtual void SetOtherDoc( sal_Bool bSet );
216 : virtual sal_Bool IsTranspose() const;
217 : virtual void SetChangeTrack( sal_Bool bSet );
218 : virtual void SetCellShiftDisabled( int nDisable );
219 : virtual InsCellCmd GetMoveMode();
220 : };
221 :
222 : class AbstractScInsertTableDlg_Impl : public AbstractScInsertTableDlg //add for ScInsertTableDlg
223 : {
224 0 : DECL_ABSTDLG_BASE( AbstractScInsertTableDlg_Impl, ScInsertTableDlg)
225 : virtual sal_Bool GetTablesFromFile();
226 : virtual sal_Bool GetTablesAsLink();
227 : virtual const String* GetFirstTable( sal_uInt16* pN = NULL );
228 : virtual ScDocShell* GetDocShellTables();
229 : virtual sal_Bool IsTableBefore();
230 : virtual sal_uInt16 GetTableCount();
231 : virtual const String* GetNextTable( sal_uInt16* pN = NULL );
232 :
233 : };
234 :
235 : class AbstractScSelEntryDlg_Impl : public AbstractScSelEntryDlg //add for ScSelEntryDlg
236 : {
237 0 : DECL_ABSTDLG_BASE( AbstractScSelEntryDlg_Impl, ScSelEntryDlg )
238 : virtual String GetSelectEntry() const;
239 : };
240 :
241 : class AbstractScLinkedAreaDlg_Impl : public AbstractScLinkedAreaDlg //add for ScLinkedAreaDlg
242 : {
243 0 : DECL_ABSTDLG2_BASE( AbstractScLinkedAreaDlg_Impl, ScLinkedAreaDlg)
244 :
245 : virtual void InitFromOldLink( const String& rFile, const String& rFilter,
246 : const String& rOptions, const String& rSource,
247 : sal_uLong nRefresh );
248 : virtual String GetURL();
249 : virtual String GetFilter(); // may be empty
250 : virtual String GetOptions(); // filter options
251 : virtual String GetSource(); // separated by ";"
252 : virtual sal_uLong GetRefresh(); // 0 if disabled
253 : };
254 :
255 : class AbstractScMetricInputDlg_Impl : public AbstractScMetricInputDlg //add for ScMetricInputDlg
256 : {
257 0 : DECL_ABSTDLG_BASE( AbstractScMetricInputDlg_Impl, ScMetricInputDlg)
258 : virtual long GetInputValue( FieldUnit eUnit = FUNIT_TWIP ) const;
259 : };
260 :
261 : class AbstractScMoveTableDlg_Impl : public AbstractScMoveTableDlg //add for ScMoveTableDlg
262 : {
263 0 : DECL_ABSTDLG_BASE( AbstractScMoveTableDlg_Impl, ScMoveTableDlg)
264 : virtual sal_uInt16 GetSelectedDocument () const;
265 : virtual sal_uInt16 GetSelectedTable () const;
266 : virtual bool GetCopyTable () const;
267 : virtual bool GetRenameTable () const;
268 : virtual void GetTabNameString( rtl::OUString& rString ) const;
269 : virtual void SetForceCopyTable ();
270 : virtual void EnableCopyTable (sal_Bool bFlag=true);
271 : virtual void EnableRenameTable (sal_Bool bFlag=true);
272 : };
273 :
274 : class AbstractScNameCreateDlg_Impl : public AbstractScNameCreateDlg //add for ScNameCreateDlg
275 : {
276 0 : DECL_ABSTDLG_BASE( AbstractScNameCreateDlg_Impl, ScNameCreateDlg)
277 : virtual sal_uInt16 GetFlags() const;
278 : };
279 :
280 : class AbstractScNamePasteDlg_Impl : public AbstractScNamePasteDlg //add for ScNamePasteDlg
281 : {
282 0 : DECL_ABSTDLG_BASE( AbstractScNamePasteDlg_Impl, ScNamePasteDlg )
283 : virtual std::vector<rtl::OUString> GetSelectedNames() const;
284 : virtual bool IsAllSelected() const;
285 : };
286 :
287 : class AbstractScPivotFilterDlg_Impl : public AbstractScPivotFilterDlg //add for ScPivotFilterDlg
288 : {
289 0 : DECL_ABSTDLG_BASE( AbstractScPivotFilterDlg_Impl, ScPivotFilterDlg)
290 : virtual const ScQueryItem& GetOutputItem();
291 : };
292 :
293 : class AbstractScDPFunctionDlg_Impl : public AbstractScDPFunctionDlg //add for ScDPFunctionDlg
294 : {
295 0 : DECL_ABSTDLG_BASE( AbstractScDPFunctionDlg_Impl, ScDPFunctionDlg)
296 : virtual sal_uInt16 GetFuncMask() const;
297 : virtual ::com::sun::star::sheet::DataPilotFieldReference GetFieldRef() const;
298 : };
299 :
300 : class AbstractScDPSubtotalDlg_Impl : public AbstractScDPSubtotalDlg //add for ScDPSubtotalDlg
301 : {
302 0 : DECL_ABSTDLG_BASE( AbstractScDPSubtotalDlg_Impl, ScDPSubtotalDlg)
303 : virtual sal_uInt16 GetFuncMask() const;
304 : virtual void FillLabelData( ScDPLabelData& rLabelData ) const;
305 : };
306 :
307 : class AbstractScDPNumGroupDlg_Impl : public AbstractScDPNumGroupDlg
308 : {
309 0 : DECL_ABSTDLG_BASE( AbstractScDPNumGroupDlg_Impl, ScDPNumGroupDlg )
310 : virtual ScDPNumGroupInfo GetGroupInfo() const;
311 : };
312 :
313 : class AbstractScDPDateGroupDlg_Impl : public AbstractScDPDateGroupDlg
314 : {
315 0 : DECL_ABSTDLG_BASE( AbstractScDPDateGroupDlg_Impl, ScDPDateGroupDlg )
316 : virtual ScDPNumGroupInfo GetGroupInfo() const;
317 : virtual sal_Int32 GetDatePart() const;
318 : };
319 :
320 : class AbstractScDPShowDetailDlg_Impl : public AbstractScDPShowDetailDlg
321 : {
322 0 : DECL_ABSTDLG_BASE( AbstractScDPShowDetailDlg_Impl, ScDPShowDetailDlg)
323 : virtual String GetDimensionName() const;
324 : };
325 :
326 : class AbstractScNewScenarioDlg_Impl : public AbstractScNewScenarioDlg //add for ScNewScenarioDlg
327 : {
328 0 : DECL_ABSTDLG_BASE( AbstractScNewScenarioDlg_Impl, ScNewScenarioDlg )
329 : virtual void SetScenarioData( const rtl::OUString& rName, const rtl::OUString& rComment,
330 : const Color& rColor, sal_uInt16 nFlags );
331 :
332 : virtual void GetScenarioData( rtl::OUString& rName, rtl::OUString& rComment,
333 : Color& rColor, sal_uInt16& rFlags ) const;
334 : };
335 :
336 : class AbstractScShowTabDlg_Impl : public AbstractScShowTabDlg //add for ScShowTabDlg
337 : {
338 0 : DECL_ABSTDLG_BASE(AbstractScShowTabDlg_Impl,ScShowTabDlg)
339 : virtual void Insert( const String& rString, sal_Bool bSelected );
340 : virtual sal_uInt16 GetSelectEntryCount() const;
341 : virtual void SetDescription(const String& rTitle, const String& rFixedText, const rtl::OString& sDlgHelpId, const rtl::OString& sLbHelpId );
342 : virtual String GetSelectEntry(sal_uInt16 nPos) const;
343 : virtual sal_uInt16 GetSelectEntryPos(sal_uInt16 nPos) const;
344 : };
345 :
346 : class AbstractScStringInputDlg_Impl : public AbstractScStringInputDlg //add for ScStringInputDlg
347 : {
348 0 : DECL_ABSTDLG_BASE( AbstractScStringInputDlg_Impl, ScStringInputDlg )
349 : virtual void GetInputString( rtl::OUString& rString ) const;
350 : };
351 :
352 : class AbstractScTabBgColorDlg_Impl : public AbstractScTabBgColorDlg //add for ScTabBgColorDlg
353 : {
354 0 : DECL_ABSTDLG_BASE( AbstractScTabBgColorDlg_Impl, ScTabBgColorDlg )
355 : virtual void GetSelectedColor( Color& rColor ) const;
356 : };
357 :
358 : class AbstractScImportOptionsDlg_Impl : public AbstractScImportOptionsDlg //add for ScImportOptionsDlg
359 : {
360 0 : DECL_ABSTDLG_BASE( AbstractScImportOptionsDlg_Impl, ScImportOptionsDlg)
361 : virtual void GetImportOptions( ScImportOptions& rOptions ) const;
362 : };
363 :
364 : class AbstractScTextImportOptionsDlg_Impl : public AbstractScTextImportOptionsDlg
365 : {
366 0 : DECL_ABSTDLG_BASE( AbstractScTextImportOptionsDlg_Impl, ScTextImportOptionsDlg)
367 : virtual LanguageType GetLanguageType() const;
368 : virtual bool IsDateConversionSet() const;
369 : };
370 :
371 : //add for ScAttrDlg , ScHFEditDlg, ScStyleDlg, ScSubTotalDlg, ScCharDlg, ScParagraphDlg, ScValidationDlg, ScSortDlg
372 : class ScAbstractTabDialog_Impl : public SfxAbstractTabDialog
373 : {
374 0 : DECL_ABSTDLG_BASE( ScAbstractTabDialog_Impl,SfxTabDialog )
375 : virtual void SetCurPageId( sal_uInt16 nId );
376 : virtual const SfxItemSet* GetOutputItemSet() const;
377 : virtual const sal_uInt16* GetInputRanges( const SfxItemPool& pItem );
378 : virtual void SetInputSet( const SfxItemSet* pInSet );
379 : //From class Window.
380 : virtual void SetText( const XubString& rStr );
381 : virtual String GetText() const;
382 : };
383 :
384 : //------------------------------------------------------------------------
385 : //AbstractDialogFactory_Impl implementations
386 0 : class ScAbstractDialogFactory_Impl : public ScAbstractDialogFactory
387 : {
388 :
389 : public:
390 0 : virtual ~ScAbstractDialogFactory_Impl() {}
391 :
392 : virtual AbstractScImportAsciiDlg * CreateScImportAsciiDlg( Window* pParent, String aDatName, //add for ScImportAsciiDlg
393 : SvStream* pInStream, int nId,
394 : ScImportAsciiCall eCall);
395 :
396 : virtual AbstractScTextImportOptionsDlg * CreateScTextImportOptionsDlg(Window* pParent);
397 :
398 : virtual AbstractScAutoFormatDlg * CreateScAutoFormatDlg( Window* pParent, //add for ScAutoFormatDlg
399 : ScAutoFormat* pAutoFormat,
400 : const ScAutoFormatData* pSelFormatData,
401 : ScDocument* pDoc,
402 : int nId);
403 : virtual AbstractScColRowLabelDlg * CreateScColRowLabelDlg (Window* pParent, //add for ScColRowLabelDlg
404 : int nId,
405 : sal_Bool bCol = false,
406 : sal_Bool bRow = false);
407 :
408 : virtual VclAbstractDialog * CreateScColOrRowDlg( Window* pParent, //add for ScColOrRowDlg
409 : const String& rStrTitle,
410 : const String& rStrLabel,
411 : int nId,
412 : sal_Bool bColDefault = sal_True );
413 :
414 : virtual VclAbstractDialog * CreateScSortWarningDlg( Window* pParent, const String& rExtendText, const String& rCurrentText, int nId );
415 :
416 : virtual AbstractScCondFormatManagerDlg* CreateScCondFormatMgrDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormatList* pFormatList,
417 : const ScAddress& rPos, int nId );
418 :
419 : virtual AbstractScDataPilotDatabaseDlg * CreateScDataPilotDatabaseDlg (Window* pParent ,int nId ); //add for ScDataPilotDatabaseDlg
420 :
421 : virtual AbstractScDataPilotSourceTypeDlg * CreateScDataPilotSourceTypeDlg ( Window* pParent, sal_Bool bEnableExternal, int nId ) ; //add for ScDataPilotSourceTypeDlg
422 :
423 : virtual AbstractScDataPilotServiceDlg * CreateScDataPilotServiceDlg( Window* pParent, //add for ScDataPilotServiceDlg
424 : const com::sun::star::uno::Sequence<rtl::OUString>& rServices,
425 : int nId );
426 : virtual AbstractScDeleteCellDlg * CreateScDeleteCellDlg( Window* pParent, int nId,
427 : sal_Bool bDisallowCellMove = false ); //add for ScDeleteCellDlg
428 :
429 : //for dataform
430 : virtual AbstractScDataFormDlg * CreateScDataFormDlg( Window* pParent, int nId, ScTabViewShell* pTabViewShell); //add for ScDeleteCellDlg
431 :
432 : virtual AbstractScDeleteContentsDlg * CreateScDeleteContentsDlg(Window* pParent,int nId, //add for ScDeleteContentsDlg
433 : sal_uInt16 nCheckDefaults = 0 );
434 :
435 : virtual AbstractScFillSeriesDlg * CreateScFillSeriesDlg( Window* pParent, //add for ScFillSeriesDlg
436 : ScDocument& rDocument,
437 : FillDir eFillDir,
438 : FillCmd eFillCmd,
439 : FillDateCmd eFillDateCmd,
440 : String aStartStr,
441 : double fStep,
442 : double fMax,
443 : sal_uInt16 nPossDir,
444 : int nId);
445 : virtual AbstractScGroupDlg * CreateAbstractScGroupDlg( Window* pParent, //add for ScGroupDlg
446 : sal_uInt16 nResId,
447 : int nId,
448 : sal_Bool bUnGroup = false,
449 : sal_Bool bRows = sal_True );
450 :
451 : virtual AbstractScInsertCellDlg * CreateScInsertCellDlg( Window* pParent, //add for ScInsertCellDlg
452 : int nId,
453 : sal_Bool bDisallowCellMove = false );
454 :
455 : virtual AbstractScInsertContentsDlg * CreateScInsertContentsDlg( Window* pParent, //add for ScInsertContentsDlg
456 : int nId,
457 : sal_uInt16 nCheckDefaults = 0,
458 : const String* pStrTitle = NULL );
459 :
460 : virtual AbstractScInsertTableDlg * CreateScInsertTableDlg ( Window* pParent, ScViewData& rViewData, //add for ScInsertTableDlg
461 : SCTAB nTabCount, bool bFromFile, int nId);
462 :
463 : virtual AbstractScSelEntryDlg * CreateScSelEntryDlg ( Window* pParent, // add for ScSelEntryDlg
464 : sal_uInt16 nResId,
465 : const String& aTitle,
466 : const String& aLbTitle,
467 : const std::vector<String> &rEntryList,
468 : int nId );
469 :
470 : virtual AbstractScLinkedAreaDlg * CreateScLinkedAreaDlg ( Window* pParent, //add for ScLinkedAreaDlg
471 : int nId);
472 :
473 : virtual AbstractScMetricInputDlg * CreateScMetricInputDlg ( Window* pParent, //add for ScMetricInputDlg
474 : sal_uInt16 nResId, // Ableitung fuer jeden Dialog!
475 : long nCurrent,
476 : long nDefault,
477 : int nId ,
478 : FieldUnit eFUnit = FUNIT_MM,
479 : sal_uInt16 nDecimals = 2,
480 : long nMaximum = 1000,
481 : long nMinimum = 0,
482 : long nFirst = 1,
483 : long nLast = 100 );
484 :
485 : virtual AbstractScMoveTableDlg * CreateScMoveTableDlg( Window* pParent, //add for ScMoveTableDlg
486 : const String& rDefault,
487 : int nId );
488 :
489 : virtual AbstractScNameCreateDlg * CreateScNameCreateDlg ( Window * pParent, sal_uInt16 nFlags, int nId ); //add for ScNameCreateDlg
490 :
491 : virtual AbstractScNamePasteDlg * CreateScNamePasteDlg ( Window * pParent, ScDocShell* pShell, int nId , bool bInsList=true ); //add for ScNamePasteDlg
492 :
493 : virtual AbstractScPivotFilterDlg * CreateScPivotFilterDlg ( Window* pParent, //add for ScPivotFilterDlg
494 : const SfxItemSet& rArgSet, sal_uInt16 nSourceTab , int nId );
495 :
496 : virtual AbstractScDPFunctionDlg * CreateScDPFunctionDlg( Window* pParent, int nId,
497 : const ScDPLabelDataVector& rLabelVec,
498 : const ScDPLabelData& rLabelData,
499 : const ScPivotFuncData& rFuncData );
500 :
501 : virtual AbstractScDPSubtotalDlg * CreateScDPSubtotalDlg( Window* pParent, int nId,
502 : ScDPObject& rDPObj,
503 : const ScDPLabelData& rLabelData,
504 : const ScPivotFuncData& rFuncData,
505 : const ScDPNameVec& rDataFields,
506 : bool bEnableLayout );
507 :
508 : virtual AbstractScDPNumGroupDlg * CreateScDPNumGroupDlg( Window* pParent,
509 : int nId,
510 : const ScDPNumGroupInfo& rInfo );
511 :
512 : virtual AbstractScDPDateGroupDlg * CreateScDPDateGroupDlg( Window* pParent,
513 : int nId,
514 : const ScDPNumGroupInfo& rInfo,
515 : sal_Int32 nDatePart,
516 : const Date& rNullDate );
517 :
518 : virtual AbstractScDPShowDetailDlg * CreateScDPShowDetailDlg( Window* pParent, int nId,
519 : ScDPObject& rDPObj,
520 : sal_uInt16 nOrient );
521 :
522 : virtual AbstractScNewScenarioDlg * CreateScNewScenarioDlg ( Window* pParent, const String& rName, //add for ScNewScenarioDlg
523 : int nId,
524 : sal_Bool bEdit = false, sal_Bool bSheetProtected = false );
525 : virtual AbstractScShowTabDlg * CreateScShowTabDlg ( Window* pParent, int nId ); //add for ScShowTabDlg
526 :
527 : virtual AbstractScStringInputDlg * CreateScStringInputDlg ( Window* pParent, //add for ScStringInputDlg
528 : const String& rTitle,
529 : const String& rEditTitle,
530 : const String& rDefault,
531 : const rtl::OString& sHelpId, const rtl::OString& sEditHelpId,
532 : int nId );
533 :
534 : virtual AbstractScTabBgColorDlg * CreateScTabBgColorDlg ( Window* pParent, //add for ScStringInputDlg
535 : const String& rTitle, //Dialog Title
536 : const String& rTabBgColorNoColorText, //Label for no tab color
537 : const Color& rDefaultColor, //Currently selected Color
538 : const rtl::OString& sHelpId ,
539 : int nId );
540 :
541 : virtual AbstractScImportOptionsDlg * CreateScImportOptionsDlg ( Window* pParent, //add for ScImportOptionsDlg
542 : int nId,
543 : sal_Bool bAscii = sal_True,
544 : const ScImportOptions* pOptions = NULL,
545 : const String* pStrTitle = NULL,
546 : sal_Bool bMultiByte = false,
547 : sal_Bool bOnlyDbtoolsEncodings = false,
548 : sal_Bool bImport = sal_True );
549 : virtual SfxAbstractTabDialog * CreateScAttrDlg( SfxViewFrame* pFrame, //add for ScAttrDlg
550 : Window* pParent,
551 : const SfxItemSet* pCellAttrs,
552 : int nId);
553 :
554 : virtual SfxAbstractTabDialog * CreateScHFEditDlg( SfxViewFrame* pFrame, //add for ScHFEditDlg
555 : Window* pParent,
556 : const SfxItemSet& rCoreSet,
557 : const String& rPageStyle,
558 : int nId,
559 : sal_uInt16 nResId = RID_SCDLG_HFEDIT );
560 :
561 : virtual SfxAbstractTabDialog * CreateScStyleDlg( Window* pParent,//add for ScStyleDlg
562 : SfxStyleSheetBase& rStyleBase,
563 : sal_uInt16 nRscId,
564 : int nId);
565 :
566 : virtual SfxAbstractTabDialog * CreateScSubTotalDlg( Window* pParent, //add for ScSubTotalDlg
567 : const SfxItemSet* pArgSet,
568 : int nId);
569 : virtual SfxAbstractTabDialog * CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr,//add for ScCharDlg
570 : const SfxObjectShell* pDocShell, int nId );
571 :
572 : virtual SfxAbstractTabDialog * CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ,//add for ScParagraphDlg
573 : int nId );
574 :
575 : virtual SfxAbstractTabDialog * CreateScValidationDlg( Window* pParent, //add for ScValidationDlg
576 : const SfxItemSet* pArgSet,int nId, ScTabViewShell *pTabVwSh );
577 :
578 : virtual SfxAbstractTabDialog * CreateScSortDlg( Window* pParent, //add for ScSortDlg
579 : const SfxItemSet* pArgSet,int nId );
580 :
581 : // For TabPage
582 : virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId );
583 :
584 : virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId );
585 :
586 : };
587 :
588 : #endif
589 :
590 :
591 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|