LCOV - code coverage report
Current view: top level - writerfilter/source/doctok - WW8Sttbf.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 0.0 %

           Branch data     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_STTBF_HXX
      21                 :            : #define INCLUDED_WW8_STTBF_HXX
      22                 :            : 
      23                 :            : #include "WW8StructBase.hxx"
      24                 :            : #include "WW8ResourceModelImpl.hxx"
      25                 :            : 
      26                 :            : #include <boost/shared_ptr.hpp>
      27                 :            : #include <vector>
      28                 :            : 
      29                 :            : namespace writerfilter {
      30                 :            : namespace doctok
      31                 :            : {
      32                 :            : 
      33                 :            : using namespace ::std;
      34                 :            : 
      35                 :            : /**
      36                 :            :    A string table in file.
      37                 :            : 
      38                 :            :    The string table contains strings that each can have extra data.
      39                 :            :  */
      40         [ #  # ]:          0 : class WW8Sttbf : public WW8StructBase
      41                 :            : {
      42                 :            :     /// true if strings contain two-byte characters
      43                 :            :     bool mbComplex;
      44                 :            : 
      45                 :            :     /// the number of entries
      46                 :            :     sal_uInt32 mnCount;
      47                 :            : 
      48                 :            :     /// the size of the extra data (per string)
      49                 :            :     sal_uInt32 mnExtraDataCount;
      50                 :            : 
      51                 :            :     /// offsets for the strings
      52                 :            :     vector<sal_uInt32> mEntryOffsets;
      53                 :            : 
      54                 :            :     /// offsets for the extra data
      55                 :            :     vector<sal_uInt32> mExtraOffsets;
      56                 :            : 
      57                 :            :     /**
      58                 :            :        Return offset of an entry.
      59                 :            : 
      60                 :            :        @param nPos    the index of the entry
      61                 :            :     */
      62                 :            :     sal_uInt32 getEntryOffset(sal_uInt32 nPos) const;
      63                 :            : 
      64                 :            : public:
      65                 :            :     typedef boost::shared_ptr<WW8Sttbf> Pointer_t;
      66                 :            : 
      67                 :            :     WW8Sttbf(WW8Stream & rStream, sal_uInt32 nOffset, sal_uInt32 nCount);
      68                 :            : 
      69                 :            :     /**
      70                 :            :        Return the number of entries.
      71                 :            :     */
      72                 :            :     sal_uInt32 getEntryCount() const;
      73                 :            : 
      74                 :            :     /**
      75                 :            :        Return the string of an entry.
      76                 :            : 
      77                 :            :        @param nPos     the index of the entry
      78                 :            :      */
      79                 :            :     OUString getEntry(sal_uInt32 nPos) const;
      80                 :            : };
      81                 :            : 
      82                 :            : class WW8SttbTableResource : public ::writerfilter::Reference<Table>
      83                 :            : {
      84                 :            :     WW8Sttbf::Pointer_t mpSttbf;
      85                 :            : 
      86                 :            : public:
      87                 :            :     WW8SttbTableResource(WW8Sttbf::Pointer_t pSttbf);
      88                 :            :     virtual ~WW8SttbTableResource();
      89                 :            : 
      90                 :            :     void resolve(Table & rTable);
      91                 :            : 
      92                 :            :     string getType() const;
      93                 :            : };
      94                 :            : 
      95                 :            : class WW8StringProperty : public ::writerfilter::Reference<Properties>
      96                 :            : {
      97                 :            :     sal_uInt32 mnId;
      98                 :            :     WW8StringValue::Pointer_t mpValue;
      99                 :            : 
     100                 :            : public:
     101                 :            :     SAL_WNODEPRECATED_DECLARATIONS_PUSH
     102                 :            :     WW8StringProperty(sal_uInt32 nId, WW8StringValue::Pointer_t pValue);
     103                 :            :     SAL_WNODEPRECATED_DECLARATIONS_POP
     104                 :            :     virtual ~WW8StringProperty();
     105                 :            : 
     106                 :            :     void resolve(Properties & rProperties);
     107                 :            : 
     108                 :            :     string getType() const;
     109                 :            : };
     110                 :            : 
     111                 :            : }}
     112                 :            : #endif // INCLUDED_WW8_STTBF
     113                 :            : 
     114                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10