Export mergedCells API

This commit is contained in:
Debao Zhang
2014-01-08 16:18:39 +08:00
parent 4f3e8f92c1
commit 01c4c2e4f4
3 changed files with 17 additions and 2 deletions
+10
View File
@@ -1122,6 +1122,16 @@ int Worksheet::unmergeCells(const QString &range)
return unmergeCells(CellRange(cell1.x(), cell1.y(), cell2.x(), cell2.y()));
}
/*!
Returns all the merged cells
*/
QList<CellRange> Worksheet::mergedCells() const
{
Q_D(const Worksheet);
return d->merges;
}
void Worksheet::saveToXmlFile(QIODevice *device) const
{
Q_D(const Worksheet);
+1
View File
@@ -96,6 +96,7 @@ public:
int mergeCells(const CellRange &range, const Format &format=Format());
int unmergeCells(const QString &range);
int unmergeCells(const CellRange &range);
QList<CellRange> mergedCells() const;
bool setRow(int row, double height, const Format &format=Format(), bool hidden=false);
bool setColumn(int colFirst, int colLast, double width, const Format &format=Format(), bool hidden=false);