android: Update app-specific/MIME type icons
[LibreOffice.git] / writerperfect / source / writer / exp / XMLBase64ImportContext.hxx
blob59558746f1c879f7c1a71ef997dad7bd069bcf3e
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/.
8 */
10 #pragma once
12 #include <librevenge/RVNGBinaryData.h>
14 #include <tools/stream.hxx>
16 #include "xmlictxt.hxx"
18 namespace writerperfect::exp
20 /// Handler for <office:binary-data>.
21 class XMLBase64ImportContext : public XMLImportContext
23 public:
24 XMLBase64ImportContext(XMLImport& rImport);
26 void SAL_CALL
27 startElement(const OUString& rName,
28 const css::uno::Reference<css::xml::sax::XAttributeList>& xAttribs) override;
29 void SAL_CALL endElement(const OUString& rName) override;
30 void SAL_CALL characters(const OUString& rChars) override;
32 const librevenge::RVNGBinaryData& getBinaryData() const;
34 private:
35 librevenge::RVNGBinaryData m_aBinaryData;
36 SvMemoryStream m_aStream;
37 OUString m_aBase64CharsLeft;
40 } // namespace writerperfect::exp
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */