/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef INCLUDED_OOXML_STREAM_IMPL_HXX #define INCLUDED_OOXML_STREAM_IMPL_HXX #include #include #include #include namespace writerfilter { namespace ooxml { using namespace com::sun::star; class OOXMLStreamImpl : public OOXMLStream { void init(); uno::Reference mxContext; uno::Reference mxStorageStream; uno::Reference mxStorage; uno::Reference mxRelationshipAccess; uno::Reference mxDocumentStream; uno::Reference mxFastParser; uno::Reference mxFastTokenHandler; StreamType_t mnStreamType; rtl::OUString msId; rtl::OUString msPath; rtl::OUString msTarget; bool lcl_getTarget(uno::Reference xRelationshipAccess, StreamType_t nStreamType, const ::rtl::OUString & rId, ::rtl::OUString & rDocumentTarget); public: typedef boost::shared_ptr Pointer_t; OOXMLStreamImpl (OOXMLStreamImpl & rStream, StreamType_t nType); OOXMLStreamImpl (uno::Reference xContext, uno::Reference xStorageStream, StreamType_t nType); OOXMLStreamImpl(OOXMLStreamImpl & rStream, const rtl::OUString & rId); virtual ~OOXMLStreamImpl(); virtual uno::Reference getParser(); virtual uno::Reference getFastParser(); virtual uno::Reference getDocumentStream(); virtual uno::Reference getStorageStream(); virtual uno::Reference getContext(); virtual ::rtl::OUString getTargetForId(const ::rtl::OUString & rId); virtual const ::rtl::OUString & getTarget() const; virtual uno::Reference getFastTokenHandler(uno::Reference rContext); void setInputStream(uno::Reference rxInputStream); }; }} #endif // INCLUDED_OOXML_STREAM_IMPL_HXX