LCOV - code coverage report
Current view: top level - libreoffice/xmloff/source/forms - formlayerimport.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 25 28 89.3 %
Date: 2012-12-17 Functions: 10 11 90.9 %
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 <xmloff/formlayerimport.hxx>
      21             : #include "layerimport.hxx"
      22             : 
      23             : //.........................................................................
      24             : namespace xmloff
      25             : {
      26             : //.........................................................................
      27             : 
      28             :     using namespace ::com::sun::star::uno;
      29             :     using namespace ::com::sun::star::lang;
      30             :     using namespace ::com::sun::star::beans;
      31             :     using namespace ::com::sun::star::container;
      32             :     using namespace ::com::sun::star::drawing;
      33             :     using namespace ::com::sun::star;
      34             : 
      35             :     //=====================================================================
      36             :     //= OFormLayerXMLExport
      37             :     //=====================================================================
      38             : 
      39             :     //---------------------------------------------------------------------
      40         210 :     OFormLayerXMLImport::OFormLayerXMLImport(SvXMLImport& _rImporter)
      41         210 :         :m_pImpl(NULL)
      42             :     {
      43         210 :         m_pImpl = new OFormLayerXMLImport_Impl(_rImporter);
      44         210 :     }
      45             : 
      46             :     //---------------------------------------------------------------------
      47         630 :     OFormLayerXMLImport::~OFormLayerXMLImport()
      48             :     {
      49         210 :         delete m_pImpl;
      50         420 :     }
      51             : 
      52             :     //---------------------------------------------------------------------
      53         210 :     void OFormLayerXMLImport::setAutoStyleContext(SvXMLStylesContext* _pNewContext)
      54             :     {
      55         210 :         m_pImpl->setAutoStyleContext(_pNewContext);
      56         210 :     }
      57             : 
      58             :     //---------------------------------------------------------------------
      59         134 :     void OFormLayerXMLImport::startPage(const Reference< XDrawPage >& _rxDrawPage)
      60             :     {
      61         134 :         m_pImpl->startPage(_rxDrawPage);
      62         134 :     }
      63             : 
      64             :     //---------------------------------------------------------------------
      65         134 :     void OFormLayerXMLImport::endPage()
      66             :     {
      67         134 :         m_pImpl->endPage();
      68         134 :     }
      69             : 
      70             :     //---------------------------------------------------------------------
      71           6 :     Reference< XPropertySet > OFormLayerXMLImport::lookupControl(const ::rtl::OUString& _rId)
      72             :     {
      73           6 :         return m_pImpl->lookupControlId(_rId);
      74             :     }
      75             : 
      76             :     //---------------------------------------------------------------------
      77          31 :     SvXMLImportContext* OFormLayerXMLImport::createOfficeFormsContext(
      78             :         SvXMLImport& _rImport,
      79             :         sal_uInt16 _nPrefix,
      80             :         const rtl::OUString& _rLocalName)
      81             :     {
      82          31 :         return m_pImpl->createOfficeFormsContext(_rImport, _nPrefix, _rLocalName);
      83             :     }
      84             : 
      85             :     //---------------------------------------------------------------------
      86           3 :     SvXMLImportContext* OFormLayerXMLImport::createContext(const sal_uInt16 _nPrefix, const rtl::OUString& _rLocalName,
      87             :         const Reference< xml::sax::XAttributeList >& _rxAttribs)
      88             :     {
      89           3 :         return m_pImpl->createContext(_nPrefix, _rLocalName, _rxAttribs);
      90             :     }
      91             : 
      92             :     //---------------------------------------------------------------------
      93           0 :     void OFormLayerXMLImport::applyControlNumberStyle(const Reference< XPropertySet >& _rxControlModel, const ::rtl::OUString& _rControlNumerStyleName)
      94             :     {
      95           0 :         m_pImpl->applyControlNumberStyle(_rxControlModel, _rControlNumerStyleName);
      96           0 :     }
      97             : 
      98             :     //---------------------------------------------------------------------
      99         210 :     void OFormLayerXMLImport::documentDone( )
     100             :     {
     101         210 :         m_pImpl->documentDone( );
     102         210 :     }
     103             : 
     104             : //.........................................................................
     105             : }   // namespace xmloff
     106             : //.........................................................................
     107             : 
     108             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10