1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SC_FILLDLG_HXX
21 #define SC_FILLDLG_HXX
23 #include <vcl/dialog.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/edit.hxx>
31 //----------------------------------------------------------------------------
33 #include "scui_def.hxx"
34 //============================================================================
36 class ScFillSeriesDlg
: public ModalDialog
39 ScFillSeriesDlg( Window
* pParent
,
40 ScDocument
& rDocument
,
43 FillDateCmd eFillDateCmd
,
44 const OUString
& aStartStr
,
47 sal_uInt16 nPossDir
);
50 FillDir
GetFillDir() const { return theFillDir
; }
51 FillCmd
GetFillCmd() const { return theFillCmd
; }
52 FillDateCmd
GetFillDateCmd() const { return theFillDateCmd
; }
53 double GetStart() const { return fStartVal
; }
54 double GetStep() const { return fIncrement
; }
55 double GetMax() const { return fEndVal
; }
57 OUString
GetStartStr() const { return aEdStartVal
.GetText(); }
59 void SetEdStartValEnabled(bool bFlag
= false);
62 FixedText aFtStartVal
;
64 const OUString aStartStrVal
;
69 FixedText aFtIncrement
;
71 FixedLine aFlDirection
;
73 RadioButton aBtnRight
;
79 RadioButton aBtnArithmetic
;
80 RadioButton aBtnGeometric
;
82 RadioButton aBtnAutoFill
;
85 FixedLine aFlTimeUnit
;
87 RadioButton aBtnDayOfWeek
;
88 RadioButton aBtnMonth
;
92 CancelButton aBtnCancel
;
95 const OUString aErrMsgInvalidVal
;
97 //----------------------------------------------------------
102 FillDateCmd theFillDateCmd
;
111 void Init( sal_uInt16 nPossDir
);
112 bool CheckStartVal();
113 bool CheckIncrementVal();
116 DECL_LINK( OKHdl
, void * );
117 DECL_LINK( DisableHdl
, Button
* );
123 #endif // SC_FILLDLG_HXX
125 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */