LCOV - code coverage report
Current view: top level - include/xmloff - maptype.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 7 0.0 %
Date: 2014-04-14 Functions: 0 5 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             : #ifndef INCLUDED_XMLOFF_MAPTYPE_HXX
      21             : #define INCLUDED_XMLOFF_MAPTYPE_HXX
      22             : 
      23             : #include <com/sun/star/uno/Any.hxx>
      24             : #include <xmloff/xmltoken.hxx>
      25             : #include <unotools/saveopt.hxx>
      26             : 
      27             : 
      28             : 
      29             : /** Represents a property with its API-name, its XML-name and the type of
      30             :     its value.
      31             : */
      32             : struct XMLPropertyMapEntry
      33             : {
      34             :     const sal_Char* msApiName;      /// Property-Name
      35             :     sal_Int32       nApiNameLength; /// length of property name
      36             :     sal_uInt16      mnNameSpace;    /** declares the Namespace in which this
      37             :                                         property exists */
      38             :     enum ::xmloff::token::XMLTokenEnum meXMLName;       /// XML-Name
      39             :     sal_uInt32      mnType;         /** Bit 0..23 : XML-Type of its value
      40             :                                         Bit 24..31: The flags specifies
      41             :                                                     additional rules how
      42             :                                                     to im/export the porperty */
      43             :     sal_Int16       mnContextId;    /// User defined id for context filtering
      44             :     SvtSaveOptions::ODFDefaultVersion   mnEarliestODFVersionForExport;// no export when the used ODF version is lower than this
      45             : 
      46             :     /** Flag to specify whether entry is only used during import.
      47             : 
      48             :         Allows to handle more than one Namespace/XML-Name to Property-Name
      49             :         mapping, i.e. for extensions. If several entries for the same
      50             :         Property-Name exist, all except one must have this flag set.
      51             :      */
      52             :     bool            mbImportOnly;
      53             : };
      54             : 
      55             : 
      56             : 
      57             : /** Smart struct to transport an Any with an index to the appropriate
      58             :     property-name
      59             : */
      60           0 : struct XMLPropertyState
      61             : {
      62             :     sal_Int32                  mnIndex;
      63             :     ::com::sun::star::uno::Any maValue;
      64             : 
      65           0 :     XMLPropertyState( sal_Int32 nIndex )
      66           0 :         : mnIndex( nIndex ) {}
      67           0 :     XMLPropertyState( sal_Int32 nIndex, const ::com::sun::star::uno::Any& rValue )
      68           0 :         : mnIndex( nIndex ), maValue( rValue ) {}
      69           0 :     XMLPropertyState( const XMLPropertyState& rPropState )
      70           0 :         : mnIndex( rPropState.mnIndex ), maValue( rPropState.maValue ) {}
      71             : };
      72             : 
      73             : #endif // INCLUDED_XMLOFF_MAPTYPE_HXX
      74             : 
      75             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10