xref: /trunk/main/vcl/inc/vcl/cvtgrf.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 _SV_CVTGRF_HXX
25 #define _SV_CVTGRF_HXX
26 
27 #include <vcl/dllapi.h>
28 #include <tools/link.hxx>
29 #include <vcl/salctype.hxx>
30 
31 // --------------------
32 // - GraphicConverter -
33 // --------------------
34 
35 struct	ConvertData;
36 class	Graphic;
37 
38 class VCL_DLLPUBLIC GraphicConverter
39 {
40 private:
41 
42 	Link				maFilterHdl;
43 	ConvertData*		mpConvertData;
44 
45 //#if 0 // _SOLAR__PRIVATE
46 public:
47 	SAL_DLLPRIVATE sal_uLong    ImplConvert( sal_uLong nInFormat, void* pInBuffer, sal_uLong nInBufSize,
48 									 void** ppOutBuffer, sal_uLong nOutFormat );
49 //#endif // __PRIVATE
50 
51 public:
52 
53 						GraphicConverter();
54 						~GraphicConverter();
55 
56 	static sal_uLong		Import( SvStream& rIStm, Graphic& rGraphic, sal_uLong nFormat = CVT_UNKNOWN );
57 	static sal_uLong		Export( SvStream& rOStm, const Graphic& rGraphic, sal_uLong nFormat );
58 
GetConvertData()59 	ConvertData*		GetConvertData() { return mpConvertData; }
60 
SetFilterHdl(const Link & rLink)61 	void				SetFilterHdl( const Link& rLink ) { maFilterHdl = rLink; }
GetFilterHdl() const62 	const Link&			GetFilterHdl() const { return maFilterHdl; }
63 };
64 
65 #endif // _SV_CVTGRF_HXX
66 
67