QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 
30 class QgsGeoPdfLayerFilteredTreeModel;
31 
39 class GUI_EXPORT QgsLayoutPdfExportOptionsDialog: public QDialog, private Ui::QgsPdfExportOptionsDialog
40 {
41  Q_OBJECT
42 
43  public:
44 
54  QgsLayoutPdfExportOptionsDialog( QWidget *parent = nullptr,
55  bool allowGeoPdfExport = true,
56  const QString &geoPdfReason = QString(),
57  const QStringList &geoPdfLayerOrder = 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 setExportGeoPdf( bool enabled );
95  bool exportGeoPdf() 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 geoPdfLayerOrder() const;
109 
110  private slots:
111 
112  void showHelp();
113  void showContextMenuForGeoPdfStructure( QPoint point, const QModelIndex &index );
114 
115  private:
116 
117  bool mGeopdfAvailable = true;
118  QgsGeoPdfLayerTreeModel *mGeoPdfStructureModel = nullptr;
119  QgsGeoPdfLayerFilteredTreeModel *mGeoPdfStructureProxyModel = nullptr;
120  QMenu *mGeoPdfStructureTreeMenu = nullptr;
121 
122 };
123 
124 #endif // QGSLAYOUTPDFEXPORTOPTIONSDIALOG_H
Qgis::TextRenderFormat
TextRenderFormat
Options for rendering text.
Definition: qgis.h:1331
QgsGeoPdfLayerTreeModel
Layer tree model for Geo-PDF layers.
Definition: qgsgeopdflayertreemodel.h:39
qgis.h
QgsLayoutPdfExportOptionsDialog
A dialog for customizing the properties of an exported PDF file from a layout.
Definition: qgslayoutpdfexportoptionsdialog.h:39