bump product version to 7.6.3.2-android
[LibreOffice.git] / include / vcl / filter / PngImageReader.hxx
blob34b8279bc6547d7f5b084d0ff91b1e6a75adf5dc
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 */
11 #ifndef INCLUDED_VCL_FILTER_PNGIMAGEREADER_HXX
12 #define INCLUDED_VCL_FILTER_PNGIMAGEREADER_HXX
14 #include <sal/config.h>
16 #include <memory>
17 #include <vector>
19 #include <vcl/dllapi.h>
20 #include <vcl/BinaryDataContainer.hxx>
22 #include <com/sun/star/uno/Reference.hxx>
24 namespace com::sun::star::task
26 class XStatusIndicator;
29 class BitmapEx;
30 class SvStream;
32 namespace vcl
34 class VCL_DLLPUBLIC PngImageReader
36 SvStream& mrStream;
37 css::uno::Reference<css::task::XStatusIndicator> mxStatusIndicator;
39 public:
40 PngImageReader(SvStream& rStream);
42 // Returns true if image was successfully read without errors.
43 // A usable bitmap may be returned even if there were errors (e.g. incomplete image).
44 bool read(BitmapEx& rBitmap);
45 // Returns a bitmap without indicating if there were errors.
46 BitmapEx read();
48 // Returns the contents of the msOG chunk (containing a Gif image), if it exists.
49 // Does not change position in the stream.
50 static BinaryDataContainer getMicrosoftGifChunk(SvStream& rStream);
53 } // namespace vcl
55 #endif
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */