Bump version to 4.3-4
[LibreOffice.git] / writerfilter / inc / rtftok / RTFDocument.hxx
blob1959505cfc8f4937f24c2ce46dd8af2dfc1ffd78
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
9 #ifndef INCLUDED_WRITERFILTER_INC_RTFTOK_RTFDOCUMENT_HXX
10 #define INCLUDED_WRITERFILTER_INC_RTFTOK_RTFDOCUMENT_HXX
12 #include <resourcemodel/WW8ResourceModel.hxx>
13 #include <com/sun/star/uno/XComponentContext.hpp>
14 #include <com/sun/star/io/XInputStream.hpp>
15 #include <com/sun/star/lang/XComponent.hpp>
16 #include <com/sun/star/frame/XFrame.hpp>
17 #include <com/sun/star/task/XStatusIndicator.hpp>
19 namespace writerfilter
21 namespace rtftok
23 /// The RTFDocument opens and resolves the RTF document.
24 class RTFDocument
25 : public writerfilter::Reference<Stream>
27 public:
28 /// Pointer to this stream.
29 typedef boost::shared_ptr<RTFDocument> Pointer_t;
31 virtual ~RTFDocument() { }
33 /// Resolves this document to a stream handler.
34 virtual void resolve(Stream& rHandler) SAL_OVERRIDE = 0;
36 /// Returns string representation of the type of this reference. (Debugging purpose only.)
37 virtual ::std::string getType() const SAL_OVERRIDE = 0;
40 /// Interface to create an RTFDocument instance.
41 class RTFDocumentFactory
43 public:
44 static RTFDocument::Pointer_t
45 createDocument(css::uno::Reference<css::uno::XComponentContext> const& xContext,
46 css::uno::Reference<css::io::XInputStream> const& xInputStream,
47 css::uno::Reference<css::lang::XComponent> const& xDstDoc,
48 css::uno::Reference<css::frame::XFrame> const& xFrame,
49 css::uno::Reference<css::task::XStatusIndicator> const& xStatusIndicator);
51 } // namespace rtftok
52 } // namespace writerfilter
54 #endif // INCLUDED_WRITERFILTER_INC_RTFTOK_RTFDOCUMENT_HXX
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */