xref: /AOO41X/main/vcl/inc/win/salvd.h (revision 2123d7570813d7d92dade2ba70822a073d984013)
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
10cdf0e10cSrcweir  *
11*2123d757SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
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.
19cdf0e10cSrcweir  *
20*2123d757SAndrew Rist  *************************************************************/
21*2123d757SAndrew Rist 
22*2123d757SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SV_SALVD_H
25cdf0e10cSrcweir #define _SV_SALVD_H
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <salvd.hxx>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir class WinSalGraphics;
30cdf0e10cSrcweir 
31cdf0e10cSrcweir // -----------------
32cdf0e10cSrcweir // - SalVirDevData -
33cdf0e10cSrcweir // -----------------
34cdf0e10cSrcweir 
35cdf0e10cSrcweir class WinSalVirtualDevice : public SalVirtualDevice
36cdf0e10cSrcweir {
37cdf0e10cSrcweir public:
38cdf0e10cSrcweir 	HDC 					mhDC;					// HDC or 0 for Cache Device
39cdf0e10cSrcweir 	HBITMAP 				mhBmp;					// Memory Bitmap
40cdf0e10cSrcweir 	HBITMAP 				mhDefBmp;				// Default Bitmap
41cdf0e10cSrcweir 	WinSalGraphics*			mpGraphics; 			// current VirDev graphics
42cdf0e10cSrcweir 	WinSalVirtualDevice*	mpNext; 				// next VirDev
43cdf0e10cSrcweir 	sal_uInt16					mnBitCount; 			// BitCount (0 or 1)
44cdf0e10cSrcweir 	sal_Bool					mbGraphics; 			// is Graphics used
45cdf0e10cSrcweir     sal_Bool                    mbForeignDC;            // uses a foreign DC instead of a bitmap
46cdf0e10cSrcweir 
47cdf0e10cSrcweir     WinSalVirtualDevice();
48cdf0e10cSrcweir     virtual ~WinSalVirtualDevice();
49cdf0e10cSrcweir 
50cdf0e10cSrcweir     virtual SalGraphics*			GetGraphics();
51cdf0e10cSrcweir     virtual void					ReleaseGraphics( SalGraphics* pGraphics );
52cdf0e10cSrcweir     virtual sal_Bool                    SetSize( long nNewDX, long nNewDY );
53cdf0e10cSrcweir     virtual void				    GetSize( long& rWidth, long& rHeight );
54cdf0e10cSrcweir };
55cdf0e10cSrcweir 
56cdf0e10cSrcweir #endif // _SV_SALVD_H
57