LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/writerfilter/inc/rtftok - RTFDocument.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2013-07-09 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 _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             :     namespace rtftok {
      21             :         /// The RTFDocument opens and resolves the RTF document.
      22         206 :         class WRITERFILTER_RTFTOK_DLLPUBLIC RTFDocument
      23             :             : public writerfilter::Reference<Stream>
      24             :         {
      25             :             public:
      26             :                 /// Pointer to this stream.
      27             :                 typedef ::boost::shared_ptr<RTFDocument> Pointer_t;
      28             : 
      29         206 :                 virtual ~RTFDocument() { }
      30             : 
      31             :                 /// Resolves this document to a stream handler.
      32             :                 virtual void resolve(Stream & rHandler) = 0;
      33             : 
      34             :                 /// Returns string representation of the type of this reference. (Debugging purpose only.)
      35             :                 virtual ::std::string getType() const = 0;
      36             :         };
      37             : 
      38             :         /// Interface to create an RTFDocument instance.
      39             :         class WRITERFILTER_RTFTOK_DLLPUBLIC RTFDocumentFactory
      40             :         {
      41             :             public:
      42             :                 static RTFDocument::Pointer_t
      43             :                     createDocument(
      44             :                             ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext,
      45             :                             ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > const & xInputStream,
      46             :                             ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > const & xDstDoc,
      47             :                             ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > const & xFrame,
      48             :                             ::com::sun::star::uno::Reference< ::com::sun::star::task::XStatusIndicator > const & xStatusIndicator);
      49             :         };
      50             :     } // namespace rtftok
      51             : } // namespace writerfilter
      52             : 
      53             : #endif // _RTFDOCUMENT_HXX_
      54             : 
      55             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10