Export mergedCells API
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user