QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSCOMPOSITIONCONVERTER_H
17 #define QGSCOMPOSITIONCONVERTER_H
20 #include <QDomDocument>
21 #include <QDomElement>
130 static std::unique_ptr<QgsPrintLayout> createLayoutFromCompositionXml(
const QDomElement &composerElement,
143 static QList<QgsLayoutObject *> addItemsFromCompositionXml(
QgsPrintLayout *layout,
144 const QDomElement &parentElement,
145 QPointF *position =
nullptr,
146 bool pasteInPlace =
false );
153 static bool isCompositionTemplate(
const QDomDocument &document );
162 static QDomDocument convertCompositionTemplate(
const QDomDocument
174 const QDomElement &itemElem,
178 const QDomElement &itemElem,
182 const QDomElement &itemElem,
187 template <
class T,
class T2>
static bool readPolyXml( T *layoutItem,
188 const QDomElement &itemElem,
192 const QDomElement &itemElem,
196 const QDomElement &itemElem,
201 const QDomElement &itemElem,
206 const QDomElement &itemElem,
211 const QDomElement &itemElem,
215 const QDomElement &itemElem,
219 const QDomElement &itemElem,
223 const QDomElement &itemElem,
225 const QList<QgsLayoutObject *> &items );
227 static bool readOldComposerObjectXml(
QgsLayoutObject *layoutItem,
const QDomElement &itemElem );
229 static void readOldDataDefinedPropertyMap(
const QDomElement &itemElem,
232 static QgsProperty readOldDataDefinedProperty( DataDefinedProperty property,
const QDomElement &ddElem );
234 static void initPropertyDefinitions();
239 static bool readXml(
QgsLayoutItem *layoutItem,
const QDomElement &itemElem );
242 static void adjustPos(
QgsPrintLayout *layout,
QgsLayoutItem *layoutItem, QPointF *position,
bool &pasteInPlace,
int zOrderOffset, QPointF &pasteShiftPos,
int &pageNumber );
245 static void restoreGeneralComposeItemProperties(
QgsLayoutItem *layoutItem,
const QDomElement &itemElem );
248 static QRectF itemPosition(
QgsLayoutItem *layoutItem,
const QDomElement &itemElem );
251 static QPointF minPointFromXml(
const QDomElement &elem );
255 #endif // QGSCOMPOSITIONCONVERTER_H
@ ItemHeight
Height of item.
Layout item for basic filled shapes (e.g. rectangles, ellipses).
@ MapXMin
Map extent x minimum.
A store for object properties.
The class is used as a container of context for various read/write operations on other objects.
@ PositionY
Y position on page.
@ BlendMode
Item blend mode.
@ BackgroundColor
Item background color.
@ MapXMax
Map extent x maximum.
Layout item for node based polyline shapes.
@ MapStylePreset
Layer and style map theme.
@ TestProperty
Dummy property with no effect on item.
@ MapRotation
Map rotation.
A layout multiframe subclass for HTML content.
@ ItemRotation
Rotation of item.
@ PageNumber
Page number for item placement.
@ Transparency
Item transparency (deprecated)
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
A layout item subclass for map legends.
@ MapYMax
Map extent y maximum.
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.
@ MapAtlasMargin
Map atlas margin.
Print layout, a QgsLayout subclass for static or atlas-based layouts.
@ LegendColumnCount
Legend column count.
QgsCompositionConverter class converts a QGIS 2.x composition to a QGIS 3.x layout.
@ PictureSvgStrokeWidth
SVG stroke width.
@ PaperOrientation
Paper orientation.
@ ScalebarLineColor
Scalebar line color.
@ ExcludeFromExports
Exclude item from exports.
@ PictureSvgBackgroundColor
SVG background color.
@ AllProperties
All properties for item.
A layout table subclass that displays attributes from a vector layer.
@ PictureSvgStrokeColor
SVG stroke color.
Base class for graphical items within a QgsLayout.
@ ScalebarLineWidth
Scalebar line width.
@ PaperHeight
Paper height.
A container for grouping several QgsLayoutItems.
A layout item subclass that displays SVG files or raster format images (jpg, png, ....
@ MapLayers
Map layer set.
MarkerMode
The MarkerMode enum is the old QGIS 2.x arrow marker mode.
@ ScalebarFillColor
Scalebar fill color.
Layout graphical items for displaying a map.
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
DataDefinedProperty
Composition data defined properties for different item types.
QMap< QString, QString > QgsStringMap
@ SourceUrl
Html source url.
Layout item for node based polygon shapes.
@ LegendTitle
Legend title.
@ FrameColor
Item frame color.
@ ItemWidth
Width of item.
A layout item subclass for text labels.
A layout item subclass for scale bars.
@ PictureSource
Picture source url.
Class used to render QgsLayout as an atlas, by iterating over the features from an associated vector ...
@ NumPages
Number of pages in composition.
@ MapYMin
Map extent y minimum.
@ PresetPaperSize
Preset paper size for composition.
A base class for objects which belong to a layout.
@ ScalebarFillColor2
Scalebar secondary fill color.
@ PositionX
X position on page.