23 pSfxBindings, pChildWindow, pParent, rViewData,
24 "modules/scalc/ui/exponentialsmoothingdialog.ui",
25 "ExponentialSmoothingDialog")
26 , mxSmoothingFactor(m_xBuilder->weld_spin_button(
"smoothing-factor-spin"))
41 return STR_EXPONENTIAL_SMOOTHING_UNDO_NAME;
65 std::unique_ptr<DataRangeIterator> pIterator;
71 for( ; pIterator->hasNext(); pIterator->next() )
75 ScRange aCurrentRange = pIterator->get();
82 aTemplate.
applyNumber(
u"%NUMBER%", pIterator->index() + 1);
104 for (; aDataCellIterator.
hasNext(); aDataCellIterator.
next())
106 aTemplate.
setTemplate(
"=%VALUE% * %PREVIOUS_INPUT% + (1 - %VALUE%) * %PREVIOUS_OUTPUT%");
void writeFormula(const OUString &aFormula)
void writeBoldString(const OUString &aString)
void writeValue(double aValue)
ScAddress current(SCCOL aRelativeCol=0, SCROW aRelativeRow=0, SCTAB aRelativeTab=0)
void push(SCCOL aRelativeCol=0, SCROW aRelativeRow=0, SCTAB aRelativeTab=0)
ScAddress mMaximumAddress
ScAddress mMinimumAddress
static sal_uInt16 GetChildWindowId()
ScExponentialSmoothingDialog(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData)
virtual void Close() override
std::unique_ptr< weld::SpinButton > mxSmoothingFactor
virtual ~ScExponentialSmoothingDialog() override
virtual ScRange ApplyOutput(ScDocShell *pDocShell) override
virtual TranslateId GetUndoNameId() override
bool DoClose(sal_uInt16 nId)
OUString ScResId(TranslateId aId)
formula::FormulaGrammar::AddressConvention eConv