! Convert the Reference to string notation, such as "A1" or "$A$1". If current object is invalid, an empty string will be returned. */
| 129 | If current object is invalid, an empty string will be returned. |
| 130 | */ |
| 131 | QString CellReference::toString(bool row_abs, bool col_abs) const |
| 132 | { |
| 133 | if (!isValid()) |
| 134 | return QString(); |
| 135 | |
| 136 | QString cell_str; |
| 137 | if (col_abs) |
| 138 | cell_str.append(QLatin1Char('$')); |
| 139 | cell_str.append(col_to_name(_column)); |
| 140 | if (row_abs) |
| 141 | cell_str.append(QLatin1Char('$')); |
| 142 | cell_str.append(QString::number(_row)); |
| 143 | return cell_str; |
| 144 | } |
| 145 | |
| 146 | /*! |
| 147 | * Returns true if the Reference is valid. |
nothing calls this directly
no test coverage detected