16 #ifndef QGSLAYOUTRENDERCONTEXT_H
17 #define QGSLAYOUTRENDERCONTEXT_H
19 #include "qgis_core.h"
47 FlagOutlineOnly = 1 << 2,
48 FlagAntialiasing = 1 << 3,
49 FlagUseAdvancedEffects = 1 << 4,
50 FlagForceVectorOutput = 1 << 5,
51 FlagHideCoverageLayer = 1 << 6,
52 FlagDrawSelection = 1 << 7,
53 FlagDisableTiledRasterLayerRenders = 1 << 8,
54 FlagRenderLabelsByMapLayer = 1 << 9,
55 FlagLosslessImageRendering = 1 << 10,
57 Q_DECLARE_FLAGS( Flags, Flag )
70 void setFlags( QgsLayoutRenderContext::Flags flags );
87 QgsLayoutRenderContext::Flags flags()
const;
95 bool testFlag( Flag flag )
const;
100 Qgis::RenderContextFlags renderContextFlags()
const;
107 void setDpi(
double dpi );
152 bool gridVisible()
const;
158 void setGridVisible(
bool visible );
164 bool boundingBoxesVisible()
const;
170 void setBoundingBoxesVisible(
bool visible );
178 void setPagesVisible(
bool visible );
220 return mTextRenderFormat;
231 mTextRenderFormat = format;
276 QStringList exportThemes()
const;
287 void setExportThemes(
const QStringList &themes );
295 void setPredefinedScales(
const QVector<qreal> &scales );
330 void flagsChanged( QgsLayoutRenderContext::Flags flags );
342 void predefinedScalesChanged();
346 Flags mFlags = Flags();
350 int mCurrentExportLayer = -1;
352 QColor mSelectionColor = Qt::yellow;
356 bool mIsPreviewRender =
true;
357 bool mGridVisible =
false;
358 bool mBoundingBoxesVisible =
true;
359 bool mPagesVisible =
true;
363 QStringList mExportThemes;
367 QVector<qreal> mPredefinedScales;
372 friend class TestQgsLayout;
373 friend class LayoutContextPreviewSettingRestorer;
374 friend class TestQgsLayoutMap;
375 friend class TestQgsLayoutLabel;
381 #endif //QGSLAYOUTRENDERCONTEXT_H