xref: /trunk/main/vcl/inc/vcl/salctype.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_SALCTYPE_HXX
25 #define _SV_SALCTYPE_HXX
26 
27 #include <com/sun/star/script/XInvocation.hpp>
28 #include <com/sun/star/uno/Reference.hxx>
29 
30 #include <vcl/graph.hxx>
31 
32 // -----------
33 // - Defines -
34 // -----------
35 
36 #define CVT_UNKNOWN	(0x00000000UL)
37 #define CVT_BMP		(0x00000001UL)
38 #define CVT_GIF		(0x00000002UL)
39 #define CVT_JPG		(0x00000003UL)
40 #define CVT_MET		(0x00000004UL)
41 #define CVT_PCT		(0x00000005UL)
42 #define CVT_PNG		(0x00000006UL)
43 #define CVT_SVM		(0x00000007UL)
44 #define CVT_TIF		(0x00000008UL)
45 #define CVT_WMF		(0x00000009UL)
46 #define CVT_EMF		(0x0000000aUL)
47 #define CVT_SVG		(0x0000000bUL)
48 
49 // ---------------
50 // - ConvertData -
51 // ---------------
52 
53 class SvStream;
54 
55 struct ConvertData
56 {
57 private:
58 
59 						ConvertData();
60 
61 public:
62 
63 	Graphic				maGraphic;
64 	SvStream&			mrStm;
65 	sal_uLong				mnFormat;
66 
ConvertDataConvertData67 						ConvertData( const Graphic& rGraphic, SvStream& rStm, sal_uLong nFormat ) :
68 							maGraphic( rGraphic ), mrStm( rStm ), mnFormat( nFormat ) {}
~ConvertDataConvertData69 						~ConvertData() {}
70 };
71 
72 // ------------
73 // - Callback -
74 // ------------
75 
76 typedef sal_uLong (*SALGRFCVTPROC)( void* pInst,
77 								sal_uLong nInFormat, void* pInBuffer, sal_uLong nInBufSize,
78 								sal_uLong nOutFormat, void** ppOutBuffer );
79 
80 // -------------------
81 // - BitmapConverter -
82 // -------------------
83 
84 namespace vcl
85 {
86 com::sun::star::uno::Reference< com::sun::star::script::XInvocation > createBmpConverter();
87 }
88 
89 #endif // _SV_SALCTYPE_HXX
90