Public Member Functions | |
GR_Win32PrintPreviewGraphics (const RECT &rect) | |
virtual | ~GR_Win32PrintPreviewGraphics () |
virtual UT_uint32 | getClassId () |
virtual GR_Capability | getCapability () |
virtual void | drawGlyph (UT_uint32 glyph_idx, UT_sint32 xoff, UT_sint32 yoff) |
virtual void | drawChar (UT_UCSChar Char, UT_sint32 xoff, UT_sint32 yoff) |
virtual void | drawChars (const UT_UCSChar *pChars, int iCharOffset, int iLength, UT_sint32 xoff, UT_sint32 yoff, int *pCharWidth) |
virtual void | setFont (const GR_Font *pFont) |
virtual void | clearFont (void) |
virtual void | setColor (const UT_RGBColor &clr) |
virtual void | getColor (UT_RGBColor &clr) |
virtual void | drawLine (UT_sint32 a, UT_sint32 b, UT_sint32 c, UT_sint32 d) |
virtual void | xorLine (UT_sint32 a, UT_sint32 b, UT_sint32 c, UT_sint32 d) |
virtual void | setLineWidth (UT_sint32 w) |
virtual void | setLineProperties (double inWidthPixels, JoinStyle inJoinStyle=JOIN_MITER, CapStyle inCapStyle=CAP_BUTT, LineStyle inLineStyle=LINE_SOLID) |
virtual void | polyLine (const UT_Point *pts, UT_uint32 nPoints) |
virtual void | fillRect (const UT_RGBColor &c, UT_sint32 x, UT_sint32 y, UT_sint32 w, UT_sint32 h) |
virtual void | invertRect (const UT_Rect *pRect) |
virtual void | setClipRect (const UT_Rect *pRect) |
virtual void | clearArea (UT_sint32 a, UT_sint32 b, UT_sint32 c, UT_sint32 d) |
virtual GR_Image * | createNewImage (const char *pszName, const UT_ByteBuf *pBB, const std::string &mimetype, UT_sint32 iDisplayWidth, UT_sint32 iDisplayHeight, GR_Image::GRType iType) |
virtual void | drawImage (GR_Image *pImg, UT_sint32 xDest, UT_sint32 yDest) |
virtual bool | queryProperties (GR_Graphics::Properties gp) const |
virtual void | polygon (const UT_RGBColor &c, const UT_Point *pts, UT_uint32 nPoints) |
virtual GR_Image * | genImageFromRectangle (const UT_Rect &r) |
virtual void | saveRectangle (UT_Rect &r, UT_uint32 iIndx) |
virtual void | restoreRectangle (UT_uint32 iIndx) |
virtual void | flush (void) |
virtual bool | startPrint (void) |
virtual bool | startPage (const char *, UT_uint32, bool, UT_uint32, UT_uint32) |
virtual bool | endPrint (void) |
void | endPage () |
Static Public Member Functions | |
static const char * | graphicsDescriptor () |
Protected Member Functions | |
virtual GR_Font * | _findFont (const char *pszFontFamily, const char *pszFontStyle, const char *pszFontVariant, const char *pszFontWeight, const char *pszFontStretch, const char *pszFontSize, const char *pszLang) |
Protected Attributes | |
GR_Win32Graphics * | m_pGraphics |
RECT | page_rect |
HDC | metafile_dc |
GpBitmap * | m_multiPageTiff |
gunichar2 * | m_tiffFilename |
int | metafile_xres |
int | metafile_yres |
GR_Win32PrintPreviewGraphics::GR_Win32PrintPreviewGraphics | ( | const RECT & | rect | ) | [inline] |
References ASSERT_GDIP_SUCCESS, d, gdip_init(), and GR_Win32Graphics::getPrimaryDC().
virtual GR_Win32PrintPreviewGraphics::~GR_Win32PrintPreviewGraphics | ( | ) | [inline, virtual] |
References d, and GdipDisposeImage.
virtual GR_Font* GR_Win32PrintPreviewGraphics::_findFont | ( | const char * | pszFontFamily, | |
const char * | pszFontStyle, | |||
const char * | pszFontVariant, | |||
const char * | pszFontWeight, | |||
const char * | pszFontStretch, | |||
const char * | pszFontSize, | |||
const char * | pszLang | |||
) | [inline, protected, virtual] |
Reimplemented from GR_Win32Graphics.
References GR_Win32Graphics::_findFont().
virtual void GR_Win32PrintPreviewGraphics::clearArea | ( | UT_sint32 | a, | |
UT_sint32 | b, | |||
UT_sint32 | c, | |||
UT_sint32 | d | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::clearFont | ( | void | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References GR_Win32Graphics::clearFont(), and d.
virtual GR_Image* GR_Win32PrintPreviewGraphics::createNewImage | ( | const char * | pszName, | |
const UT_ByteBuf * | pBB, | |||
const std::string & | mimetype, | |||
UT_sint32 | iDisplayWidth, | |||
UT_sint32 | iDisplayHeight, | |||
GR_Image::GRType | iType | |||
) | [inline, virtual] |
References GR_Win32Graphics::createNewImage(), and d.
virtual void GR_Win32PrintPreviewGraphics::drawChar | ( | UT_UCSChar | Char, | |
UT_sint32 | xoff, | |||
UT_sint32 | yoff | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::drawChars | ( | const UT_UCSChar * | pChars, | |
int | iCharOffset, | |||
int | iLength, | |||
UT_sint32 | xoff, | |||
UT_sint32 | yoff, | |||
int * | pCharWidth | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::drawGlyph | ( | UT_uint32 | glyph_idx, | |
UT_sint32 | xoff, | |||
UT_sint32 | yoff | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::drawImage | ( | GR_Image * | pImg, | |
UT_sint32 | xDest, | |||
UT_sint32 | yDest | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::drawLine | ( | UT_sint32 | a, | |
UT_sint32 | b, | |||
UT_sint32 | c, | |||
UT_sint32 | d | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
void GR_Win32PrintPreviewGraphics::endPage | ( | ) | [inline] |
References ASSERT_GDIP_SUCCESS, EncoderParameters::Count, d, DELETEP, EncoderSaveFlag, GdipBitmapSetResolution, GdipCreateBitmapFromScan0, GdipCreateMetafileFromEmf, GdipDeleteGraphics, GdipDisposeImage, GdipDrawImageI, GdipFlush, GdipGetImageGraphicsContext, GdipGetImageHeight, GdipGetImageWidth, GdipGraphicsClear, GdipSaveAddImage, GdipSaveImageToFile, EncoderParameter::Guid, GR_Graphics::invalidateCache(), EncoderParameter::NumberOfValues, EncoderParameters::Parameter, PixelFormat32bppARGB, tiff_clsid, EncoderParameter::Type, and EncoderParameter::Value.
virtual bool GR_Win32PrintPreviewGraphics::endPrint | ( | void | ) | [inline, virtual] |
virtual void GR_Win32PrintPreviewGraphics::fillRect | ( | const UT_RGBColor & | c, | |
UT_sint32 | x, | |||
UT_sint32 | y, | |||
UT_sint32 | w, | |||
UT_sint32 | h | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::flush | ( | void | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual GR_Image* GR_Win32PrintPreviewGraphics::genImageFromRectangle | ( | const UT_Rect & | r | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_val_if_fail.
virtual GR_Capability GR_Win32PrintPreviewGraphics::getCapability | ( | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
virtual UT_uint32 GR_Win32PrintPreviewGraphics::getClassId | ( | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References GR_Win32Graphics::s_getClassId().
virtual void GR_Win32PrintPreviewGraphics::getColor | ( | UT_RGBColor & | clr | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
static const char* GR_Win32PrintPreviewGraphics::graphicsDescriptor | ( | void | ) | [inline, static] |
Reimplemented from GR_Win32Graphics.
virtual void GR_Win32PrintPreviewGraphics::invertRect | ( | const UT_Rect * | pRect | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::polygon | ( | const UT_RGBColor & | c, | |
const UT_Point * | pts, | |||
UT_uint32 | nPoints | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::polyLine | ( | const UT_Point * | pts, | |
UT_uint32 | nPoints | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual bool GR_Win32PrintPreviewGraphics::queryProperties | ( | GR_Graphics::Properties | gp | ) | const [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d.
virtual void GR_Win32PrintPreviewGraphics::restoreRectangle | ( | UT_uint32 | iIndx | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::saveRectangle | ( | UT_Rect & | r, | |
UT_uint32 | iIndx | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::setClipRect | ( | const UT_Rect * | pRect | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::setColor | ( | const UT_RGBColor & | clr | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::setFont | ( | const GR_Font * | pFont | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and GR_Win32Graphics::setFont().
virtual void GR_Win32PrintPreviewGraphics::setLineProperties | ( | double | inWidthPixels, | |
JoinStyle | inJoinStyle = JOIN_MITER , |
|||
CapStyle | inCapStyle = CAP_BUTT , |
|||
LineStyle | inLineStyle = LINE_SOLID | |||
) | [inline, virtual] |
Reimplemented from GR_Graphics.
References d, and UT_return_if_fail.
virtual void GR_Win32PrintPreviewGraphics::setLineWidth | ( | UT_sint32 | w | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
virtual bool GR_Win32PrintPreviewGraphics::startPage | ( | const char * | , | |
UT_uint32 | , | |||
bool | , | |||
UT_uint32 | , | |||
UT_uint32 | ||||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, XAP_App::getApp(), GR_Win32Graphics::getPrimaryDC(), and XAP_App::newGraphics().
virtual bool GR_Win32PrintPreviewGraphics::startPrint | ( | void | ) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_createTmpFile().
virtual void GR_Win32PrintPreviewGraphics::xorLine | ( | UT_sint32 | a, | |
UT_sint32 | b, | |||
UT_sint32 | c, | |||
UT_sint32 | d | |||
) | [inline, virtual] |
Reimplemented from GR_Win32Graphics.
References d, and UT_return_if_fail.
GpBitmap* GR_Win32PrintPreviewGraphics::m_multiPageTiff [protected] |
gunichar2* GR_Win32PrintPreviewGraphics::m_tiffFilename [protected] |
HDC GR_Win32PrintPreviewGraphics::metafile_dc [protected] |
int GR_Win32PrintPreviewGraphics::metafile_xres [protected] |
int GR_Win32PrintPreviewGraphics::metafile_yres [protected] |
RECT GR_Win32PrintPreviewGraphics::page_rect [protected] |