QDomElement oocell
= oorow.
firstChildElement("table:table-cell");
while (!oocell.isNull()) {
gocool++;
const int cr = qMax(oocell.attribute("table:number-rows-spanned").toInt(),0);
const int cs = qMax(oocell.attribute("table:number-columns-spanned").toInt(),0);
if (qMax(cs,cr) !=0) {
/* value must having min 1 or row or cell */
qtable->mergeCells(gorow,gocool,qMax(cr,1),qMax(cs,1));
}
cell = qtable->cellAt(gorow,gocool);
if (!convertCellTable(oocell,cell,cur,tname,processing)) {
qWarning() << "Error on parse table cell row:" << gorow << " column:" << gocool;
}
oocell = oocell.nextSiblingElement("table:table-cell");
}
QDomElement oocell = oorow.firstChildElement("table:table-cell");
while (!oocell.isNull()) {
gocool++;
const QTextTableCell ctd = qtable->cellAt(gorow,gocool);
const int cr = qMax(oocell.attribute("table:number-rows-spanned").toInt(),0);
const int cs = qMax(oocell.attribute("table:number-columns-spanned").toInt(),0);
if (qMax(cs,cr) !=0) {
/* value must having min 1 or row or cell */
qtable->mergeCells(gorow,gocool,qMax(cr,1),qMax(cs,1));
}
cell = qtable->cellAt(gorow,gocool);
if (!convertCellTable(oocell,cell,cur,tname,processing)) {
qWarning() << "Error on parse table cell row:" << gorow << " column:" << gocool;
}
oocell = oocell.nextSiblingElement("table:table-cell");
}
To copy to clipboard, switch view to plain text mode
Bookmarks