LibreOffice Module sc (master) 1
|
#include <RandomNumberGeneratorDialog.hxx>
Public Member Functions | |
ScRandomNumberGeneratorDialog (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData) | |
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 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 |
SfxBindings & | GetBindings () 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) |
Private Member Functions | |
void | Init () |
void | GetRangeFromSelection () |
template<class RNG > | |
void | GenerateNumbers (RNG &randomGenerator, TranslateId 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::Toggleable &, void) | |
Private Attributes | |
ScViewData & | mrViewData |
const ScDocument & | mrDoc |
ScRange | maInputRange |
bool | mbDialogLostFocus |
std::unique_ptr< weld::Label > | mxInputRangeText |
std::unique_ptr< formula::RefEdit > | mxInputRangeEdit |
std::unique_ptr< formula::RefButton > | mxInputRangeButton |
std::unique_ptr< weld::ComboBox > | mxDistributionCombo |
std::unique_ptr< weld::Label > | mxParameter1Text |
std::unique_ptr< weld::SpinButton > | mxParameter1Value |
std::unique_ptr< weld::Label > | mxParameter2Text |
std::unique_ptr< weld::SpinButton > | mxParameter2Value |
std::unique_ptr< weld::SpinButton > | mxSeed |
std::unique_ptr< weld::CheckButton > | mxEnableSeed |
std::unique_ptr< weld::SpinButton > | mxDecimalPlaces |
std::unique_ptr< weld::CheckButton > | mxEnableRounding |
std::unique_ptr< weld::Button > | mxButtonApply |
std::unique_ptr< weld::Button > | mxButtonOk |
std::unique_ptr< weld::Button > | mxButtonClose |
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 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) |
Definition at line 21 of file RandomNumberGeneratorDialog.hxx.
ScRandomNumberGeneratorDialog::ScRandomNumberGeneratorDialog | ( | SfxBindings * | pB, |
SfxChildWindow * | pCW, | ||
weld::Window * | pParent, | ||
ScViewData & | rViewData | ||
) |
Definition at line 46 of file RandomNumberGeneratorDialog.cxx.
References GetRangeFromSelection(), Init(), mxInputRangeButton, mxInputRangeEdit, and mxInputRangeText.
|
overridevirtual |
Definition at line 78 of file RandomNumberGeneratorDialog.cxx.
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 129 of file RandomNumberGeneratorDialog.cxx.
References ScRefHandler::DoClose(), and ChildControllerWrapper< SID_RANDOM_NUMBER_GENERATOR_DIALOG >::GetChildWindowId().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 261 of file RandomNumberGeneratorDialog.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), SfxUndoManager::EnterListAction(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScDocShell::GetUndoManager(), ScViewData::GetViewShell(), SfxViewShell::GetViewShellId(), Grid, SfxUndoManager::LeaveListAction(), maInputRange, mrViewData, ScDocShell::PostPaint(), ScAddress::Row(), ScResId(), ScDocFunc::SetValueCells(), and ScAddress::Tab().
Referenced by SelectGeneratorAndGenerateNumbers().
|
private |
Definition at line 107 of file RandomNumberGeneratorDialog.cxx.
References ScRange::Format(), ScDocument::GetAddressConvention(), ScViewData::GetSimpleArea(), maInputRange, mrDoc, mrViewData, mxInputRangeEdit, and RANGE_ABS_3D.
Referenced by ScRandomNumberGeneratorDialog().
|
private |
Definition at line 82 of file RandomNumberGeneratorDialog.cxx.
References LINK, mxButtonApply, mxButtonClose, mxButtonOk, mxDistributionCombo, mxEnableRounding, mxEnableSeed, mxInputRangeButton, mxInputRangeEdit, mxParameter1Value, and mxParameter2Value.
Referenced by ScRandomNumberGeneratorDialog().
|
private |
Definition at line 151 of file RandomNumberGeneratorDialog.cxx.
References GenerateNumbers(), ScRange::IsValid(), maInputRange, mxDecimalPlaces, mxDistributionCombo, mxEnableRounding, mxEnableSeed, mxParameter1Value, mxParameter2Value, mxSeed, now, and PRECISION.
|
overridevirtual |
Implements ScRefHandler.
Definition at line 114 of file RandomNumberGeneratorDialog.cxx.
References m_xDialog, mbDialogLostFocus, mxInputRangeEdit, and ScRefHandler::RefInputDone().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 134 of file RandomNumberGeneratorDialog.cxx.
References ScRange::aEnd, ScRange::aStart, ScRange::Format(), ScDocument::GetAddressConvention(), maInputRange, mxButtonApply, mxButtonOk, mxInputRangeEdit, RANGE_ABS_3D, and ScRefHandler::RefInputStart().
|
private |
Definition at line 39 of file RandomNumberGeneratorDialog.hxx.
Referenced by GenerateNumbers(), GetRangeFromSelection(), SelectGeneratorAndGenerateNumbers(), and SetReference().
|
private |
Definition at line 41 of file RandomNumberGeneratorDialog.hxx.
Referenced by SetActive().
|
private |
Definition at line 37 of file RandomNumberGeneratorDialog.hxx.
Referenced by GetRangeFromSelection().
|
private |
Definition at line 36 of file RandomNumberGeneratorDialog.hxx.
Referenced by GenerateNumbers(), and GetRangeFromSelection().
|
private |
Definition at line 56 of file RandomNumberGeneratorDialog.hxx.
Referenced by Init(), and SetReference().
|
private |
Definition at line 58 of file RandomNumberGeneratorDialog.hxx.
Referenced by Init().
|
private |
Definition at line 57 of file RandomNumberGeneratorDialog.hxx.
Referenced by Init(), and SetReference().
|
private |
Definition at line 54 of file RandomNumberGeneratorDialog.hxx.
Referenced by SelectGeneratorAndGenerateNumbers().
|
private |
Definition at line 47 of file RandomNumberGeneratorDialog.hxx.
Referenced by Init(), and SelectGeneratorAndGenerateNumbers().
|
private |
Definition at line 55 of file RandomNumberGeneratorDialog.hxx.
Referenced by Init(), and SelectGeneratorAndGenerateNumbers().
|
private |
Definition at line 53 of file RandomNumberGeneratorDialog.hxx.
Referenced by Init(), and SelectGeneratorAndGenerateNumbers().
|
private |
Definition at line 46 of file RandomNumberGeneratorDialog.hxx.
Referenced by Init(), and ScRandomNumberGeneratorDialog().
|
private |
Definition at line 45 of file RandomNumberGeneratorDialog.hxx.
Referenced by GetRangeFromSelection(), Init(), ScRandomNumberGeneratorDialog(), SetActive(), and SetReference().
|
private |
Definition at line 44 of file RandomNumberGeneratorDialog.hxx.
Referenced by ScRandomNumberGeneratorDialog().
|
private |
Definition at line 48 of file RandomNumberGeneratorDialog.hxx.
|
private |
Definition at line 49 of file RandomNumberGeneratorDialog.hxx.
Referenced by Init(), and SelectGeneratorAndGenerateNumbers().
|
private |
Definition at line 50 of file RandomNumberGeneratorDialog.hxx.
|
private |
Definition at line 51 of file RandomNumberGeneratorDialog.hxx.
Referenced by Init(), and SelectGeneratorAndGenerateNumbers().
|
private |
Definition at line 52 of file RandomNumberGeneratorDialog.hxx.
Referenced by SelectGeneratorAndGenerateNumbers().