| 240 | } |
| 241 | |
| 242 | void SharedStrings::readString(QXmlStreamReader &reader) |
| 243 | { |
| 244 | Q_ASSERT(reader.name() == QLatin1String("si")); |
| 245 | |
| 246 | RichString richString; |
| 247 | |
| 248 | while (!reader.atEnd() && !(reader.name() == QLatin1String("si") && reader.tokenType() == QXmlStreamReader::EndElement)) { |
| 249 | reader.readNextStartElement(); |
| 250 | if (reader.tokenType() == QXmlStreamReader::StartElement) { |
| 251 | if (reader.name() == QLatin1String("r")) |
| 252 | readRichStringPart(reader, richString); |
| 253 | else if (reader.name() == QLatin1String("t")) |
| 254 | readPlainStringPart(reader, richString); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | int idx = m_stringList.size(); |
| 259 | m_stringTable[richString] = XlsxSharedStringInfo(idx, 0); |
| 260 | m_stringList.append(richString); |
| 261 | } |
| 262 | |
| 263 | void SharedStrings::readRichStringPart(QXmlStreamReader &reader, RichString &richString) |
| 264 | { |