LCOV - code coverage report
Current view: top level - libreoffice/writerfilter/source/dmapper - TablePositionHandler.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 13 16 81.2 %
Date: 2012-12-27 Functions: 7 8 87.5 %
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             : #include <TablePositionHandler.hxx>
      10             : #include <PropertyMap.hxx>
      11             : #include <doctok/resourceids.hxx>
      12             : #include <ConversionHelper.hxx>
      13             : #include <ooxml/resourceids.hxx>
      14             : #include <com/sun/star/text/SizeType.hpp>
      15             : #include "dmapperLoggers.hxx"
      16             : 
      17             : namespace writerfilter {
      18             : namespace dmapper {
      19             : 
      20             : using namespace ::com::sun::star;
      21             : 
      22           1 : TablePositionHandler::TablePositionHandler() :
      23           1 : LoggedProperties(dmapper_logger, "TablePositionHandler")
      24             : {
      25           1 : }
      26             : 
      27           2 : TablePositionHandler::~TablePositionHandler()
      28             : {
      29           2 : }
      30             : 
      31             : 
      32           1 : void TablePositionHandler::lcl_attribute(Id rName, Value& rVal)
      33             : {
      34           1 :     switch (rName)
      35             :     {
      36             :         case NS_ooxml::LN_CT_TblPPr_vertAnchor:
      37           1 :             m_aVertAnchor = rVal.getString();
      38           1 :         break;
      39             :         default:
      40             : #ifdef DEBUG_DOMAINMAPPER
      41             :             dmapper_logger->element("unhandled");
      42             : #endif
      43           0 :             break;
      44             :     }
      45           1 : }
      46             : 
      47             : 
      48           0 : void TablePositionHandler::lcl_sprm(Sprm& /*rSprm*/)
      49             : {
      50           0 : }
      51             : 
      52             : 
      53           1 : OUString TablePositionHandler::getVertAnchor() const
      54             : {
      55           1 :     return m_aVertAnchor;
      56             : }
      57             : 
      58             : } // namespace dmapper
      59          15 : } // namespace writerfilter
      60             : 
      61             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10