1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
33 /*------------------------------------------------------------------------
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 /*------------------------------------------------------------------------
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 /*------------------------------------------------------------------------
50 aWinDIB - sequence of bytes containing a windows device independent
52 ------------------------------------------------------------------------*/
53 css::uno::Sequence
< sal_Int8
> WinDIBToOOBMP( const css::uno::Sequence
< sal_Int8
>& aWinDIB
);
55 /*------------------------------------------------------------------------
57 aWinDIB - sequence of bytes containing a windows bitmap handle
58 ------------------------------------------------------------------------*/
59 css::uno::Sequence
< sal_Int8
> WinBITMAPToOOBMP( HBITMAP
);
61 /*------------------------------------------------------------------------
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 /*------------------------------------------------------------------------
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
75 ------------------------------------------------------------------------*/
76 css::uno::Sequence
< sal_Int8
> TextHtmlToHTMLFormat( css::uno::Sequence
< sal_Int8
> const & aTextHtml
);
79 Return a FileList in which Windows Shell Links (lnk) are resolved.
80 If for whatever reason a resolution is not possible leave the
83 css::uno::Sequence
< sal_Int8
> CF_HDROPToFileList(HGLOBAL hGlobal
);
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */