LCOV - code coverage report
Current view: top level - writerfilter/source/dmapper - LatentStyleHandler.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 36 0.0 %
Date: 2014-04-14 Functions: 0 6 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             : #include <LatentStyleHandler.hxx>
      10             : #include <ooxml/resourceids.hxx>
      11             : #include "dmapperLoggers.hxx"
      12             : 
      13             : namespace writerfilter
      14             : {
      15             : namespace dmapper
      16             : {
      17             : 
      18             : using namespace ::com::sun::star;
      19             : 
      20           0 : LatentStyleHandler::LatentStyleHandler() :
      21           0 :     LoggedProperties(dmapper_logger, "LatentStyleHandler")
      22             : {
      23           0 : }
      24             : 
      25           0 : LatentStyleHandler::~LatentStyleHandler()
      26             : {
      27           0 : }
      28             : 
      29           0 : void LatentStyleHandler::lcl_attribute(Id rName, Value& rVal)
      30             : {
      31           0 :     beans::PropertyValue aValue;
      32           0 :     bool bFound = true;
      33           0 :     switch (rName)
      34             :     {
      35             :     case NS_ooxml::LN_CT_LsdException_name:
      36           0 :         aValue.Name = "name";
      37           0 :         break;
      38             :     case NS_ooxml::LN_CT_LsdException_locked:
      39           0 :         aValue.Name = "locked";
      40           0 :         break;
      41             :     case NS_ooxml::LN_CT_LsdException_uiPriority:
      42           0 :         aValue.Name = "uiPriority";
      43           0 :         break;
      44             :     case NS_ooxml::LN_CT_LsdException_semiHidden:
      45           0 :         aValue.Name = "semiHidden";
      46           0 :         break;
      47             :     case NS_ooxml::LN_CT_LsdException_unhideWhenUsed:
      48           0 :         aValue.Name = "unhideWhenUsed";
      49           0 :         break;
      50             :     case NS_ooxml::LN_CT_LsdException_qFormat:
      51           0 :         aValue.Name = "qFormat";
      52           0 :         break;
      53             :     default:
      54           0 :         bFound = false;
      55             : #ifdef DEBUG_DOMAINMAPPER
      56             :         dmapper_logger->element("unhandled");
      57             : #endif
      58           0 :         break;
      59             :     }
      60           0 :     if (bFound)
      61             :     {
      62           0 :         aValue.Value = uno::makeAny(rVal.getString());
      63           0 :         m_aAttributes.push_back(aValue);
      64           0 :     }
      65           0 : }
      66             : 
      67             : 
      68           0 : void LatentStyleHandler::lcl_sprm(Sprm& /*rSprm*/)
      69             : {
      70           0 : }
      71             : 
      72           0 : uno::Sequence<beans::PropertyValue> LatentStyleHandler::getAttributes() const
      73             : {
      74           0 :     uno::Sequence<beans::PropertyValue> aAttributes(m_aAttributes.size());
      75           0 :     beans::PropertyValue* pAttributes = aAttributes.getArray();
      76           0 :     for (std::vector<beans::PropertyValue>::const_iterator i = m_aAttributes.begin(); i != m_aAttributes.end(); ++i)
      77           0 :         *pAttributes++ = *i;
      78           0 :     return aAttributes;
      79             : }
      80             : 
      81             : } // namespace dmapper
      82             : } // namespace writerfilter
      83             : 
      84             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10