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

Generated by: LCOV version 1.10