30 #include <xlnt/xlnt_config.hpp> 31 #include <xlnt/utils/optional.hpp> 176 static bool is_builtin_format(std::size_t builtin_id);
182 static const number_format &from_builtin_id(std::size_t builtin_id);
204 number_format(
const std::string &code, std::size_t custom_id);
209 void format_string(
const std::string &format_code);
214 void format_string(
const std::string &format_code, std::size_t custom_id);
219 std::string format_string()
const;
229 void id(std::size_t
id);
234 std::size_t id()
const;
239 std::string
format(
const std::string &text)
const;
245 std::string format(
double number,
calendar base_date)
const;
250 bool is_date_format()
const;
271 std::string format_string_;
Enumerates the possible types a cell can be determined by it's current value.
Definition: cell.hpp:36
bool operator!=(std::nullptr_t, const cell &cell)
Returns true if this cell is initialized.
bool operator==(std::nullptr_t, const cell &cell)
Returns true if this cell is uninitialized.
calendar
An enumeration of possible base dates. Dates in Excel are stored as days since this base date...
Definition: calendar.hpp:35