QGIS API Documentation 3.99.0-Master (2fe06baccd8)
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 "ui_qgspdfexportoptions.h"
25
26#include "qgis.h"
27#include "qgis_gui.h"
28
29#include <QDialog>
30
32class QgsGeospatialPdfLayerFilteredTreeModel;
33
41class GUI_EXPORT QgsLayoutPdfExportOptionsDialog : public QDialog, private Ui::QgsPdfExportOptionsDialog
42{
43 Q_OBJECT
44
45 public:
55 QgsLayoutPdfExportOptionsDialog( QWidget *parent = nullptr, bool allowGeospatialPdfExport = true, const QString &geospatialPdfReason = QString(), const QStringList &geospatialPdfLayerOrder = QStringList(), Qt::WindowFlags flags = Qt::WindowFlags() );
56
62 void setForceVector( bool force );
64 bool forceVector() const;
66 void enableGeoreferencingOptions( bool enabled );
68 void setGeoreferencingEnabled( bool enabled );
70 bool georeferencingEnabled() const;
72 void setMetadataEnabled( bool enabled );
74 bool metadataEnabled() const;
76 void setRasterTilingDisabled( bool disabled );
78 bool rasterTilingDisabled() const;
80 void setGeometriesSimplified( bool enabled );
82 bool geometriesSimplified() const;
83
85 void setLosslessImageExport( bool enabled );
87 bool losslessImageExport() const;
88
90 void setExportGeospatialPdf( bool enabled );
92 bool exportGeospatialPdf() const;
93
95 void setExportThemes( const QStringList &themes );
97 QStringList exportThemes() const;
98
100 QStringList geospatialPdfLayerOrder() const;
101
103 QStringList geospatialPdfGroupOrder() const;
104
106 void setOpenAfterExporting( bool enabled );
108 bool openAfterExporting() const;
109
110 private slots:
111
112 void showHelp();
113 void showContextMenuForGeospatialPdfStructure( QPoint point, const QModelIndex &index );
114
115 private:
116 bool mGeospatialPdfAvailable = true;
117 QgsGeospatialPdfLayerTreeModel *mGeospatialPdfStructureModel = nullptr;
118 QgsGeospatialPdfLayerFilteredTreeModel *mGeospatialPdfStructureProxyModel = nullptr;
119 QMenu *mGeospatialPdfStructureTreeMenu = nullptr;
120};
121
122#endif // QGSLAYOUTPDFEXPORTOPTIONSDIALOG_H
TextRenderFormat
Options for rendering text.
Definition qgis.h:2826
Layer tree model for Geo-PDF layers.
void setExportGeospatialPdf(bool enabled)
Sets whether to export a Geospatial PDF.
void setOpenAfterExporting(bool enabled)
Sets whether to open the pdf after exporting it.
QStringList exportThemes() const
Returns the list of export themes.
bool geometriesSimplified() const
Returns whether geometry simplification is enabled.
bool losslessImageExport() const
Returns whether lossless image compression is enabled.
void setLosslessImageExport(bool enabled)
Sets whether to use lossless image compression.
bool exportGeospatialPdf() const
Returns whether Geospatial PDF export is enabled.
bool openAfterExporting() const
Returns whether the pdf should be opened after exporting it.
bool georeferencingEnabled() const
Returns whether georeferencing is enabled.
void setRasterTilingDisabled(bool disabled)
Sets whether to disable raster tiling.
bool forceVector() const
Returns whether vector output is being forced.
void setGeometriesSimplified(bool enabled)
Sets whether to simplify geometries.
bool metadataEnabled() const
Returns whether metadata is enabled.
void setGeoreferencingEnabled(bool enabled)
Sets whether to enable georeferencing.
void setMetadataEnabled(bool enabled)
Sets whether to enable metadata.
void enableGeoreferencingOptions(bool enabled)
Sets whether to enable georeferencing options.
QStringList geospatialPdfGroupOrder() const
Returns a list of groups in the desired order they should appear in a generated Geospatial PDF file.
QgsLayoutPdfExportOptionsDialog(QWidget *parent=nullptr, bool allowGeospatialPdfExport=true, const QString &geospatialPdfReason=QString(), const QStringList &geospatialPdfLayerOrder=QStringList(), Qt::WindowFlags flags=Qt::WindowFlags())
Constructor for QgsLayoutPdfExportOptionsDialog.
QStringList geospatialPdfLayerOrder() const
Returns a list of map layer IDs in the desired order they should appear in a generated Geospatial PDF...
void setTextRenderFormat(Qgis::TextRenderFormat format)
Sets the text render format.
Qgis::TextRenderFormat textRenderFormat() const
Returns the current text render format.
bool rasterTilingDisabled() const
Returns whether raster tiling is disabled.
void setForceVector(bool force)
Set whether to force vector output.
void setExportThemes(const QStringList &themes)
Sets the list of export themes.