QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
qgslayoutgeopdfexporter.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgslayoutgeopdfexporter.h
3  --------------------------
4  begin : August 2019
5  copyright : (C) 2019 by Nyall Dawson
6  email : nyall dot dawson at gmail dot com
7  ***************************************************************************/
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 #ifndef QGSLAYOUTGEOPDFEXPORTER_H
17 #define QGSLAYOUTGEOPDFEXPORTER_H
18 
19 #include "qgis_core.h"
21 #include "qgslayoutitemmap.h"
22 #include <QList>
23 #include <QTemporaryDir>
24 
25 #define SIP_NO_FILE
26 
27 class QgsLayout;
28 class QgsGeoPdfRenderedFeatureHandler;
29 
48 {
49  public:
50 
55 
56  ~QgsLayoutGeoPdfExporter() override;
57 
61  QMap< QString, QString > customLayerTreeGroups() const { return mCustomLayerTreeGroups; }
62 
63  private:
64 
65  VectorComponentDetail componentDetailForLayerId( const QString &layerId ) override;
66 
67  QgsLayout *mLayout = nullptr;
68  QHash< QgsLayoutItemMap *, QgsGeoPdfRenderedFeatureHandler * > mMapHandlers;
69 
70  QMap< QString, QString > mCustomLayerTreeGroups;
71 
72  friend class TestQgsLayoutGeoPdfExport;
73 };
74 
75 #endif //QGSLAYOUTGEOPDFEXPORTER_H
76 
77 
78 
Abstract base class for GeoPDF exporters.
Handles GeoPDF export specific setup, cleanup and processing steps.
QMap< QString, QString > customLayerTreeGroups() const
Returns any custom layer tree groups defined in the layer&#39;s settings.
Contains information relating to a single PDF layer in the GeoPDF export.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition: qgslayout.h:49