#include <gr_Win32Graphics.h>

Public Member Functions | |
| virtual | ~GR_Win32Graphics () |
| 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 UT_uint32 | getFontHeight () |
| virtual UT_sint32 | measureUnRemappedChar (const UT_UCSChar c, UT_uint32 *height=0) |
| virtual void | setColor (const UT_RGBColor &clr) |
| virtual void | getColor (UT_RGBColor &clr) |
| virtual GR_Font * | getGUIFont () |
| virtual UT_uint32 | getFontAscent () |
| virtual UT_uint32 | getFontDescent () |
| virtual void | getCoverage (UT_NumberVector &coverage) |
| virtual void | drawLine (UT_sint32, UT_sint32, UT_sint32, UT_sint32) |
| virtual void | xorLine (UT_sint32, UT_sint32, UT_sint32, UT_sint32) |
| virtual void | setLineWidth (UT_sint32) |
| virtual void | setLineProperties (double inWidthPixels, JoinStyle inJoinStyle=JOIN_MITER, CapStyle inCapStyle=CAP_BUTT, LineStyle inLineStyle=LINE_SOLID) |
| virtual void | polyLine (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 | scroll (UT_sint32 dx, UT_sint32 dy) |
| The View calls this when it receives a SetX/YScrollOffset call. | |
| virtual void | scroll (UT_sint32 x_dest, UT_sint32 y_dest, UT_sint32 x_src, UT_sint32 y_src, UT_sint32 width, UT_sint32 height) |
| virtual void | clearArea (UT_sint32, UT_sint32, UT_sint32, UT_sint32) |
| virtual void | drawImage (GR_Image *pImg, UT_sint32 xDest, UT_sint32 yDest) |
| virtual GR_Image * | createNewImage (const char *pszName, const UT_ByteBuf *pBB, UT_sint32 iDisplayWidth, UT_sint32 iDisplayHeight, GR_Image::GRType iType=GR_Image::GRT_Raster) |
| virtual bool | queryProperties (GR_Graphics::Properties gp) const |
| virtual bool | startPrint (void) |
| virtual bool | startPage (const char *szPageLabel, UT_uint32 pageNumber, bool bPortrait, UT_uint32 iWidth, UT_uint32 iHeight) |
| virtual bool | endPrint (void) |
| virtual HWND | getHwnd (void) const |
| virtual void | setColorSpace (GR_Graphics::ColorSpace c) |
| virtual GR_Graphics::ColorSpace | getColorSpace (void) const |
| virtual void | setCursor (GR_Graphics::Cursor c) |
| virtual GR_Graphics::Cursor | getCursor (void) const |
| virtual void | handleSetCursorMessage (void) |
| virtual void | setColor3D (GR_Color3D c) |
| void | init3dColors (void) |
| virtual void | fillRect (GR_Color3D c, UT_sint32 x, UT_sint32 y, UT_sint32 w, UT_sint32 h) |
| virtual void | fillRect (GR_Color3D c, UT_Rect &r) |
| virtual void | polygon (UT_RGBColor &c, UT_Point *pts, UT_uint32 nPoints) |
| virtual UT_uint32 | getFontAscent (const GR_Font *) |
| virtual UT_uint32 | getFontDescent (const GR_Font *) |
| virtual UT_uint32 | getFontHeight (const GR_Font *) |
| 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) |
| void | setBrush (HBRUSH hBrush) |
| virtual void | setPrintDC (HDC dc) |
| HDC | getPrintDC () const |
| HDC | getPrimaryDC () const |
| void | setPrintDCFontAllocNo (UT_uint32 i) |
| void | setDCFontAllocNo (UT_uint32 i) |
| double | getXYRatio () const |
| double | getXYRatioPrint () const |
Static Public Member Functions | |
| static UT_uint32 | s_getClassId () |
| static const char * | graphicsDescriptor () |
| static GR_Graphics * | graphicsAllocator (GR_AllocInfo &) |
| static GR_Graphics * | getPrinterGraphics (const char *pPrinterName, const char *pDocName) |
| static bool | fixDevMode (HGLOBAL hModDev) |
| static DOCINFO * | getDocInfo () |
| static HDC | createbestmetafilehdc () |
Protected Member Functions | |
| GR_Win32Graphics (HDC, HWND) | |
| GR_Win32Graphics (HDC, const DOCINFO *, HGLOBAL hDevMode=NULL) | |
| BITMAPINFO * | ConvertDDBToDIB (HBITMAP bitmap, HPALETTE hPal, DWORD dwCompression) |
| 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) |
| virtual UT_uint32 | getDeviceResolution (void) const |
| void | _setColor (DWORD clrRef) |
Protected Attributes | |
| UT_uint32 | m_iDCFontAllocNo |
| UT_uint32 | m_iPrintDCFontAllocNo |
| HDC | m_hdc |
| HDC | m_printHDC |
| HWND | m_hwnd |
| const DOCINFO * | m_pDocInfo |
| bool | m_bPrint |
| bool | m_bStartPrint |
| bool | m_bStartPage |
| GR_Win32Font * | m_pFont |
| GR_Win32Font * | m_pFontGUI |
| UT_sint32 | m_iLineWidth |
| JoinStyle | m_eJoinStyle |
| CapStyle | m_eCapStyle |
| LineStyle | m_eLineStyle |
| GR_Graphics::ColorSpace | m_cs |
| GR_Graphics::Cursor | m_cursor |
| DWORD | m_clrCurrent |
| DWORD | m_3dColors [COUNT_3D_COLORS] |
| int | m_nPrintLogPixelsY |
| double | m_fXYRatio |
| double | m_fXYRatioPrint |
Static Protected Attributes | |
| static HDC | m_defPrintHDC = NULL |
| static UT_uint32 | s_iInstanceCount = 0 |
Private Member Functions | |
| virtual GR_Win32Font * | _newFont (LOGFONT &lf, double fPointSize, HDC hdc, HDC printDC) |
| void | _constructorCommonCode (HDC) |
| UT_uint16 * | _remapGlyphs (const UT_UCSChar *pChars, int iCharOffset, int &iLength) |
| virtual bool | _setTransform (const GR_Transform &tr) |
Private Attributes | |
| DWORD | m_clrXorPen |
| HPEN | m_hXorPen |
| UT_UCS2Char * | m_remapBuffer |
| UT_uint32 | m_remapBufferSize |
| UT_UCS2Char * | m_remapIndices |
| UT_RGBColor | m_curColor |
| UT_Vector | m_vSaveRect |
| UT_Vector | m_vSaveRectBuf |
| HBRUSH | m_hClearBrush |
| int | m_nLogPixelsY |
| HGLOBAL | m_hDevMode |
| CACHE_PEN * | m_pArPens |
| int | m_nArPenPos |
| bool | m_bIsPreview |
Classes | |
| struct | CACHE_PEN |
| GR_Win32Graphics::~GR_Win32Graphics | ( | ) | [virtual] |
References GR_Graphics::_destroyFonts(), DELETEP, UT_GenericVector< T >::getNthItem(), GR_Win32Graphics::CACHE_PEN::hPen, m_defPrintHDC, m_hXorPen, m_nArPenPos, m_pArPens, m_pFontGUI, m_printHDC, m_remapBuffer, m_remapIndices, m_vSaveRect, m_vSaveRectBuf, s_iInstanceCount, UT_GenericVector< T >::size(), and UT_VECTOR_SPARSEPURGEALL.
| GR_Win32Graphics::GR_Win32Graphics | ( | HDC | hdc, | |
| HWND | hwnd | |||
| ) | [protected] |
References _constructorCommonCode(), getPrintDC(), m_defPrintHDC, m_fXYRatioPrint, m_hwnd, m_nPrintLogPixelsY, m_printHDC, s_iInstanceCount, UT_ASSERT_HARMLESS, UT_GetDefaultPrinterDC(), and UT_SHOULD_NOT_HAPPEN.
Referenced by graphicsAllocator().
| GR_Win32Graphics::GR_Win32Graphics | ( | HDC | hdc, | |
| const DOCINFO * | pDocInfo, | |||
| HGLOBAL | hDevMode = NULL | |||
| ) | [protected] |
References _constructorCommonCode(), m_bIsPreview, m_bPrint, m_hDevMode, and m_pDocInfo.
| static UT_uint32 GR_Win32Graphics::s_getClassId | ( | ) | [inline, static] |
Reimplemented from GR_Graphics.
Reimplemented in GR_Win32USPGraphics.
References GRID_WIN32.
Referenced by GR_Win32PrintPreviewGraphics::getClassId(), GR_Win32USPGraphics::getClassId(), and XAP_Win32App::XAP_Win32App().
| virtual UT_uint32 GR_Win32Graphics::getClassId | ( | ) | [inline, virtual] |
Reimplemented from GR_Graphics.
Reimplemented in GR_Win32USPGraphics, and GR_Win32PrintPreviewGraphics.
References GR_Graphics::s_getClassId().
| virtual GR_Capability GR_Win32Graphics::getCapability | ( | ) | [inline, virtual] |
Reimplemented from GR_Graphics.
Reimplemented in GR_Win32USPGraphics, and GR_Win32PrintPreviewGraphics.
References GRCAP_SCREEN_AND_PRINTER.
| static const char* GR_Win32Graphics::graphicsDescriptor | ( | void | ) | [inline, static] |
Reimplemented in GR_Win32USPGraphics, and GR_Win32PrintPreviewGraphics.
Referenced by XAP_Win32App::XAP_Win32App().
| GR_Graphics * GR_Win32Graphics::graphicsAllocator | ( | GR_AllocInfo & | info | ) | [static] |
Reimplemented in GR_Win32USPGraphics.
References GR_AllocInfo::getType(), GR_Win32Graphics(), GRID_WIN32, UT_NOT_IMPLEMENTED, and UT_return_val_if_fail.
Referenced by XAP_Win32App::XAP_Win32App().
| GR_Graphics * GR_Win32Graphics::getPrinterGraphics | ( | const char * | pPrinterName, | |
| const char * | pDocName | |||
| ) | [static] |
References _test_and_cleanup, XAP_App::getApp(), XAP_App::newGraphics(), UT_ASSERT_HARMLESS, UT_calloc(), UT_GetDefaultPrinterName(), UT_IsWinNT(), and UT_return_val_if_fail.
Referenced by AP_Win32App::doWindowlessArgs().
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References UT_ASSERT_HARMLESS, and UT_TODO.
| void GR_Win32Graphics::drawChar | ( | UT_UCSChar | Char, | |
| UT_sint32 | xoff, | |||
| UT_sint32 | yoff | |||
| ) | [virtual] |
Reimplemented in GR_Win32PrintPreviewGraphics.
References GR_Graphics::_tduX(), GR_Graphics::_tduY(), GR_Win32Font::getDisplayFont(), GR_Win32Font::getFontHandle(), m_fXYRatio, m_hdc, m_pFont, GR_Win32Font::selectFontIntoDC(), UT_ASSERT, UT_DEBUGMSG, and UT_IsWinNT().
| void GR_Win32Graphics::drawChars | ( | const UT_UCSChar * | pChars, | |
| int | iCharOffset, | |||
| int | iLength, | |||
| UT_sint32 | xoff, | |||
| UT_sint32 | yoff, | |||
| int * | pCharWidth | |||
| ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32USPGraphics, and GR_Win32PrintPreviewGraphics.
References _remapGlyphs(), GR_Graphics::_tduX(), GR_Graphics::_tduY(), XAP_App::BIDI_SUPPORT_GUI, XAP_App::BIDI_SUPPORT_NONE, GR_Font::getAllocNumber(), XAP_App::getApp(), GR_Win32Font::getDisplayFont(), m_fXYRatio, m_hdc, m_iDCFontAllocNo, m_pFont, m_remapBufferSize, m_remapIndices, GR_Graphics::tdu(), XAP_App::theOSHasBidiSupport(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_IsWinNT(), and UT_SHOULD_NOT_HAPPEN.
| void GR_Win32Graphics::setFont | ( | const GR_Font * | pFont | ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32USPGraphics, and GR_Win32PrintPreviewGraphics.
References GR_Font::getAllocNumber(), GR_Win32Font::getPrimaryHDC(), m_hdc, GR_Graphics::m_iFontAllocNo, m_pFont, GR_Win32Font::selectFontIntoDC(), and UT_ASSERT.
Referenced by getFontAscent(), getFontDescent(), getFontHeight(), and GR_Win32PrintPreviewGraphics::setFont().
| virtual void GR_Win32Graphics::clearFont | ( | void | ) | [inline, virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
Referenced by GR_Win32PrintPreviewGraphics::clearFont().
| UT_uint32 GR_Win32Graphics::getFontHeight | ( | ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32USPGraphics.
References GR_Win32Font::getHeight(), m_hdc, m_pFont, m_printHDC, and UT_return_val_if_fail.
Referenced by getFontHeight().
| UT_sint32 GR_Win32Graphics::measureUnRemappedChar | ( | const UT_UCSChar | c, | |
| UT_uint32 * | height = 0 | |||
| ) | [virtual] |
Implements GR_Graphics.
References getDeviceResolution(), GR_Graphics::getResolution(), GR_CW_ABSENT, GR_CW_UNKNOWN, m_fXYRatio, m_pFont, GR_Win32Font::measureUnRemappedChar(), UT_DEBUGMSG, and UT_return_val_if_fail.
| void GR_Win32Graphics::setColor | ( | const UT_RGBColor & | clr | ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References _setColor(), UT_RGBColor::m_blu, m_curColor, UT_RGBColor::m_grn, and UT_RGBColor::m_red.
| void GR_Win32Graphics::getColor | ( | UT_RGBColor & | clr | ) | [virtual] |
| GR_Font * GR_Win32Graphics::getGUIFont | ( | void | ) | [virtual] |
Implements GR_Graphics.
References _newFont(), m_hdc, m_pFontGUI, GR_Win32Font::markGUIFont(), and UT_ASSERT.
| UT_uint32 GR_Win32Graphics::getFontAscent | ( | ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32USPGraphics.
References GR_Win32Font::getAscent(), m_hdc, m_pFont, m_printHDC, and UT_return_val_if_fail.
Referenced by getFontAscent().
| UT_uint32 GR_Win32Graphics::getFontDescent | ( | ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32USPGraphics.
References GR_Win32Font::getDescent(), m_hdc, m_pFont, m_printHDC, and UT_return_val_if_fail.
Referenced by getFontDescent().
| void GR_Win32Graphics::getCoverage | ( | UT_NumberVector & | coverage | ) | [virtual] |
Implements GR_Graphics.
References UT_GenericVector< T >::clear(), and UT_GenericVector< T >::push_back().
| void GR_Win32Graphics::drawLine | ( | UT_sint32 | x1, | |
| UT_sint32 | y1, | |||
| UT_sint32 | x2, | |||
| UT_sint32 | y2 | |||
| ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References _MAX_CACHE_PENS, GR_Graphics::_tduR(), GR_Graphics::_tduX(), GR_Graphics::_tduY(), GR_Win32Graphics::CACHE_PEN::dwColour, GR_Win32Graphics::CACHE_PEN::hPen, GR_Graphics::LINE_DOTTED, GR_Graphics::LINE_DOUBLE_DASH, GR_Graphics::LINE_ON_OFF_DASH, GR_Graphics::LINE_SOLID, m_clrCurrent, m_eLineStyle, m_fXYRatio, m_hdc, m_iLineWidth, m_nArPenPos, m_pArPens, GR_Win32Graphics::CACHE_PEN::nStyle, GR_Win32Graphics::CACHE_PEN::nWidth, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_NOT_IMPLEMENTED, and void().
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References GR_Graphics::_tduR(), GR_Graphics::_tduX(), GR_Graphics::_tduY(), m_clrCurrent, m_clrXorPen, m_fXYRatio, m_hdc, m_hXorPen, m_iLineWidth, and UT_DEBUGMSG.
| void GR_Win32Graphics::setLineWidth | ( | UT_sint32 | iLineWidth | ) | [virtual] |
| void GR_Win32Graphics::setLineProperties | ( | double | inWidthPixels, | |
| JoinStyle | inJoinStyle = JOIN_MITER, |
|||
| CapStyle | inCapStyle = CAP_BUTT, |
|||
| LineStyle | inLineStyle = LINE_SOLID | |||
| ) | [virtual] |
References m_eCapStyle, m_eJoinStyle, m_eLineStyle, and m_iLineWidth.
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References GR_Graphics::_tduR(), GR_Graphics::_tduX(), GR_Graphics::_tduY(), FREEP, m_clrCurrent, m_fXYRatio, m_hdc, m_iLineWidth, UT_calloc(), UT_DEBUGMSG, UT_return_if_fail, and void().
| void GR_Win32Graphics::fillRect | ( | const UT_RGBColor & | c, | |
| UT_sint32 | x, | |||
| UT_sint32 | y, | |||
| UT_sint32 | w, | |||
| UT_sint32 | h | |||
| ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References GR_Graphics::_tduR(), GR_Graphics::_tduX(), GR_Graphics::_tduY(), UT_RGBColor::m_blu, m_fXYRatio, UT_RGBColor::m_grn, m_hdc, UT_RGBColor::m_red, GR_Graphics::setExposePending(), and UT_DEBUGMSG.
Referenced by fillRect().
| void GR_Win32Graphics::invertRect | ( | const UT_Rect * | pRect | ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References GR_Graphics::_tduX(), GR_Graphics::_tduY(), UT_Rect::height, UT_Rect::left, m_fXYRatio, m_hdc, UT_Rect::top, UT_DEBUGMSG, and UT_Rect::width.
| void GR_Win32Graphics::setClipRect | ( | const UT_Rect * | pRect | ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References GR_Graphics::_tduX(), GR_Graphics::_tduY(), UT_Rect::height, UT_Rect::left, m_fXYRatio, m_hdc, GR_Graphics::m_pRect, UT_Rect::top, UT_ASSERT, UT_ASSERT_HARMLESS, and UT_Rect::width.
The View calls this when it receives a SetX/YScrollOffset call.
Move the contents of the window appropriately. View will draw after you exit from this call. View will only draw into the "exposed" area.
dx & dy are the change in x/y from the current scrolled position negative values indcate left/up movement, positive right/down movement
Implements GR_Graphics.
References GR_Graphics::getPrevXOffset(), GR_Graphics::getPrevYOffset(), m_fXYRatio, m_hwnd, GR_Graphics::setExposePending(), GR_Graphics::setPrevXOffset(), GR_Graphics::setPrevYOffset(), and GR_Graphics::tdu().
| void GR_Win32Graphics::scroll | ( | UT_sint32 | x_dest, | |
| UT_sint32 | y_dest, | |||
| UT_sint32 | x_src, | |||
| UT_sint32 | y_src, | |||
| UT_sint32 | width, | |||
| UT_sint32 | height | |||
| ) | [virtual] |
Implements GR_Graphics.
References m_fXYRatio, m_hwnd, GR_Graphics::setExposePending(), and GR_Graphics::tdu().
| void GR_Win32Graphics::clearArea | ( | UT_sint32 | x, | |
| UT_sint32 | y, | |||
| UT_sint32 | width, | |||
| UT_sint32 | height | |||
| ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References GR_Graphics::_tduR(), GR_Graphics::_tduX(), GR_Graphics::_tduY(), m_fXYRatio, m_hClearBrush, m_hdc, and UT_DEBUGMSG.
Reimplemented from GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References GR_Graphics::_tduX(), GR_Graphics::_tduY(), GR_Graphics::DGP_PAPER, GR_Win32Image::getDIB(), GR_Image::getDisplayHeight(), GR_Image::getDisplayWidth(), GR_Image::getType(), GR_Image::GRT_Raster, m_fXYRatio, m_hdc, queryProperties(), GR_Image::render(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by XAP_Win32Dialog_FileOpenSaveAs::_previewPicture(), and XAP_Win32Dialog_About::s_dlgProc().
| GR_Image * GR_Win32Graphics::createNewImage | ( | const char * | pszName, | |
| const UT_ByteBuf * | pBB, | |||
| UT_sint32 | iDisplayWidth, | |||
| UT_sint32 | iDisplayHeight, | |||
| GR_Image::GRType | iType = GR_Image::GRT_Raster | |||
| ) | [virtual] |
Reimplemented from GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References GR_Graphics::_tduR(), GR_Image::convertFromBuffer(), GR_Image::GRT_Raster, and m_fXYRatio.
Referenced by GR_Win32PrintPreviewGraphics::createNewImage().
| bool GR_Win32Graphics::queryProperties | ( | GR_Graphics::Properties | gp | ) | const [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References GR_Graphics::DGP_OPAQUEOVERLAY, GR_Graphics::DGP_PAPER, GR_Graphics::DGP_SCREEN, m_bPrint, and UT_ASSERT_HARMLESS.
Referenced by drawImage().
| bool GR_Win32Graphics::startPrint | ( | void | ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References m_bIsPreview, m_bPrint, m_bStartPrint, m_hdc, m_pDocInfo, and UT_ASSERT.
| bool GR_Win32Graphics::startPage | ( | const char * | szPageLabel, | |
| UT_uint32 | pageNumber, | |||
| bool | bPortrait, | |||
| UT_uint32 | iWidth, | |||
| UT_uint32 | iHeight | |||
| ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References fixDevMode(), GR_Graphics::getResolution(), int(), m_bIsPreview, m_bStartPage, m_fXYRatio, m_hdc, m_hDevMode, and UT_return_val_if_fail.
| bool GR_Win32Graphics::endPrint | ( | void | ) | [virtual] |
Implements GR_Graphics.
Reimplemented in GR_Win32PrintPreviewGraphics.
References m_bIsPreview, m_bStartPage, and m_hdc.
| HWND GR_Win32Graphics::getHwnd | ( | void | ) | const [virtual] |
References m_hwnd.
| void GR_Win32Graphics::setColorSpace | ( | GR_Graphics::ColorSpace | c | ) | [virtual] |
| GR_Graphics::ColorSpace GR_Win32Graphics::getColorSpace | ( | void | ) | const [virtual] |
| void GR_Win32Graphics::setCursor | ( | GR_Graphics::Cursor | c | ) | [virtual] |
| GR_Graphics::Cursor GR_Win32Graphics::getCursor | ( | void | ) | const [virtual] |
| void GR_Win32Graphics::handleSetCursorMessage | ( | void | ) | [virtual] |
References XAP_App::getApp(), XAP_Win32App::getInstance(), GR_Graphics::GR_CURSOR_CROSSHAIR, GR_Graphics::GR_CURSOR_DEFAULT, GR_Graphics::GR_CURSOR_DOWNARROW, GR_Graphics::GR_CURSOR_EXCHANGE, GR_Graphics::GR_CURSOR_GRAB, GR_Graphics::GR_CURSOR_HLINE_DRAG, GR_Graphics::GR_CURSOR_IBEAM, GR_Graphics::GR_CURSOR_IMAGE, GR_Graphics::GR_CURSOR_IMAGESIZE_E, GR_Graphics::GR_CURSOR_IMAGESIZE_N, GR_Graphics::GR_CURSOR_IMAGESIZE_NE, GR_Graphics::GR_CURSOR_IMAGESIZE_NW, GR_Graphics::GR_CURSOR_IMAGESIZE_S, GR_Graphics::GR_CURSOR_IMAGESIZE_SE, GR_Graphics::GR_CURSOR_IMAGESIZE_SW, GR_Graphics::GR_CURSOR_IMAGESIZE_W, GR_Graphics::GR_CURSOR_LEFTARROW, GR_Graphics::GR_CURSOR_LEFTRIGHT, GR_Graphics::GR_CURSOR_LINK, GR_Graphics::GR_CURSOR_RIGHTARROW, GR_Graphics::GR_CURSOR_UPDOWN, GR_Graphics::GR_CURSOR_VLINE_DRAG, GR_Graphics::GR_CURSOR_WAIT, m_cursor, UT_ASSERT_HARMLESS, UT_IsWin95(), and UT_NOT_IMPLEMENTED.
Referenced by AP_Win32FrameImpl::_DocumentWndProc(), AP_Win32LeftRuler::_LeftRulerWndProc(), XAP_Win32FrameImpl::_setCursor(), and AP_Win32TopRuler::_TopRulerWndProc().
| void GR_Win32Graphics::setColor3D | ( | GR_Color3D | c | ) | [virtual] |
| void GR_Win32Graphics::init3dColors | ( | void | ) |
References GR_Graphics::CLR3D_Background, GR_Graphics::CLR3D_BevelDown, GR_Graphics::CLR3D_BevelUp, GR_Graphics::CLR3D_Foreground, GR_Graphics::CLR3D_Highlight, and m_3dColors.
Referenced by AP_Win32LeftRuler::_LeftRulerWndProc(), AP_Win32Dialog_PageNumbers::_onInitDialog(), AP_Win32Dialog_FormatTable::_onInitDialog(), AP_Win32Dialog_FormatFrame::_onInitDialog(), AP_Win32Dialog_Columns::_onInitDialog(), AP_Win32TopRuler::_TopRulerWndProc(), AP_Win32TopRuler::createWindow(), AP_Win32LeftRuler::createWindow(), AP_Win32TopRuler::setView(), and AP_Win32LeftRuler::setView().
| void GR_Win32Graphics::fillRect | ( | GR_Color3D | c, | |
| UT_sint32 | x, | |||
| UT_sint32 | y, | |||
| UT_sint32 | w, | |||
| UT_sint32 | h | |||
| ) | [virtual] |
Implements GR_Graphics.
References GR_Graphics::_tduX(), GR_Graphics::_tduY(), COUNT_3D_COLORS, m_3dColors, m_fXYRatio,