diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-03 09:54:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-03 09:55:13 +0000 |
commit | f9d3cf3f807b27465b48e2007b4234f4a23913dd (patch) | |
tree | 12d4d0c0c07095147fb5e5aea2fd090bddf6b3ce | |
parent | f676369e485068ecb36a2f6030d4e746e769909f (diff) |
missing magic
Change-Id: I93479fe18e1ea3e58dcec46a43fe1a89647c8000
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx | 42 | ||||
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx | 33 |
2 files changed, 75 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx b/vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx new file mode 100644 index 000000000000..f2f044e633af --- /dev/null +++ b/vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx @@ -0,0 +1,42 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include "gtk3cairotextrender.hxx" + +GtkCairoTextRender::GtkCairoTextRender(GtkSalGraphics& rParent) + : mrParent(rParent) +{ +} + +GlyphCache& GtkCairoTextRender::getPlatformGlyphCache() +{ + return mrParent.getPlatformGlyphCache(); +} + +cairo_t* GtkCairoTextRender::getCairoContext() +{ + return mrParent.getCairoContext(); +} + +void GtkCairoTextRender::getSurfaceOffset(double& nDX, double& nDY) +{ + nDX = 0; + nDY = 0; +} + +void GtkCairoTextRender::clipRegion(cairo_t* cr) +{ + mrParent.clipRegion(cr); +} + +void GtkCairoTextRender::drawSurface(cairo_t* /*cr*/) +{ +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx b/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx new file mode 100644 index 000000000000..e134182d8d21 --- /dev/null +++ b/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx @@ -0,0 +1,33 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_VCL_UNX_GTK3_GDI_GTK3CAIROTEXTRENDER_HXX +#define INCLUDED_VCL_UNX_GTK3_GDI_GTK3CAIROTEXTRENDER_HXX + +#include "cairotextrender.hxx" +#include <unx/gtk/gtkgdi.hxx> + +class GtkCairoTextRender : public CairoTextRender +{ +protected: + GtkSalGraphics& mrParent; + +public: + GtkCairoTextRender(GtkSalGraphics& rParent); + + virtual GlyphCache& getPlatformGlyphCache() SAL_OVERRIDE; + virtual cairo_t* getCairoContext() SAL_OVERRIDE; + virtual void getSurfaceOffset(double& nDX, double& nDY) SAL_OVERRIDE; + virtual void clipRegion(cairo_t* cr) SAL_OVERRIDE; + virtual void drawSurface(cairo_t* cr) SAL_OVERRIDE; +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |