class WXDLLIMPEXP_FWD_CORE wxPrinterDC;
class WXDLLIMPEXP_FWD_CORE wxPrintData;
-
-#if wxUSE_GRAPHICS_CONTEXT
-class WXDLLIMPEXP_FWD_CORE wxGraphicsContext;
-#endif
-
//-----------------------------------------------------------------------------
// wxDrawObject helper class
//-----------------------------------------------------------------------------
virtual bool CanDrawBitmap() const = 0;
virtual bool CanGetTextExtent() const = 0;
- // get graphics context from
-
-#if wxUSE_GRAPHICS_CONTEXT
- virtual wxGraphicsContext* CreateGraphicsContext()
+ // get Cairo context
+ virtual void* GetCairoContext() const
{
return NULL;
}
-#endif
// query dimension, colour deps, resolution
bool IsOk() const
{ return m_pimpl && m_pimpl->IsOk(); }
-#if wxUSE_GRAPHICS_CONTEXT
- wxGraphicsContext* CreateGraphicsContext()
- { return m_pimpl->CreateGraphicsContext(); }
-#endif
-
// query capabilities
bool CanDrawBitmap() const