LCOV - code coverage report
Current view: top level - libreoffice/writerfilter/source/doctok - WW8Text.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 15 6.7 %
Date: 2012-12-27 Functions: 2 8 25.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             : #include <doctok/resources.hxx>
      21             : 
      22             : namespace writerfilter {
      23             : namespace doctok {
      24           0 : sal_uInt32 WW8sprmPChgTabsPapx::get_dxaDel_count()
      25             : {
      26           0 :     return getS8(0x3);
      27             : }
      28             : 
      29           0 : sal_Int16  WW8sprmPChgTabsPapx::get_dxaDel(sal_uInt32 pos)
      30             : {
      31           0 :     return getS16(0x4 + pos * 2);
      32             : }
      33             : 
      34           0 : sal_uInt32 WW8sprmPChgTabsPapx::get_dxaAdd_count()
      35             : {
      36           0 :     return getS8(0x4 + get_dxaDel_count() * 2);
      37             : }
      38             : 
      39           0 : sal_Int16 WW8sprmPChgTabsPapx::get_dxaAdd(sal_uInt32 pos)
      40             : {
      41           0 :     return getS16(0x4 + get_dxaDel_count() * 2 + 1 + pos * 2);
      42             : }
      43             : 
      44           0 : sal_uInt32 WW8sprmPChgTabsPapx::get_tbdAdd_count()
      45             : {
      46           0 :     return get_dxaAdd_count();
      47             : }
      48             : 
      49             : writerfilter::Reference<Properties>::Pointer_t
      50           0 : WW8sprmPChgTabsPapx::get_tbdAdd(sal_uInt32 pos)
      51             : {
      52             :     //wntmsci compiler cannot handle 'too many inlines' ;-)
      53             :     writerfilter::Reference<Properties>::Pointer_t pRet( new WW8TBD(this,
      54           0 :                     0x4 + get_dxaDel_count() * 2 + 1 + get_dxaAdd_count() * 2
      55           0 :                     + pos, 1));
      56           0 :     return pRet;
      57             : }
      58          15 : }}
      59             : 
      60             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10