LCOV - code coverage report
Current view: top level - xmloff/source/forms - formlayerexport.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 39 43 90.7 %
Date: 2015-06-13 12:38:46 Functions: 15 16 93.8 %
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/formlayerexport.hxx>
      21             : #include "strings.hxx"
      22             : #include "elementexport.hxx"
      23             : #include <xmloff/xmlnmspe.hxx>
      24             : #include <xmloff/xmlexp.hxx>
      25             : #include "layerexport.hxx"
      26             : #include "propertyexport.hxx"
      27             : #include <osl/diagnose.h>
      28             : #include <comphelper/extract.hxx>
      29             : #include <com/sun/star/lang/XServiceInfo.hpp>
      30             : #include "officeforms.hxx"
      31             : 
      32             : namespace xmloff
      33             : {
      34             : 
      35             :     using namespace ::com::sun::star::uno;
      36             :     using namespace ::com::sun::star::lang;
      37             :     using namespace ::com::sun::star::awt;
      38             :     using namespace ::com::sun::star::beans;
      39             :     using namespace ::com::sun::star::container;
      40             :     using namespace ::com::sun::star::drawing;
      41             :     using namespace ::com::sun::star::frame;
      42             : 
      43             :     //= OFormLayerXMLExport
      44             : 
      45         124 :     OFormLayerXMLExport::OFormLayerXMLExport(SvXMLExport& _rContext)
      46             :         :m_rContext(_rContext)
      47         124 :         ,m_pImpl(new OFormLayerXMLExport_Impl(_rContext))
      48             :     {
      49         124 :     }
      50             : 
      51         372 :     OFormLayerXMLExport::~OFormLayerXMLExport()
      52             :     {
      53         124 :         delete m_pImpl;
      54         124 :         m_pImpl = NULL;
      55         248 :     }
      56             : 
      57          49 :     bool OFormLayerXMLExport::seekPage(const Reference< XDrawPage >& _rxDrawPage)
      58             :     {
      59          49 :         return m_pImpl->seekPage(_rxDrawPage);
      60             :     }
      61             : 
      62           2 :     OUString OFormLayerXMLExport::getControlId(const Reference< XPropertySet >& _rxControl)
      63             :     {
      64           2 :         return m_pImpl->getControlId(_rxControl);
      65             :     }
      66             : 
      67           2 :     OUString OFormLayerXMLExport::getControlNumberStyle( const Reference< XPropertySet >& _rxControl )
      68             :     {
      69           2 :         return m_pImpl->getControlNumberStyle(_rxControl);
      70             :     }
      71             : 
      72         120 :     void OFormLayerXMLExport::examineForms(const Reference< XDrawPage >& _rxDrawPage)
      73             :     {
      74             :         try
      75             :         {
      76         120 :             m_pImpl->examineForms(_rxDrawPage);
      77             :         }
      78           0 :         catch(Exception&)
      79             :         {
      80             :             OSL_FAIL("OFormLayerXMLExport::examine: could not examine the draw page!");
      81             :         }
      82         120 :     }
      83             : 
      84           4 :     void OFormLayerXMLExport::exportForms(const Reference< XDrawPage >& _rxDrawPage)
      85             :     {
      86           4 :         m_pImpl->exportForms(_rxDrawPage);
      87           4 :     }
      88             : 
      89           2 :     void OFormLayerXMLExport::exportXForms() const
      90             :     {
      91           2 :         m_pImpl->exportXForms();
      92           2 :     }
      93             : 
      94          73 :     bool OFormLayerXMLExport::pageContainsForms( const Reference< XDrawPage >& _rxDrawPage )
      95             :     {
      96          73 :         return OFormLayerXMLExport_Impl::pageContainsForms( _rxDrawPage );
      97             :     }
      98             : 
      99          71 :     bool OFormLayerXMLExport::documentContainsXForms() const
     100             :     {
     101          71 :         return m_pImpl->documentContainsXForms();
     102             :     }
     103             : 
     104          98 :     void OFormLayerXMLExport::exportAutoControlNumberStyles()
     105             :     {
     106          98 :         m_pImpl->exportAutoControlNumberStyles();
     107          98 :     }
     108             : 
     109         117 :     void OFormLayerXMLExport::exportAutoStyles()
     110             :     {
     111         117 :         m_pImpl->exportAutoStyles();
     112         117 :     }
     113             : 
     114           0 :     void OFormLayerXMLExport::excludeFromExport( const Reference< XControlModel >& _rxControl )
     115             :     {
     116           0 :         m_pImpl->excludeFromExport( _rxControl );
     117           0 :     }
     118             : 
     119             :     //= OOfficeFormsExport
     120           4 :     OOfficeFormsExport::OOfficeFormsExport( SvXMLExport& _rExp )
     121           4 :         :m_pImpl(NULL)
     122             :     {
     123           4 :         m_pImpl = new OFormsRootExport(_rExp);
     124           4 :     }
     125             : 
     126           4 :     OOfficeFormsExport::~OOfficeFormsExport()
     127             :     {
     128           4 :         delete m_pImpl;
     129           4 :     }
     130             : 
     131             : }   // namespace xmloff
     132             : 
     133             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11