fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sc / source / ui / inc / filldlg.hxx
blob9329c7e357806beb180722f9160ec3669736259c
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 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>
27 #include "global.hxx"
29 class ScDocument;
31 //----------------------------------------------------------------------------
33 #include "scui_def.hxx"
34 //============================================================================
36 class ScFillSeriesDlg : public ModalDialog
38 public:
39 ScFillSeriesDlg( Window* pParent,
40 ScDocument& rDocument,
41 FillDir eFillDir,
42 FillCmd eFillCmd,
43 FillDateCmd eFillDateCmd,
44 const OUString& aStartStr,
45 double fStep,
46 double fMax,
47 sal_uInt16 nPossDir );
48 ~ScFillSeriesDlg();
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);
61 private:
62 FixedText aFtStartVal;
63 Edit aEdStartVal;
64 const OUString aStartStrVal;
66 FixedText aFtEndVal;
67 Edit aEdEndVal;
69 FixedText aFtIncrement;
70 Edit aEdIncrement;
71 FixedLine aFlDirection;
72 RadioButton aBtnDown;
73 RadioButton aBtnRight;
74 RadioButton aBtnUp;
75 RadioButton aBtnLeft;
77 FixedLine aFlSep1;
78 FixedLine aFlType;
79 RadioButton aBtnArithmetic;
80 RadioButton aBtnGeometric;
81 RadioButton aBtnDate;
82 RadioButton aBtnAutoFill;
84 FixedLine aFlSep2;
85 FixedLine aFlTimeUnit;
86 RadioButton aBtnDay;
87 RadioButton aBtnDayOfWeek;
88 RadioButton aBtnMonth;
89 RadioButton aBtnYear;
91 OKButton aBtnOk;
92 CancelButton aBtnCancel;
93 HelpButton aBtnHelp;
95 const OUString aErrMsgInvalidVal;
97 //----------------------------------------------------------
99 ScDocument& rDoc;
100 FillDir theFillDir;
101 FillCmd theFillCmd;
102 FillDateCmd theFillDateCmd;
103 double fStartVal;
104 double fIncrement;
105 double fEndVal;
107 bool bStartValFlag;
109 #ifdef _FILLDLG_CXX
110 private:
111 void Init( sal_uInt16 nPossDir );
112 bool CheckStartVal();
113 bool CheckIncrementVal();
114 bool CheckEndVal();
116 DECL_LINK( OKHdl, void * );
117 DECL_LINK( DisableHdl, Button * );
118 #endif
123 #endif // SC_FILLDLG_HXX
125 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */