16 #include <strings.hrc>
23 "modules/scalc/ui/fourieranalysisdialog.ui",
24 "FourierAnalysisDialog")
25 , maLabelAddr(
ScAddress::INITIALIZE_INVALID)
26 , maActualInputRange(
ScAddress::INITIALIZE_INVALID)
29 , mbUse3DAddresses(false)
30 , mbGroupedByColumn(true)
34 , mxWithLabelsCheckBox(m_xBuilder->weld_check_button(
"withlabels-check"))
35 , mxInverseCheckBox(m_xBuilder->weld_check_button(
"inverse-check"))
36 , mxPolarCheckBox(m_xBuilder->weld_check_button(
"polar-check"))
37 , mxMinMagnitudeField(m_xBuilder->weld_spin_button(
"minmagnitude-spin"))
38 , mxErrorMessage(m_xBuilder->weld_label(
"error-message"))
64 :
ScResId(STR_FOURIER_TRANSFORM));
68 if (aLabel.startsWith(
"="))
130 :
ScResId(STR_MESSAGE_INVALID_NUMROWS);
161 if (nComponents == 1)
185 if (nDeciBels <= -150)
188 mfMinMag = pow(10.0, static_cast<double>(nDeciBels) / 10.0);
207 rLabel =
ScResId(STR_INPUT_DATA_RANGE) +
" : " + aDataSrc;
213 static constexpr OUStringLiteral aSep(
u";");
228 ValidateDialogInput();
#define LINK(Instance, Class, Member)
SC_DLLPUBLIC void Format(OStringBuffer &r, ScRefFlags nFlags, const ScDocument *pDocument=nullptr, const Details &rDetails=detailsOOOa1) const
std::unique_ptr< weld::Label > mxErrorMessage
void writeFormula(const OUString &aFormula)
void writeString(const OUString &aString)
std::unique_ptr< weld::CheckButton > mxInverseCheckBox
void getDataLabel(OUString &rLabel)
std::unique_ptr< weld::CheckButton > mxPolarCheckBox
ScAddress mMinimumAddress
std::unique_ptr< weld::CheckButton > mxWithLabelsCheckBox
formula::FormulaGrammar::AddressConvention eConv
SC_DLLPUBLIC SCROW MaxRow() const
size_t SCSIZE
size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to ...
void writeBoldString(const OUString &aString)
void writeMatrixFormula(const OUString &aFormula, SCCOL nCols=1, SCROW nRows=1)
virtual ScRange ApplyOutput(ScDocShell *pDocShell) override
ScAddress mMaximumAddress
void genFormula(OUString &rFormula)
void IncCol(SCCOL nDelta=1)
virtual void Close() override
SC_DLLPUBLIC OUString Format(const ScDocument &rDocument, ScRefFlags nFlags=ScRefFlags::ZERO, const ScAddress::Details &rDetails=ScAddress::detailsOOOa1, bool bFullAddressNotation=false) const
Returns string with formatted cell range from aStart to aEnd, according to provided address conventio...
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
void IncRow(SCROW nDelta=1)
OUString ScResId(const char *pId)
ScRange maActualInputRange
SC_DLLPUBLIC void PutInOrder()
virtual const char * GetUndoNameId() override
std::unique_ptr< weld::SpinButton > mxMinMagnitudeField
Reference< XExecutableDialog > m_xDialog
IMPL_LINK_NOARG(ScFourierAnalysisDialog, CheckBoxHdl, weld::ToggleButton &, void)
ScFourierAnalysisDialog(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData)
bool DoClose(sal_uInt16 nId)
virtual ~ScFourierAnalysisDialog() override
static sal_uInt16 GetChildWindowId()
virtual bool InputRangesValid() override