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