fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / filldlg.hxx
blob70a2d086bb458a7edf570856bffb9f9444101ffe
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 INCLUDED_SC_SOURCE_UI_INC_FILLDLG_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_FILLDLG_HXX
23 #include <vcl/dialog.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/edit.hxx>
27 #include "global.hxx"
29 class ScDocument;
31 #include "scui_def.hxx"
33 class ScFillSeriesDlg : public ModalDialog
35 public:
36 ScFillSeriesDlg( vcl::Window* pParent,
37 ScDocument& rDocument,
38 FillDir eFillDir,
39 FillCmd eFillCmd,
40 FillDateCmd eFillDateCmd,
41 const OUString& aStartStr,
42 double fStep,
43 double fMax,
44 sal_uInt16 nPossDir );
45 virtual ~ScFillSeriesDlg();
46 virtual void dispose() SAL_OVERRIDE;
48 FillDir GetFillDir() const { return theFillDir; }
49 FillCmd GetFillCmd() const { return theFillCmd; }
50 FillDateCmd GetFillDateCmd() const { return theFillDateCmd; }
51 double GetStart() const { return fStartVal; }
52 double GetStep() const { return fIncrement; }
53 double GetMax() const { return fEndVal; }
55 OUString GetStartStr() const { return m_pEdStartVal->GetText(); }
57 void SetEdStartValEnabled(bool bFlag = false);
59 private:
60 VclPtr<FixedText> m_pFtStartVal;
61 VclPtr<Edit> m_pEdStartVal;
62 const OUString aStartStrVal;
64 VclPtr<FixedText> m_pFtEndVal;
65 VclPtr<Edit> m_pEdEndVal;
67 VclPtr<FixedText> m_pFtIncrement;
68 VclPtr<Edit> m_pEdIncrement;
69 VclPtr<RadioButton> m_pBtnDown;
70 VclPtr<RadioButton> m_pBtnRight;
71 VclPtr<RadioButton> m_pBtnUp;
72 VclPtr<RadioButton> m_pBtnLeft;
74 VclPtr<RadioButton> m_pBtnArithmetic;
75 VclPtr<RadioButton> m_pBtnGeometric;
76 VclPtr<RadioButton> m_pBtnDate;
77 VclPtr<RadioButton> m_pBtnAutoFill;
79 VclPtr<FixedText> m_pFtTimeUnit;
80 VclPtr<RadioButton> m_pBtnDay;
81 VclPtr<RadioButton> m_pBtnDayOfWeek;
82 VclPtr<RadioButton> m_pBtnMonth;
83 VclPtr<RadioButton> m_pBtnYear;
85 VclPtr<OKButton> m_pBtnOk;
87 const OUString aErrMsgInvalidVal;
89 ScDocument& rDoc;
90 FillDir theFillDir;
91 FillCmd theFillCmd;
92 FillDateCmd theFillDateCmd;
93 double fStartVal;
94 double fIncrement;
95 double fEndVal;
97 bool bStartValFlag;
99 void Init( sal_uInt16 nPossDir );
100 bool CheckStartVal();
101 bool CheckIncrementVal();
102 bool CheckEndVal();
104 DECL_LINK( OKHdl, void * );
105 DECL_LINK( DisableHdl, Button * );
108 #endif // INCLUDED_SC_SOURCE_UI_INC_FILLDLG_HXX
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */