Kaydet (Commit) 8034992e authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Bin a local X11 wrapper header, vcl/inc/unx/salstd.hxx

We already have <tools/prex.h> and <tools/postx.h>, so make those be
sufficient instead. Bin another local vcl header vcl/inc/unx/svunx.h that just
included those prex.h and postx.h. Adapt includers accordingly.

Change-Id: I6638b3260fd3da45478fcc216b41f8c8a539f0d7
üst 9e2cf37c
......@@ -24,7 +24,7 @@
}
#endif
/* X-Types */
/* X Types */
#undef Window
#undef BYTE
#undef INT8
......@@ -45,7 +45,6 @@
#undef Success
#undef Printer
/* #undef FontInfo */
#undef Orientation
#undef GetToken
......
......@@ -20,16 +20,20 @@
#ifndef _PREX_H
#define _PREX_H
#define Window XLIB_Window
#define Font XLIB_Font
/* Types from <X11/X.h> that clash with LO's identifiers
* and we don't need.
*/
#define Boolean HIDE_XLIB_Boolean
#define Font HIDE_XLIB_Font
#define Icon HIDE_XLIB_Icon
#define String HIDE_XLIB_String
/* Types from <X11/X.h> that clash, but we do use. */
#define Cursor XLIB_Cursor
#define String XLIB_String
#define KeyCode XLIB_KeyCode
#define Region XLIB_Region
#define Icon XLIB_Icon
#define Time XLIB_Time
#define Region XLIB_Region
#define Boolean XLIB_Boolean
#define Window XLIB_Window
#if defined __cplusplus
extern "C" {
......@@ -41,19 +45,16 @@ extern "C" {
#include <X11/StringDefs.h>
#include <X11/extensions/Xrender.h>
#include <X11/XKBlib.h>
/* From <X11/Intrinsic.h> */
typedef unsigned long Pixel;
#undef DestroyAll
#define DestroyAll XLIB_DestroyAll
#define XLIB_DestroyAll 0
#undef String
#define String XLIB_String
#undef KeyCode
#define KeyCode XLIB_KeyCode //undef in intrinsics
#define __Ol_OlXlibExt_h__
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -20,7 +20,8 @@
#ifndef _SV_SALBMP_H
#define _SV_SALBMP_H
#include <unx/salstd.hxx>
#include <tools/prex.h>
#include <tools/postx.h>
#ifndef _SV_SALGTYPE
#include <vcl/salgtype.hxx>
#endif
......
......@@ -20,9 +20,11 @@
#ifndef _SV_SALDATA_HXX
#define _SV_SALDATA_HXX
#include <tools/prex.h>
#include <tools/postx.h>
#include <unx/salunx.h>
#include <vcl/salgtype.hxx>
#include <unx/salstd.hxx>
#include <salframe.hxx>
#include <unx/salinst.h>
#include <generic/gendata.hxx>
......
......@@ -19,7 +19,9 @@
#ifndef _SV_SALFRAME_H
#define _SV_SALFRAME_H
#include <unx/salstd.hxx>
#include <tools/prex.h>
#include <tools/postx.h>
#include <unx/salunx.h>
#include <unx/saltype.h>
......
......@@ -20,12 +20,13 @@
#ifndef _SV_SALGDI_H
#define _SV_SALGDI_H
#include "tools/fract.hxx"
#include <tools/prex.h>
#include <tools/postx.h>
#include <tools/fract.hxx>
#include "vcl/salgtype.hxx"
#include "vcl/vclenum.hxx"
#include "salstd.hxx"
#include "salgdi.hxx"
#include "sallayout.hxx"
#include "vclpluginapi.h"
......
/* -*- 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _SALSTD_HXX
#define _SALSTD_HXX
#include <tools/solar.h>
#ifndef _SVUNX_H
typedef unsigned long Pixel;
typedef unsigned long XID;
typedef unsigned long XLIB_Time;
typedef unsigned long XtIntervalId;
typedef XID Colormap;
typedef XID Drawable;
typedef XID Pixmap;
typedef XID XLIB_Cursor;
typedef XID XLIB_Font;
typedef XID XLIB_Window;
typedef struct _XDisplay Display;
typedef struct _XGC *GC;
typedef struct _XImage XImage;
typedef struct _XRegion *XLIB_Region;
typedef union _XEvent XEvent;
typedef struct _XConfigureEvent XConfigureEvent;
typedef struct _XReparentEvent XReparentEvent;
typedef struct _XClientMessageEvent XClientMessageEvent;
typedef struct _XErrorEvent XErrorEvent;
struct Screen;
struct Visual;
struct XColormapEvent;
struct XFocusChangeEvent;
struct XFontStruct;
struct XKeyEvent;
struct XPropertyEvent;
struct XTextItem;
struct XWindowChanges;
#define None 0L
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -20,9 +20,10 @@
#ifndef _SALUNX_H
#define _SALUNX_H
#include <tools/prex.h>
#include <tools/postx.h>
#include "unx/salunxtime.h"
#include <unx/svunx.h>
#include <unx/salstd.hxx>
inline long Divide( long nDividend, long nDivisor )
{ return (nDividend + nDivisor/2) / nDivisor; }
......
......@@ -20,7 +20,9 @@
#ifndef _SV_SALVD_H
#define _SV_SALVD_H
#include <unx/salstd.hxx>
#include <tools/prex.h>
#include <tools/postx.h>
#include <unx/saltype.h>
#include <salvd.hxx>
......
......@@ -19,7 +19,8 @@
#ifndef _SV_SVSYS_H
#define _SV_SVSYS_H
#include <unx/svunx.h>
#include <tools/prex.h>
#include <tools/postx.h>
#endif // _SV_SVSYS_H
......
/* -*- 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _SVUNX_H
#define _SVUNX_H
#include <tools/prex.h>
#include <tools/postx.h>
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -18,12 +18,12 @@
*/
#include <unx/svunx.h>
#include <unx/desktops.hxx>
#include <tools/prex.h>
#include <X11/Xatom.h>
#include <tools/postx.h>
#include <unx/desktops.hxx>
#include "rtl/process.h"
#include "rtl/ustrbuf.hxx"
#include "osl/module.h"
......
......@@ -21,17 +21,15 @@
#if OSL_DEBUG_LEVEL > 1
#include <stdio.h>
#endif
#include <tools/debug.hxx>
#include <vcl/keycodes.hxx>
#include <tools/prex.h>
#include <X11/Xlib.h>
#include <X11/extensions/shape.h>
#include <tools/postx.h>
#include <tools/debug.hxx>
#include <vcl/keycodes.hxx>
#include <unx/salunx.h>
#include <unx/salstd.hxx>
#include <unx/saldata.hxx>
#include <unx/salinst.h>
#include <unx/saldisp.hxx>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment