xref: /trunk/main/vcl/unx/headless/svpbmp.hxx (revision 0d63794c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SVP_SVBMP_HXX
25 #define SVP_SVBMP_HXX
26 
27 #include <salbmp.hxx>
28 #include "svpelement.hxx"
29 
30 class SvpSalBitmap : public SalBitmap, public SvpElement
31 {
32     basebmp::BitmapDeviceSharedPtr     m_aBitmap;
33 public:
SvpSalBitmap()34     SvpSalBitmap() {}
35     virtual ~SvpSalBitmap();
36 
getBitmap() const37     const basebmp::BitmapDeviceSharedPtr& getBitmap() const { return m_aBitmap; }
setBitmap(const basebmp::BitmapDeviceSharedPtr & rSrc)38     void setBitmap( const basebmp::BitmapDeviceSharedPtr& rSrc ) { m_aBitmap = rSrc; }
39 
40     // SvpElement
getDevice() const41     virtual const basebmp::BitmapDeviceSharedPtr& getDevice() const { return m_aBitmap; }
42 
43     // SalBitmap
44     virtual bool			Create( const Size& rSize,
45                                     sal_uInt16 nBitCount,
46                                     const BitmapPalette& rPal );
47 	virtual bool			Create( const SalBitmap& rSalBmp );
48 	virtual bool			Create( const SalBitmap& rSalBmp,
49                                     SalGraphics* pGraphics );
50 	virtual bool			Create( const SalBitmap& rSalBmp,
51                                     sal_uInt16 nNewBitCount );
52 	virtual void			Destroy();
53 	virtual Size			GetSize() const;
54 	virtual sal_uInt16              GetBitCount() const;
55 
56 	virtual BitmapBuffer*	AcquireBuffer( bool bReadOnly );
57 	virtual void			ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly );
58     virtual bool            GetSystemData( BitmapSystemData& rData );
59 
60 };
61 
62 #endif
63