1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: filldlg.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_FILLDLG_HXX
32 #define SC_FILLDLG_HXX
34 #ifndef _DIALOG_HXX //autogen
35 #include <vcl/dialog.hxx>
37 #ifndef _BUTTON_HXX //autogen
38 #include <vcl/button.hxx>
40 #ifndef _FIXED_HXX //autogen
41 #include <vcl/fixed.hxx>
43 #ifndef _EDIT_HXX //autogen
44 #include <vcl/edit.hxx>
50 //----------------------------------------------------------------------------
52 //CHINA001 #define FDS_OPT_NONE 0
53 //CHINA001 #define FDS_OPT_HORZ 1
54 //CHINA001 #define FDS_OPT_VERT 2
56 #include "scui_def.hxx" //CHINA001
57 //============================================================================
59 class ScFillSeriesDlg
: public ModalDialog
62 ScFillSeriesDlg( Window
* pParent
,
63 ScDocument
& rDocument
,
66 FillDateCmd eFillDateCmd
,
73 FillDir
GetFillDir() const { return theFillDir
; }
74 FillCmd
GetFillCmd() const { return theFillCmd
; }
75 FillDateCmd
GetFillDateCmd() const { return theFillDateCmd
; }
76 double GetStart() const { return fStartVal
; }
77 double GetStep() const { return fIncrement
; }
78 double GetMax() const { return fEndVal
; }
80 String
GetStartStr() const { return aEdStartVal
.GetText(); }
82 void SetEdStartValEnabled(BOOL bFlag
=FALSE
);
85 FixedLine aFlDirection
;
87 RadioButton aBtnRight
;
93 RadioButton aBtnArithmetic
;
94 RadioButton aBtnGeometric
;
96 RadioButton aBtnAutoFill
;
99 FixedLine aFlTimeUnit
;
101 RadioButton aBtnDayOfWeek
;
102 RadioButton aBtnMonth
;
103 RadioButton aBtnYear
;
106 FixedText aFtStartVal
;
113 FixedText aFtIncrement
;
117 CancelButton aBtnCancel
;
120 const String errMsgInvalidVal
;
122 //----------------------------------------------------------
127 FillDateCmd theFillDateCmd
;
134 void Init( USHORT nPossDir
);
135 BOOL
CheckStartVal();
136 BOOL
CheckIncrementVal();
139 DECL_LINK( OKHdl
, void * );
140 DECL_LINK( DisableHdl
, Button
* );
146 #endif // SC_FILLDLG_HXX