17#ifndef QGSLAYOUTOBJECT_H 
   18#define QGSLAYOUTOBJECT_H 
   60    if ( 
QgsLayoutItem *item = qobject_cast< QgsLayoutItem * >( sipCpp ) )
 
   64      switch ( item->type() )
 
   72        case QGraphicsItem::UserType + 101:
 
   73          sipType = sipType_QgsLayoutItemGroup;
 
   76        case QGraphicsItem::UserType + 102:
 
   77          sipType = sipType_QgsLayoutItemPage;
 
   80        case QGraphicsItem::UserType + 103:
 
   81          sipType = sipType_QgsLayoutItemMap;
 
   84        case QGraphicsItem::UserType + 104:
 
   85          sipType = sipType_QgsLayoutItemPicture;
 
   88        case QGraphicsItem::UserType + 105:
 
   89          sipType = sipType_QgsLayoutItemLabel;
 
   92        case QGraphicsItem::UserType + 106:
 
   93          sipType = sipType_QgsLayoutItemLegend;
 
   96        case QGraphicsItem::UserType + 107:
 
   97          sipType = sipType_QgsLayoutItemShape;
 
  100        case QGraphicsItem::UserType + 108:
 
  101          sipType = sipType_QgsLayoutItemPolygon;
 
  104        case QGraphicsItem::UserType + 109:
 
  105          sipType = sipType_QgsLayoutItemPolyline;
 
  108        case QGraphicsItem::UserType + 110:
 
  109          sipType = sipType_QgsLayoutItemScaleBar;
 
  112        case QGraphicsItem::UserType + 111:
 
  113          sipType = sipType_QgsLayoutFrame;
 
  116        case QGraphicsItem::UserType + 117:
 
  117          sipType = sipType_QgsLayoutItemMarker;
 
  120        case QGraphicsItem::UserType + 118:
 
  121          sipType = sipType_QgsLayoutItemElevationProfile;
 
  128          sipType = sipType_QgsLayoutItem;
 
  266    static bool propertyAssociatesWithParentMultiframe( DataDefinedProperty property );
 
  316    void setCustomProperty( 
const QString &key, 
const QVariant &value );
 
  327    QVariant customProperty( 
const QString &key, 
const QVariant &defaultValue = QVariant() ) 
const;
 
  336    void removeCustomProperty( 
const QString &key );
 
  344    QStringList customProperties() 
const;
 
  376    bool writeObjectPropertiesToElement( QDomElement &parentElement, QDomDocument &document, 
const QgsReadWriteContext &context ) 
const;
 
  386    bool readObjectPropertiesFromElement( 
const QDomElement &parentElement, 
const QDomDocument &document, 
const QgsReadWriteContext &context );
 
  400    static void initPropertyDefinitions();
 
  402    friend class TestQgsLayoutObject;
 
QgsCompositionConverter class converts a QGIS 2.x composition to a QGIS 3.x layout.
 
Abstract interface for generating an expression context.
 
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
 
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
 
Base class for frame items, which form a layout multiframe item.
 
A layout item subclass for elevation profile plots.
 
A container for grouping several QgsLayoutItems.
 
A layout item subclass for text labels.
 
A layout item subclass for map legends.
 
Layout graphical items for displaying a map.
 
A layout item for showing marker symbols.
 
Item representing the paper in a layout.
 
A layout item subclass that displays SVG files or raster format images (jpg, png, ....
 
Layout item for node based polygon shapes.
 
Layout item for node based polyline shapes.
 
A layout item subclass for scale bars.
 
Layout item for basic filled shapes (e.g.
 
Base class for graphical items within a QgsLayout.
 
A base class for objects which belong to a layout.
 
QgsObjectCustomProperties mCustomProperties
Custom properties for object.
 
QgsPropertyCollection mDataDefinedProperties
 
QgsPropertyCollection & dataDefinedProperties()
Returns a reference to the object's property collection, used for data defined overrides.
 
void changed()
Emitted when the object's properties change.
 
virtual void refresh()
Refreshes the object, causing a recalculation of any property overrides.
 
QPointer< QgsLayout > mLayout
 
DataDefinedProperty
Data defined properties for different item types.
 
@ TestProperty
Dummy property with no effect on item.
 
@ MapGridIntervalX
Map grid interval X.
 
@ MapGridAnnotationDisplayBottom
Map annotation display bottom.
 
@ ElevationProfileTolerance
Tolerance distance for elevation profiles (since QGIS 3.30)
 
@ MapGridIntervalY
Map grid interval Y.
 
@ MapYMin
Map extent y minimum.
 
@ PictureSvgStrokeColor
SVG stroke color.
 
@ PaperOrientation
Paper orientation.
 
@ MapGridFrameSize
Map grid frame size.
 
@ ElevationProfileElevationLabelInterval
Label interval for elevation profile elevation axis (since QGIS 3.30)
 
@ LegendTitle
Legend title.
 
@ MapStylePreset
Layer and style map theme.
 
@ AttributeTableSourceLayer
Attribute table source layer.
 
@ ItemWidth
Width of item.
 
@ ScalebarMinimumWidth
Scalebar segment minimum width (since QGIS 3.26)
 
@ PaperHeight
Paper height (deprecated)
 
@ ItemHeight
Height of item.
 
@ ElevationProfileDistanceMajorInterval
Major grid line interval for elevation profile distance axis (since QGIS 3.30)
 
@ MarginTop
Top margin (since QGIS 3.30)
 
@ ElevationProfileDistanceLabelInterval
Label interval for elevation profile distance axis (since QGIS 3.30)
 
@ MapXMax
Map extent x maximum.
 
@ ElevationProfileElevationMinorInterval
Minor grid line interval for elevation profile elevation axis (since QGIS 3.30)
 
@ BlendMode
Item blend mode.
 
@ ScalebarFillColor2
Scalebar secondary fill color (deprecated, use data defined properties on scalebar fill symbol 2 inst...
 
@ ScalebarLineWidth
Scalebar line width (deprecated, use data defined properties on scalebar line symbol instead)
 
@ StartDateTime
Temporal range's start DateTime.
 
@ ScalebarSegmentWidth
Scalebar width in map units of a single segment (since QGIS 3.26)
 
@ AllProperties
All properties for item.
 
@ MarginLeft
Left margin (since QGIS 3.30)
 
@ PositionY
Y position on page.
 
@ MapGridFrameDivisionsBottom
Map frame division display bottom.
 
@ ElevationProfileMaximumDistance
Maximum distance value for elevation profile (since QGIS 3.30)
 
@ MapGridAnnotationDisplayRight
Map annotation display right.
 
@ SourceUrl
Html source url.
 
@ EndDateTime
Temporal range's end DateTime.
 
@ Transparency
Item transparency (deprecated)
 
@ ScalebarFillColor
Scalebar fill color (deprecated, use data defined properties on scalebar fill symbol 1 instead)
 
@ MapGridFrameMargin
Map grid frame margin.
 
@ MapGridOffsetX
Map grid offset X.
 
@ MapGridLabelDistance
Map grid label distance.
 
@ MapAtlasMargin
Map atlas margin.
 
@ MapGridAnnotationDisplayLeft
Map annotation display left.
 
@ MapYMax
Map extent y maximum.
 
@ PageNumber
Page number for item placement.
 
@ MapXMin
Map extent x minimum.
 
@ ExcludeFromExports
Exclude item from exports.
 
@ MarginRight
Right margin (since QGIS 3.30)
 
@ PictureSvgStrokeWidth
SVG stroke width.
 
@ MapGridFrameDivisionsLeft
Map frame division display left.
 
@ ElevationProfileMinimumElevation
Minimum elevation value for elevation profile (since QGIS 3.30)
 
@ MapGridEnabled
Map grid enabled.
 
@ BackgroundColor
Item background color.
 
@ ElevationProfileElevationMajorInterval
Major grid line interval for elevation profile elevation axis (since QGIS 3.30)
 
@ LegendColumnCount
Legend column count.
 
@ ScalebarMaximumWidth
Scalebar segment maximum width (since QGIS 3.26)
 
@ MapLabelMargin
Map label margin.
 
@ ItemRotation
Rotation of item.
 
@ MapLayers
Map layer set.
 
@ ScalebarLineColor
Scalebar line color (deprecated, use data defined properties on scalebar line symbol instead)
 
@ ScalebarHeight
Scalebar height (since QGIS 3.26)
 
@ ScalebarRightSegments
Number of segments on the right of 0 (since QGIS 3.26)
 
@ MapGridFrameLineThickness
Map grid frame line thickness.
 
@ PictureSvgBackgroundColor
SVG background color.
 
@ MapGridFrameDivisionsRight
Map frame division display right.
 
@ ElevationProfileMinimumDistance
Minimum distance value for elevation profile (since QGIS 3.30)
 
@ PictureSource
Picture source url.
 
@ MapGridFrameDivisionsTop
Map frame division display top.
 
@ PaperWidth
Paper width (deprecated)
 
@ MarginBottom
Bottom margin (since QGIS 3.30)
 
@ ElevationProfileDistanceMinorInterval
Minor grid line interval for elevation profile distance axis (since QGIS 3.30)
 
@ PresetPaperSize
Preset paper size for composition.
 
@ PositionX
X position on page.
 
@ ElevationProfileMaximumElevation
Maximum elevation value for elevation profile (since QGIS 3.30)
 
@ FrameColor
Item frame color.
 
@ MapGridCrossSize
Map grid cross size.
 
@ NumPages
Number of pages in composition (deprecated)
 
@ MapGridOffsetY
Map grid offset Y.
 
@ MapGridAnnotationDisplayTop
Map annotation display top.
 
@ MapRotation
Map rotation.
 
@ ScalebarSubdivisionHeight
Scalebar subdivision height (since QGIS 3.26)
 
@ ScalebarRightSegmentSubdivisions
Number of subdivisions per segment on right of 0 (since QGIS 3.26)
 
@ ScalebarLeftSegments
Number of segments on the left of 0 (since QGIS 3.26)
 
void setDataDefinedProperties(const QgsPropertyCollection &collection)
Sets the objects's property collection, used for data defined overrides.
 
const QgsPropertyCollection & dataDefinedProperties() const
Returns a reference to the object's property collection, used for data defined overrides.
 
PropertyValueType
Specifies whether the value returned by a function should be the original, user set value,...
 
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
 
Simple key-value store (keys = strings, values = variants) that supports loading/saving to/from XML i...
 
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
 
The class is used as a container of context for various read/write operations on other objects.
 
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
 
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.