/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: salvd.h,v $ * * $Revision: 1.5 $ * * last change: $Author: hr $ $Date: 2007-11-02 12:47:36 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. * * * GNU Lesser General Public License Version 2.1 * ============================================= * Copyright 2005 by Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, CA 94303, USA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * ************************************************************************/ #ifndef _SV_SALVD_H #define _SV_SALVD_H #ifndef _SV_SV_H #include #endif #ifndef _SV_SALVD_HXX #include #endif class Os2SalGraphics; // ----------------- // - SalVirDevData - // ----------------- //class SalVirDevData class Os2SalVirtualDevice : public SalVirtualDevice { public: HPS mhPS; // HPS HDC mhDC; // HDC HBITMAP mhBmp; // Memory Bitmap HBITMAP mhDefBmp; // Default Bitmap Os2SalGraphics* mpGraphics; // current VirDev graphics USHORT mnBitCount; // BitCount (0 or 1) BOOL mbGraphics; // is Graphics used Os2SalVirtualDevice(); virtual ~Os2SalVirtualDevice(); virtual SalGraphics* GetGraphics(); virtual void ReleaseGraphics( SalGraphics* pGraphics ); virtual BOOL SetSize( long nNewDX, long nNewDY ); virtual void GetSize( long& rWidth, long& rHeight ); }; // Help-Functions HBITMAP ImplCreateVirDevBitmap( HDC hDC, HPS hPS, long nDX, long nDY, USHORT nBitCount ); #endif // _SV_SALVD_H