LibreOffice Module sc (master) 1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
ScStatisticsTwoVariableDialog Class Referenceabstract

#include <StatisticsTwoVariableDialog.hxx>

Inheritance diagram for ScStatisticsTwoVariableDialog:
[legend]
Collaboration diagram for ScStatisticsTwoVariableDialog:
[legend]

Public Types

enum  GroupedBy {
  BY_COLUMN ,
  BY_ROW
}
 
- Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
enum  
 

Public Member Functions

 ScStatisticsTwoVariableDialog (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData, const OUString &rUIXMLDescription, const OUString &rID)
 
virtual ~ScStatisticsTwoVariableDialog () override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override
 
virtual void SetActive () override
 
- Public Member Functions inherited from ScAnyRefDlgController
 ScAnyRefDlgController (SfxBindings *rt1, SfxChildWindow *rt2, weld::Window *rt3, const OUString &rt4, const OUString &rt5)
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
 ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pArg, SfxBindings *pB)
 
 ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void Close () override
 
virtual void EndDialog (int nResponse) override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override=0
 
virtual void AddRefEntry () override
 
virtual bool IsRefInputMode () const override
 
virtual bool IsTableLocked () const override
 
virtual bool IsDocAllowed (SfxObjectShell *pDocSh) const override
 
virtual void ShowReference (const OUString &rStr) override
 
virtual void HideReference (bool bDoneRefMode=true) override
 
virtual void ToggleCollapsed (formula::RefEdit *pEdit, formula::RefButton *pButton) override
 
virtual void ReleaseFocus (formula::RefEdit *pEdit) override
 
virtual void ViewShellChanged () override
 
void SwitchToDocument ()
 
virtual void SetActive () override=0
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 

Protected Member Functions

void CalculateInputAndWriteToOutput ()
 
virtual ScRange ApplyOutput (ScDocShell *pDocShell)=0
 
virtual TranslateId GetUndoNameId ()=0
 
virtual bool InputRangesValid ()
 
void ValidateDialogInput ()
 
- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 
- Protected Member Functions inherited from ScRefHandler
void disposeRefHandler ()
 
bool DoClose (sal_uInt16 nId)
 
void SetDispatcherLock (bool bLock)
 
virtual void RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr) override
 
virtual void RefInputDone (bool bForced=false) override
 
bool ParseWithNames (ScRangeList &rRanges, std::u16string_view rStr, const ScDocument &pDoc)
 

Protected Attributes

std::unique_ptr< weld::LabelmxVariable1RangeLabel
 
std::unique_ptr< formula::RefEditmxVariable1RangeEdit
 
std::unique_ptr< formula::RefButtonmxVariable1RangeButton
 
std::unique_ptr< weld::LabelmxVariable2RangeLabel
 
std::unique_ptr< formula::RefEditmxVariable2RangeEdit
 
std::unique_ptr< formula::RefButtonmxVariable2RangeButton
 
std::unique_ptr< weld::LabelmxOutputRangeLabel
 
std::unique_ptr< formula::RefEditmxOutputRangeEdit
 
std::unique_ptr< formula::RefButtonmxOutputRangeButton
 
ScViewDatamViewData
 
ScDocumentmDocument
 
ScRange mVariable1Range
 
ScRange mVariable2Range
 
ScAddress::Details const mAddressDetails
 
ScAddress mOutputAddress
 
GroupedBy mGroupedBy
 

Private Member Functions

void Init ()
 
void GetRangeFromSelection ()
 
 DECL_LINK (GroupByChanged, weld::Toggleable &, void)
 
 DECL_LINK (ButtonClicked, weld::Button &, void)
 
 DECL_LINK (GetEditFocusHandler, formula::RefEdit &, void)
 
 DECL_LINK (GetButtonFocusHandler, formula::RefButton &, void)
 
 DECL_LINK (LoseEditFocusHandler, formula::RefEdit &, void)
 
 DECL_LINK (LoseButtonFocusHandler, formula::RefButton &, void)
 
 DECL_LINK (RefInputModifyHandler, formula::RefEdit &, void)
 

Private Attributes

std::unique_ptr< weld::ButtonmxButtonOk
 
std::unique_ptr< weld::ButtonmxButtonCancel
 
std::unique_ptr< weld::RadioButtonmxGroupByColumnsRadio
 
std::unique_ptr< weld::RadioButtonmxGroupByRowsRadio
 
formula::RefEditmpActiveEdit
 
ScAddress mCurrentAddress
 
bool mDialogLostFocus
 

Additional Inherited Members

- Static Public Member Functions inherited from ScRefHandler
static bool CanInputStart (const formula::RefEdit *pEdit)
 

Detailed Description

Definition at line 17 of file StatisticsTwoVariableDialog.hxx.

Member Enumeration Documentation

◆ GroupedBy

Enumerator
BY_COLUMN 
BY_ROW 

Definition at line 20 of file StatisticsTwoVariableDialog.hxx.

Constructor & Destructor Documentation

◆ ScStatisticsTwoVariableDialog()

ScStatisticsTwoVariableDialog::ScStatisticsTwoVariableDialog ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent,
ScViewData rViewData,
const OUString &  rUIXMLDescription,
const OUString &  rID 
)

◆ ~ScStatisticsTwoVariableDialog()

ScStatisticsTwoVariableDialog::~ScStatisticsTwoVariableDialog ( )
overridevirtual

Definition at line 62 of file StatisticsTwoVariableDialog.cxx.

Member Function Documentation

◆ ApplyOutput()

virtual ScRange ScStatisticsTwoVariableDialog::ApplyOutput ( ScDocShell pDocShell)
protectedpure virtual

◆ CalculateInputAndWriteToOutput()

void ScStatisticsTwoVariableDialog::CalculateInputAndWriteToOutput ( )
protected

◆ DECL_LINK() [1/7]

ScStatisticsTwoVariableDialog::DECL_LINK ( ButtonClicked  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/7]

ScStatisticsTwoVariableDialog::DECL_LINK ( GetButtonFocusHandler  ,
formula::RefButton ,
void   
)
private

◆ DECL_LINK() [3/7]

ScStatisticsTwoVariableDialog::DECL_LINK ( GetEditFocusHandler  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [4/7]

ScStatisticsTwoVariableDialog::DECL_LINK ( GroupByChanged  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [5/7]

ScStatisticsTwoVariableDialog::DECL_LINK ( LoseButtonFocusHandler  ,
formula::RefButton ,
void   
)
private

◆ DECL_LINK() [6/7]

ScStatisticsTwoVariableDialog::DECL_LINK ( LoseEditFocusHandler  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [7/7]

ScStatisticsTwoVariableDialog::DECL_LINK ( RefInputModifyHandler  ,
formula::RefEdit ,
void   
)
private

◆ GetRangeFromSelection()

void ScStatisticsTwoVariableDialog::GetRangeFromSelection ( )
private

◆ GetUndoNameId()

virtual TranslateId ScStatisticsTwoVariableDialog::GetUndoNameId ( )
protectedpure virtual

◆ Init()

void ScStatisticsTwoVariableDialog::Init ( void  )
private

◆ InputRangesValid()

bool ScStatisticsTwoVariableDialog::InputRangesValid ( )
protectedvirtual

◆ SetActive()

void ScStatisticsTwoVariableDialog::SetActive ( )
overridevirtual

◆ SetReference()

void ScStatisticsTwoVariableDialog::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual

◆ ValidateDialogInput()

void ScStatisticsTwoVariableDialog::ValidateDialogInput ( )
protected

Definition at line 341 of file StatisticsTwoVariableDialog.cxx.

References InputRangesValid(), and mxButtonOk.

Referenced by SetReference().

Member Data Documentation

◆ mAddressDetails

ScAddress::Details const ScStatisticsTwoVariableDialog::mAddressDetails
protected

◆ mCurrentAddress

ScAddress ScStatisticsTwoVariableDialog::mCurrentAddress
private

Definition at line 76 of file StatisticsTwoVariableDialog.hxx.

Referenced by SetReference().

◆ mDialogLostFocus

bool ScStatisticsTwoVariableDialog::mDialogLostFocus
private

Definition at line 77 of file StatisticsTwoVariableDialog.hxx.

Referenced by SetActive().

◆ mDocument

ScDocument& ScStatisticsTwoVariableDialog::mDocument
protected

◆ mGroupedBy

GroupedBy ScStatisticsTwoVariableDialog::mGroupedBy
protected

◆ mOutputAddress

ScAddress ScStatisticsTwoVariableDialog::mOutputAddress
protected

◆ mpActiveEdit

formula::RefEdit* ScStatisticsTwoVariableDialog::mpActiveEdit
private

Definition at line 75 of file StatisticsTwoVariableDialog.hxx.

Referenced by SetActive(), and SetReference().

◆ mVariable1Range

ScRange ScStatisticsTwoVariableDialog::mVariable1Range
protected

◆ mVariable2Range

ScRange ScStatisticsTwoVariableDialog::mVariable2Range
protected

◆ mViewData

ScViewData& ScStatisticsTwoVariableDialog::mViewData
protected

◆ mxButtonCancel

std::unique_ptr<weld::Button> ScStatisticsTwoVariableDialog::mxButtonCancel
private

Definition at line 70 of file StatisticsTwoVariableDialog.hxx.

Referenced by Init().

◆ mxButtonOk

std::unique_ptr<weld::Button> ScStatisticsTwoVariableDialog::mxButtonOk
private

Definition at line 69 of file StatisticsTwoVariableDialog.hxx.

Referenced by Init(), and ValidateDialogInput().

◆ mxGroupByColumnsRadio

std::unique_ptr<weld::RadioButton> ScStatisticsTwoVariableDialog::mxGroupByColumnsRadio
private

Definition at line 72 of file StatisticsTwoVariableDialog.hxx.

Referenced by Init().

◆ mxGroupByRowsRadio

std::unique_ptr<weld::RadioButton> ScStatisticsTwoVariableDialog::mxGroupByRowsRadio
private

Definition at line 73 of file StatisticsTwoVariableDialog.hxx.

Referenced by Init().

◆ mxOutputRangeButton

std::unique_ptr<formula::RefButton> ScStatisticsTwoVariableDialog::mxOutputRangeButton
protected

Definition at line 54 of file StatisticsTwoVariableDialog.hxx.

Referenced by Init(), and ScStatisticsTwoVariableDialog().

◆ mxOutputRangeEdit

std::unique_ptr<formula::RefEdit> ScStatisticsTwoVariableDialog::mxOutputRangeEdit
protected

◆ mxOutputRangeLabel

std::unique_ptr<weld::Label> ScStatisticsTwoVariableDialog::mxOutputRangeLabel
protected

Definition at line 52 of file StatisticsTwoVariableDialog.hxx.

Referenced by ScStatisticsTwoVariableDialog().

◆ mxVariable1RangeButton

std::unique_ptr<formula::RefButton> ScStatisticsTwoVariableDialog::mxVariable1RangeButton
protected

Definition at line 46 of file StatisticsTwoVariableDialog.hxx.

Referenced by Init(), and ScStatisticsTwoVariableDialog().

◆ mxVariable1RangeEdit

std::unique_ptr<formula::RefEdit> ScStatisticsTwoVariableDialog::mxVariable1RangeEdit
protected

◆ mxVariable1RangeLabel

std::unique_ptr<weld::Label> ScStatisticsTwoVariableDialog::mxVariable1RangeLabel
protected

Definition at line 44 of file StatisticsTwoVariableDialog.hxx.

Referenced by ScStatisticsTwoVariableDialog().

◆ mxVariable2RangeButton

std::unique_ptr<formula::RefButton> ScStatisticsTwoVariableDialog::mxVariable2RangeButton
protected

Definition at line 50 of file StatisticsTwoVariableDialog.hxx.

Referenced by Init(), and ScStatisticsTwoVariableDialog().

◆ mxVariable2RangeEdit

std::unique_ptr<formula::RefEdit> ScStatisticsTwoVariableDialog::mxVariable2RangeEdit
protected

◆ mxVariable2RangeLabel

std::unique_ptr<weld::Label> ScStatisticsTwoVariableDialog::mxVariable2RangeLabel
protected

Definition at line 48 of file StatisticsTwoVariableDialog.hxx.

Referenced by ScStatisticsTwoVariableDialog().


The documentation for this class was generated from the following files: