15 #ifndef QGSLAYERDEFINITION_H
16 #define QGSLAYERDEFINITION_H
19 #include "qgis_core.h"
64 static bool exportLayerDefinition(
const QString &path,
const QList<QgsLayerTreeNode *> &selectedTreeNodes, QString &errorMessage
SIP_OUT );
78 static bool exportLayerDefinition(
const QString &path,
const QList<QgsLayerTreeNode *> &selectedTreeNodes,
Qgis::FilePathType pathType, QString &errorMessage
SIP_OUT );
83 static bool exportLayerDefinition( QDomDocument doc,
const QList<QgsLayerTreeNode *> &selectedTreeNodes, QString &errorMessage
SIP_OUT,
const QgsReadWriteContext &context );
94 static QDomDocument exportLayerDefinitionLayers(
const QList<QgsMapLayer *> &layers,
const QgsReadWriteContext &context );
108 static QList<QgsMapLayer *> loadLayerDefinitionLayers(
const QString &qlrfile )
SIP_FACTORY;
143 QVector<QDomNode> mSortedLayerNodes;
144 QStringList mSortedLayerIds;
146 bool mHasMissingDependency;
147 void init(
const QDomDocument &doc );
152 static QList<QgsMapLayer *> loadLayerDefinitionLayersInternal( QDomDocument &document,
QgsReadWriteContext &context, QString &errorMessage );
157 #endif // QGSLAYERDEFINITION_H