QTeXEngine 0.2
|
#include <QTeXEngine.h>
Public Types | |
enum | OutputMode { Tikz, Pgf } |
enum | Unit { pt, bp, mm, cm, in, ex, em } |
Public Member Functions | |
void | exportFontSizes (bool on=true) |
Enables/Disables exporting of font sizes. | |
virtual QPaintEngine * | paintEngine () const |
QTeXPaintDevice (const QString &fileName, const QSize &s=QSize(), Unit u=pt) | |
void | setColorMode (QPrinter::ColorMode mode) |
Set color mode (Color or GrayScale) | |
void | setDocumentMode (bool on=true) |
Enables/Disables document tags. | |
void | setEscapeTextMode (bool on=true) |
Enables/Disables escaping of special characters in texts. | |
void | setOutputMode (OutputMode mode) |
Set output mode (Tikz or Pgf) | |
void | setSize (const QSize &s) |
Set size. | |
void | setTextHorizontalAlignment (Qt::Alignment alignment) |
Set horizontal alignment. | |
void | setUnit (Unit u) |
Set length unit. | |
~QTeXPaintDevice () | |
Protected Member Functions | |
virtual int | metric (PaintDeviceMetric) const |
Private Attributes | |
QSize | d_size |
Size in pixels. | |
QTeXPaintEngine * | engine |
QTeXPaintDevice::QTeXPaintDevice | ( | const QString & | fileName, |
const QSize & | s = QSize() , |
||
Unit | u = pt |
||
) |
QTeXPaintDevice::~QTeXPaintDevice | ( | ) |
References engine.
void QTeXPaintDevice::exportFontSizes | ( | bool | on = true | ) |
Enables/Disables exporting of font sizes.
References engine, and QTeXPaintEngine::exportFontSizes().
int QTeXPaintDevice::metric | ( | PaintDeviceMetric | metric | ) | const [protected, virtual] |
References d_size.
QPaintEngine * QTeXPaintDevice::paintEngine | ( | ) | const [virtual] |
References engine.
void QTeXPaintDevice::setColorMode | ( | QPrinter::ColorMode | mode | ) |
Set color mode (Color or GrayScale)
References engine, and QTeXPaintEngine::setGrayScale().
void QTeXPaintDevice::setDocumentMode | ( | bool | on = true | ) |
Enables/Disables document tags.
References engine, and QTeXPaintEngine::setDocumentMode().
void QTeXPaintDevice::setEscapeTextMode | ( | bool | on = true | ) |
Enables/Disables escaping of special characters in texts.
References engine, and QTeXPaintEngine::setEscapeTextMode().
void QTeXPaintDevice::setOutputMode | ( | OutputMode | mode | ) |
Set output mode (Tikz or Pgf)
References engine, and QTeXPaintEngine::setOutputMode().
void QTeXPaintDevice::setSize | ( | const QSize & | s | ) | [inline] |
Set size.
References d_size.
void QTeXPaintDevice::setTextHorizontalAlignment | ( | Qt::Alignment | alignment | ) |
Set horizontal alignment.
References engine, and QTeXPaintEngine::setTextHorizontalAlignment().
void QTeXPaintDevice::setUnit | ( | Unit | u | ) |
Set length unit.
References engine, and QTeXPaintEngine::setUnit().
QSize QTeXPaintDevice::d_size [private] |
Size in pixels.
Referenced by metric(), QTeXPaintDevice(), and setSize().
QTeXPaintEngine* QTeXPaintDevice::engine [private] |