|
OpenXLSX 1.9.1
|
#include <XLDataValidation.hpp>
Public Member Functions | |
| XLDataValidation () | |
| XLDataValidation (const XMLNode &node) | |
| bool | empty () const |
| XLDataValidation & | requireList (const std::vector< std::string > &list, bool allowBlank=true) |
| Fluent API for setting a dropdown list validation. | |
| XLDataValidation & | requireList (std::string_view formula, bool allowBlank=true) |
| Fluent API for setting a dropdown list validation using a formula or range reference. | |
| XLDataValidation & | setErrorAlert (std::string_view title, std::string_view message, XLDataValidationErrorStyle style=XLDataValidationErrorStyle::Stop) |
| XLDataValidation & | setPromptMessage (std::string_view title, std::string_view message) |
| XLDataValidationConfig | config () const |
| void | applyConfig (const XLDataValidationConfig &config) |
| std::string | sqref () const |
| XLDataValidationType | type () const |
| XLDataValidationOperator | operator_ () const |
| bool | allowBlank () const |
| std::string | formula1 () const |
| std::string | formula2 () const |
| bool | showDropDown () const |
| bool | showInputMessage () const |
| bool | showErrorMessage () const |
| XLIMEMode | imeMode () const |
| std::string | promptTitle () const |
| std::string | prompt () const |
| std::string | errorTitle () const |
| std::string | error () const |
| XLDataValidationErrorStyle | errorStyle () const |
| void | setSqref (std::string_view sqref) |
| void | addCell (const XLCellReference &ref) |
| void | addCell (const std::string &ref) |
| void | addRange (const XLCellReference &topLeft, const XLCellReference &bottomRight) |
| void | addRange (const std::string &range) |
| void | removeCell (const XLCellReference &ref) |
| void | removeCell (const std::string &ref) |
| void | removeRange (const XLCellReference &topLeft, const XLCellReference &bottomRight) |
| void | removeRange (const std::string &range) |
| void | setType (XLDataValidationType type) |
| void | setOperator (XLDataValidationOperator op) |
| void | setAllowBlank (bool allow) |
| void | setFormula1 (std::string_view formula) |
| void | setFormula2 (std::string_view formula) |
| void | setPrompt (std::string_view title, std::string_view msg) |
| void | setError (std::string_view title, std::string_view msg, XLDataValidationErrorStyle style=XLDataValidationErrorStyle::Stop) |
| void | setShowDropDown (bool show) |
| void | setShowInputMessage (bool show) |
| void | setShowErrorMessage (bool show) |
| void | setIMEMode (XLIMEMode mode) |
| void | setWholeNumberRange (double min, double max) |
| void | setDecimalRange (double min, double max) |
| void | setDateRange (std::string_view min, std::string_view max) |
| void | setTimeRange (std::string_view min, std::string_view max) |
| void | setTextLengthRange (int min, int max) |
| void | setList (const std::vector< std::string > &items) |
| void | setReferenceDropList (std::string_view targetSheet, std::string_view range) |
|
inline |
|
inlineexplicit |
| void OpenXLSX::XLDataValidation::addCell | ( | const std::string & | ref | ) |
| void OpenXLSX::XLDataValidation::addCell | ( | const XLCellReference & | ref | ) |
| void OpenXLSX::XLDataValidation::addRange | ( | const std::string & | range | ) |
| void OpenXLSX::XLDataValidation::addRange | ( | const XLCellReference & | topLeft, |
| const XLCellReference & | bottomRight | ||
| ) |
| bool OpenXLSX::XLDataValidation::allowBlank | ( | ) | const |
| void OpenXLSX::XLDataValidation::applyConfig | ( | const XLDataValidationConfig & | config | ) |
| XLDataValidationConfig OpenXLSX::XLDataValidation::config | ( | ) | const |
|
inline |
| std::string OpenXLSX::XLDataValidation::error | ( | ) | const |
| XLDataValidationErrorStyle OpenXLSX::XLDataValidation::errorStyle | ( | ) | const |
| std::string OpenXLSX::XLDataValidation::errorTitle | ( | ) | const |
| std::string OpenXLSX::XLDataValidation::formula1 | ( | ) | const |
| std::string OpenXLSX::XLDataValidation::formula2 | ( | ) | const |
| XLIMEMode OpenXLSX::XLDataValidation::imeMode | ( | ) | const |
| XLDataValidationOperator OpenXLSX::XLDataValidation::operator_ | ( | ) | const |
| std::string OpenXLSX::XLDataValidation::prompt | ( | ) | const |
| std::string OpenXLSX::XLDataValidation::promptTitle | ( | ) | const |
| void OpenXLSX::XLDataValidation::removeCell | ( | const std::string & | ref | ) |
| void OpenXLSX::XLDataValidation::removeCell | ( | const XLCellReference & | ref | ) |
| void OpenXLSX::XLDataValidation::removeRange | ( | const std::string & | range | ) |
| void OpenXLSX::XLDataValidation::removeRange | ( | const XLCellReference & | topLeft, |
| const XLCellReference & | bottomRight | ||
| ) |
| XLDataValidation & OpenXLSX::XLDataValidation::requireList | ( | const std::vector< std::string > & | list, |
| bool | allowBlank = true |
||
| ) |
Fluent API for setting a dropdown list validation.
| list | A vector of strings to show in the dropdown. |
| allowBlank | Allows blank cells. |
| XLDataValidation & OpenXLSX::XLDataValidation::requireList | ( | std::string_view | formula, |
| bool | allowBlank = true |
||
| ) |
Fluent API for setting a dropdown list validation using a formula or range reference.
| formula | Reference string (e.g. "$A$1:$A$10" or "Config!$B$1:$B$5"). |
| allowBlank | Allows blank cells. |
| void OpenXLSX::XLDataValidation::setAllowBlank | ( | bool | allow | ) |
| void OpenXLSX::XLDataValidation::setDateRange | ( | std::string_view | min, |
| std::string_view | max | ||
| ) |
| void OpenXLSX::XLDataValidation::setDecimalRange | ( | double | min, |
| double | max | ||
| ) |
| void OpenXLSX::XLDataValidation::setError | ( | std::string_view | title, |
| std::string_view | msg, | ||
| XLDataValidationErrorStyle | style = XLDataValidationErrorStyle::Stop |
||
| ) |
| XLDataValidation & OpenXLSX::XLDataValidation::setErrorAlert | ( | std::string_view | title, |
| std::string_view | message, | ||
| XLDataValidationErrorStyle | style = XLDataValidationErrorStyle::Stop |
||
| ) |
| void OpenXLSX::XLDataValidation::setFormula1 | ( | std::string_view | formula | ) |
| void OpenXLSX::XLDataValidation::setFormula2 | ( | std::string_view | formula | ) |
| void OpenXLSX::XLDataValidation::setIMEMode | ( | XLIMEMode | mode | ) |
| void OpenXLSX::XLDataValidation::setList | ( | const std::vector< std::string > & | items | ) |
| void OpenXLSX::XLDataValidation::setOperator | ( | XLDataValidationOperator | op | ) |
| void OpenXLSX::XLDataValidation::setPrompt | ( | std::string_view | title, |
| std::string_view | msg | ||
| ) |
| XLDataValidation & OpenXLSX::XLDataValidation::setPromptMessage | ( | std::string_view | title, |
| std::string_view | message | ||
| ) |
| void OpenXLSX::XLDataValidation::setReferenceDropList | ( | std::string_view | targetSheet, |
| std::string_view | range | ||
| ) |
| void OpenXLSX::XLDataValidation::setShowDropDown | ( | bool | show | ) |
| void OpenXLSX::XLDataValidation::setShowErrorMessage | ( | bool | show | ) |
| void OpenXLSX::XLDataValidation::setShowInputMessage | ( | bool | show | ) |
| void OpenXLSX::XLDataValidation::setSqref | ( | std::string_view | sqref | ) |
| void OpenXLSX::XLDataValidation::setTextLengthRange | ( | int | min, |
| int | max | ||
| ) |
| void OpenXLSX::XLDataValidation::setTimeRange | ( | std::string_view | min, |
| std::string_view | max | ||
| ) |
| void OpenXLSX::XLDataValidation::setType | ( | XLDataValidationType | type | ) |
| void OpenXLSX::XLDataValidation::setWholeNumberRange | ( | double | min, |
| double | max | ||
| ) |
| bool OpenXLSX::XLDataValidation::showDropDown | ( | ) | const |
| bool OpenXLSX::XLDataValidation::showErrorMessage | ( | ) | const |
| bool OpenXLSX::XLDataValidation::showInputMessage | ( | ) | const |
| std::string OpenXLSX::XLDataValidation::sqref | ( | ) | const |
| XLDataValidationType OpenXLSX::XLDataValidation::type | ( | ) | const |