! * Returns the sheet object named \a sheetName. */
| 1103 | * Returns the sheet object named \a sheetName. |
| 1104 | */ |
| 1105 | AbstractSheet *Document::sheet(const QString &sheetName) const |
| 1106 | { |
| 1107 | Q_D(const Document); |
| 1108 | return d->workbook->sheet(sheetNames().indexOf(sheetName)); |
| 1109 | } |
| 1110 | |
| 1111 | /*! |
| 1112 | * Creates and append an sheet with the given \a name and \a type. |