bump product version to 6.3.0.0.beta1
[LibreOffice.git] / vcl / headless / svpcairotextrender.cxx
blobca688d96aa81d8de8694c21e56bdab5e71ed0ca4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include <headless/svpcairotextrender.hxx>
11 #include <headless/svpgdi.hxx>
12 #include <cairo.h>
14 SvpCairoTextRender::SvpCairoTextRender(SvpSalGraphics& rParent)
15 : mrParent(rParent)
19 GlyphCache& SvpCairoTextRender::getPlatformGlyphCache()
21 return SvpSalGraphics::getPlatformGlyphCache();
24 cairo_t* SvpCairoTextRender::getCairoContext()
26 return mrParent.getCairoContext(false);
29 void SvpCairoTextRender::getSurfaceOffset(double& nDX, double& nDY)
31 nDX = 0;
32 nDY = 0;
35 void SvpCairoTextRender::clipRegion(cairo_t* cr)
37 mrParent.clipRegion(cr);
40 void SvpCairoTextRender::releaseCairoContext(cairo_t* cr)
42 mrParent.releaseCairoContext(cr, false, basegfx::B2DRange());
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */