Skip to content
Permalink
Browse files

Added bindings for getting an item by id and a composerhtml instance …

…that belongs to an item.
  • Loading branch information
timlinux committed Sep 19, 2012
1 parent 8f3027b commit 8fd78059c9f9e4e537f53a7e0a081c5a07257508
Showing with 16 additions and 0 deletions.
  1. +16 −0 python/core/qgscomposition.sip
@@ -78,6 +78,22 @@ class QgsComposition: QGraphicsScene
@return id or 0 pointer if the composer map item does not exist*/
const QgsComposerMap* getComposerMapById( int id ) const;

/*Returns the composer html with specified id (a string as named in the
composer user interface item properties).
@note Added in QGIS 2.0
@param id - A QString representing the id of the item.
@return QgsComposerHtml pointer or 0 pointer if no such item exists.
*/
const QgsComposerHtml* getComposerHtmlByItem( QgsComposerItem *item ) const;

/**Returns a composer item given its text identifier.
@note added in 2.0
@param theId - A QString representing the identifier of the item to
retrieve.
@return QgsComposerItem pointer or 0 pointer if no such item exists.
**/
const QgsComposerItem* getComposerItemById( QString theId ) const;

int printResolution() const;
void setPrintResolution( int dpi );

0 comments on commit 8fd7805

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