[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara caolanm at redhat.com
Tue Mar 3 01:55:48 PST 2015


 vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx |   42 +++++++++++++++++++++++++++++++
 vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx |   33 ++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

New commits:
commit f9d3cf3f807b27465b48e2007b4234f4a23913dd
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Mar 3 09:54:47 2015 +0000

    missing magic
    
    Change-Id: I93479fe18e1ea3e58dcec46a43fe1a89647c8000

diff --git a/vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx b/vcl/unx/gtk3/gdi/gtk3cairotextrender.cxx
new file mode 100644
index 0000000..f2f044e
--- /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 0000000..e134182
--- /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: */


More information about the Libreoffice-commits mailing list