LCOV - code coverage report
Current view: top level - libreoffice/xmloff/source/forms - callbacks.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 6 6 100.0 %
Date: 2012-12-17 Functions: 6 6 100.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             : #ifndef _XMLOFF_FORMS_CALLBACKS_HXX_
      21             : #define _XMLOFF_FORMS_CALLBACKS_HXX_
      22             : 
      23             : #include <com/sun/star/container/XIndexAccess.hpp>
      24             : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      25             : #include <com/sun/star/beans/XPropertySet.hpp>
      26             : #include <com/sun/star/script/ScriptEventDescriptor.hpp>
      27             : #include <rtl/ref.hxx>
      28             : 
      29             : class SvXMLExport;
      30             : class SvXMLExportPropertyMapper;
      31             : 
      32             : //.........................................................................
      33             : namespace xmloff
      34             : {
      35             : //.........................................................................
      36             : 
      37             :     //=====================================================================
      38             :     //= IFormsExportContext
      39             :     //=====================================================================
      40           8 :     class IFormsExportContext
      41             :     {
      42             :     public:
      43             :         virtual SvXMLExport&                                getGlobalContext() = 0;
      44             :         virtual ::rtl::Reference< SvXMLExportPropertyMapper >   getStylePropertyMapper() = 0;
      45             : 
      46             :         /** steps through a collection and exports all children of this collection
      47             :         */
      48             :         virtual void    exportCollectionElements(
      49             :             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& _rxCollection) = 0;
      50             : 
      51             :         virtual ::rtl::OUString                             getObjectStyleName(
      52             :             const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject ) = 0;
      53             : 
      54             :     protected:
      55           8 :         ~IFormsExportContext() {}
      56             :     };
      57             : 
      58             :     //=====================================================================
      59             :     //= IEventAttacherManager
      60             :     //=====================================================================
      61         213 :     class IEventAttacherManager
      62             :     {
      63             :     public:
      64             :         virtual void registerEvents(
      65             :             const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxElement,
      66             :             const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents
      67             :             ) = 0;
      68             : 
      69             :     protected:
      70         213 :         ~IEventAttacherManager() {}
      71             :     };
      72             : 
      73             :     //=====================================================================
      74             :     //= IEventAttacher
      75             :     //=====================================================================
      76           9 :     class IEventAttacher
      77             :     {
      78             :     public:
      79             :         virtual void registerEvents(
      80             :             const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents
      81             :             ) = 0;
      82             : 
      83             :     protected:
      84           9 :         ~IEventAttacher() {}
      85             :     };
      86             : 
      87             : //.........................................................................
      88             : }   // namespace xmloff
      89             : //.........................................................................
      90             : 
      91             : #endif // _XMLOFF_FORMS_CALLBACKS_HXX_
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10