17 #ifndef QGSCOMPOSERLABEL_H    18 #define QGSCOMPOSERLABEL_H    45     void adjustSizeToText();
    48     void setText( 
const QString& text );
    51     void setHtmlState( 
int state );
    67     void setFont( 
const QFont& f );
    71     Qt::AlignmentFlag 
vAlign()
 const { 
return mVAlignment; }
    75     Qt::AlignmentFlag 
hAlign()
 const { 
return mHAlignment; }
    80     void setHAlign( Qt::AlignmentFlag a ) {mHAlignment = a;}
    85     void setVAlign( Qt::AlignmentFlag a ) { mVAlignment = a; }
    91     Q_DECL_DEPRECATED 
double margin() { 
return mMarginX; }
    98     double marginX()
 const { 
return mMarginX; }
   115     void setMargin( 
const double m );
   124     void setMarginX( 
const double margin );
   133     void setMarginY( 
const double margin );
   169     void refreshExpressionContext();
   173     void loadingHtmlFinished( 
bool );
   181     double mHtmlUnitsToMM;
   182     double htmlUnitsToMM(); 
   186     void itemShiftAdjustSize( 
double newWidth, 
double newHeight, 
double& xShift, 
double& yShift ) 
const;
   189     void contentChanged();
   203     Qt::AlignmentFlag mHAlignment;
   206     Qt::AlignmentFlag mVAlignment;
   209     void replaceDateText( 
QString& text ) 
const;
   212     QUrl createStylesheetUrl() 
const;
 
virtual QString displayName() const
Get item display name. 
 
A item that forms part of a map composition. 
 
QColor fontColor() const
Get font color. 
 
virtual void setFrameEnabled(const bool drawFrame)
Set whether this item has a frame drawn around it or not. 
 
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const
Stores item state in DOM element. 
 
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
 
Qt::AlignmentFlag vAlign() const
Accessor for the vertical alignment of the label. 
 
void setFontColor(const QColor &c)
Sets text color. 
 
virtual QRectF boundingRect() const
 
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
Qt::AlignmentFlag hAlign() const
Accessor for the horizontal alignment of the label. 
 
double marginX() const
Returns the horizontal margin between the edge of the frame and the label contents. 
 
Graphics scene for map printing. 
 
virtual void setFrameOutlineWidth(const double outlineWidth)
Sets frame outline width. 
 
General purpose distance and area calculator. 
 
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc)
Sets item state from DOM element. 
 
virtual int type() const override
Return correct graphics item type. 
 
void setVAlign(Qt::AlignmentFlag a)
Mutator for the vertical alignment of the label. 
 
double marginY() const
Returns the vertical margin between the edge of the frame and the label contents. ...
 
Q_DECL_DEPRECATED double margin()
Returns the margin between the edge of the frame and the label contents. 
 
A label that can be placed onto a map composition. 
 
void setHAlign(Qt::AlignmentFlag a)
Mutator for the horizontal alignment of the label. 
 
Represents a vector layer which manages a vector based data sets. 
 
QWebPage subclass which redirects JavaScript errors and console output to the QGIS message log...