Line data Source code
1 : /*
2 : * This file is part of the LibreOffice project.
3 : *
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 : */
8 :
9 : #ifndef _RTFDOCUMENT_HXX_
10 : #define _RTFDOCUMENT_HXX_
11 :
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>
18 :
19 : namespace writerfilter
20 : {
21 : namespace rtftok
22 : {
23 : /// The RTFDocument opens and resolves the RTF document.
24 0 : class RTFDocument
25 : : public writerfilter::Reference<Stream>
26 : {
27 : public:
28 : /// Pointer to this stream.
29 : typedef boost::shared_ptr<RTFDocument> Pointer_t;
30 :
31 0 : virtual ~RTFDocument() { }
32 :
33 : /// Resolves this document to a stream handler.
34 : virtual void resolve(Stream& rHandler) SAL_OVERRIDE = 0;
35 :
36 : /// Returns string representation of the type of this reference. (Debugging purpose only.)
37 : virtual ::std::string getType() const SAL_OVERRIDE = 0;
38 : };
39 :
40 : /// Interface to create an RTFDocument instance.
41 : class RTFDocumentFactory
42 : {
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);
50 : };
51 : } // namespace rtftok
52 : } // namespace writerfilter
53 :
54 : #endif // _RTFDOCUMENT_HXX_
55 :
56 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|