17#ifndef QGSLAYOUTITEMPAGE_H
18#define QGSLAYOUTITEMPAGE_H
38class CORE_EXPORT QgsLayoutItemPageGrid:
public QGraphicsRectItem
41 QgsLayoutItemPageGrid(
double x,
double y,
double width,
double height,
QgsLayout *layout );
43 void paint( QPainter *painter,
const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget )
override;
73 UndoPageSymbol = 3000,
89 int type()
const override;
90 QString displayName()
const override;
107 bool setPageSize(
const QString &size,
Orientation orientation = Portrait );
113 QPageLayout pageLayout()
const;
154 QRectF boundingRect()
const override;
155 void attemptResize(
const QgsLayoutSize &size,
bool includesFrame =
false )
override;
157 ExportLayerBehavior exportLayerBehavior() const override;
162 void redraw() override;
169 bool writePropertiesToElement( QDomElement &parentElement, QDomDocument &document, const
QgsReadWriteContext &context ) const override;
170 bool readPropertiesFromElement( const QDomElement &itemElement, const QDomDocument &document, const
QgsReadWriteContext &context ) override;
174 double mMaximumShadowWidth = -1;
176 std::
unique_ptr< QgsLayoutItemPageGrid > mGrid;
177 mutable QRectF mBoundingRect;
182 void createDefaultPageStyleSymbol();
184 friend class TestQgsLayoutPage;
Base class for commands to undo/redo layout and layout object changes.
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Item representing the paper in a layout.
~QgsLayoutItemPage() override
const QgsFillSymbol * pageStyleSymbol() const
Returns the symbol to use for drawing the page background.
Orientation
Page orientation.
@ Portrait
Portrait orientation.
Contains settings and helpers relating to a render of a QgsLayoutItem.
Base class for graphical items within a QgsLayout.
UndoCommand
Layout item undo commands, used for collapsing undo commands.
This class provides a method of storing sizes, consisting of a width and height, for use in QGIS layo...
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.
An interface for classes which can visit style entity (e.g.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.