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