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/.
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
24 XMLBase64ImportContext(XMLImport
& rImport
);
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;
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: */