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

Generated by: LCOV version 1.10