LCOV - code coverage report
Current view: top level - libreoffice/writerfilter/source/resourcemodel - resourcemodel.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 18 0.0 %
Date: 2012-12-17 Functions: 0 9 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #include <resourcemodel/WW8ResourceModel.hxx>
      20             : 
      21             : namespace writerfilter {
      22             : class WW8TableManager;
      23             : class WW8StreamHandler : public Stream
      24             : {
      25             :     int mnUTextCount;
      26             :     WW8TableManager* mpTableManager;
      27             : 
      28             : public:
      29             :     WW8StreamHandler();
      30             :     virtual ~WW8StreamHandler();
      31             : 
      32             :     virtual void startSectionGroup();
      33             :     virtual void endSectionGroup();
      34             :     virtual void startParagraphGroup();
      35             :     virtual void endParagraphGroup();
      36             :     virtual void startCharacterGroup();
      37             :     virtual void endCharacterGroup();
      38             :     virtual void text(const sal_uInt8 * data, size_t len);
      39             :     virtual void utext(const sal_uInt8 * data, size_t len);
      40             : 
      41             :     virtual void props(writerfilter::Reference<Properties>::Pointer_t ref);
      42             :     virtual void table(Id name,
      43             :                        writerfilter::Reference<Table>::Pointer_t ref);
      44             : 
      45             :     virtual void startShape( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape );
      46             :     virtual void endShape( );
      47             : 
      48             :     virtual void substream(Id name, writerfilter::Reference<Stream>::Pointer_t ref);
      49             : 
      50             :     virtual void info(const string & info);
      51             : };
      52             : 
      53             : class WW8PropertiesHandler : public Properties
      54             : {
      55             :     typedef boost::shared_ptr<Sprm> SprmSharedPointer_t;
      56             :     typedef vector<SprmSharedPointer_t> SprmPointers_t;
      57             :     SprmPointers_t sprms;
      58             :     WW8TableManager* mpTableManager;
      59             : 
      60             : public:
      61           0 :     WW8PropertiesHandler(WW8TableManager* pTableManager)
      62           0 :         : mpTableManager(pTableManager)
      63             :     {
      64           0 :     }
      65             : 
      66           0 :     virtual ~WW8PropertiesHandler()
      67           0 :     {
      68           0 :     }
      69             : 
      70             :     virtual void attribute(Id name, Value & val);
      71             :     virtual void sprm(Sprm & sprm);
      72             : 
      73             :     void dumpSprm(SprmSharedPointer_t sprm);
      74             :     void dumpSprms();
      75             : };
      76             : 
      77             : class WW8BinaryObjHandler : public BinaryObj
      78             : {
      79             : public:
      80           0 :     WW8BinaryObjHandler()
      81           0 :     {
      82           0 :     }
      83             : 
      84           0 :     virtual ~WW8BinaryObjHandler()
      85           0 :     {
      86           0 :     }
      87             : 
      88             :     virtual void data(const sal_uInt8* buf, size_t len,
      89             :                       writerfilter::Reference<Properties>::Pointer_t ref);
      90             : };
      91             : 
      92             : class WW8TableHandler : public Table
      93             : {
      94             :     WW8TableManager* mpTableManager;
      95             : 
      96             : public:
      97           0 :     WW8TableHandler(WW8TableManager* pTableManager)
      98           0 :         : mpTableManager(pTableManager)
      99             :     {
     100           0 :     }
     101             : 
     102           0 :     virtual ~WW8TableHandler()
     103           0 :     {
     104           0 :     }
     105             : 
     106             :     void entry(int pos, writerfilter::Reference<Properties>::Pointer_t ref);
     107             : };
     108             : 
     109             : }
     110             : 
     111             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10