saldata.hxx (0d63794c) saldata.hxx (fc9fd3f1)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 10 unchanged lines hidden (view full) ---

19 *
20 *************************************************************/
21
22
23
24#ifndef _SV_SALDATA_HXX
25#define _SV_SALDATA_HXX
26
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 10 unchanged lines hidden (view full) ---

19 *
20 *************************************************************/
21
22
23
24#ifndef _SV_SALDATA_HXX
25#define _SV_SALDATA_HXX
26
27#include <vcl/sv.h>
28#include <vcl/svdata.hxx>
29#include <vcl/salwtype.hxx>
27#include <svdata.hxx>
28#include <salwtype.hxx>
30
31class Os2SalInstance;
32class Os2SalFrame;
33class Os2SalObject;
34
35extern "C" int debug_printf(const char *f, ...);
36
37// --------------

--- 64 unchanged lines hidden (view full) ---

102 int mnArgc; // commandline param count
103 char** mpArgv; // commandline
104 ULONG mnNewTimerMS; // Neue Zeit, mit dem der Timer gestartet werden soll
105 ULONG mnTimerMS; // Current Time (in MS) of the Timer
106 ULONG mnTimerOrgMS; // Current Original Time (in MS)
107 ULONG mnNextTimerTime;
108 ULONG mnLastEventTime;
109 ULONG mnTimerId; // os2 timer id
29
30class Os2SalInstance;
31class Os2SalFrame;
32class Os2SalObject;
33
34extern "C" int debug_printf(const char *f, ...);
35
36// --------------

--- 64 unchanged lines hidden (view full) ---

101 int mnArgc; // commandline param count
102 char** mpArgv; // commandline
103 ULONG mnNewTimerMS; // Neue Zeit, mit dem der Timer gestartet werden soll
104 ULONG mnTimerMS; // Current Time (in MS) of the Timer
105 ULONG mnTimerOrgMS; // Current Original Time (in MS)
106 ULONG mnNextTimerTime;
107 ULONG mnLastEventTime;
108 ULONG mnTimerId; // os2 timer id
110 BOOL mbInTimerProc; // timer event is currently being dispatched
109 PM_BOOL mbInTimerProc; // timer event is currently being dispatched
111 //SALTIMERPROC mpTimerProc; // timer callback proc
112 HWND mhWantLeaveMsg; // window handle, that want a MOUSELEAVE message
113 AutoTimer* mpMouseLeaveTimer; // Timer for MouseLeave Test
114 Os2SalInstance* mpFirstInstance; // pointer of first instance
115 Os2SalFrame* mpFirstFrame; // pointer of first frame
116 Os2SalFrame* mpCreateFrame; // Create-Frame for WM_CREATE
117 Os2SalObject* mpFirstObject; // pointer of first object window
118 ULONG mnAppThreadId; // Id from Applikation-Thread
119 ULONG mnFontMetricCount; // number of entries in the font list
120 PFONTMETRICS mpFontMetrics; // cached font list
110 //SALTIMERPROC mpTimerProc; // timer callback proc
111 HWND mhWantLeaveMsg; // window handle, that want a MOUSELEAVE message
112 AutoTimer* mpMouseLeaveTimer; // Timer for MouseLeave Test
113 Os2SalInstance* mpFirstInstance; // pointer of first instance
114 Os2SalFrame* mpFirstFrame; // pointer of first frame
115 Os2SalFrame* mpCreateFrame; // Create-Frame for WM_CREATE
116 Os2SalObject* mpFirstObject; // pointer of first object window
117 ULONG mnAppThreadId; // Id from Applikation-Thread
118 ULONG mnFontMetricCount; // number of entries in the font list
119 PFONTMETRICS mpFontMetrics; // cached font list
121 BOOL mbObjClassInit; // Ist SALOBJECTCLASS initialised
120 PM_BOOL mbObjClassInit; // Ist SALOBJECTCLASS initialised
122#ifdef ENABLE_IME
123 SalIMEData* mpIMEData; // SalIME-Data
121#ifdef ENABLE_IME
122 SalIMEData* mpIMEData; // SalIME-Data
124 BOOL mbIMEInit; // SalIME-Data-Init
123 PM_BOOL mbIMEInit; // SalIME-Data-Init
125#endif
126
127 SalIcon* mpFirstIcon; // icon cache, points to first icon, NULL if none
128
129};
130
131inline void SetSalData( SalData* pData ) { ImplGetSVData()->mpSalData = (void*)pData; }
132inline SalData* GetSalData() { return (SalData*)ImplGetSVData()->mpSalData; }

--- 11 unchanged lines hidden (view full) ---

144{
145 HMODULE mhMod; // Module handle of SAL-DLL
146 USHORT mnVersion; // 211 = OS2 2.11; 230 = OS2 3.0; 240 = OS2 4.0
147 PFNWP mpFrameProc; // old frame proc
148};
149
150extern SalShlData aSalShlData;
151
124#endif
125
126 SalIcon* mpFirstIcon; // icon cache, points to first icon, NULL if none
127
128};
129
130inline void SetSalData( SalData* pData ) { ImplGetSVData()->mpSalData = (void*)pData; }
131inline SalData* GetSalData() { return (SalData*)ImplGetSVData()->mpSalData; }

--- 11 unchanged lines hidden (view full) ---

143{
144 HMODULE mhMod; // Module handle of SAL-DLL
145 USHORT mnVersion; // 211 = OS2 2.11; 230 = OS2 3.0; 240 = OS2 4.0
146 PFNWP mpFrameProc; // old frame proc
147};
148
149extern SalShlData aSalShlData;
150
152BOOL SalImplHandleProcessMenu( HWND hWnd, ULONG nMsg, MPARAM nMP1, MPARAM nMP2 );
151PM_BOOL SalImplHandleProcessMenu( HWND hWnd, ULONG nMsg, MPARAM nMP1, MPARAM nMP2 );
153
154// --------------------------------------------
155// - SALSHL.CXX - for accessing DLL resources -
156// --------------------------------------------
157
158HPOINTER ImplLoadSalCursor( int nId );
159HBITMAP ImplLoadSalBitmap( int nId );
152
153// --------------------------------------------
154// - SALSHL.CXX - for accessing DLL resources -
155// --------------------------------------------
156
157HPOINTER ImplLoadSalCursor( int nId );
158HBITMAP ImplLoadSalBitmap( int nId );
160BOOL ImplLoadSalIcon( int nId, HPOINTER& rIcon);
159sal_Bool ImplLoadSalIcon( int nId, HPOINTER& rIcon);
161
162// SALGDI.CXX
163void ImplInitSalGDI();
164void ImplFreeSalGDI();
165
166// --------------
167// - Prototypes -
168// --------------
169
170// \\OS2\SOURCE\APP\SALINST.CXX
171void ImplSalYieldMutexAcquireWithWait();
172ULONG ImplSalReleaseYieldMutex();
173void ImplSalAcquireYieldMutex( ULONG nCount );
174ULONG GetCurrentThreadId();
160
161// SALGDI.CXX
162void ImplInitSalGDI();
163void ImplFreeSalGDI();
164
165// --------------
166// - Prototypes -
167// --------------
168
169// \\OS2\SOURCE\APP\SALINST.CXX
170void ImplSalYieldMutexAcquireWithWait();
171ULONG ImplSalReleaseYieldMutex();
172void ImplSalAcquireYieldMutex( ULONG nCount );
173ULONG GetCurrentThreadId();
175BOOL ImplSalYieldMutexTryToAcquire();
174sal_Bool ImplSalYieldMutexTryToAcquire();
176void ImplSalYieldMutexAcquire();
177void ImplSalYieldMutexRelease();
178
179// \\OS2\SOURCE\WINDOW\SALFRAME.CXX
180MRESULT EXPENTRY SalFrameWndProc( HWND hWnd, ULONG nMsg, MPARAM nMP1, MPARAM nMP2 );
181MRESULT EXPENTRY SalFrameFrameProc( HWND hWnd, ULONG nMsg, MPARAM nMP1, MPARAM nMP2 );
182// \SV\WIN\SOURCE\APP\SALTIMER.CXX
183#define SALTIMERPROC_RECURSIVE 0xffffffff

--- 120 unchanged lines hidden ---
175void ImplSalYieldMutexAcquire();
176void ImplSalYieldMutexRelease();
177
178// \\OS2\SOURCE\WINDOW\SALFRAME.CXX
179MRESULT EXPENTRY SalFrameWndProc( HWND hWnd, ULONG nMsg, MPARAM nMP1, MPARAM nMP2 );
180MRESULT EXPENTRY SalFrameFrameProc( HWND hWnd, ULONG nMsg, MPARAM nMP1, MPARAM nMP2 );
181// \SV\WIN\SOURCE\APP\SALTIMER.CXX
182#define SALTIMERPROC_RECURSIVE 0xffffffff

--- 120 unchanged lines hidden ---