LibreOffice Module sc (master) 1
|
#include <TableFillingAndNavigationTools.hxx>
Public Member Functions | |
FormulaTemplate (ScDocument *pDoc) | |
void | setTemplate (const OUString &aTemplate) |
void | setTemplate (const char *aTemplate) |
const OUString & | getTemplate () |
void | autoReplaceRange (const OUString &aVariable, const ScRange &rRange) |
void | autoReplaceAddress (const OUString &aVariable, ScAddress const &aAddress) |
void | autoReplaceUses3D (bool bUse3D) |
void | applyRange (std::u16string_view aVariable, const ScRange &aRange, bool b3D=true) |
void | applyRangeList (std::u16string_view aVariable, const ScRangeList &aRangeList, sal_Unicode cDelimiter) |
void | applyAddress (std::u16string_view aVariable, const ScAddress &aAddress, bool b3D=true) |
void | applyString (std::u16string_view aVariable, std::u16string_view aValue) |
void | applyNumber (std::u16string_view aVariable, sal_Int32 aValue) |
Private Types | |
typedef std::map< OUString, ScRange > | RangeReplacementMap |
typedef std::map< OUString, ScAddress > | AddressReplacementMap |
Private Attributes | |
OUString | mTemplate |
ScDocument * | mpDoc |
bool | mbUse3D |
AddressReplacementMap | mAddressReplacementMap |
RangeReplacementMap | mRangeReplacementMap |
Definition at line 19 of file TableFillingAndNavigationTools.hxx.
|
private |
Definition at line 27 of file TableFillingAndNavigationTools.hxx.
|
private |
Definition at line 26 of file TableFillingAndNavigationTools.hxx.
FormulaTemplate::FormulaTemplate | ( | ScDocument * | pDoc | ) |
Definition at line 24 of file TableFillingAndNavigationTools.cxx.
void FormulaTemplate::applyAddress | ( | std::u16string_view | aVariable, |
const ScAddress & | aAddress, | ||
bool | b3D = true |
||
) |
Definition at line 77 of file TableFillingAndNavigationTools.cxx.
References ADDR_ABS, ADDR_ABS_3D, ScAddress::Format(), ScDocument::GetAddressConvention(), mpDoc, and mTemplate.
Referenced by ScAnalysisOfVarianceDialog::AnovaSingleFactor(), ScAnalysisOfVarianceDialog::AnovaTwoFactor(), ScExponentialSmoothingDialog::ApplyOutput(), and getTemplate().
void FormulaTemplate::applyNumber | ( | std::u16string_view | aVariable, |
sal_Int32 | aValue | ||
) |
Definition at line 89 of file TableFillingAndNavigationTools.cxx.
References mTemplate.
Referenced by ScDescriptiveStatisticsDialog::ApplyOutput(), ScExponentialSmoothingDialog::ApplyOutput(), ScMatrixComparisonGenerator::ApplyOutput(), ScMovingAverageDialog::ApplyOutput(), and ScAnalysisOfVarianceDialog::RowColumn().
void FormulaTemplate::applyRange | ( | std::u16string_view | aVariable, |
const ScRange & | aRange, | ||
bool | b3D = true |
||
) |
Definition at line 63 of file TableFillingAndNavigationTools.cxx.
References ScRange::Format(), ScDocument::GetAddressConvention(), mpDoc, mTemplate, RANGE_ABS, and RANGE_ABS_3D.
Referenced by ScDescriptiveStatisticsDialog::ApplyOutput(), ScExponentialSmoothingDialog::ApplyOutput(), ScMovingAverageDialog::ApplyOutput(), getTemplate(), and ScAnalysisOfVarianceDialog::RowColumn().
void FormulaTemplate::applyRangeList | ( | std::u16string_view | aVariable, |
const ScRangeList & | aRangeList, | ||
sal_Unicode | cDelimiter | ||
) |
Definition at line 70 of file TableFillingAndNavigationTools.cxx.
References cDelimiter, ScRangeList::Format(), ScDocument::GetAddressConvention(), mpDoc, mTemplate, and RANGE_ABS_3D.
Referenced by ScAnalysisOfVarianceDialog::AnovaSingleFactor().
void FormulaTemplate::applyString | ( | std::u16string_view | aVariable, |
std::u16string_view | aValue | ||
) |
Definition at line 84 of file TableFillingAndNavigationTools.cxx.
References mTemplate.
Referenced by ScAnalysisOfVarianceDialog::AnovaSingleFactor().
void FormulaTemplate::autoReplaceAddress | ( | const OUString & | aVariable, |
ScAddress const & | aAddress | ||
) |
Definition at line 57 of file TableFillingAndNavigationTools.cxx.
References mAddressReplacementMap.
Referenced by ScAnalysisOfVarianceDialog::AnovaSingleFactor(), ScAnalysisOfVarianceDialog::AnovaTwoFactor(), ScChiSquareTestDialog::ApplyOutput(), ScFTestDialog::ApplyOutput(), ScTTestDialog::ApplyOutput(), ScZTestDialog::ApplyOutput(), ScRegressionDialog::WriteRawRegressionResults(), ScRegressionDialog::WriteRegressionANOVAResults(), ScRegressionDialog::WriteRegressionEstimatesWithCI(), and ScRegressionDialog::WriteRegressionStatistics().
void FormulaTemplate::autoReplaceRange | ( | const OUString & | aVariable, |
const ScRange & | rRange | ||
) |
Definition at line 52 of file TableFillingAndNavigationTools.cxx.
References mRangeReplacementMap.
Referenced by ScAnalysisOfVarianceDialog::AnovaSingleFactor(), ScAnalysisOfVarianceDialog::AnovaTwoFactor(), ScChiSquareTestDialog::ApplyOutput(), ScFourierAnalysisDialog::ApplyOutput(), ScFTestDialog::ApplyOutput(), ScRegressionDialog::ApplyOutput(), ScTTestDialog::ApplyOutput(), ScZTestDialog::ApplyOutput(), ScRegressionDialog::WritePredictionsWithResiduals(), ScRegressionDialog::WriteRawRegressionResults(), and ScRegressionDialog::WriteRegressionEstimatesWithCI().
|
inline |
Definition at line 41 of file TableFillingAndNavigationTools.hxx.
References mbUse3D.
Referenced by ScFourierAnalysisDialog::ApplyOutput(), and ScRegressionDialog::ApplyOutput().
const OUString & FormulaTemplate::getTemplate | ( | ) |
Definition at line 39 of file TableFillingAndNavigationTools.cxx.
References applyAddress(), applyRange(), mAddressReplacementMap, mbUse3D, mRangeReplacementMap, and mTemplate.
Referenced by ScAnalysisOfVarianceDialog::AnovaSingleFactor(), ScAnalysisOfVarianceDialog::AnovaTwoFactor(), ScChiSquareTestDialog::ApplyOutput(), ScDescriptiveStatisticsDialog::ApplyOutput(), ScExponentialSmoothingDialog::ApplyOutput(), ScFourierAnalysisDialog::ApplyOutput(), ScFTestDialog::ApplyOutput(), ScMatrixComparisonGenerator::ApplyOutput(), ScMovingAverageDialog::ApplyOutput(), ScTTestDialog::ApplyOutput(), ScZTestDialog::ApplyOutput(), ScAnalysisOfVarianceDialog::RowColumn(), ScRegressionDialog::WritePredictionsWithResiduals(), ScRegressionDialog::WriteRawRegressionResults(), ScRegressionDialog::WriteRegressionANOVAResults(), ScRegressionDialog::WriteRegressionEstimatesWithCI(), and ScRegressionDialog::WriteRegressionStatistics().
void FormulaTemplate::setTemplate | ( | const char * | aTemplate | ) |
Definition at line 34 of file TableFillingAndNavigationTools.cxx.
References mTemplate.
void FormulaTemplate::setTemplate | ( | const OUString & | aTemplate | ) |
Definition at line 29 of file TableFillingAndNavigationTools.cxx.
References mTemplate.
Referenced by ScAnalysisOfVarianceDialog::AnovaSingleFactor(), ScAnalysisOfVarianceDialog::AnovaTwoFactor(), ScChiSquareTestDialog::ApplyOutput(), ScDescriptiveStatisticsDialog::ApplyOutput(), ScExponentialSmoothingDialog::ApplyOutput(), ScFourierAnalysisDialog::ApplyOutput(), ScFTestDialog::ApplyOutput(), ScMatrixComparisonGenerator::ApplyOutput(), ScMovingAverageDialog::ApplyOutput(), ScTTestDialog::ApplyOutput(), ScZTestDialog::ApplyOutput(), ScAnalysisOfVarianceDialog::RowColumn(), ScRegressionDialog::WritePredictionsWithResiduals(), ScRegressionDialog::WriteRawRegressionResults(), ScRegressionDialog::WriteRegressionANOVAResults(), ScRegressionDialog::WriteRegressionEstimatesWithCI(), and ScRegressionDialog::WriteRegressionStatistics().
|
private |
Definition at line 29 of file TableFillingAndNavigationTools.hxx.
Referenced by autoReplaceAddress(), and getTemplate().
|
private |
Definition at line 24 of file TableFillingAndNavigationTools.hxx.
Referenced by autoReplaceUses3D(), and getTemplate().
|
private |
Definition at line 23 of file TableFillingAndNavigationTools.hxx.
Referenced by applyAddress(), applyRange(), and applyRangeList().
|
private |
Definition at line 30 of file TableFillingAndNavigationTools.hxx.
Referenced by autoReplaceRange(), and getTemplate().
|
private |
Definition at line 22 of file TableFillingAndNavigationTools.hxx.
Referenced by applyAddress(), applyNumber(), applyRange(), applyRangeList(), applyString(), getTemplate(), and setTemplate().