LCOV - code coverage report
Current view: top level - writerfilter/inc/rtftok - RTFDocument.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 2 2 100.0 %
Date: 2014-11-03 Functions: 2 3 66.7 %
Legend: Lines: hit not hit

          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 INCLUDED_WRITERFILTER_INC_RTFTOK_RTFDOCUMENT_HXX
      10             : #define INCLUDED_WRITERFILTER_INC_RTFTOK_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         814 : 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         814 :     virtual ~RTFDocument() { }
      32             : 
      33             :     /// Resolves this document to a stream handler.
      34             :     virtual void resolve(Stream& rHandler) SAL_OVERRIDE = 0;
      35             : };
      36             : 
      37             : /// Interface to create an RTFDocument instance.
      38             : class RTFDocumentFactory
      39             : {
      40             : public:
      41             :     static RTFDocument::Pointer_t
      42             :     createDocument(css::uno::Reference<css::uno::XComponentContext> const& xContext,
      43             :                    css::uno::Reference<css::io::XInputStream> const& xInputStream,
      44             :                    css::uno::Reference<css::lang::XComponent> const& xDstDoc,
      45             :                    css::uno::Reference<css::frame::XFrame> const& xFrame,
      46             :                    css::uno::Reference<css::task::XStatusIndicator> const& xStatusIndicator);
      47             : };
      48             : } // namespace rtftok
      49             : } // namespace writerfilter
      50             : 
      51             : #endif // INCLUDED_WRITERFILTER_INC_RTFTOK_RTFDOCUMENT_HXX
      52             : 
      53             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10