summaryrefslogtreecommitdiff
path: root/writerfilter/inc/rtftok
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-05-24 13:33:36 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-05-27 11:25:57 +0200
commitada1bcd5e08df567f32718cf5cf0a797a4e9793f (patch)
tree2e488d854cfcfcecd9a05015513aef1b0dda812a /writerfilter/inc/rtftok
parentd2f12eb82532ea549dc9fd7233e67c3465a02270 (diff)
Initial RTFDocument and RTFDocumentFactory implementation
Diffstat (limited to 'writerfilter/inc/rtftok')
-rw-r--r--writerfilter/inc/rtftok/RTFDocument.hxx40
1 files changed, 40 insertions, 0 deletions
diff --git a/writerfilter/inc/rtftok/RTFDocument.hxx b/writerfilter/inc/rtftok/RTFDocument.hxx
new file mode 100644
index 000000000000..1dd67adfd738
--- /dev/null
+++ b/writerfilter/inc/rtftok/RTFDocument.hxx
@@ -0,0 +1,40 @@
+#ifndef _RTFDOCUMENT_HXX_
+#define _RTFDOCUMENT_HXX_
+
+#include <resourcemodel/WW8ResourceModel.hxx>
+#include <com/sun/star/io/XInputStream.hpp>
+
+namespace writerfilter {
+ namespace rtftok {
+ /// The RTFDocument opens and resolves the RTF document.
+ class WRITERFILTER_RTFTOK_DLLPUBLIC RTFDocument
+ : public writerfilter::Reference<Stream>
+ {
+ public:
+ /// Pointer to this stream.
+ typedef ::boost::shared_ptr<RTFDocument> Pointer_t;
+
+ virtual ~RTFDocument() { }
+
+ /// Resolves this document to a stream handler.
+ virtual void resolve(Stream & rHandler) = 0;
+
+ /// Returns string representation of the type of this reference. (Debugging purpose only.)
+ virtual ::std::string getType() const = 0;
+ };
+
+ /// Interface to create an RTFDocument instance.
+ class WRITERFILTER_RTFTOK_DLLPUBLIC RTFDocumentFactory
+ {
+ public:
+ static RTFDocument::Pointer_t
+ createDocument(
+ ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >
+ const & xInputStream );
+ };
+ } // namespace rtftok
+} // namespace writerfilter
+
+#endif // _RTFDOCUMENT_HXX_
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */