Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _SC_ABSTDLG_HXX
29 : : #define _SC_ABSTDLG_HXX
30 : :
31 : : #include <tools/solar.h>
32 : : #include <tools/string.hxx>
33 : : #include <sfx2/sfxdlg.hxx>
34 : : #include <vcl/syswin.hxx>
35 : : #include <com/sun/star/uno/Sequence.hxx>
36 : : #include <vcl/field.hxx>
37 : : #include "sc.hrc"
38 : : #include "global.hxx"
39 : : #include "pivot.hxx"
40 : : #include "i18npool/lang.h"
41 : : #include "asciiopt.hxx"
42 : :
43 : : #include <tabvwsh.hxx>
44 : :
45 : : class ScAsciiOptions;
46 : : class ScAutoFormat;
47 : : class ScAutoFormatData;
48 : : class ScDocument;
49 : : struct ScImportSourceDesc;
50 : : class ScViewData;
51 : : class ScQueryItem;
52 : : class ScImportOptions;
53 : : class SfxStyleSheetBase;
54 : : class ScDPObject;
55 : : struct ScDPFuncData;
56 : : struct ScDPNumGroupInfo;
57 : : class ScTabViewShell;
58 : : class ScConditionalFormat;
59 : : class ScConditionalFormatList;
60 : :
61 : : namespace com { namespace sun { namespace star { namespace sheet {
62 : : struct DataPilotFieldReference;
63 : : } } } }
64 : :
65 [ # # ]: 0 : class AbstractScImportAsciiDlg : public VclAbstractDialog //add for ScImportAsciiDlg
66 : : {
67 : : public:
68 : : virtual void GetOptions( ScAsciiOptions& rOpt ) = 0;
69 : : virtual void SaveParameters() = 0;
70 : : };
71 : :
72 : :
73 [ # # ]: 0 : class AbstractScAutoFormatDlg : public VclAbstractDialog //add for ScAutoFormatDlg
74 : : {
75 : : public:
76 : : virtual sal_uInt16 GetIndex() const = 0 ;
77 : : virtual String GetCurrFormatName() = 0;
78 : : };
79 : :
80 [ # # ]: 0 : class AbstractScColRowLabelDlg : public VclAbstractDialog //add for ScColRowLabelDlg
81 : : {
82 : : public:
83 : : virtual sal_Bool IsCol() = 0;
84 : : virtual sal_Bool IsRow() = 0;
85 : : };
86 : :
87 [ # # ]: 0 : class AbstractScCondFormatDlg : public VclAbstractDialog
88 : : {
89 : : public:
90 : : virtual ScConditionalFormat* GetConditionalFormat() = 0;
91 : : };
92 : :
93 [ # # ]: 0 : class AbstractScCondFormatManagerDlg : public VclAbstractDialog
94 : : {
95 : : public:
96 : : virtual ScConditionalFormatList* GetConditionalFormatList() = 0;
97 : : };
98 : :
99 [ # # ]: 0 : class AbstractScDataBarSettingsDlg : public VclAbstractDialog
100 : : {
101 : : };
102 : :
103 [ # # ]: 0 : class AbstractScDataPilotDatabaseDlg :public VclAbstractDialog //add for ScDataPilotDatabaseDlg
104 : : {
105 : : public:
106 : : virtual void GetValues( ScImportSourceDesc& rDesc ) = 0;
107 : : };
108 : :
109 [ # # ]: 0 : class AbstractScDataPilotSourceTypeDlg : public VclAbstractDialog //add for ScDataPilotSourceTypeDlg
110 : : {
111 : : public:
112 : : virtual bool IsDatabase() const = 0;
113 : : virtual bool IsExternal() const = 0;
114 : : virtual bool IsNamedRange() const = 0;
115 : : virtual rtl::OUString GetSelectedNamedRange() const = 0;
116 : : virtual void AppendNamedRange(const ::rtl::OUString& rName) = 0;
117 : : };
118 : :
119 [ # # ]: 0 : class AbstractScDataPilotServiceDlg : public VclAbstractDialog //add for ScDataPilotServiceDlg
120 : : {
121 : : public:
122 : : virtual String GetServiceName() const = 0;
123 : : virtual String GetParSource() const = 0 ;
124 : : virtual String GetParName() const = 0 ;
125 : : virtual String GetParUser() const = 0;
126 : : virtual String GetParPass() const = 0;
127 : : };
128 : :
129 [ # # ]: 0 : class AbstractScDeleteCellDlg : public VclAbstractDialog //add for ScDeleteCellDlg
130 : : {
131 : : public:
132 : : virtual DelCellCmd GetDelCellCmd() const = 0;
133 : : };
134 : :
135 : : //for dataform
136 : 0 : class AbstractScDataFormDlg : public VclAbstractDialog //add for ScDeleteCellDlg
137 : : {
138 : :
139 : : };
140 : :
141 [ # # ]: 0 : class AbstractScDeleteContentsDlg: public VclAbstractDialog //add for ScDeleteContentsDlg
142 : : {
143 : : public:
144 : : virtual void DisableObjects() = 0 ;
145 : : virtual sal_uInt16 GetDelContentsCmdBits() const = 0;
146 : : };
147 : :
148 [ # # ]: 0 : class AbstractScFillSeriesDlg: public VclAbstractDialog //add for ScFillSeriesDlg
149 : : {
150 : : public:
151 : : virtual FillDir GetFillDir() const = 0;
152 : : virtual FillCmd GetFillCmd() const = 0;
153 : : virtual FillDateCmd GetFillDateCmd() const = 0;
154 : : virtual double GetStart() const = 0;
155 : : virtual double GetStep() const = 0;
156 : : virtual double GetMax() const = 0;
157 : : virtual String GetStartStr() const = 0;
158 : : virtual void SetEdStartValEnabled(sal_Bool bFlag=false) = 0;
159 : : };
160 : :
161 [ # # ]: 0 : class AbstractScGroupDlg : public VclAbstractDialog //add for ScGroupDlg
162 : : {
163 : : public:
164 : : virtual sal_Bool GetColsChecked() const = 0;
165 : : };
166 : :
167 [ # # ]: 0 : class AbstractScInsertCellDlg : public VclAbstractDialog //add for ScInsertCellDlg
168 : : {
169 : : public:
170 : : virtual InsCellCmd GetInsCellCmd() const = 0;
171 : : };
172 : :
173 [ # # ]: 0 : class AbstractScInsertContentsDlg : public VclAbstractDialog //add for ScInsertContentsDlg
174 : : {
175 : : public:
176 : : virtual sal_uInt16 GetInsContentsCmdBits() const = 0;
177 : : virtual sal_uInt16 GetFormulaCmdBits() const = 0 ;
178 : : virtual sal_Bool IsSkipEmptyCells() const = 0;
179 : : virtual sal_Bool IsLink() const = 0;
180 : : virtual void SetFillMode( sal_Bool bSet ) = 0;
181 : : virtual void SetOtherDoc( sal_Bool bSet ) = 0;
182 : : virtual sal_Bool IsTranspose() const = 0;
183 : : virtual void SetChangeTrack( sal_Bool bSet ) = 0;
184 : : virtual void SetCellShiftDisabled( int nDisable ) = 0;
185 : : virtual InsCellCmd GetMoveMode() = 0;
186 : : };
187 : :
188 [ # # ]: 0 : class AbstractScInsertTableDlg : public VclAbstractDialog //add for ScInsertTableDlg
189 : : {
190 : : public:
191 : : virtual sal_Bool GetTablesFromFile() = 0;
192 : : virtual sal_Bool GetTablesAsLink() = 0;
193 : : virtual const String* GetFirstTable( sal_uInt16* pN = NULL ) = 0;
194 : : virtual ScDocShell* GetDocShellTables() = 0;
195 : : virtual sal_Bool IsTableBefore() = 0;
196 : : virtual sal_uInt16 GetTableCount() = 0;
197 : : virtual const String* GetNextTable( sal_uInt16* pN = NULL ) = 0;
198 : :
199 : : };
200 : :
201 [ # # ]: 0 : class AbstractScSelEntryDlg : public VclAbstractDialog //add for ScSelEntryDlg
202 : : {
203 : : public:
204 : : virtual String GetSelectEntry() const = 0;
205 : : };
206 : :
207 [ # # ]: 0 : class AbstractScLinkedAreaDlg : public VclAbstractDialog2 //add for ScLinkedAreaDlg
208 : : {
209 : : public:
210 : : virtual void InitFromOldLink( const String& rFile, const String& rFilter,
211 : : const String& rOptions, const String& rSource,
212 : : sal_uLong nRefresh ) = 0;
213 : : virtual String GetURL() = 0;
214 : : virtual String GetFilter() = 0; // may be empty
215 : : virtual String GetOptions() = 0; // filter options
216 : : virtual String GetSource() = 0; // separated by ";"
217 : : virtual sal_uLong GetRefresh() = 0; // 0 if disabled
218 : : };
219 : :
220 [ # # ]: 0 : class AbstractScMetricInputDlg : public VclAbstractDialog //add for ScMetricInputDlg
221 : : {
222 : : public:
223 : : virtual long GetInputValue( FieldUnit eUnit = FUNIT_TWIP ) const = 0;
224 : : };
225 : :
226 [ # # ]: 0 : class AbstractScMoveTableDlg : public VclAbstractDialog //add for ScMoveTableDlg
227 : : {
228 : : public:
229 : : virtual sal_uInt16 GetSelectedDocument () const = 0;
230 : : virtual sal_uInt16 GetSelectedTable () const = 0;
231 : : virtual bool GetCopyTable () const = 0;
232 : : virtual bool GetRenameTable () const = 0;
233 : : virtual void GetTabNameString( rtl::OUString& rString ) const = 0;
234 : : virtual void SetForceCopyTable () = 0;
235 : : virtual void EnableCopyTable (sal_Bool bFlag=true) = 0;
236 : : virtual void EnableRenameTable (sal_Bool bFlag=true) = 0;
237 : : };
238 : :
239 [ # # ]: 0 : class AbstractScNameCreateDlg : public VclAbstractDialog // Manage Name Dialog
240 : : {
241 : : public:
242 : : virtual sal_uInt16 GetFlags() const = 0;
243 : : };
244 : :
245 [ # # ]: 0 : class AbstractScNamePasteDlg : public VclAbstractDialog //add for ScNamePasteDlg
246 : : {
247 : : public:
248 : : virtual std::vector<rtl::OUString> GetSelectedNames() const = 0;
249 : : virtual bool IsAllSelected() const = 0;
250 : : };
251 : :
252 [ # # ]: 0 : class AbstractScPivotFilterDlg : public VclAbstractDialog //add for ScPivotFilterDlg
253 : : {
254 : : public:
255 : : virtual const ScQueryItem& GetOutputItem() = 0;
256 : : };
257 : :
258 [ # # ]: 0 : class AbstractScDPFunctionDlg : public VclAbstractDialog //add for ScDPFunctionDlg
259 : : {
260 : : public:
261 : : virtual sal_uInt16 GetFuncMask() const = 0;
262 : : virtual ::com::sun::star::sheet::DataPilotFieldReference GetFieldRef() const = 0;
263 : : };
264 : :
265 [ # # ]: 0 : class AbstractScDPSubtotalDlg : public VclAbstractDialog //add for ScDPSubtotalDlg
266 : : {
267 : : public:
268 : : virtual sal_uInt16 GetFuncMask() const = 0;
269 : : virtual void FillLabelData( ScDPLabelData& rLabelData ) const = 0;
270 : : };
271 : :
272 : 0 : class AbstractScDPNumGroupDlg : public VclAbstractDialog
273 : : {
274 : : public:
275 : : virtual ScDPNumGroupInfo GetGroupInfo() const = 0;
276 : : };
277 : :
278 : 0 : class AbstractScDPDateGroupDlg : public VclAbstractDialog
279 : : {
280 : : public:
281 : : virtual ScDPNumGroupInfo GetGroupInfo() const = 0;
282 : : virtual sal_Int32 GetDatePart() const = 0;
283 : : };
284 : :
285 : 0 : class AbstractScDPShowDetailDlg : public VclAbstractDialog //add for ScDPShowDetailDlg
286 : : {
287 : : public:
288 : : virtual String GetDimensionName() const = 0;
289 : : };
290 : :
291 [ # # ]: 0 : class AbstractScNewScenarioDlg : public VclAbstractDialog //add for ScNewScenarioDlg
292 : : {
293 : : public:
294 : :
295 : : virtual void SetScenarioData( const rtl::OUString& rName, const rtl::OUString& rComment,
296 : : const Color& rColor, sal_uInt16 nFlags ) = 0;
297 : :
298 : : virtual void GetScenarioData( rtl::OUString& rName, rtl::OUString& rComment,
299 : : Color& rColor, sal_uInt16& rFlags ) const = 0;
300 : : };
301 : :
302 [ # # ]: 0 : class AbstractScShowTabDlg : public VclAbstractDialog //add for ScShowTabDlg
303 : : {
304 : : public:
305 : : virtual void Insert( const String& rString, sal_Bool bSelected ) = 0;
306 : : virtual sal_uInt16 GetSelectEntryCount() const = 0;
307 : : virtual void SetDescription(const String& rTitle, const String& rFixedText, const rtl::OString& nDlgHelpId, const rtl::OString& nLbHelpId ) = 0;
308 : : virtual String GetSelectEntry(sal_uInt16 nPos) const = 0;
309 : : virtual sal_uInt16 GetSelectEntryPos(sal_uInt16 nPos) const = 0;
310 : : };
311 : :
312 [ # # ]: 0 : class AbstractScStringInputDlg : public VclAbstractDialog //add for ScStringInputDlg
313 : : {
314 : : public:
315 : : virtual void GetInputString( rtl::OUString& rString ) const = 0;
316 : : };
317 : :
318 [ # # ]: 0 : class AbstractScTabBgColorDlg : public VclAbstractDialog //add for ScTabBgColorDlg
319 : : {
320 : : public:
321 : : virtual void GetSelectedColor( Color& rColor ) const = 0;
322 : : };
323 : :
324 [ # # ]: 0 : class AbstractScImportOptionsDlg : public VclAbstractDialog //add for ScImportOptionsDlg
325 : : {
326 : : public:
327 : : virtual void GetImportOptions( ScImportOptions& rOptions ) const = 0;
328 : : };
329 : :
330 [ # # ]: 0 : class AbstractScTextImportOptionsDlg : public VclAbstractDialog //add for ScLangChooserDlg
331 : : {
332 : : public:
333 : : virtual LanguageType GetLanguageType() const = 0;
334 : : virtual bool IsDateConversionSet() const = 0;
335 : : };
336 : :
337 : : //-------Scabstract fractory ---------------------------
338 : 0 : class ScAbstractDialogFactory
339 : : {
340 : : public:
341 : : SC_DLLPUBLIC static ScAbstractDialogFactory* Create();
342 : :
343 : : virtual AbstractScImportAsciiDlg * CreateScImportAsciiDlg( Window* pParent, String aDatName, //add for ScImportAsciiDlg
344 : : SvStream* pInStream, int nId,
345 : : ScImportAsciiCall eCall) = 0;
346 : :
347 : : virtual AbstractScTextImportOptionsDlg * CreateScTextImportOptionsDlg( Window* pParent, int nId ) = 0;
348 : :
349 : : virtual AbstractScAutoFormatDlg * CreateScAutoFormatDlg( Window* pParent, //add for ScAutoFormatDlg
350 : : ScAutoFormat* pAutoFormat,
351 : : const ScAutoFormatData* pSelFormatData,
352 : : ScDocument* pDoc,
353 : : int nId) = 0;
354 : : virtual AbstractScColRowLabelDlg * CreateScColRowLabelDlg (Window* pParent, //add for ScColRowLabelDlg
355 : : int nId,
356 : : sal_Bool bCol = false,
357 : : sal_Bool bRow = false) = 0;
358 : :
359 : : virtual VclAbstractDialog * CreateScColOrRowDlg( Window* pParent, //add for ScColOrRowDlg
360 : : const String& rStrTitle,
361 : : const String& rStrLabel,
362 : : int nId,
363 : : sal_Bool bColDefault = sal_True ) = 0;
364 : : virtual VclAbstractDialog * CreateScSortWarningDlg ( Window* pParent, const String& rExtendText, const String& rCurrentText, int nId ) = 0; //add for ScSortWarningDlg
365 : :
366 : : virtual AbstractScCondFormatDlg* CreateScCondFormatDlg (Window* pParent, ScDocument* pDoc, const ScConditionalFormat* pFormat,
367 : : const ScRangeList& rList, const ScAddress& rPos, int nId ) = 0; //add for ScCondFormatDlg
368 : :
369 : : virtual AbstractScCondFormatManagerDlg* CreateScCondFormatMgrDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormatList* pFormatList,
370 : : const ScRangeList& rList, const ScAddress& rPos, int nId ) = 0;
371 : :
372 : : virtual AbstractScDataBarSettingsDlg* CreateScDataBarSetttingsDlg (Window* pParent, ScDocument* pDoc, int nId ) = 0; //add for ScDataBarSettingsDlg
373 : :
374 : : virtual AbstractScDataPilotDatabaseDlg * CreateScDataPilotDatabaseDlg (Window* pParent ,int nId ) = 0; //add for ScDataPilotDatabaseDlg
375 : :
376 : : virtual AbstractScDataPilotSourceTypeDlg * CreateScDataPilotSourceTypeDlg ( Window* pParent, sal_Bool bEnableExternal, int nId ) = 0; //add for ScDataPilotSourceTypeDlg
377 : :
378 : : virtual AbstractScDataPilotServiceDlg * CreateScDataPilotServiceDlg( Window* pParent, //add for ScDataPilotServiceDlg
379 : : const com::sun::star::uno::Sequence<rtl::OUString>& rServices,
380 : : int nId ) = 0;
381 : :
382 : : virtual AbstractScDeleteCellDlg * CreateScDeleteCellDlg( Window* pParent, int nId, sal_Bool bDisallowCellMove = false ) = 0 ; //add for ScDeleteCellDlg
383 : :
384 : : //for dataform
385 : : virtual AbstractScDataFormDlg * CreateScDataFormDlg( Window* pParent, int nId, ScTabViewShell* pTabViewShell ) = 0 ; //add for ScDataFormDlg
386 : :
387 : : virtual AbstractScDeleteContentsDlg * CreateScDeleteContentsDlg(Window* pParent,int nId, //add for ScDeleteContentsDlg
388 : : sal_uInt16 nCheckDefaults = 0 ) = 0;
389 : : virtual AbstractScFillSeriesDlg * CreateScFillSeriesDlg( Window* pParent, //add for ScFillSeriesDlg
390 : : ScDocument& rDocument,
391 : : FillDir eFillDir,
392 : : FillCmd eFillCmd,
393 : : FillDateCmd eFillDateCmd,
394 : : String aStartStr,
395 : : double fStep,
396 : : double fMax,
397 : : sal_uInt16 nPossDir,
398 : : int nId) = 0;
399 : :
400 : : virtual AbstractScGroupDlg * CreateAbstractScGroupDlg( Window* pParent, //add for ScGroupDlg
401 : : sal_uInt16 nResId,
402 : : int nId,
403 : : sal_Bool bUnGroup = false,
404 : : sal_Bool bRows = sal_True ) = 0;
405 : :
406 : : virtual AbstractScInsertCellDlg * CreateScInsertCellDlg( Window* pParent, //add for ScInsertCellDlg
407 : : int nId,
408 : : sal_Bool bDisallowCellMove = false ) = 0;
409 : :
410 : : virtual AbstractScInsertContentsDlg * CreateScInsertContentsDlg( Window* pParent, //add for ScInsertContentsDlg
411 : : int nId,
412 : : sal_uInt16 nCheckDefaults = 0,
413 : : const String* pStrTitle = NULL ) = 0;
414 : :
415 : : virtual AbstractScInsertTableDlg * CreateScInsertTableDlg ( Window* pParent, ScViewData& rViewData, //add for ScInsertTableDlg
416 : : SCTAB nTabCount, bool bFromFile, int nId) = 0;
417 : :
418 : : virtual AbstractScSelEntryDlg * CreateScSelEntryDlg ( Window* pParent, // add for ScSelEntryDlg
419 : : sal_uInt16 nResId,
420 : : const String& aTitle,
421 : : const String& aLbTitle,
422 : : const std::vector<String> &rEntryList,
423 : : int nId ) = 0;
424 : : virtual AbstractScLinkedAreaDlg * CreateScLinkedAreaDlg ( Window* pParent, int nId) = 0; //add for ScLinkedAreaDlg
425 : :
426 : : virtual AbstractScMetricInputDlg * CreateScMetricInputDlg ( Window* pParent, //add for ScMetricInputDlg
427 : : sal_uInt16 nResId, // derivative for every dialog!
428 : : long nCurrent,
429 : : long nDefault,
430 : : int nId ,
431 : : FieldUnit eFUnit = FUNIT_MM,
432 : : sal_uInt16 nDecimals = 2,
433 : : long nMaximum = 1000,
434 : : long nMinimum = 0,
435 : : long nFirst = 1,
436 : : long nLast = 100 ) = 0;
437 : :
438 : : virtual AbstractScMoveTableDlg * CreateScMoveTableDlg( Window* pParent, //add for ScMoveTableDlg
439 : : const String& rDefault,
440 : : int nId ) = 0;
441 : :
442 : : virtual AbstractScNameCreateDlg * CreateScNameCreateDlg ( Window * pParent, sal_uInt16 nFlags, int nId ) = 0; //add for ScNameCreateDlg
443 : :
444 : : virtual AbstractScNamePasteDlg * CreateScNamePasteDlg ( Window * pParent, ScDocShell* pShell, int nId , bool bInsList=true ) = 0; // add for ScNamePasteDlg
445 : :
446 : : virtual AbstractScPivotFilterDlg * CreateScPivotFilterDlg ( Window* pParent, //add for ScPivotFilterDlg
447 : : const SfxItemSet& rArgSet, sal_uInt16 nSourceTab , int nId ) = 0;
448 : :
449 : : virtual AbstractScDPFunctionDlg * CreateScDPFunctionDlg( Window* pParent, int nId,
450 : : const ScDPLabelDataVec& rLabelVec,
451 : : const ScDPLabelData& rLabelData,
452 : : const ScDPFuncData& rFuncData ) = 0;
453 : :
454 : : virtual AbstractScDPSubtotalDlg * CreateScDPSubtotalDlg( Window* pParent, int nId,
455 : : ScDPObject& rDPObj,
456 : : const ScDPLabelData& rLabelData,
457 : : const ScDPFuncData& rFuncData,
458 : : const ScDPNameVec& rDataFields,
459 : : bool bEnableLayout ) = 0;
460 : :
461 : : virtual AbstractScDPNumGroupDlg * CreateScDPNumGroupDlg( Window* pParent,
462 : : int nId,
463 : : const ScDPNumGroupInfo& rInfo ) = 0;
464 : :
465 : : virtual AbstractScDPDateGroupDlg * CreateScDPDateGroupDlg( Window* pParent,
466 : : int nId,
467 : : const ScDPNumGroupInfo& rInfo,
468 : : sal_Int32 nDatePart,
469 : : const Date& rNullDate ) = 0;
470 : :
471 : : virtual AbstractScDPShowDetailDlg * CreateScDPShowDetailDlg( Window* pParent, int nId,
472 : : ScDPObject& rDPObj,
473 : : sal_uInt16 nOrient ) = 0;
474 : :
475 : : virtual AbstractScNewScenarioDlg * CreateScNewScenarioDlg ( Window* pParent, const String& rName, //add for ScNewScenarioDlg
476 : : int nId,
477 : : sal_Bool bEdit = false, sal_Bool bSheetProtected = false ) = 0;
478 : : virtual AbstractScShowTabDlg * CreateScShowTabDlg ( Window* pParent, int nId ) = 0; //add for ScShowTabDlg
479 : :
480 : : virtual AbstractScStringInputDlg * CreateScStringInputDlg ( Window* pParent, //add for ScStringInputDlg
481 : : const String& rTitle,
482 : : const String& rEditTitle,
483 : : const String& rDefault,
484 : : const rtl::OString& sHelpId, const rtl::OString& sEditHelpId,
485 : : int nId ) = 0;
486 : :
487 : : virtual AbstractScTabBgColorDlg * CreateScTabBgColorDlg ( Window* pParent, //add for ScTabBgColorDlg
488 : : const String& rTitle, //Dialog Title
489 : : const String& rTabBgColorNoColorText, //Label for no tab color
490 : : const Color& rDefaultColor, //Currently selected Color
491 : : const rtl::OString& ,
492 : : int nId ) = 0;
493 : :
494 : : virtual AbstractScImportOptionsDlg * CreateScImportOptionsDlg ( Window* pParent, //add for ScImportOptionsDlg
495 : : int nId,
496 : : sal_Bool bAscii = sal_True,
497 : : const ScImportOptions* pOptions = NULL,
498 : : const String* pStrTitle = NULL,
499 : : sal_Bool bMultiByte = false,
500 : : sal_Bool bOnlyDbtoolsEncodings = false,
501 : : sal_Bool bImport = sal_True ) = 0;
502 : :
503 : : virtual SfxAbstractTabDialog * CreateScAttrDlg( SfxViewFrame* pFrame, //add for ScAttrDlg
504 : : Window* pParent,
505 : : const SfxItemSet* pCellAttrs,
506 : : int nId) = 0;
507 : :
508 : : virtual SfxAbstractTabDialog * CreateScHFEditDlg( SfxViewFrame* pFrame, //add for ScHFEditDlg
509 : : Window* pParent,
510 : : const SfxItemSet& rCoreSet,
511 : : const String& rPageStyle,
512 : : int nId,
513 : : sal_uInt16 nResId = RID_SCDLG_HFEDIT ) = 0;
514 : :
515 : : virtual SfxAbstractTabDialog * CreateScStyleDlg( Window* pParent,//add for ScStyleDlg
516 : : SfxStyleSheetBase& rStyleBase,
517 : : sal_uInt16 nRscId,
518 : : int nId) = 0;
519 : :
520 : : virtual SfxAbstractTabDialog * CreateScSubTotalDlg( Window* pParent, //add for ScSubTotalDlg
521 : : const SfxItemSet* pArgSet,
522 : : int nId) = 0;
523 : :
524 : : virtual SfxAbstractTabDialog * CreateScCharDlg( Window* pParent, const SfxItemSet* pAttr,//add for ScCharDlg
525 : : const SfxObjectShell* pDocShell, int nId ) = 0;
526 : :
527 : : virtual SfxAbstractTabDialog * CreateScParagraphDlg( Window* pParent, const SfxItemSet* pAttr ,//add for ScParagraphDlg
528 : : int nId ) = 0;
529 : :
530 : : virtual SfxAbstractTabDialog * CreateScValidationDlg( Window* pParent, //add for ScValidationDlg
531 : : const SfxItemSet* pArgSet,int nId, ScTabViewShell *pTabVwSh ) = 0;
532 : : virtual SfxAbstractTabDialog * CreateScSortDlg( Window* pParent, //add for ScSortDlg
533 : : const SfxItemSet* pArgSet,int nId ) = 0;
534 : : // for tabpage
535 : : virtual CreateTabPage GetTabPageCreatorFunc( sal_uInt16 nId ) = 0;
536 : : virtual GetTabPageRanges GetTabPageRangesFunc( sal_uInt16 nId ) = 0;
537 : :
538 : : protected:
539 : 0 : ~ScAbstractDialogFactory() {}
540 : : };
541 : : #endif
542 : :
543 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|