QTeXEngine  0.2
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QTeXPaintDevice Class Reference

#include <QTeXEngine.h>

Inheritance diagram for QTeXPaintDevice:

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. More...
 
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) More...
 
void setDocumentMode (bool on=true)
 Enables/Disables document tags. More...
 
void setEscapeTextMode (bool on=true)
 Enables/Disables escaping of special characters in texts. More...
 
void setOutputMode (OutputMode mode)
 Set output mode (Tikz or Pgf) More...
 
void setSize (const QSize &s)
 Set size. More...
 
void setTextHorizontalAlignment (Qt::Alignment alignment)
 Set horizontal alignment. More...
 
void setUnit (Unit u)
 Set length unit. More...
 
 ~QTeXPaintDevice ()
 

Protected Member Functions

virtual int metric (PaintDeviceMetric) const
 

Private Attributes

QSize d_size
 Size in pixels. More...
 
QTeXPaintEngineengine
 

Member Enumeration Documentation

◆ OutputMode

Enumerator
Tikz 
Pgf 

◆ Unit

Enumerator
pt 
bp 
mm 
cm 
in 
ex 
em 

Constructor & Destructor Documentation

◆ QTeXPaintDevice()

QTeXPaintDevice::QTeXPaintDevice ( const QString &  fileName,
const QSize &  s = QSize(),
Unit  u = pt 
)

References d_size, and engine.

◆ ~QTeXPaintDevice()

QTeXPaintDevice::~QTeXPaintDevice ( )

References engine.

Member Function Documentation

◆ exportFontSizes()

void QTeXPaintDevice::exportFontSizes ( bool  on = true)

Enables/Disables exporting of font sizes.

References engine, and QTeXPaintEngine::exportFontSizes().

◆ metric()

int QTeXPaintDevice::metric ( PaintDeviceMetric  metric) const
protectedvirtual

References d_size.

◆ paintEngine()

QPaintEngine * QTeXPaintDevice::paintEngine ( ) const
virtual

References engine.

◆ setColorMode()

void QTeXPaintDevice::setColorMode ( QPrinter::ColorMode  mode)

Set color mode (Color or GrayScale)

References engine, and QTeXPaintEngine::setGrayScale().

◆ setDocumentMode()

void QTeXPaintDevice::setDocumentMode ( bool  on = true)

Enables/Disables document tags.

References engine, and QTeXPaintEngine::setDocumentMode().

◆ setEscapeTextMode()

void QTeXPaintDevice::setEscapeTextMode ( bool  on = true)

Enables/Disables escaping of special characters in texts.

References engine, and QTeXPaintEngine::setEscapeTextMode().

◆ setOutputMode()

void QTeXPaintDevice::setOutputMode ( OutputMode  mode)

Set output mode (Tikz or Pgf)

References engine, and QTeXPaintEngine::setOutputMode().

◆ setSize()

void QTeXPaintDevice::setSize ( const QSize &  s)
inline

Set size.

References d_size.

◆ setTextHorizontalAlignment()

void QTeXPaintDevice::setTextHorizontalAlignment ( Qt::Alignment  alignment)

Set horizontal alignment.

References engine, and QTeXPaintEngine::setTextHorizontalAlignment().

◆ setUnit()

void QTeXPaintDevice::setUnit ( Unit  u)

Set length unit.

References engine, and QTeXPaintEngine::setUnit().

Member Data Documentation

◆ d_size

QSize QTeXPaintDevice::d_size
private

Size in pixels.

Referenced by metric(), QTeXPaintDevice(), and setSize().

◆ engine

QTeXPaintEngine* QTeXPaintDevice::engine
private

The documentation for this class was generated from the following files: