QGIS API Documentation 3.99.0-Master (752b475928d)
Loading...
Searching...
No Matches
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
23#include <QList>
24#include <QTemporaryDir>
25
26#define SIP_NO_FILE
27
28class QgsLayout;
29class QgsGeospatialPdfRenderedFeatureHandler;
30
49{
50 public:
51
56
58
64 QMap< QString, QString > customLayerTreeGroups() const { return mCustomLayerTreeGroups; }
65
72 QMap< QString, bool > initialLayerVisibility() const { return mInitialLayerVisibility; }
73
81 QStringList layerOrder() const { return mLayerOrder; }
82
93 QStringList layerTreeGroupOrder() const { return mLayerTreeGroupOrder; }
94
95 private:
96
97 VectorComponentDetail componentDetailForLayerId( const QString &layerId ) override;
98
99 QgsLayout *mLayout = nullptr;
100 QHash< QgsLayoutItemMap *, QgsGeospatialPdfRenderedFeatureHandler * > mMapHandlers;
101
102 QMap< QString, bool > mInitialLayerVisibility;
103 QMap< QString, QString > mCustomLayerTreeGroups;
104 QStringList mLayerOrder;
105 QStringList mLayerTreeGroupOrder;
106
108};
109
110#endif //QGSLAYOUTGEOPDFEXPORTER_H
111
112
113
QMap< QString, bool > initialLayerVisibility() const
Optional map of map layer ID to initial visibility state.
QStringList layerOrder() const
Optional list of map layer IDs in the order they should be shown in the generated geospatial PDF laye...
QMap< QString, QString > customLayerTreeGroups() const
Returns any custom layer tree groups defined in the layer's settings.
QStringList layerTreeGroupOrder() const
Specifies the ordering of layer tree groups in the generated geospatial PDF file.
QgsLayoutGeospatialPdfExporter(QgsLayout *layout)
Constructor for QgsLayoutGeospatialPdfExporter, associated with the specified layout.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Definition qgslayout.h:50