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