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 
25 #ifndef _FMTFILTER_HXX_
26 #define _FMTFILTER_HXX_
27 
28 #include <sal/types.h>
29 
30 #ifndef _COM_SUN_STAR_UNO_SEQUENCE_H_
31 #include <com/sun/star/uno/Sequence.hxx>
32 #endif
33 
34 #if defined _MSC_VER
35 #pragma warning(push,1)
36 #endif
37 #include <windows.h>
38 #if defined _MSC_VER
39 #pragma warning(pop)
40 #endif
41 
42 /*------------------------------------------------------------------------
43 	input:
44 	aMetaFilePict - a sequence of bytes containing a METAFILEPICT struct
45 ------------------------------------------------------------------------*/
46 com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL WinMFPictToOOMFPict( com::sun::star::uno::Sequence< sal_Int8 >& aMetaFilePict );
47 com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL WinENHMFPictToOOMFPict( HENHMETAFILE hEnhMetaFile );
48 
49 /*------------------------------------------------------------------------
50 	input:
51 	aByteStream - a sequence of bytes containing a openoffice metafile
52 	              picture with a leading METAFILEHEADER
53 ------------------------------------------------------------------------*/
54 HMETAFILEPICT SAL_CALL OOMFPictToWinMFPict( com::sun::star::uno::Sequence< sal_Int8 >& aOOMetaFilePict );
55 HENHMETAFILE  SAL_CALL OOMFPictToWinENHMFPict( com::sun::star::uno::Sequence< sal_Int8 >& aOOMetaFilePict );
56 
57 /*------------------------------------------------------------------------
58 	input:
59 	aWinDIB - sequence of bytes containing a windows device independent
60 			  bitmap
61 ------------------------------------------------------------------------*/
62 com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL WinDIBToOOBMP( const com::sun::star::uno::Sequence< sal_Int8 >& aWinDIB );
63 
64 /*------------------------------------------------------------------------
65 	input:
66 	aWinDIB - sequence of bytes containing a windows bitmap handle
67 ------------------------------------------------------------------------*/
68 com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL WinBITMAPToOOBMP( HBITMAP );
69 
70 /*------------------------------------------------------------------------
71 	input:
72 	aOOBmp - sequence of bytes containing a openoffice bitmap
73     May contain CF_DIBV5 or CF_DIB, but removing the BITMAPFILEHEADER
74     is always the same size
75 ------------------------------------------------------------------------*/
76 com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL OOBmpToWinDIB( com::sun::star::uno::Sequence< sal_Int8 >& aOOBmp );
77 
78 /*------------------------------------------------------------------------
79 	input:
80 	aTextHtml - a sequence of text/html which will be converted to the
81 	HTML Format; the HTML Format has header before the real html data
82 	the Format is described in the MSDN Library under HTML Clipboard
83 	Format
84 ------------------------------------------------------------------------*/
85 com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL TextHtmlToHTMLFormat( com::sun::star::uno::Sequence< sal_Int8 >& aTextHtml );
86 
87 /**
88     Return a FileList in which Windows Shell Links (lnk) are resolved.
89     If for what ever reason a resolution is not possible leave the
90     original lnk file.
91 */
92 com::sun::star::uno::Sequence< sal_Int8 > CF_HDROPToFileList(HGLOBAL hGlobal);
93 
94 #endif
95