QGIS API Documentation 3.41.0-Master (cea29feecf2)
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:
53 QgsLayoutPdfExportOptionsDialog( QWidget *parent = nullptr, bool allowGeospatialPdfExport = true, const QString &geospatialPdfReason = QString(), const QStringList &geospatialPdfLayerOrder = QStringList(), Qt::WindowFlags flags = Qt::WindowFlags() );
54
56 void setTextRenderFormat( Qgis::TextRenderFormat format );
58 Qgis::TextRenderFormat textRenderFormat() const;
60 void setForceVector( bool force );
62 bool forceVector() const;
64 void enableGeoreferencingOptions( bool enabled );
66 void setGeoreferencingEnabled( bool enabled );
68 bool georeferencingEnabled() const;
70 void setMetadataEnabled( bool enabled );
72 bool metadataEnabled() const;
74 void setRasterTilingDisabled( bool disabled );
76 bool rasterTilingDisabled() const;
78 void setGeometriesSimplified( bool enabled );
80 bool geometriesSimplified() const;
81
83 void setLosslessImageExport( bool enabled );
85 bool losslessImageExport() const;
86
88 void setExportGeospatialPdf( bool enabled );
90 bool exportGeospatialPdf() const;
91
93 void setUseOgcBestPracticeFormat( bool enabled );
95 bool useOgcBestPracticeFormat() const;
96
98 void setExportThemes( const QStringList &themes );
100 QStringList exportThemes() const;
101
103 QStringList geospatialPdfLayerOrder() const;
104
106 QStringList geospatialPdfGroupOrder() const;
107
109 void setOpenAfterExporting( bool enabled );
111 bool openAfterExporting() const;
112
113 private slots:
114
115 void showHelp();
116 void showContextMenuForGeospatialPdfStructure( QPoint point, const QModelIndex &index );
117
118 private:
119 bool mGeospatialPdfAvailable = true;
120 QgsGeospatialPdfLayerTreeModel *mGeospatialPdfStructureModel = nullptr;
121 QgsGeospatialPdfLayerFilteredTreeModel *mGeospatialPdfStructureProxyModel = nullptr;
122 QMenu *mGeospatialPdfStructureTreeMenu = nullptr;
123};
124
125#endif // QGSLAYOUTPDFEXPORTOPTIONSDIALOG_H
TextRenderFormat
Options for rendering text.
Definition qgis.h:2669
Layer tree model for Geo-PDF layers.
A dialog for customizing the properties of an exported PDF file from a layout.