Skip to content
Permalink
Browse files

Add documentation for function QgsComposition::loadFromTemplate

  • Loading branch information
Marco Hugentobler
Marco Hugentobler committed Sep 5, 2012
1 parent 07696ab commit cfa15ff5603bfcf0b36cafc783ce862ea5913923
Showing with 6 additions and 0 deletions.
  1. +3 −0 python/core/qgscomposition.sip
  2. +3 −0 src/core/composer/qgscomposition.h
@@ -107,6 +107,9 @@ class QgsComposition: QGraphicsScene
/**Reads settings from xml file*/
bool readXML( const QDomElement& compositionElem, const QDomDocument& doc );

/**Load a template document
@param doc template document
@param substitutionMap map with text to replace. Text needs to be enclosed by brackets (e.g. '[text]' )*/
bool loadFromTemplate( const QDomDocument& doc, QMap<QString, QString>* substitutionMap = 0, bool addUndoCommands = false );

/**Add items from XML representation to the graphics scene (for project file reading, pasting items from clipboard)
@@ -153,6 +153,9 @@ class CORE_EXPORT QgsComposition: public QGraphicsScene
/**Reads settings from xml file*/
bool readXML( const QDomElement& compositionElem, const QDomDocument& doc );

/**Load a template document
@param doc template document
@param substitutionMap map with text to replace. Text needs to be enclosed by brackets (e.g. '[text]' )*/
bool loadFromTemplate( const QDomDocument& doc, QMap<QString, QString>* substitutionMap = 0, bool addUndoCommands = false );

/**Add items from XML representation to the graphics scene (for project file reading, pasting items from clipboard)

0 comments on commit cfa15ff

Please sign in to comment.
You can’t perform that action at this time.