QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgslayoutpdfexportoptionsdialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgslayoutpdfexportoptionsdialog.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 * *
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 QGSLAYOUTPDFEXPORTOPTIONSDIALOG_H
19#define QGSLAYOUTPDFEXPORTOPTIONSDIALOG_H
20
21// We don't want to expose this in the public API
22#define SIP_NO_FILE
23
24#include <QDialog>
25#include "qgis_gui.h"
26#include "qgis.h"
27#include "ui_qgspdfexportoptions.h"
28
30class QgsGeospatialPdfLayerFilteredTreeModel;
31
39class GUI_EXPORT QgsLayoutPdfExportOptionsDialog: public QDialog, private Ui::QgsPdfExportOptionsDialog
40{
41 Q_OBJECT
42
43 public:
44
54 QgsLayoutPdfExportOptionsDialog( QWidget *parent = nullptr,
55 bool allowGeospatialPdfExport = true,
56 const QString &geospatialPdfReason = QString(),
57 const QStringList &geospatialPdfLayerOrder = QStringList(),
58 Qt::WindowFlags flags = Qt::WindowFlags() );
59
61 void setTextRenderFormat( Qgis::TextRenderFormat format );
63 Qgis::TextRenderFormat textRenderFormat() const;
65 void setForceVector( bool force );
67 bool forceVector() const;
69 void enableGeoreferencingOptions( bool enabled );
71 void setGeoreferencingEnabled( bool enabled );
73 bool georeferencingEnabled() const;
75 void setMetadataEnabled( bool enabled );
77 bool metadataEnabled() const;
79 void setRasterTilingDisabled( bool disabled );
81 bool rasterTilingDisabled() const;
83 void setGeometriesSimplified( bool enabled );
85 bool geometriesSimplified() const;
86
88 void setLosslessImageExport( bool enabled );
90 bool losslessImageExport() const;
91
93 void setExportGeospatialPdf( bool enabled );
95 bool exportGeospatialPdf() const;
96
98 void setUseOgcBestPracticeFormat( bool enabled );
100 bool useOgcBestPracticeFormat() const;
101
103 void setExportThemes( const QStringList &themes );
105 QStringList exportThemes() const;
106
108 QStringList geospatialPdfLayerOrder() const;
109
111 QStringList geospatialPdfGroupOrder() const;
112
114 void setOpenAfterExporting( bool enabled );
116 bool openAfterExporting() const;
117
118 private slots:
119
120 void showHelp();
121 void showContextMenuForGeospatialPdfStructure( QPoint point, const QModelIndex &index );
122
123 private:
124
125 bool mGeospatialPdfAvailable = true;
126 QgsGeospatialPdfLayerTreeModel *mGeospatialPdfStructureModel = nullptr;
127 QgsGeospatialPdfLayerFilteredTreeModel *mGeospatialPdfStructureProxyModel = nullptr;
128 QMenu *mGeospatialPdfStructureTreeMenu = nullptr;
129
130};
131
132#endif // QGSLAYOUTPDFEXPORTOPTIONSDIALOG_H
TextRenderFormat
Options for rendering text.
Definition qgis.h:2624
Layer tree model for Geo-PDF layers.
A dialog for customizing the properties of an exported PDF file from a layout.