salvd.h (cdf0e10c) salvd.h (fc9fd3f1)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

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

23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#ifndef _SV_SALVD_H
29#define _SV_SALVD_H
30
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

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

23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#ifndef _SV_SALVD_H
29#define _SV_SALVD_H
30
31#include <vcl/sv.h>
32#include <vcl/salvd.hxx>
31#include <salvd.hxx>
33
34class Os2SalGraphics;
35
36// -----------------
37// - SalVirDevData -
38// -----------------
39
40//class SalVirDevData
41class Os2SalVirtualDevice : public SalVirtualDevice
42{
43public:
44 HPS mhPS; // HPS
45 HDC mhDC; // HDC
46 HBITMAP mhBmp; // Memory Bitmap
47 HBITMAP mhDefBmp; // Default Bitmap
48 Os2SalGraphics* mpGraphics; // current VirDev graphics
49 USHORT mnBitCount; // BitCount (0 or 1)
32
33class Os2SalGraphics;
34
35// -----------------
36// - SalVirDevData -
37// -----------------
38
39//class SalVirDevData
40class Os2SalVirtualDevice : public SalVirtualDevice
41{
42public:
43 HPS mhPS; // HPS
44 HDC mhDC; // HDC
45 HBITMAP mhBmp; // Memory Bitmap
46 HBITMAP mhDefBmp; // Default Bitmap
47 Os2SalGraphics* mpGraphics; // current VirDev graphics
48 USHORT mnBitCount; // BitCount (0 or 1)
50 BOOL mbGraphics; // is Graphics used
49 sal_Bool mbGraphics; // is Graphics used
51
52 Os2SalVirtualDevice();
53 virtual ~Os2SalVirtualDevice();
54
55 virtual SalGraphics* GetGraphics();
56 virtual void ReleaseGraphics( SalGraphics* pGraphics );
50
51 Os2SalVirtualDevice();
52 virtual ~Os2SalVirtualDevice();
53
54 virtual SalGraphics* GetGraphics();
55 virtual void ReleaseGraphics( SalGraphics* pGraphics );
57 virtual BOOL SetSize( long nNewDX, long nNewDY );
56 virtual sal_Bool SetSize( long nNewDX, long nNewDY );
58 virtual void GetSize( long& rWidth, long& rHeight );
59};
60
61// Help-Functions
62HBITMAP ImplCreateVirDevBitmap( HDC hDC, HPS hPS, long nDX, long nDY,
63 USHORT nBitCount );
64
65#endif // _SV_SALVD_H
57 virtual void GetSize( long& rWidth, long& rHeight );
58};
59
60// Help-Functions
61HBITMAP ImplCreateVirDevBitmap( HDC hDC, HPS hPS, long nDX, long nDY,
62 USHORT nBitCount );
63
64#endif // _SV_SALVD_H