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