xref: /trunk/main/vcl/inc/salvd.hxx (revision 0a1e220dee0308663a065fb3bbe3e59d2252f393)
1ebfcd9afSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3ebfcd9afSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4ebfcd9afSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5ebfcd9afSAndrew Rist  * distributed with this work for additional information
6ebfcd9afSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7ebfcd9afSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8ebfcd9afSAndrew Rist  * "License"); you may not use this file except in compliance
9ebfcd9afSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11ebfcd9afSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13ebfcd9afSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14ebfcd9afSAndrew Rist  * software distributed under the License is distributed on an
15ebfcd9afSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16ebfcd9afSAndrew Rist  * KIND, either express or implied.  See the License for the
17ebfcd9afSAndrew Rist  * specific language governing permissions and limitations
18ebfcd9afSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20ebfcd9afSAndrew Rist  *************************************************************/
21ebfcd9afSAndrew Rist 
22cdf0e10cSrcweir #ifndef _SV_SALVD_HXX
23cdf0e10cSrcweir #define _SV_SALVD_HXX
24cdf0e10cSrcweir 
25cdf0e10cSrcweir #include <vcl/sv.h>
26cdf0e10cSrcweir #include <vcl/dllapi.h>
27cdf0e10cSrcweir 
28cdf0e10cSrcweir class SalGraphics;
29cdf0e10cSrcweir 
30*0a1e220dSmseidel // SalVirtualDevice
31cdf0e10cSrcweir class VCL_PLUGIN_PUBLIC SalVirtualDevice
32cdf0e10cSrcweir {
33cdf0e10cSrcweir public:                     // public for Sal Implementation
SalVirtualDevice()34cdf0e10cSrcweir     SalVirtualDevice() {}
35cdf0e10cSrcweir     virtual ~SalVirtualDevice();
36cdf0e10cSrcweir 
37cdf0e10cSrcweir     // SalGraphics or NULL, but two Graphics for all SalVirtualDevices
38cdf0e10cSrcweir     // must be returned
39cdf0e10cSrcweir     virtual SalGraphics*            GetGraphics() = 0;
40cdf0e10cSrcweir     virtual void                    ReleaseGraphics( SalGraphics* pGraphics ) = 0;
41cdf0e10cSrcweir 
42cdf0e10cSrcweir                             // Set new size, without saving the old contents
43cdf0e10cSrcweir     virtual sal_Bool                    SetSize( long nNewDX, long nNewDY ) = 0;
44cdf0e10cSrcweir 
45*0a1e220dSmseidel     // Get actual VDev size in pixel
46cdf0e10cSrcweir     virtual void                    GetSize( long& rWidth, long& rHeight ) = 0;
47cdf0e10cSrcweir };
48cdf0e10cSrcweir 
49cdf0e10cSrcweir #endif // _SV_SALVD_HXX
50*0a1e220dSmseidel 
51*0a1e220dSmseidel /* vim: set noet sw=4 ts=4: */
52