| 261 | } |
| 262 | |
| 263 | void SharedStrings::readRichStringPart(QXmlStreamReader &reader, RichString &richString) |
| 264 | { |
| 265 | Q_ASSERT(reader.name() == QLatin1String("r")); |
| 266 | |
| 267 | QString text; |
| 268 | Format format; |
| 269 | while (!reader.atEnd() && !(reader.name() == QLatin1String("r") && reader.tokenType() == QXmlStreamReader::EndElement)) { |
| 270 | reader.readNextStartElement(); |
| 271 | if (reader.tokenType() == QXmlStreamReader::StartElement) { |
| 272 | if (reader.name() == QLatin1String("rPr")) { |
| 273 | format = readRichStringPart_rPr(reader); |
| 274 | } else if (reader.name() == QLatin1String("t")) { |
| 275 | text = reader.readElementText(); |
| 276 | } |
| 277 | } |
| 278 | } |
| 279 | richString.addFragment(text, format); |
| 280 | } |
| 281 | |
| 282 | void SharedStrings::readPlainStringPart(QXmlStreamReader &reader, RichString &richString) |
| 283 | { |
nothing calls this directly
no test coverage detected