LCOV - code coverage report
Current view: top level - libreoffice/xmloff/source/xforms - xformsapi.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-27 Functions: 0 1 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             : #ifndef _XMLOFF_XFORMSAPI_HXX
      20             : #define _XMLOFF_XFORMSAPI_HXX
      21             : 
      22             : //
      23             : // this is a collection of several functions to make dealing with the XForms
      24             : // API a little easier
      25             : //
      26             : 
      27             : #include <com/sun/star/uno/Any.hxx>
      28             : 
      29             : namespace rtl { class OUString; }
      30             : namespace com { namespace sun { namespace star {
      31             :     namespace beans { class XPropertySet; }
      32             :     namespace frame { class XModel; }
      33             :     namespace uno { template<class A> class Reference; }
      34             :     namespace xforms { class XDataTypeRepository; }
      35             : } } }
      36             : class SvXMLNamespaceMap;
      37             : 
      38             : 
      39             : #define OUSTRING(msg) rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(msg))
      40             : 
      41             : com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> xforms_createXFormsModel();
      42             : 
      43             : void xforms_addXFormsModel(
      44             :     const com::sun::star::uno::Reference<com::sun::star::frame::XModel>& xDocument,
      45             :     const com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>& xModel );
      46             : 
      47             : com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> xforms_findXFormsBinding( com::sun::star::uno::Reference<com::sun::star::frame::XModel>&, const rtl::OUString& );
      48             : 
      49             : com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> xforms_findXFormsSubmission( com::sun::star::uno::Reference<com::sun::star::frame::XModel>&, const rtl::OUString& );
      50             : 
      51             : void xforms_setValue(
      52             :     com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>& xPropSet,
      53             :     const rtl::OUString& rName,
      54             :     const com::sun::star::uno::Any rAny );
      55             : 
      56             : template<typename T>
      57           0 : void xforms_setValue(
      58             :     com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>& xPropSet,
      59             :     const rtl::OUString& rName,
      60             :     T& aValue )
      61             : {
      62           0 :     xforms_setValue( xPropSet, rName, com::sun::star::uno::makeAny( aValue ) );
      63           0 : }
      64             : 
      65             : sal_uInt16 xforms_getTypeClass(
      66             :     const com::sun::star::uno::Reference<com::sun::star::xforms::XDataTypeRepository>& xRepository,
      67             :     const SvXMLNamespaceMap& rNamespaceMap,
      68             :     const rtl::OUString& rXMLName );
      69             : 
      70             : rtl::OUString xforms_getTypeName(
      71             :     const com::sun::star::uno::Reference<com::sun::star::xforms::XDataTypeRepository>& xRepository,
      72             :     const SvXMLNamespaceMap& rNamespaceMap,
      73             :     const rtl::OUString& rXMLName );
      74             : 
      75             : rtl::OUString xforms_getBasicTypeName(
      76             :     const com::sun::star::uno::Reference<com::sun::star::xforms::XDataTypeRepository>& xRepository,
      77             :     const SvXMLNamespaceMap& rNamespaceMap,
      78             :     const rtl::OUString& rXMLName );
      79             : 
      80             : #endif
      81             : 
      82             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10