LCOV - code coverage report
Current view: top level - libreoffice/xmloff/inc/xmloff - maptype.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 7 7 100.0 %
Date: 2012-12-27 Functions: 5 5 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_PROPMAPPINGTYPES_HXX
      21             : #define _XMLOFF_PROPMAPPINGTYPES_HXX
      22             : 
      23             : #include <tools/solar.h>
      24             : #include <com/sun/star/uno/Any.hxx>
      25             : #include <xmloff/xmltoken.hxx>
      26             : #include <unotools/saveopt.hxx>
      27             : 
      28             : ///////////////////////////////////////////////////////////////////////////
      29             : //
      30             : /** Represents a property with its API-name, its XML-name and the type of
      31             :     its value.
      32             : */
      33             : struct XMLPropertyMapEntry
      34             : {
      35             :     const sal_Char* msApiName;      /// Property-Name
      36             :     sal_Int32       nApiNameLength; /// length of property name
      37             :     sal_uInt16      mnNameSpace;    /** declares the Namespace in wich this
      38             :                                         property exists */
      39             :     enum ::xmloff::token::XMLTokenEnum meXMLName;       /// XML-Name
      40             :     sal_uInt32      mnType;         /** Bit 0..23 : XML-Type of its value
      41             :                                         Bit 24..31: The flags specifies
      42             :                                                     additional rules how
      43             :                                                     to im/export the porperty */
      44             :     sal_Int16       mnContextId;    /// User defined id for context filtering
      45             :     SvtSaveOptions::ODFDefaultVersion   mnEarliestODFVersionForExport;// no export when the used ODF version is lower than this
      46             : };
      47             : 
      48             : ///////////////////////////////////////////////////////////////////////////
      49             : //
      50             : /** Smart struct to transport an Any with an index to the appropriate
      51             :     property-name
      52             : */
      53       29281 : struct XMLPropertyState
      54             : {
      55             :     sal_Int32                  mnIndex;
      56             :     ::com::sun::star::uno::Any maValue;
      57             : 
      58        6848 :     XMLPropertyState( sal_Int32 nIndex )
      59        6848 :         : mnIndex( nIndex ) {}
      60        2455 :     XMLPropertyState( sal_Int32 nIndex, const ::com::sun::star::uno::Any& rValue )
      61        2455 :         : mnIndex( nIndex ), maValue( rValue ) {}
      62       18187 :     XMLPropertyState( const XMLPropertyState& rPropState )
      63       18187 :         : mnIndex( rPropState.mnIndex ), maValue( rPropState.maValue ) {}
      64             : };
      65             : 
      66             : #endif // _XMLOFF_PROPMAPPINGTYPES_HXX
      67             : 
      68             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10