Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / include / oox / dump / xlsbdumper.hxx
blob8c4e5f31f09ae236c713c8b9880a7a0f6b2cfdb7
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 * 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_OOX_DUMP_XLSBDUMPER_HXX
21 #define INCLUDED_OOX_DUMP_XLSBDUMPER_HXX
23 #include <memory>
25 #include <com/sun/star/uno/Reference.hxx>
26 #include <oox/dump/dumperbase.hxx>
27 #include <rtl/ustring.hxx>
28 #include <sal/types.h>
30 #if OOX_INCLUDE_DUMPER
32 namespace com { namespace sun { namespace star {
33 namespace io { class XInputStream; }
34 namespace uno { class XComponentContext; }
35 } } }
37 namespace oox {
38 class BinaryInputStream;
39 class SequenceInputStream;
42 namespace oox { namespace core { class FilterBase; } }
44 namespace oox {
45 namespace dump {
46 namespace xlsb {
49 class RecordObjectBase : public SequenceRecordObjectBase
51 protected:
52 explicit RecordObjectBase();
53 virtual ~RecordObjectBase();
55 using SequenceRecordObjectBase::construct;
57 virtual bool implReadRecordHeader( BinaryInputStream& rBaseStrm, sal_Int64& ornRecId, sal_Int64& ornRecSize ) override;
59 private:
60 typedef std::shared_ptr< SequenceInputStream > SequenceInputStreamRef;
62 SequenceInputStreamRef mxBiffStrm;
63 NameListRef mxErrCodes;
67 class RootStorageObject : public StorageObjectBase
69 public:
70 explicit RootStorageObject( const DumperBase& rParent );
72 protected:
73 virtual void implDumpStream(
74 const css::uno::Reference< css::io::XInputStream >& rxStrm,
75 const OUString& rStrgPath,
76 const OUString& rStrmName,
77 const OUString& rSysFileName ) override;
81 class Dumper : public DumperBase
83 public:
84 explicit Dumper( const ::oox::core::FilterBase& rFilter );
86 explicit Dumper(
87 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
88 const css::uno::Reference< css::io::XInputStream >& rxInStrm,
89 const OUString& rSysFileName );
91 protected:
92 virtual void implDump() override;
96 } // namespace xlsb
97 } // namespace dump
98 } // namespace oox
100 #endif
101 #endif
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */