Related: tdf#137748 "Update" should have use-underline
[LibreOffice.git] / vcl / headless / svpcairotextrender.cxx
blob9abd5902864dee8882b108a7c686f9fd1c4237b3
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 cairo_t* SvpCairoTextRender::getCairoContext() { return mrParent.getCairoContext(false); }
21 void SvpCairoTextRender::getSurfaceOffset(double& nDX, double& nDY)
23 nDX = 0;
24 nDY = 0;
27 void SvpCairoTextRender::clipRegion(cairo_t* cr) { mrParent.clipRegion(cr); }
29 void SvpCairoTextRender::releaseCairoContext(cairo_t* cr)
31 mrParent.releaseCairoContext(cr, false, basegfx::B2DRange());
34 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */