LibreOffice Module dtrans (master)  1
FmtFilter.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_DTRANS_SOURCE_WIN32_DTOBJ_FMTFILTER_HXX
21 #define INCLUDED_DTRANS_SOURCE_WIN32_DTOBJ_FMTFILTER_HXX
22 
23 #include <sal/types.h>
24 
25 #include <com/sun/star/uno/Sequence.hxx>
26 
27 #if !defined WIN32_LEAN_AND_MEAN
28 # define WIN32_LEAN_AND_MEAN
29 #endif
30 #include <windows.h>
31 #include <objidl.h>
32 
33 /*------------------------------------------------------------------------
34  input:
35  aMetaFilePict - a sequence of bytes containing a METAFILEPICT struct
36 ------------------------------------------------------------------------*/
37 css::uno::Sequence< sal_Int8 > WinMFPictToOOMFPict( css::uno::Sequence< sal_Int8 >& aMetaFilePict );
38 css::uno::Sequence< sal_Int8 > WinENHMFPictToOOMFPict( HENHMETAFILE hEnhMetaFile );
39 
40 /*------------------------------------------------------------------------
41  input:
42  aByteStream - a sequence of bytes containing a LibreOffice metafile
43  picture with a leading METAFILEHEADER
44 ------------------------------------------------------------------------*/
45 HMETAFILEPICT OOMFPictToWinMFPict( css::uno::Sequence< sal_Int8 > const & aOOMetaFilePict );
46 HENHMETAFILE OOMFPictToWinENHMFPict( css::uno::Sequence< sal_Int8 > const & aOOMetaFilePict );
47 
48 /*------------------------------------------------------------------------
49  input:
50  aWinDIB - sequence of bytes containing a windows device independent
51  bitmap
52 ------------------------------------------------------------------------*/
53 css::uno::Sequence< sal_Int8 > WinDIBToOOBMP( const css::uno::Sequence< sal_Int8 >& aWinDIB );
54 
55 /*------------------------------------------------------------------------
56  input:
57  aWinDIB - sequence of bytes containing a windows bitmap handle
58 ------------------------------------------------------------------------*/
59 css::uno::Sequence< sal_Int8 > WinBITMAPToOOBMP( HBITMAP );
60 
61 /*------------------------------------------------------------------------
62  input:
63  aOOBmp - sequence of bytes containing a LibreOffice bitmap
64  May contain CF_DIBV5 or CF_DIB, but removing the BITMAPFILEHEADER
65  is always the same size
66 ------------------------------------------------------------------------*/
67 css::uno::Sequence< sal_Int8 > OOBmpToWinDIB( css::uno::Sequence< sal_Int8 >& aOOBmp );
68 
69 /*------------------------------------------------------------------------
70  input:
71  aTextHtml - a sequence of text/html which will be converted to the
72  HTML Format; the HTML Format has header before the real html data
73  the Format is described in the MSDN Library under HTML Clipboard
74  Format
75 ------------------------------------------------------------------------*/
76 css::uno::Sequence< sal_Int8 > TextHtmlToHTMLFormat( css::uno::Sequence< sal_Int8 > const & aTextHtml );
77 
83 css::uno::Sequence< sal_Int8 > CF_HDROPToFileList(HGLOBAL hGlobal);
84 
85 #endif
86 
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
HMETAFILEPICT OOMFPictToWinMFPict(css::uno::Sequence< sal_Int8 > const &aOOMetaFilePict)
css::uno::Sequence< sal_Int8 > WinBITMAPToOOBMP(HBITMAP)
Definition: FmtFilter.cxx:398
css::uno::Sequence< sal_Int8 > WinENHMFPictToOOMFPict(HENHMETAFILE hEnhMetaFile)
Definition: FmtFilter.cxx:129
css::uno::Sequence< sal_Int8 > OOBmpToWinDIB(css::uno::Sequence< sal_Int8 > &aOOBmp)
css::uno::Sequence< sal_Int8 > WinMFPictToOOMFPict(css::uno::Sequence< sal_Int8 > &aMetaFilePict)
css::uno::Sequence< sal_Int8 > CF_HDROPToFileList(HGLOBAL hGlobal)
Return a FileList in which Windows Shell Links (lnk) are resolved.
Definition: FmtFilter.cxx:379
css::uno::Sequence< sal_Int8 > TextHtmlToHTMLFormat(css::uno::Sequence< sal_Int8 > const &aTextHtml)
HENHMETAFILE OOMFPictToWinENHMFPict(css::uno::Sequence< sal_Int8 > const &aOOMetaFilePict)
css::uno::Sequence< sal_Int8 > WinDIBToOOBMP(const css::uno::Sequence< sal_Int8 > &aWinDIB)