Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / oox / dump / xlsbdumper.hxx
blobea553ab870879a9e5d16a1b4ad50cc8b2eae65e5
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() override;
55 using SequenceRecordObjectBase::construct;
57 virtual bool implReadRecordHeader( BinaryInputStream& rBaseStrm, sal_Int64& ornRecId, sal_Int64& ornRecSize ) override;
61 class RootStorageObject : public StorageObjectBase
63 public:
64 explicit RootStorageObject( const DumperBase& rParent );
66 protected:
67 virtual void implDumpStream(
68 const css::uno::Reference< css::io::XInputStream >& rxStrm,
69 const OUString& rStrgPath,
70 const OUString& rStrmName,
71 const OUString& rSysFileName ) override;
75 class Dumper : public DumperBase
77 public:
78 explicit Dumper( const ::oox::core::FilterBase& rFilter );
80 explicit Dumper(
81 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
82 const css::uno::Reference< css::io::XInputStream >& rxInStrm,
83 const OUString& rSysFileName );
85 protected:
86 virtual void implDump() override;
90 } // namespace xlsb
91 } // namespace dump
92 } // namespace oox
94 #endif
95 #endif
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */