LCOV - code coverage report
Current view: top level - xmloff/source/forms - formlayerexport.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 43 0.0 %
Date: 2014-04-14 Functions: 0 16 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             :  * 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           0 :     OFormLayerXMLExport::OFormLayerXMLExport(SvXMLExport& _rContext)
      47             :         :m_rContext(_rContext)
      48           0 :         ,m_pImpl(new OFormLayerXMLExport_Impl(_rContext))
      49             :     {
      50           0 :     }
      51             : 
      52           0 :     OFormLayerXMLExport::~OFormLayerXMLExport()
      53             :     {
      54           0 :         delete m_pImpl;
      55           0 :         m_pImpl = NULL;
      56           0 :     }
      57             : 
      58           0 :     bool OFormLayerXMLExport::seekPage(const Reference< XDrawPage >& _rxDrawPage)
      59             :     {
      60           0 :         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           0 :     void OFormLayerXMLExport::examineForms(const Reference< XDrawPage >& _rxDrawPage)
      74             :     {
      75             :         try
      76             :         {
      77           0 :             m_pImpl->examineForms(_rxDrawPage);
      78             :         }
      79           0 :         catch(Exception&)
      80             :         {
      81             :             OSL_FAIL("OFormLayerXMLExport::examine: could not examine the draw page!");
      82             :         }
      83           0 :     }
      84             : 
      85           0 :     void OFormLayerXMLExport::exportForms(const Reference< XDrawPage >& _rxDrawPage)
      86             :     {
      87           0 :         m_pImpl->exportForms(_rxDrawPage);
      88           0 :     }
      89             : 
      90           0 :     void OFormLayerXMLExport::exportXForms() const
      91             :     {
      92           0 :         m_pImpl->exportXForms();
      93           0 :     }
      94             : 
      95           0 :     bool OFormLayerXMLExport::pageContainsForms( const Reference< XDrawPage >& _rxDrawPage ) const
      96             :     {
      97           0 :         return m_pImpl->pageContainsForms( _rxDrawPage );
      98             :     }
      99             : 
     100           0 :     bool OFormLayerXMLExport::documentContainsXForms() const
     101             :     {
     102           0 :         return m_pImpl->documentContainsXForms();
     103             :     }
     104             : 
     105           0 :     void OFormLayerXMLExport::exportAutoControlNumberStyles()
     106             :     {
     107           0 :         m_pImpl->exportAutoControlNumberStyles();
     108           0 :     }
     109             : 
     110           0 :     void OFormLayerXMLExport::exportAutoStyles()
     111             :     {
     112           0 :         m_pImpl->exportAutoStyles();
     113           0 :     }
     114             : 
     115           0 :     void OFormLayerXMLExport::excludeFromExport( const Reference< XControlModel > _rxControl )
     116             :     {
     117           0 :         m_pImpl->excludeFromExport( _rxControl );
     118           0 :     }
     119             : 
     120             :     //= OOfficeFormsExport
     121           0 :     OOfficeFormsExport::OOfficeFormsExport( SvXMLExport& _rExp )
     122           0 :         :m_pImpl(NULL)
     123             :     {
     124           0 :         m_pImpl = new OFormsRootExport(_rExp);
     125           0 :     }
     126             : 
     127           0 :     OOfficeFormsExport::~OOfficeFormsExport()
     128             :     {
     129           0 :         delete m_pImpl;
     130           0 :     }
     131             : 
     132             : }   // namespace xmloff
     133             : 
     134             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10