diff options
Diffstat (limited to 'vcl/unx/gtk3/gdi')
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx | 13 | ||||
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx | 9 | ||||
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 7 |
3 files changed, 13 insertions, 16 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx b/vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx index 226201265d0e..0171ef12b022 100644 --- a/vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx +++ b/vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx @@ -8,34 +8,35 @@ */ #include "gtk3cairotextrender.hxx" +#include "headless/svpgdi.hxx" -GtkCairoTextRender::GtkCairoTextRender(GtkSalGraphics& rParent) +SvpCairoTextRender::SvpCairoTextRender(SvpSalGraphics& rParent) : mrParent(rParent) { } -GlyphCache& GtkCairoTextRender::getPlatformGlyphCache() +GlyphCache& SvpCairoTextRender::getPlatformGlyphCache() { return SvpSalGraphics::getPlatformGlyphCache(); } -cairo_t* GtkCairoTextRender::getCairoContext() +cairo_t* SvpCairoTextRender::getCairoContext() { return mrParent.getCairoContext(); } -void GtkCairoTextRender::getSurfaceOffset(double& nDX, double& nDY) +void SvpCairoTextRender::getSurfaceOffset(double& nDX, double& nDY) { nDX = 0; nDY = 0; } -void GtkCairoTextRender::clipRegion(cairo_t* cr) +void SvpCairoTextRender::clipRegion(cairo_t* cr) { mrParent.clipRegion(cr); } -void GtkCairoTextRender::drawSurface(cairo_t* /*cr*/) +void SvpCairoTextRender::drawSurface(cairo_t* /*cr*/) { } diff --git a/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx b/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx index fcba2731a40d..1a0a1ec3b871 100644 --- a/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx +++ b/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx @@ -11,15 +11,16 @@ #define INCLUDED_VCL_UNX_GTK3_GDI_GTK3CAIROTEXTRENDER_HXX #include "cairotextrender.hxx" -#include <unx/gtk/gtkgdi.hxx> -class GtkCairoTextRender : public CairoTextRender +class SvpSalGraphics; + +class SvpCairoTextRender : public CairoTextRender { protected: - GtkSalGraphics& mrParent; + SvpSalGraphics& mrParent; public: - explicit GtkCairoTextRender(GtkSalGraphics& rParent); + explicit SvpCairoTextRender(SvpSalGraphics& rParent); virtual GlyphCache& getPlatformGlyphCache() override; virtual cairo_t* getCairoContext() override; diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index a1927e4e47f8..7c25774a865f 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -1999,7 +1999,7 @@ GtkSalGraphics::GtkSalGraphics( GtkSalFrame *pFrame, GtkWidget *pWindow ) mpFrame( pFrame ), mpWindow( pWindow ) { - m_xTextRenderImpl.reset(new GtkCairoTextRender(*this)); + m_xTextRenderImpl.reset(new SvpCairoTextRender(*this)); if(style_loaded) return; @@ -2124,11 +2124,6 @@ GtkSalGraphics::GtkSalGraphics( GtkSalFrame *pFrame, GtkWidget *pWindow ) gtk_widget_show_all(gDumbContainer); } -cairo_t* GtkSalGraphics::getCairoContext() const -{ - return mpFrame->getCairoContext(); -} - void GtkSalGraphics::GetResolution(sal_Int32& rDPIX, sal_Int32& rDPIY) { char* pForceDpi; |