1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| void MakeActive(); size_t NumCells() const { return m_Cells.size(); } unsigned16_t GetIndex() const { return sheetIndex; }
cell_t* FindCell(unsigned32_t row, unsigned32_t col) const; cell_t* FindCellOrMakeBlank(unsigned32_t row, unsigned32_t col);
void GetFirstLastRowsAndColumns(unsigned32_t* first_row, unsigned32_t* last_row, unsigned32_t* first_col, unsigned32_t* last_col);
void merge(unsigned32_t first_row, unsigned32_t first_col, unsigned32_t last_row, unsigned32_t last_col); void colwidth(unsigned32_t col, unsigned16_t width, xf_t* pxformat = NULL); void rowheight(unsigned32_t row, unsigned16_t heightInTwips, xf_t* pxformat = NULL);
void defaultRowHeight(unsigned16_t width, bool hidden = false) { defRowHeight = width; defRowsHidden = hidden; } void defaultColwidth(unsigned16_t width) { defColWidth = width; }
formula_t* formula_data();
range* rangegroup(unsigned32_t row1, unsigned32_t col1, unsigned32_t row2, unsigned32_t col2);
cell_t* blank(unsigned32_t row, unsigned32_t col, xf_t* pxformat = NULL);
cell_t* label(unsigned32_t row, unsigned32_t col, const std::string& strlabel, xf_t* pxformat = NULL); cell_t* label(unsigned32_t row, unsigned32_t col, const xlslib_strings::ustring& strlabel, xf_t* pxformat = NULL);
cell_t* number(unsigned32_t row, unsigned32_t col, double numval, format_number_t fmtval, xf_t* pxformat); cell_t* number(unsigned32_t row, unsigned32_t col, double numval, xf_t* pxformat = NULL);
cell_t* number(unsigned32_t row, unsigned32_t col, signed32_t numval, xf_t* pxformat = NULL); cell_t* number(unsigned32_t row, unsigned32_t col, unsigned32_t numval, xf_t* pxformat = NULL);
cell_t* boolean(unsigned32_t row, unsigned32_t col,bool boolval, xf_t* pxformat = NULL);
cell_t* error(unsigned32_t row, unsigned32_t col, errcode_t errorcode, xf_t* pxformat = NULL);
cell_t* note(unsigned32_t row, unsigned32_t col, const std::string& remark, const std::string& author, xf_t* pxformat = NULL); cell_t* note(unsigned32_t row, unsigned32_t col, const xlslib_strings::ustring& remark, const xlslib_strings::ustring& author, xf_t* pxformat = NULL);
cell_t* formula(unsigned32_t row, unsigned32_t col, expression_node_t* expression_root, bool auto_destruct_expression_tree = false, xf_t* pxformat = NULL); cell_t* formula(unsigned32_t row, unsigned32_t col, formula_t *formula, xf_t* pxformat = NULL);
void validate(const range_t *crange, unsigned32_t options, const formula_t *cond1 = NULL, const formula_t *cond2 = NULL,const std::string& promptTitle = std::string(), const std::string& promptText = std::string(), const std::string& errorTitle = std::string(), const std::string& errorText = std::string()); void validate(const range_t *crange, unsigned32_t options,const formula_t *cond1 = NULL, const formula_t *cond2 = NULL,const xlslib_strings::ustring& promptTitle = xlslib_strings::ustring(), const xlslib_strings::ustring& promptText = xlslib_strings::ustring(), const xlslib_strings::ustring& errorTitle = xlslib_strings::ustring(), const xlslib_strings::ustring& errorText = xlslib_strings::ustring());
void hyperLink(const cell_t *cell, const std::string& url, const std::string& mark = std::string()); void hyperLink(const cell_t *cell, const xlslib_strings::ustring& url, const xlslib_strings::ustring& mark = xlslib_strings::ustring());
|