LCOV - code coverage report
Current view: top level - libreoffice/writerfilter/source/doctok - WW8PieceTableImpl.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 2 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             : 
      20             : #ifndef INCLUDED_WW8_PIECE_TABLE_IMPL_HXX
      21             : #define INCLUDED_WW8_PIECE_TABLE_IMPL_HXX
      22             : 
      23             : #include <vector>
      24             : #include <WW8CpAndFc.hxx>
      25             : #include <WW8PieceTable.hxx>
      26             : 
      27             : namespace writerfilter {
      28             : namespace doctok
      29             : {
      30             : using namespace ::std;
      31             : 
      32           0 : class WW8PieceTableImpl : public WW8PieceTable
      33             : {
      34             :     typedef std::vector<CpAndFc> tEntries;
      35             :     tEntries mEntries;
      36             : 
      37             :     tEntries::const_iterator findCp(const Cp & rCp) const;
      38             :     tEntries::const_iterator findFc(const Fc & rFc) const;
      39             : 
      40             :     mutable Cp2FcHashMap_t mCp2FcCache;
      41             : 
      42             : public:
      43             :     WW8PieceTableImpl(WW8Stream & rStream, sal_uInt32 nOffset,
      44             :                       sal_uInt32 nCount);
      45             : 
      46             :     virtual Fc cp2fc(const Cp & aCpIn) const;
      47             :     virtual Cp fc2cp(const Fc & aFcIn) const;
      48             :     virtual bool isComplex(const Cp & aCp) const;
      49             :     virtual bool isComplex(const Fc & aFc) const;
      50             : 
      51             :     virtual sal_uInt32 getCount() const;
      52             :     virtual Cp getFirstCp() const;
      53             :     virtual Fc getFirstFc() const;
      54             :     virtual Cp getLastCp() const;
      55             :     virtual Fc getLastFc() const;
      56             :     virtual Cp getCp(sal_uInt32 nIndex) const;
      57             :     virtual Fc getFc(sal_uInt32 nIndex) const;
      58             :     virtual CpAndFc createCpAndFc(const Cp & rCp, PropertyType eType) const;
      59             :     virtual CpAndFc createCpAndFc(const Fc & rFc, PropertyType eType) const;
      60             : 
      61             :     virtual void dump(ostream & o) const;
      62             : };
      63             : }}
      64             : 
      65             : #endif // INCLUDED_WW8_PIECE_TABLE_IMPL_HXX
      66             : 
      67             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10