Branch libreoffice-5-0-4
[LibreOffice.git] / include / vcl / devicecoordinate.hxx
blob58ff3d2425dd0f059e7f66d6562da081b37564d2
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 #ifndef INCLUDED_VCL_DEVICE_COORDINATE_HXX
11 #define INCLUDED_VCL_DEVICE_COORDINATE_HXX
13 #include <config_vcl.h>
15 #if VCL_FLOAT_DEVICE_PIXEL
16 #include <basegfx/point/b2dpoint.hxx>
17 typedef double DeviceCoordinate;
18 typedef ::basegfx::B2DPoint DevicePoint;
20 #else /* !VCL_FLOAT_DEVICE_PIXEL */
22 #include <basegfx/point/b2ipoint.hxx>
23 typedef long DeviceCoordinate;
24 typedef ::basegfx::B2IPoint DevicePoint;
26 #endif /* ! Carpet Cushion */
28 #endif /* NDef INCLUDED_VCL_DEVICE_COORDINATE_HXX */
30 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */