KReport
20#include "KoSimpleOdsSheet.h"
21#include <KoXmlWriter.h>
23KoSimpleOdsSheet::KoSimpleOdsSheet()
28KoSimpleOdsSheet::~KoSimpleOdsSheet()
33void KoSimpleOdsSheet::addCell(
long row,
long col, KoSimpleOdsCell *cell)
35 m_model.setItem(row, col, cell);
38void KoSimpleOdsSheet::setName(
const QString& name)
43void 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());
QString name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:26 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.