summaryrefslogtreecommitdiff
path: root/solenv/inc/prewin.h
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-02-08 12:28:56 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-02-08 12:56:44 +0200
commitaa100206ac6d064a5a8c445e4e282e1d363fc21e (patch)
tree454d755adcb2f5575c624afdae6cd71b9edca2ea /solenv/inc/prewin.h
parentad6ae59025c7bbbcabedffcb81902c3f9a683192 (diff)
Move prewin.h and postwin.h from tools to solenv
All #include directives that include tools/prewin.h and tools/postwin.h need to have the "tools/" part dropped. Will do that, too. For earlier git log of these two files, see the libs-gui repository.
Diffstat (limited to 'solenv/inc/prewin.h')
-rw-r--r--solenv/inc/prewin.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/solenv/inc/prewin.h b/solenv/inc/prewin.h
new file mode 100644
index 000000000000..90a19d32d992
--- /dev/null
+++ b/solenv/inc/prewin.h
@@ -0,0 +1,84 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+/* nicht geschuetzt, darf nur einmal includet werden */
+
+#if defined WNT
+
+#define BOOL WIN_BOOL
+#define BYTE WIN_BYTE
+#ifndef VCL_NEED_BASETSD
+#define INT64 WIN_INT64
+#define UINT64 WIN_UINT64
+#define INT32 WIN_INT32
+#define UINT32 WIN_UINT32
+#define ULONG WIN_ULONG
+#endif
+
+#define Rectangle BLA_Rectangle
+#define Polygon BLA_Polygon
+#define PolyPolygon BLA_PolyPolygon
+#define Region WIN_Region
+#define Folder WIN_Folder
+#define GradientStyle_RECT WIN_GradientStyle_RECT
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define STRICT
+#ifdef _MSC_VER
+#pragma warning(push, 1)
+#endif
+#include <windows.h>
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+#include <shellapi.h>
+#include <commdlg.h>
+#include <dlgs.h>
+#ifdef USE_TOOLHELP
+#include <tlhelp32.h>
+#endif
+#ifdef USE_IMAGEHLP
+#include <imagehlp.h>
+#endif
+#ifdef INCLUDE_MMSYSTEM
+#include <mmsystem.h>
+#endif
+#ifdef _MSC_VER
+#pragma warning(push, 1)
+#endif
+#include <commctrl.h>
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */