1*2123d757SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*2123d757SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2123d757SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2123d757SAndrew Rist * distributed with this work for additional information 6*2123d757SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2123d757SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2123d757SAndrew Rist * "License"); you may not use this file except in compliance 9*2123d757SAndrew Rist * with the License. You may obtain a copy of the License at 10*2123d757SAndrew Rist * 11*2123d757SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*2123d757SAndrew Rist * 13*2123d757SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2123d757SAndrew Rist * software distributed under the License is distributed on an 15*2123d757SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2123d757SAndrew Rist * KIND, either express or implied. See the License for the 17*2123d757SAndrew Rist * specific language governing permissions and limitations 18*2123d757SAndrew Rist * under the License. 19*2123d757SAndrew Rist * 20*2123d757SAndrew Rist *************************************************************/ 21*2123d757SAndrew Rist 22*2123d757SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SV_SALOBJ_H 25cdf0e10cSrcweir #define _SV_SALOBJ_H 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <salobj.hxx> 28cdf0e10cSrcweir 29cdf0e10cSrcweir // ----------------- 30cdf0e10cSrcweir // - SalObjectData - 31cdf0e10cSrcweir // ----------------- 32cdf0e10cSrcweir 33cdf0e10cSrcweir class WinSalObject : public SalObject 34cdf0e10cSrcweir { 35cdf0e10cSrcweir public: 36cdf0e10cSrcweir HWND mhWnd; // Window handle 37cdf0e10cSrcweir HWND mhWndChild; // Child Window handle 38cdf0e10cSrcweir HWND mhLastFocusWnd; // Child-Window, welches als letztes den Focus hatte 39cdf0e10cSrcweir SystemChildData maSysData; // SystemEnvData 40cdf0e10cSrcweir RGNDATA* mpClipRgnData; // ClipRegion-Data 41cdf0e10cSrcweir RGNDATA* mpStdClipRgnData; // Cache Standard-ClipRegion-Data 42cdf0e10cSrcweir RECT* mpNextClipRect; // Naechstes ClipRegion-Rect 43cdf0e10cSrcweir sal_Bool mbFirstClipRect; // Flag for first cliprect to insert 44cdf0e10cSrcweir sal_Bool mbInterceptChildWindowKeyDown; // Intercept the KeyDown event sent to system child window 45cdf0e10cSrcweir WinSalObject* mpNextObject; // pointer to next object 46cdf0e10cSrcweir 47cdf0e10cSrcweir 48cdf0e10cSrcweir WinSalObject(); 49cdf0e10cSrcweir virtual ~WinSalObject(); 50cdf0e10cSrcweir 51cdf0e10cSrcweir virtual void ResetClipRegion(); 52cdf0e10cSrcweir virtual sal_uInt16 GetClipRegionType(); 53cdf0e10cSrcweir virtual void BeginSetClipRegion( sal_uIntPtr nRects ); 54cdf0e10cSrcweir virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ); 55cdf0e10cSrcweir virtual void EndSetClipRegion(); 56cdf0e10cSrcweir virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight ); 57cdf0e10cSrcweir virtual void Show( sal_Bool bVisible ); 58cdf0e10cSrcweir virtual void Enable( sal_Bool nEnable ); 59cdf0e10cSrcweir virtual void GrabFocus(); 60cdf0e10cSrcweir virtual void SetBackground(); 61cdf0e10cSrcweir virtual void SetBackground( SalColor nSalColor ); 62cdf0e10cSrcweir virtual const SystemEnvData* GetSystemData() const; 63cdf0e10cSrcweir virtual void InterceptChildWindowKeyDown( sal_Bool bIntercept ); 64cdf0e10cSrcweir }; 65cdf0e10cSrcweir 66cdf0e10cSrcweir #endif // _SV_SALOBJ_H 67