Home | History | Annotate | Download | only in win

Lines Matching refs:pctx

1967 void WebFrame::drawHeader(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, float headerHeight)
1972 ui->drawHeaderInRect(d->webView, &headerRect, static_cast<OLE_HANDLE>(reinterpret_cast<LONG64>(pctx)));
1975 void WebFrame::drawFooter(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, UINT page, UINT pageCount, float headerHeight, float footerHeight)
1980 ui->drawFooterInRect(d->webView, &footerRect, static_cast<OLE_HANDLE>(reinterpret_cast<LONG64>(pctx)), page+1, pageCount);
1983 void WebFrame::spoolPage(PlatformGraphicsContext* pctx, GraphicsContext* spoolCtx, HDC printDC, IWebUIDelegate* ui, float headerHeight, float footerHeight, UINT page, UINT pageCount)
1989 CGContextSaveGState(pctx);
1997 CGContextBeginPage(pctx, &mediaBox);
2000 CGAffineTransform ctm = CGContextGetBaseCTM(pctx);
2003 CGContextScaleCTM(pctx, scale, scale);
2004 CGContextTranslateCTM(pctx, CGFloat(-pageRect.x()), CGFloat(-pageRect.y()+headerHeight)); // reserves space for header
2005 CGContextSetBaseCTM(pctx, ctm);
2009 CGContextTranslateCTM(pctx, CGFloat(pageRect.x()), CGFloat(pageRect.y())-headerHeight);
2012 drawHeader(pctx, ui, pageRect, headerHeight);
2015 drawFooter(pctx, ui, pageRect, page, pageCount, headerHeight, footerHeight);
2017 CGContextEndPage(pctx);
2018 CGContextRestoreGState(pctx);
2038 static HDC hdcFromContext(PlatformGraphicsContext* pctx)
2040 cairo_surface_t* surface = cairo_get_target(pctx);
2044 void WebFrame::drawHeader(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, float headerHeight)
2046 HDC hdc = hdcFromContext(pctx);
2057 void WebFrame::drawFooter(PlatformGraphicsContext* pctx, IWebUIDelegate* ui, const IntRect& pageRect, UINT page, UINT pageCount, float headerHeight, float footerHeight)
2059 HDC hdc = hdcFromContext(pctx);
2070 void WebFrame::spoolPage(PlatformGraphicsContext* pctx, GraphicsContext* spoolCtx, HDC printDC, IWebUIDelegate* ui, float headerHeight, float footerHeight, UINT page, UINT pageCount)
2077 cairo_save(pctx);
2080 cairo_scale(pctx, scale, scale);
2090 cairo_translate(pctx, -pageRect.x(), -pageRect.y());
2093 cairo_translate(pctx, pageRect.x(), pageRect.y());
2107 drawHeader(pctx, ui, pageRect, headerHeight);
2110 drawFooter(pctx, ui, pageRect, page, pageCount, headerHeight, footerHeight);
2114 cairo_show_page(pctx);
2115 ASSERT(!cairo_status(pctx));
2117 cairo_restore(pctx);
2157 PlatformGraphicsContext* pctx = (PlatformGraphicsContext*)ctx;
2176 GraphicsContext spoolCtx(pctx);
2180 spoolPage(pctx, &spoolCtx, printDC, ui.get(), headerHeight, footerHeight, ii, pageCount);
2183 cairo_destroy(pctx);