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 .
22 #include <sal/types.h>
24 #include <com/sun/star/uno/Sequence.hxx>
26 #if !defined WIN32_LEAN_AND_MEAN
27 #define WIN32_LEAN_AND_MEAN
32 /*------------------------------------------------------------------------
34 aMetaFilePict - a sequence of bytes containing a METAFILEPICT struct
35 ------------------------------------------------------------------------*/
36 css::uno::Sequence
<sal_Int8
> WinMFPictToOOMFPict(css::uno::Sequence
<sal_Int8
>& aMetaFilePict
);
37 css::uno::Sequence
<sal_Int8
> WinENHMFPictToOOMFPict(HENHMETAFILE hEnhMetaFile
);
39 /*------------------------------------------------------------------------
41 aByteStream - a sequence of bytes containing a LibreOffice metafile
42 picture with a leading METAFILEHEADER
43 ------------------------------------------------------------------------*/
44 HMETAFILEPICT
OOMFPictToWinMFPict(css::uno::Sequence
<sal_Int8
> const& aOOMetaFilePict
);
45 HENHMETAFILE
OOMFPictToWinENHMFPict(css::uno::Sequence
<sal_Int8
> const& aOOMetaFilePict
);
47 /*------------------------------------------------------------------------
49 aWinDIB - sequence of bytes containing a windows device independent
51 ------------------------------------------------------------------------*/
52 css::uno::Sequence
<sal_Int8
> WinDIBToOOBMP(const css::uno::Sequence
<sal_Int8
>& aWinDIB
);
54 /*------------------------------------------------------------------------
56 aWinDIB - sequence of bytes containing a windows bitmap handle
57 ------------------------------------------------------------------------*/
58 css::uno::Sequence
<sal_Int8
> WinBITMAPToOOBMP(HBITMAP
);
60 /*------------------------------------------------------------------------
62 aOOBmp - sequence of bytes containing a LibreOffice bitmap
63 May contain CF_DIBV5 or CF_DIB, but removing the BITMAPFILEHEADER
64 is always the same size
65 ------------------------------------------------------------------------*/
66 css::uno::Sequence
<sal_Int8
> OOBmpToWinDIB(css::uno::Sequence
<sal_Int8
>& aOOBmp
);
68 /*------------------------------------------------------------------------
70 aTextHtml - a sequence of text/html which will be converted to the
71 HTML Format; the HTML Format has header before the real html data
72 the Format is described in the MSDN Library under HTML Clipboard
74 ------------------------------------------------------------------------*/
75 css::uno::Sequence
<sal_Int8
> TextHtmlToHTMLFormat(css::uno::Sequence
<sal_Int8
> const& aTextHtml
);
78 Return a FileList in which Windows Shell Links (lnk) are resolved.
79 If for whatever reason a resolution is not possible leave the
82 css::uno::Sequence
<sal_Int8
> CF_HDROPToFileList(HGLOBAL hGlobal
);
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */