Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / dtrans / source / win32 / dtobj / FmtFilter.hxx
blob1c232585120859ac93a4191266f093577b7db213
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_DTRANS_SOURCE_WIN32_DTOBJ_FMTFILTER_HXX
21 #define INCLUDED_DTRANS_SOURCE_WIN32_DTOBJ_FMTFILTER_HXX
23 #include <sal/types.h>
25 #include <com/sun/star/uno/Sequence.hxx>
27 #if !defined WIN32_LEAN_AND_MEAN
28 # define WIN32_LEAN_AND_MEAN
29 #endif
30 #include <windows.h>
31 #include <objidl.h>
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 );
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 );
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 );
55 /*------------------------------------------------------------------------
56 input:
57 aWinDIB - sequence of bytes containing a windows bitmap handle
58 ------------------------------------------------------------------------*/
59 css::uno::Sequence< sal_Int8 > WinBITMAPToOOBMP( HBITMAP );
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 );
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 );
78 /**
79 Return a FileList in which Windows Shell Links (lnk) are resolved.
80 If for whatever reason a resolution is not possible leave the
81 original lnk file.
83 css::uno::Sequence< sal_Int8 > CF_HDROPToFileList(HGLOBAL hGlobal);
85 #endif
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */