KReport
20 #include "KoSimpleOdsSheet.h"
21 #include <KoXmlWriter.h>
23 KoSimpleOdsSheet::KoSimpleOdsSheet()
28 KoSimpleOdsSheet::~KoSimpleOdsSheet()
33 void KoSimpleOdsSheet::addCell(
long row,
long col, KoSimpleOdsCell *cell)
35 m_model.setItem(row, col, cell);
38 void KoSimpleOdsSheet::setName(
const QString& name)
43 void KoSimpleOdsSheet::saveSheet(KoXmlWriter *writer)
45 writer->startElement(
"table:table");
46 writer->addAttribute(
"table:name", (m_name.isEmpty() ?
"Sheet" : m_name ));
49 for (
long r = 0; r < m_model.rowCount(); ++r) {
50 writer->startElement(
"table:table-row");
51 for (
long c = 0; c < m_model.columnCount(); ++c) {
52 KoSimpleOdsCell *cell =
dynamic_cast<KoSimpleOdsCell*
>(m_model.item(r,c));
54 cell->writeCellData(writer);
56 KoSimpleOdsCell::writeCellData(writer,
QString());
const char * name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 04:09:42 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.