diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-04-10 18:59:16 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-04-10 19:26:05 +0300 |
commit | 8034992e22d983bba46cfc06d4eec6f2aab71e28 (patch) | |
tree | 1fc2c9b38737f6a36e4c183520f428efb5eff93e /vcl | |
parent | 9e2cf37c9062577f84406e08f31bd542ba41023f (diff) |
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
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/unx/salbmp.h | 3 | ||||
-rw-r--r-- | vcl/inc/unx/saldata.hxx | 4 | ||||
-rw-r--r-- | vcl/inc/unx/salframe.h | 4 | ||||
-rw-r--r-- | vcl/inc/unx/salgdi.h | 5 | ||||
-rw-r--r-- | vcl/inc/unx/salstd.hxx | 65 | ||||
-rw-r--r-- | vcl/inc/unx/salunx.h | 5 | ||||
-rw-r--r-- | vcl/inc/unx/salvd.h | 4 | ||||
-rw-r--r-- | vcl/inc/unx/svsys.h | 3 | ||||
-rw-r--r-- | vcl/inc/unx/svunx.h | 28 | ||||
-rw-r--r-- | vcl/unx/generic/desktopdetect/desktopdetector.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/generic/window/salobj.cxx | 8 |
11 files changed, 24 insertions, 109 deletions
diff --git a/vcl/inc/unx/salbmp.h b/vcl/inc/unx/salbmp.h index 70307a175a7c..0056776ce96c 100644 --- a/vcl/inc/unx/salbmp.h +++ b/vcl/inc/unx/salbmp.h @@ -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 diff --git a/vcl/inc/unx/saldata.hxx b/vcl/inc/unx/saldata.hxx index c148b63ba36b..ef825f1e6516 100644 --- a/vcl/inc/unx/saldata.hxx +++ b/vcl/inc/unx/saldata.hxx @@ -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> diff --git a/vcl/inc/unx/salframe.h b/vcl/inc/unx/salframe.h index 9c89af934873..e0ac0431d07a 100644 --- a/vcl/inc/unx/salframe.h +++ b/vcl/inc/unx/salframe.h @@ -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> diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h index c7c80913e368..4b2fc3b3f7d2 100644 --- a/vcl/inc/unx/salgdi.h +++ b/vcl/inc/unx/salgdi.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" diff --git a/vcl/inc/unx/salstd.hxx b/vcl/inc/unx/salstd.hxx deleted file mode 100644 index dd37938c6834..000000000000 --- a/vcl/inc/unx/salstd.hxx +++ /dev/null @@ -1,65 +0,0 @@ -/* -*- 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: */ diff --git a/vcl/inc/unx/salunx.h b/vcl/inc/unx/salunx.h index 5061ad919e16..819f4f7b139a 100644 --- a/vcl/inc/unx/salunx.h +++ b/vcl/inc/unx/salunx.h @@ -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; } diff --git a/vcl/inc/unx/salvd.h b/vcl/inc/unx/salvd.h index 50e2cd4700f6..4f333746b46c 100644 --- a/vcl/inc/unx/salvd.h +++ b/vcl/inc/unx/salvd.h @@ -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> diff --git a/vcl/inc/unx/svsys.h b/vcl/inc/unx/svsys.h index a43d2ae4067c..7bee8296cc0b 100644 --- a/vcl/inc/unx/svsys.h +++ b/vcl/inc/unx/svsys.h @@ -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 diff --git a/vcl/inc/unx/svunx.h b/vcl/inc/unx/svunx.h deleted file mode 100644 index 60bd98196d70..000000000000 --- a/vcl/inc/unx/svunx.h +++ /dev/null @@ -1,28 +0,0 @@ -/* -*- 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: */ diff --git a/vcl/unx/generic/desktopdetect/desktopdetector.cxx b/vcl/unx/generic/desktopdetect/desktopdetector.cxx index 465326b4209a..c4a774fd987e 100644 --- a/vcl/unx/generic/desktopdetect/desktopdetector.cxx +++ b/vcl/unx/generic/desktopdetect/desktopdetector.cxx @@ -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" diff --git a/vcl/unx/generic/window/salobj.cxx b/vcl/unx/generic/window/salobj.cxx index 16b4e22feeea..983292984684 100644 --- a/vcl/unx/generic/window/salobj.cxx +++ b/vcl/unx/generic/window/salobj.cxx @@ -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> |