summaryrefslogtreecommitdiff
path: root/include/vcl/devicecoordinate.hxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-07-17 18:46:08 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-07-20 22:10:58 +0200
commit2b8528a2745bec7909bfe2265d6110a9964eef47 (patch)
tree335279159b6f01de07ea23e15679e566ac000ed5 /include/vcl/devicecoordinate.hxx
parent269e960ee190a8f568e99756c90cd98f1a7919ce (diff)
Use DeviceCorrdinate for DXArray in FillDXArray and ImplLayoutArgs
Change-Id: Ifba7104a13cf737200c81d1a1bd5ece9a29da60e
Diffstat (limited to 'include/vcl/devicecoordinate.hxx')
-rw-r--r--include/vcl/devicecoordinate.hxx30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/vcl/devicecoordinate.hxx b/include/vcl/devicecoordinate.hxx
new file mode 100644
index 000000000000..bcc2bb2255b8
--- /dev/null
+++ b/include/vcl/devicecoordinate.hxx
@@ -0,0 +1,30 @@
+/* -*- 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_DEVICE_COORDINATE_HXX
+#define INCLUDED_VCL_DEVICE_COORDINATE_HXX
+
+#include <config_vcl.h>
+
+#if VCL_FLOAT_DEVICE_PIXEL
+#include <basegfx/point/b2dpoint.hxx>
+typedef double DeviceCoordinate;
+typedef ::basegfx::B2DPoint DevicePoint;
+
+#else /* !VCL_FLOAT_DEVICE_PIXEL */
+
+#include <basegfx/point/b2ipoint.hxx>
+typedef sal_Int32 DeviceCoordinate;
+typedef ::basegfx::B2IPoint DevicePoint;
+
+#endif /* ! Carpet Cushion */
+
+#endif /* NDef INCLUDED_VCL_DEVICE_COORDINATE_HXX */
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */