MCPcopy Create free account
hub / github.com/KDE/labplot / readRichStringPart

Method readRichStringPart

src/3rdparty/QXlsx/source/xlsxsharedstrings.cpp:263–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void 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
282void SharedStrings::readPlainStringPart(QXmlStreamReader &reader, RichString &richString)
283{

Callers

nothing calls this directly

Calls 3

atEndMethod · 0.80
addFragmentMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected