diff options
Diffstat (limited to 'sc/source/ui/inc/DescriptiveStatisticsDialog.hxx')
-rw-r--r-- | sc/source/ui/inc/DescriptiveStatisticsDialog.hxx | 48 |
1 files changed, 6 insertions, 42 deletions
diff --git a/sc/source/ui/inc/DescriptiveStatisticsDialog.hxx b/sc/source/ui/inc/DescriptiveStatisticsDialog.hxx index c375d27158ff..b2003b6b5191 100644 --- a/sc/source/ui/inc/DescriptiveStatisticsDialog.hxx +++ b/sc/source/ui/inc/DescriptiveStatisticsDialog.hxx @@ -19,7 +19,9 @@ #include <vcl/group.hxx> #include <vcl/lstbox.hxx> -class ScDescriptiveStatisticsDialog : public ScAnyRefDlg +#include "StatisticsInputOutputDialog.hxx" + +class ScDescriptiveStatisticsDialog : public ScStatisticsInputOutputDialog { public: ScDescriptiveStatisticsDialog( @@ -28,48 +30,10 @@ public: virtual ~ScDescriptiveStatisticsDialog(); - virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); - virtual void SetActive(); - virtual sal_Bool Close(); - -private: - // Widgets - FixedText* mpInputRangeLabel; - formula::RefEdit* mpInputRangeEdit; - formula::RefButton* mpInputRangeButton; - - FixedText* mpOutputRangeLabel; - formula::RefEdit* mpOutputRangeEdit; - formula::RefButton* mpOutputRangeButton; - - PushButton* mpButtonApply; - OKButton* mpButtonOk; - CloseButton* mpButtonClose; - - // - formula::RefEdit* mpActiveEdit; - - // Data - ScViewData* mViewData; - ScDocument* mDocument; - - ScRange mInputRange; - ScAddress::Details mAddressDetails; - ScAddress mOutputAddress; - - ScAddress mCurrentAddress; - - bool mDialogLostFocus; - - void Init(); - void GetRangeFromSelection(); - void ApplyCalculationsFormulas(); + virtual sal_Bool Close(); - DECL_LINK( OkClicked, PushButton* ); - DECL_LINK( CloseClicked, PushButton* ); - DECL_LINK( ApplyClicked, PushButton* ); - DECL_LINK( GetFocusHandler, Control* ); - DECL_LINK( LoseFocusHandler, void* ); +protected: + virtual void CalculateInputAndWriteToOutput(); }; #endif |