Bump version to 4.1-6
[LibreOffice.git] / writerfilter / source / doctok / WW8StreamImpl.hxx
blob6f6a3245695425637684cead9e2d8a13edb5b5d4
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 #include <com/sun/star/uno/XComponentContext.hpp>
21 #include <com/sun/star/io/XInputStream.hpp>
22 #include <com/sun/star/container/XNameContainer.hpp>
23 #include <doctok/WW8Document.hxx>
24 #include <resourcemodel/OutputWithDepth.hxx>
26 namespace writerfilter {
27 namespace doctok
29 using namespace ::com::sun::star;
31 class WW8StreamImpl : public WW8Stream
33 uno::Reference<uno::XComponentContext> mrComponentContext;
34 uno::Reference<io::XInputStream> mrStream;
35 uno::Reference<container::XNameContainer> xOLESimpleStorage;
36 uno::Reference<lang::XMultiComponentFactory> xFactory;
38 public:
39 WW8StreamImpl(uno::Reference<uno::XComponentContext> rContext,
40 uno::Reference<io::XInputStream> rStream);
41 virtual ~WW8StreamImpl();
43 virtual WW8Stream::Pointer_t getSubStream(const OUString & rId);
45 virtual Sequence get(sal_uInt32 nOffset, sal_uInt32 nCount)
46 const;
48 virtual string getSubStreamNames() const;
49 virtual uno::Sequence<OUString> getSubStreamUNames() const;
51 virtual void dump(OutputWithDepth<string> & o) const;
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */