Kaydet (Commit) f9d3cf3f authored tarafından Caolán McNamara's avatar Caolán McNamara

missing magic

Change-Id: I93479fe18e1ea3e58dcec46a43fe1a89647c8000
üst f676369e
/* -*- 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: */
/* -*- 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: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment