LCOV - code coverage report
Current view: top level - xmloff/source/draw - descriptionimp.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 18 0.0 %
Date: 2012-08-25 Functions: 0 10 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 32 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : 
      30                 :            : #include <com/sun/star/beans/XPropertySet.hpp>
      31                 :            : #include <com/sun/star/xml/sax/XAttributeList.hpp>
      32                 :            : #include <xmloff/xmltoken.hxx>
      33                 :            : #include <xmloff/xmlimp.hxx>
      34                 :            : #include "xmloff/xmlnmspe.hxx"
      35                 :            : #include <xmloff/nmspmap.hxx>
      36                 :            : 
      37                 :            : #include "descriptionimp.hxx"
      38                 :            : 
      39                 :            : using ::rtl::OUString;
      40                 :            : using ::rtl::OUStringBuffer;
      41                 :            : 
      42                 :            : using namespace ::std;
      43                 :            : using namespace ::cppu;
      44                 :            : using namespace ::com::sun::star;
      45                 :            : using namespace ::com::sun::star::xml;
      46                 :            : using namespace ::com::sun::star::xml::sax;
      47                 :            : using namespace ::com::sun::star::uno;
      48                 :            : using namespace ::com::sun::star::drawing;
      49                 :            : using namespace ::com::sun::star::beans;
      50                 :            : using namespace ::xmloff::token;
      51                 :            : 
      52                 :            : ///////////////////////////////////////////////////////////////////////
      53                 :            : 
      54 [ #  # ][ #  # ]:          0 : TYPEINIT1( SdXMLDescriptionContext, SvXMLImportContext );
      55                 :            : 
      56                 :          0 : SdXMLDescriptionContext::SdXMLDescriptionContext( SvXMLImport& rImport, sal_uInt16 nPrfx,   const OUString& rLocalName,
      57                 :            :         const Reference< XAttributeList>&, const Reference< XShape >& rxShape)
      58                 :          0 : : SvXMLImportContext(rImport, nPrfx, rLocalName), mxShape( rxShape )
      59                 :            : {
      60                 :          0 : }
      61                 :            : 
      62                 :          0 : SdXMLDescriptionContext::~SdXMLDescriptionContext()
      63                 :            : {
      64         [ #  # ]:          0 : }
      65                 :            : 
      66                 :          0 : void SdXMLDescriptionContext::EndElement()
      67                 :            : {
      68         [ #  # ]:          0 :     if( !msText.isEmpty() ) try
      69                 :            :     {
      70         [ #  # ]:          0 :         uno::Reference< beans::XPropertySet > xPropSet(mxShape, uno::UNO_QUERY_THROW);
      71 [ #  # ][ #  # ]:          0 :         if(IsXMLToken(GetLocalName(),XML_TITLE))
      72                 :            :         {
      73 [ #  # ][ #  # ]:          0 :             xPropSet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("Title")), Any(msText));
         [ #  # ][ #  # ]
      74                 :            :         }
      75                 :            :         else
      76                 :            :         {
      77 [ #  # ][ #  # ]:          0 :             xPropSet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("Description")), Any(msText));
         [ #  # ][ #  # ]
      78         [ #  # ]:          0 :         }
      79                 :            :     }
      80                 :          0 :     catch( uno::Exception& )
      81                 :            :     {
      82                 :            :     }
      83                 :          0 : }
      84                 :            : 
      85                 :            : // This method is called for all characters that are contained in the
      86                 :            : // current element. The default is to ignore them.
      87                 :          0 : void SdXMLDescriptionContext::Characters( const ::rtl::OUString& rChars )
      88                 :            : {
      89                 :          0 :     msText += rChars;
      90                 :          0 : }
      91                 :            : 
      92                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10