QGIS API Documentation  2.99.0-Master (f867b65)
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 "qgis_core.h"
22 #include "qgis.h"
23 #include "qgscomposertablev2.h"
24 
29 class CORE_EXPORT QgsComposerTextTableV2 : public QgsComposerTableV2
30 {
31 
32  Q_OBJECT
33 
34  public:
35  QgsComposerTextTableV2( QgsComposition *c SIP_TRANSFERTHIS, bool createUndoCommands );
36 
44  void addRow( const QStringList &row );
45 
50  void setContents( const QList< QStringList > &contents );
51 
52  bool getTableContents( QgsComposerTableContents &contents ) override;
53 
54  virtual void addFrame( QgsComposerFrame *frame, bool recalcFrameSizes = true ) override;
55 
56  private:
58  QList< QStringList > mRowText;
59 };
60 
61 #endif // QGSCOMPOSERTEXTTABLE_H
A text table item that reads text from string lists.
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:46
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.