import_cond_format_value

Defined in header: <orcus/spreadsheet/import_interface_cond_format.hpp>

class import_cond_format_value

Interface for importing a single value of a conditional format rule.

A value is either an operand of a condition rule, or a threshold of a color scale, data bar or icon set rule. It consists of a formula, number or string, a value type, and an optional color.

Public Functions

virtual ~import_cond_format_value()
virtual void set_formula(std::string_view formula) = 0

Set the content of the value as a formula, number or string.

Parameters:

formula – Formula, number or string.

virtual void set_type(cond_format_value_type_t type) = 0

Set the type of the value. This is only applicable when the value is a threshold of a color scale, data bar or icon set rule.

Parameters:

type – Type of the value.

virtual void set_color(color_elem_t alpha, color_elem_t red, color_elem_t green, color_elem_t blue) = 0

Set the color of the value. This is only applicable when the value is a threshold of a color scale rule.

virtual void commit() = 0

Commit the value to the parent rule.