1*fc9fd3f1SPedro Giffuni /************************************************************************* 2*fc9fd3f1SPedro Giffuni * 3*fc9fd3f1SPedro Giffuni * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*fc9fd3f1SPedro Giffuni * 5*fc9fd3f1SPedro Giffuni * Copyright 2000, 2010 Oracle and/or its affiliates. 6*fc9fd3f1SPedro Giffuni * 7*fc9fd3f1SPedro Giffuni * OpenOffice.org - a multi-platform office productivity suite 8*fc9fd3f1SPedro Giffuni * 9*fc9fd3f1SPedro Giffuni * This file is part of OpenOffice.org. 10*fc9fd3f1SPedro Giffuni * 11*fc9fd3f1SPedro Giffuni * OpenOffice.org is free software: you can redistribute it and/or modify 12*fc9fd3f1SPedro Giffuni * it under the terms of the GNU Lesser General Public License version 3 13*fc9fd3f1SPedro Giffuni * only, as published by the Free Software Foundation. 14*fc9fd3f1SPedro Giffuni * 15*fc9fd3f1SPedro Giffuni * OpenOffice.org is distributed in the hope that it will be useful, 16*fc9fd3f1SPedro Giffuni * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*fc9fd3f1SPedro Giffuni * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*fc9fd3f1SPedro Giffuni * GNU Lesser General Public License version 3 for more details 19*fc9fd3f1SPedro Giffuni * (a copy is included in the LICENSE file that accompanied this code). 20*fc9fd3f1SPedro Giffuni * 21*fc9fd3f1SPedro Giffuni * You should have received a copy of the GNU Lesser General Public License 22*fc9fd3f1SPedro Giffuni * version 3 along with OpenOffice.org. If not, see 23*fc9fd3f1SPedro Giffuni * <http://www.openoffice.org/license.html> 24*fc9fd3f1SPedro Giffuni * for a copy of the LGPLv3 License. 25*fc9fd3f1SPedro Giffuni * 26*fc9fd3f1SPedro Giffuni ************************************************************************/ 27*fc9fd3f1SPedro Giffuni 28*fc9fd3f1SPedro Giffuni #ifndef _SV_SALVD_H 29*fc9fd3f1SPedro Giffuni #define _SV_SALVD_H 30*fc9fd3f1SPedro Giffuni 31*fc9fd3f1SPedro Giffuni #include <salvd.hxx> 32*fc9fd3f1SPedro Giffuni 33*fc9fd3f1SPedro Giffuni class Os2SalGraphics; 34*fc9fd3f1SPedro Giffuni 35*fc9fd3f1SPedro Giffuni // ----------------- 36*fc9fd3f1SPedro Giffuni // - SalVirDevData - 37*fc9fd3f1SPedro Giffuni // ----------------- 38*fc9fd3f1SPedro Giffuni 39*fc9fd3f1SPedro Giffuni //class SalVirDevData 40*fc9fd3f1SPedro Giffuni class Os2SalVirtualDevice : public SalVirtualDevice 41*fc9fd3f1SPedro Giffuni { 42*fc9fd3f1SPedro Giffuni public: 43*fc9fd3f1SPedro Giffuni HPS mhPS; // HPS 44*fc9fd3f1SPedro Giffuni HDC mhDC; // HDC 45*fc9fd3f1SPedro Giffuni HBITMAP mhBmp; // Memory Bitmap 46*fc9fd3f1SPedro Giffuni HBITMAP mhDefBmp; // Default Bitmap 47*fc9fd3f1SPedro Giffuni Os2SalGraphics* mpGraphics; // current VirDev graphics 48*fc9fd3f1SPedro Giffuni USHORT mnBitCount; // BitCount (0 or 1) 49*fc9fd3f1SPedro Giffuni sal_Bool mbGraphics; // is Graphics used 50*fc9fd3f1SPedro Giffuni 51*fc9fd3f1SPedro Giffuni Os2SalVirtualDevice(); 52*fc9fd3f1SPedro Giffuni virtual ~Os2SalVirtualDevice(); 53*fc9fd3f1SPedro Giffuni 54*fc9fd3f1SPedro Giffuni virtual SalGraphics* GetGraphics(); 55*fc9fd3f1SPedro Giffuni virtual void ReleaseGraphics( SalGraphics* pGraphics ); 56*fc9fd3f1SPedro Giffuni virtual sal_Bool SetSize( long nNewDX, long nNewDY ); 57*fc9fd3f1SPedro Giffuni virtual void GetSize( long& rWidth, long& rHeight ); 58*fc9fd3f1SPedro Giffuni }; 59*fc9fd3f1SPedro Giffuni 60*fc9fd3f1SPedro Giffuni // Help-Functions 61*fc9fd3f1SPedro Giffuni HBITMAP ImplCreateVirDevBitmap( HDC hDC, HPS hPS, long nDX, long nDY, 62*fc9fd3f1SPedro Giffuni USHORT nBitCount ); 63*fc9fd3f1SPedro Giffuni 64*fc9fd3f1SPedro Giffuni #endif // _SV_SALVD_H 65