LibreOffice Module sc (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScRandomNumberGeneratorDialog Class Reference

#include <RandomNumberGeneratorDialog.hxx>

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

Public Member Functions

 ScRandomNumberGeneratorDialog (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData *pViewData)
 
virtual ~ScRandomNumberGeneratorDialog () override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override
 
virtual void SetActive () override
 
virtual void Close () override
 
- Public Member Functions inherited from ScAnyRefDlgController
 ScAnyRefDlgController (SfxBindings *rt1, SfxChildWindow *rt2, weld::Window *rt3, const OUString &rt4, const OString &rt5)
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
 ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *pArg, SfxBindings *pB)
 
 ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void EndDialog () 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 OString &rDialogId)
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
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 ()
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 
- Public Member Functions inherited from IAnyRefDialog
virtual ~IAnyRefDialog () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

void Init ()
 
void GetRangeFromSelection ()
 
template<class RNG >
void GenerateNumbers (RNG &randomGenerator, const char *pDistributionStringId, const std::optional< sal_Int8 > aDecimalPlaces)
 
void SelectGeneratorAndGenerateNumbers ()
 
 DECL_LINK (OkClicked, weld::Button &, void)
 
 DECL_LINK (CloseClicked, weld::Button &, void)
 
 DECL_LINK (ApplyClicked, 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 (InputRangeModified, formula::RefEdit &, void)
 
 DECL_LINK (Parameter1ValueModified, weld::SpinButton &, void)
 
 DECL_LINK (Parameter2ValueModified, weld::SpinButton &, void)
 
 DECL_LINK (DistributionChanged, weld::ComboBox &, void)
 
 DECL_LINK (CheckChanged, weld::ToggleButton &, void)
 

Private Attributes

ScViewDatampViewData
 
const ScDocumentmrDoc
 
ScRange maInputRange
 
bool mbDialogLostFocus
 
std::unique_ptr< weld::LabelmxInputRangeText
 
std::unique_ptr< formula::RefEditmxInputRangeEdit
 
std::unique_ptr< formula::RefButtonmxInputRangeButton
 
std::unique_ptr< weld::ComboBoxmxDistributionCombo
 
std::unique_ptr< weld::LabelmxParameter1Text
 
std::unique_ptr< weld::SpinButtonmxParameter1Value
 
std::unique_ptr< weld::LabelmxParameter2Text
 
std::unique_ptr< weld::SpinButtonmxParameter2Value
 
std::unique_ptr< weld::SpinButtonmxSeed
 
std::unique_ptr< weld::CheckButtonmxEnableSeed
 
std::unique_ptr< weld::SpinButtonmxDecimalPlaces
 
std::unique_ptr< weld::CheckButtonmxEnableRounding
 
std::unique_ptr< weld::ButtonmxButtonApply
 
std::unique_ptr< weld::ButtonmxButtonOk
 
std::unique_ptr< weld::ButtonmxButtonClose
 

Additional Inherited Members

- Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
enum  
 
- Static Public Member Functions inherited from ScRefHandler
static bool CanInputStart (const formula::RefEdit *pEdit)
 
- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &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, const OUString &rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Detailed Description

Definition at line 22 of file RandomNumberGeneratorDialog.hxx.

Constructor & Destructor Documentation

ScRandomNumberGeneratorDialog::ScRandomNumberGeneratorDialog ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent,
ScViewData pViewData 
)
ScRandomNumberGeneratorDialog::~ScRandomNumberGeneratorDialog ( )
overridevirtual

Definition at line 77 of file RandomNumberGeneratorDialog.cxx.

Member Function Documentation

void ScRandomNumberGeneratorDialog::Close ( )
overridevirtual
ScRandomNumberGeneratorDialog::DECL_LINK ( OkClicked  ,
weld::Button ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( CloseClicked  ,
weld::Button ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( ApplyClicked  ,
weld::Button ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( GetEditFocusHandler  ,
formula::RefEdit ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( GetButtonFocusHandler  ,
formula::RefButton ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( LoseEditFocusHandler  ,
formula::RefEdit ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( LoseButtonFocusHandler  ,
formula::RefButton ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( InputRangeModified  ,
formula::RefEdit ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( Parameter1ValueModified  ,
weld::SpinButton ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( Parameter2ValueModified  ,
weld::SpinButton ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( DistributionChanged  ,
weld::ComboBox ,
void   
)
private
ScRandomNumberGeneratorDialog::DECL_LINK ( CheckChanged  ,
weld::ToggleButton ,
void   
)
private
template<class RNG >
void ScRandomNumberGeneratorDialog::GenerateNumbers ( RNG &  randomGenerator,
const char *  pDistributionStringId,
const std::optional< sal_Int8 aDecimalPlaces 
)
private
void ScRandomNumberGeneratorDialog::GetRangeFromSelection ( )
private
void ScRandomNumberGeneratorDialog::Init ( void  )
private
void ScRandomNumberGeneratorDialog::SelectGeneratorAndGenerateNumbers ( )
private
void ScRandomNumberGeneratorDialog::SetActive ( )
overridevirtual
void ScRandomNumberGeneratorDialog::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual

Member Data Documentation

ScRange ScRandomNumberGeneratorDialog::maInputRange
private
bool ScRandomNumberGeneratorDialog::mbDialogLostFocus
private

Definition at line 42 of file RandomNumberGeneratorDialog.hxx.

Referenced by SetActive().

ScViewData* ScRandomNumberGeneratorDialog::mpViewData
private

Definition at line 37 of file RandomNumberGeneratorDialog.hxx.

Referenced by GenerateNumbers(), and GetRangeFromSelection().

const ScDocument& ScRandomNumberGeneratorDialog::mrDoc
private

Definition at line 38 of file RandomNumberGeneratorDialog.hxx.

Referenced by GetRangeFromSelection().

std::unique_ptr<weld::Button> ScRandomNumberGeneratorDialog::mxButtonApply
private

Definition at line 57 of file RandomNumberGeneratorDialog.hxx.

Referenced by Init(), and SetReference().

std::unique_ptr<weld::Button> ScRandomNumberGeneratorDialog::mxButtonClose
private

Definition at line 59 of file RandomNumberGeneratorDialog.hxx.

Referenced by Init().

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

Definition at line 58 of file RandomNumberGeneratorDialog.hxx.

Referenced by Init(), and SetReference().

std::unique_ptr<weld::SpinButton> ScRandomNumberGeneratorDialog::mxDecimalPlaces
private

Definition at line 55 of file RandomNumberGeneratorDialog.hxx.

Referenced by SelectGeneratorAndGenerateNumbers().

std::unique_ptr<weld::ComboBox> ScRandomNumberGeneratorDialog::mxDistributionCombo
private

Definition at line 48 of file RandomNumberGeneratorDialog.hxx.

Referenced by Init(), and SelectGeneratorAndGenerateNumbers().

std::unique_ptr<weld::CheckButton> ScRandomNumberGeneratorDialog::mxEnableRounding
private

Definition at line 56 of file RandomNumberGeneratorDialog.hxx.

Referenced by Init(), and SelectGeneratorAndGenerateNumbers().

std::unique_ptr<weld::CheckButton> ScRandomNumberGeneratorDialog::mxEnableSeed
private

Definition at line 54 of file RandomNumberGeneratorDialog.hxx.

Referenced by Init(), and SelectGeneratorAndGenerateNumbers().

std::unique_ptr<formula::RefButton> ScRandomNumberGeneratorDialog::mxInputRangeButton
private

Definition at line 47 of file RandomNumberGeneratorDialog.hxx.

Referenced by Init(), and ScRandomNumberGeneratorDialog().

std::unique_ptr<formula::RefEdit> ScRandomNumberGeneratorDialog::mxInputRangeEdit
private
std::unique_ptr<weld::Label> ScRandomNumberGeneratorDialog::mxInputRangeText
private

Definition at line 45 of file RandomNumberGeneratorDialog.hxx.

Referenced by ScRandomNumberGeneratorDialog().

std::unique_ptr<weld::Label> ScRandomNumberGeneratorDialog::mxParameter1Text
private

Definition at line 49 of file RandomNumberGeneratorDialog.hxx.

std::unique_ptr<weld::SpinButton> ScRandomNumberGeneratorDialog::mxParameter1Value
private

Definition at line 50 of file RandomNumberGeneratorDialog.hxx.

Referenced by Init(), and SelectGeneratorAndGenerateNumbers().

std::unique_ptr<weld::Label> ScRandomNumberGeneratorDialog::mxParameter2Text
private

Definition at line 51 of file RandomNumberGeneratorDialog.hxx.

std::unique_ptr<weld::SpinButton> ScRandomNumberGeneratorDialog::mxParameter2Value
private

Definition at line 52 of file RandomNumberGeneratorDialog.hxx.

Referenced by Init(), and SelectGeneratorAndGenerateNumbers().

std::unique_ptr<weld::SpinButton> ScRandomNumberGeneratorDialog::mxSeed
private

Definition at line 53 of file RandomNumberGeneratorDialog.hxx.

Referenced by SelectGeneratorAndGenerateNumbers().


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