QGIS API Documentation  2.99.0-Master (c558d51)
qgscomposertexttable.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgscomposertexttable.h
3  ----------------------
4  begin : April 2010
5  copyright : (C) 2010 by Marco Hugentobler
6  email : marco at hugis dot net
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSCOMPOSERTEXTTABLE_H
19 #define QGSCOMPOSERTEXTTABLE_H
20 
21 #include "qgscomposertablev2.h"
22 
27 class CORE_EXPORT QgsComposerTextTableV2 : public QgsComposerTableV2
28 {
29 
30  Q_OBJECT
31 
32  public:
33  QgsComposerTextTableV2( QgsComposition* c, bool createUndoCommands );
35 
43  void addRow( const QStringList& row );
44 
49  void setContents( const QList< QStringList >& contents );
50 
51  bool getTableContents( QgsComposerTableContents &contents ) override;
52 
53  virtual void addFrame( QgsComposerFrame* frame, bool recalcFrameSizes = true ) override;
54 
55  private:
57  QList< QStringList > mRowText;
58 };
59 
60 #endif // QGSCOMPOSERTEXTTABLE_H
A text table item that reads text from string lists.
QList< QgsComposerTableRow > QgsComposerTableContents
List of QgsComposerTableRows, representing rows and column cell contents for a QgsComposerTable.
virtual void addFrame(QgsComposerFrame *frame, bool recalcFrameSizes=true)=0
Adds a frame to the multiframe.
A class to display a table in the print composer, and allow the table to span over multiple frames...
Graphics scene for map printing.
Frame item for a composer multiframe item.
virtual bool getTableContents(QgsComposerTableContents &contents)=0
Fetches the contents used for the cells in the table.