17#ifndef QGSLAYOUTOBJECT_H 
   18#define QGSLAYOUTOBJECT_H 
   57    if ( 
QgsLayoutItem *item = qobject_cast< QgsLayoutItem * >( sipCpp ) )
 
   61      switch ( item->type() )
 
   69        case QGraphicsItem::UserType + 101:
 
   70          sipType = sipType_QgsLayoutItemGroup;
 
   73        case QGraphicsItem::UserType + 102:
 
   74          sipType = sipType_QgsLayoutItemPage;
 
   77        case QGraphicsItem::UserType + 103:
 
   78          sipType = sipType_QgsLayoutItemMap;
 
   81        case QGraphicsItem::UserType + 104:
 
   82          sipType = sipType_QgsLayoutItemPicture;
 
   85        case QGraphicsItem::UserType + 105:
 
   86          sipType = sipType_QgsLayoutItemLabel;
 
   89        case QGraphicsItem::UserType + 106:
 
   90          sipType = sipType_QgsLayoutItemLegend;
 
   93        case QGraphicsItem::UserType + 107:
 
   94          sipType = sipType_QgsLayoutItemShape;
 
   97        case QGraphicsItem::UserType + 108:
 
   98          sipType = sipType_QgsLayoutItemPolygon;
 
  101        case QGraphicsItem::UserType + 109:
 
  102          sipType = sipType_QgsLayoutItemPolyline;
 
  105        case QGraphicsItem::UserType + 110:
 
  106          sipType = sipType_QgsLayoutItemScaleBar;
 
  109        case QGraphicsItem::UserType + 111:
 
  110          sipType = sipType_QgsLayoutFrame;
 
  113        case QGraphicsItem::UserType + 117:
 
  114          sipType = sipType_QgsLayoutItemMarker;
 
  117        case QGraphicsItem::UserType + 118:
 
  118          sipType = sipType_QgsLayoutItemElevationProfile;
 
  125          sipType = sipType_QgsLayoutItem;
 
  187      MapGridLabelDistance, 
 
  189      MapGridFrameLineThickness, 
 
  190      MapGridAnnotationDisplayLeft, 
 
  191      MapGridAnnotationDisplayRight, 
 
  192      MapGridAnnotationDisplayTop, 
 
  193      MapGridAnnotationDisplayBottom, 
 
  194      MapGridFrameDivisionsLeft, 
 
  195      MapGridFrameDivisionsRight, 
 
  196      MapGridFrameDivisionsTop, 
 
  197      MapGridFrameDivisionsBottom, 
 
  205      PictureSvgBackgroundColor, 
 
  206      PictureSvgStrokeColor, 
 
  207      PictureSvgStrokeWidth, 
 
  215      ScalebarLeftSegments, 
 
  216      ScalebarRightSegments, 
 
  217      ScalebarSegmentWidth, 
 
  218      ScalebarMinimumWidth, 
 
  219      ScalebarMaximumWidth, 
 
  221      ScalebarRightSegmentSubdivisions, 
 
  222      ScalebarSubdivisionHeight, 
 
  228      AttributeTableSourceLayer, 
 
  229      ElevationProfileTolerance, 
 
  230      ElevationProfileDistanceMajorInterval, 
 
  231      ElevationProfileDistanceMinorInterval, 
 
  232      ElevationProfileDistanceLabelInterval, 
 
  233      ElevationProfileElevationMajorInterval, 
 
  234      ElevationProfileElevationMinorInterval, 
 
  235      ElevationProfileElevationLabelInterval, 
 
  236      ElevationProfileMinimumDistance, 
 
  237      ElevationProfileMaximumDistance, 
 
  238      ElevationProfileMinimumElevation, 
 
  239      ElevationProfileMaximumElevation, 
 
 
  270    static bool propertyAssociatesWithParentMultiframe( DataDefinedProperty property );
 
  320    void setCustomProperty( 
const QString &key, 
const QVariant &value );
 
  331    QVariant customProperty( 
const QString &key, 
const QVariant &defaultValue = QVariant() ) 
const;
 
  340    void removeCustomProperty( 
const QString &key );
 
  348    QStringList customProperties() 
const;
 
  380    bool writeObjectPropertiesToElement( QDomElement &parentElement, QDomDocument &document, 
const QgsReadWriteContext &context ) 
const;
 
  390    bool readObjectPropertiesFromElement( 
const QDomElement &parentElement, 
const QDomDocument &document, 
const QgsReadWriteContext &context );
 
  404    static void initPropertyDefinitions();
 
  406    friend class TestQgsLayoutObject;
 
 
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.
 
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 an integer key value.
 
A container for the context for various read/write operations on objects.
 
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
 
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
 
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.