LibreOffice Module sc (master) 1
|
#include <SamplingDialog.hxx>
Public Member Functions | |
ScSamplingDialog (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData) | |
virtual | ~ScSamplingDialog () 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 () |
void | PerformSampling () |
sal_Int64 | GetPopulationSize () const |
void | LimitSampleSizeAndPeriod () |
ScRange | PerformRandomSampling (ScDocShell *pDocShell) |
ScRange | PerformRandomSamplingKeepOrder (ScDocShell *pDocShell) |
ScRange | PerformPeriodicSampling (ScDocShell *pDocShell) |
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 (SamplingSizeValueModified, weld::SpinButton &, void) | |
DECL_LINK (PeriodValueModified, weld::SpinButton &, void) | |
DECL_LINK (ToggleSamplingMethod, weld::Toggleable &, void) | |
DECL_LINK (RefInputModifyHandler, formula::RefEdit &, void) | |
DECL_LINK (CheckHdl, weld::Toggleable &, void) | |
void | ToggleSamplingMethod () |
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 17 of file SamplingDialog.hxx.
ScSamplingDialog::ScSamplingDialog | ( | SfxBindings * | pB, |
SfxChildWindow * | pCW, | ||
weld::Window * | pParent, | ||
ScViewData & | rViewData | ||
) |
Definition at line 22 of file SamplingDialog.cxx.
References GetRangeFromSelection(), Init(), mxInputRangeButton, mxInputRangeEdit, mxInputRangeLabel, mxOutputRangeButton, mxOutputRangeEdit, and mxOutputRangeLabel.
|
overridevirtual |
Definition at line 61 of file SamplingDialog.cxx.
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 128 of file SamplingDialog.cxx.
References ScRefHandler::DoClose(), and ChildControllerWrapper< SID_SAMPLING_DIALOG >::GetChildWindowId().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 359 of file SamplingDialog.cxx.
References ScRange::aEnd, ScRange::aStart, ScRange::IsValid(), mInputRange, and ScAddress::Row().
Referenced by LimitSampleSizeAndPeriod().
|
private |
Definition at line 106 of file SamplingDialog.cxx.
References ScRange::Format(), ScViewData::GetSimpleArea(), mAddressDetails, mDocument, mInputRange, mViewData, mxInputRangeEdit, and RANGE_ABS_3D.
Referenced by ScSamplingDialog().
|
private |
Definition at line 65 of file SamplingDialog.cxx.
References LINK, mxButtonCancel, mxButtonOk, mxInputRangeButton, mxInputRangeEdit, mxKeepOrder, mxOutputRangeButton, mxOutputRangeEdit, mxPeriod, mxPeriodicMethodRadio, mxRandomMethodRadio, mxSampleSize, mxWithReplacement, SAL_MAX_INT32, and ToggleSamplingMethod().
Referenced by ScSamplingDialog().
|
private |
Definition at line 364 of file SamplingDialog.cxx.
References GetPopulationSize(), mnLastPeriodValue, mxPeriod, and mxSampleSize.
Referenced by SetReference().
|
private |
Definition at line 173 of file SamplingDialog.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocShell::GetDocFunc(), ScDocument::GetValue(), i, mDocument, mInputRange, mOutputAddress, mxPeriod, ScAddress::Row(), ScDocFunc::SetValueCell(), and ScAddress::Tab().
Referenced by PerformSampling().
|
private |
Definition at line 209 of file SamplingDialog.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocShell::GetDocFunc(), ScDocument::GetValue(), mDocument, mInputRange, mOutputAddress, mxSampleSize, mxWithReplacement, ScAddress::Row(), ScDocFunc::SetValueCell(), ScAddress::Tab(), and comphelper::rng::uniform_int_distribution().
Referenced by PerformSampling().
|
private |
Definition at line 287 of file SamplingDialog.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScDocShell::GetDocFunc(), ScDocument::GetValue(), mDocument, mInputRange, mOutputAddress, mxSampleSize, ScAddress::Row(), ScDocFunc::SetValueCell(), ScAddress::Tab(), and comphelper::rng::uniform_real_distribution().
Referenced by PerformSampling().
|
private |
Definition at line 333 of file SamplingDialog.cxx.
References SfxUndoManager::EnterListAction(), ScViewData::GetDocShell(), ScDocShell::GetUndoManager(), ScViewData::GetViewShell(), SfxViewShell::GetViewShellId(), Grid, SfxUndoManager::LeaveListAction(), mViewData, mxKeepOrder, mxPeriodicMethodRadio, mxRandomMethodRadio, PerformPeriodicSampling(), PerformRandomSampling(), PerformRandomSamplingKeepOrder(), ScDocShell::PostPaint(), and ScResId().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 113 of file SamplingDialog.cxx.
References formula::RefEdit::GrabFocus(), m_xDialog, mDialogLostFocus, mpActiveEdit, and ScRefHandler::RefInputDone().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 133 of file SamplingDialog.cxx.
References ADDR_ABS, ADDR_ABS_3D, ScRange::aEnd, ScRange::aStart, ScRange::Format(), ScAddress::Format(), ScDocument::GetAddressConvention(), ScAddress::IsValid(), ScRange::IsValid(), LimitSampleSizeAndPeriod(), mAddressDetails, mCurrentAddress, mInputRange, mOutputAddress, mpActiveEdit, mxButtonOk, mxInputRangeEdit, mxOutputRangeEdit, mxSampleSize, RANGE_ABS_3D, ScRefHandler::RefInputStart(), ScAddress::Row(), and ScAddress::Tab().
|
private |
Definition at line 450 of file SamplingDialog.cxx.
References mxKeepOrder, mxPeriod, mxPeriodicMethodRadio, mxRandomMethodRadio, mxSampleSize, and mxWithReplacement.
Referenced by Init().
|
private |
Definition at line 38 of file SamplingDialog.hxx.
Referenced by GetRangeFromSelection(), and SetReference().
|
private |
Definition at line 41 of file SamplingDialog.hxx.
Referenced by SetReference().
|
private |
Definition at line 46 of file SamplingDialog.hxx.
Referenced by SetActive().
|
private |
Definition at line 35 of file SamplingDialog.hxx.
Referenced by GetRangeFromSelection(), PerformPeriodicSampling(), PerformRandomSampling(), and PerformRandomSamplingKeepOrder().
|
private |
Definition at line 37 of file SamplingDialog.hxx.
Referenced by GetPopulationSize(), GetRangeFromSelection(), PerformPeriodicSampling(), PerformRandomSampling(), PerformRandomSamplingKeepOrder(), and SetReference().
|
private |
Definition at line 44 of file SamplingDialog.hxx.
Referenced by LimitSampleSizeAndPeriod().
|
private |
Definition at line 43 of file SamplingDialog.hxx.
|
private |
Definition at line 39 of file SamplingDialog.hxx.
Referenced by PerformPeriodicSampling(), PerformRandomSampling(), PerformRandomSamplingKeepOrder(), and SetReference().
|
private |
Definition at line 31 of file SamplingDialog.hxx.
Referenced by SetActive(), and SetReference().
|
private |
Definition at line 34 of file SamplingDialog.hxx.
Referenced by GetRangeFromSelection(), and PerformSampling().
|
private |
Definition at line 66 of file SamplingDialog.hxx.
Referenced by Init().
|
private |
Definition at line 65 of file SamplingDialog.hxx.
Referenced by Init(), and SetReference().
|
private |
Definition at line 51 of file SamplingDialog.hxx.
Referenced by Init(), and ScSamplingDialog().
|
private |
Definition at line 50 of file SamplingDialog.hxx.
Referenced by GetRangeFromSelection(), Init(), ScSamplingDialog(), and SetReference().
|
private |
Definition at line 49 of file SamplingDialog.hxx.
Referenced by ScSamplingDialog().
|
private |
Definition at line 62 of file SamplingDialog.hxx.
Referenced by Init(), PerformSampling(), and ToggleSamplingMethod().
|
private |
Definition at line 55 of file SamplingDialog.hxx.
Referenced by Init(), and ScSamplingDialog().
|
private |
Definition at line 54 of file SamplingDialog.hxx.
Referenced by Init(), ScSamplingDialog(), and SetReference().
|
private |
Definition at line 53 of file SamplingDialog.hxx.
Referenced by ScSamplingDialog().
|
private |
Definition at line 58 of file SamplingDialog.hxx.
Referenced by Init(), LimitSampleSizeAndPeriod(), PerformPeriodicSampling(), and ToggleSamplingMethod().
|
private |
Definition at line 63 of file SamplingDialog.hxx.
Referenced by Init(), PerformSampling(), and ToggleSamplingMethod().
|
private |
Definition at line 60 of file SamplingDialog.hxx.
Referenced by Init(), PerformSampling(), and ToggleSamplingMethod().
|
private |
Definition at line 57 of file SamplingDialog.hxx.
Referenced by Init(), LimitSampleSizeAndPeriod(), PerformRandomSampling(), PerformRandomSamplingKeepOrder(), SetReference(), and ToggleSamplingMethod().
|
private |
Definition at line 61 of file SamplingDialog.hxx.
Referenced by Init(), PerformRandomSampling(), and ToggleSamplingMethod().