LibreOffice Module sc (master)  1
FourierAnalysisDialog.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  */
10 
11 #ifndef INCLUDED_SC_SOURCE_UI_INC_FOURIERANALYSISDIALOG_HXX
12 #define INCLUDED_SC_SOURCE_UI_INC_FOURIERANALYSISDIALOG_HXX
13 
15 
17 {
21 
22  double mfMinMag;
23 
24  bool mbUse3DAddresses : 1;
26  bool mbWithLabels : 1;
27  bool mbInverse : 1;
28  bool mbPolar : 1;
29 
30  std::unique_ptr<weld::CheckButton> mxWithLabelsCheckBox;
31  std::unique_ptr<weld::CheckButton> mxInverseCheckBox;
32  std::unique_ptr<weld::CheckButton> mxPolarCheckBox;
33  std::unique_ptr<weld::SpinButton> mxMinMagnitudeField;
34  std::unique_ptr<weld::Label> mxErrorMessage;
35 
36 public:
38  ScViewData* pViewData);
39 
40  virtual ~ScFourierAnalysisDialog() override;
41 
42  virtual void Close() override;
43 
44 protected:
45  virtual const char* GetUndoNameId() override;
46  virtual ScRange ApplyOutput(ScDocShell* pDocShell) override;
47  virtual bool InputRangesValid() override;
48 
49 private:
50  void getOptions();
51  void getDataLabel(OUString& rLabel);
52  void genFormula(OUString& rFormula);
53 
54  DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void);
55 };
56 
57 #endif
58 
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Label > mxErrorMessage
std::unique_ptr< weld::CheckButton > mxInverseCheckBox
void getDataLabel(OUString &rLabel)
std::unique_ptr< weld::CheckButton > mxPolarCheckBox
std::unique_ptr< weld::CheckButton > mxWithLabelsCheckBox
size_t SCSIZE
size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to ...
Definition: address.hxx:45
virtual ScRange ApplyOutput(ScDocShell *pDocShell) override
void genFormula(OUString &rFormula)
virtual void Close() override
ScFourierAnalysisDialog(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData *pViewData)
virtual const char * GetUndoNameId() override
DECL_LINK(CheckBoxHdl, weld::ToggleButton &, void)
std::unique_ptr< weld::SpinButton > mxMinMagnitudeField
virtual ~ScFourierAnalysisDialog() override
virtual bool InputRangesValid() override