1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_XMLOFF_MAPTYPE_HXX
21 #define INCLUDED_XMLOFF_MAPTYPE_HXX
23 #include <tools/solar.h>
24 #include <com/sun/star/uno/Any.hxx>
25 #include <xmloff/xmltoken.hxx>
26 #include <unotools/saveopt.hxx>
28 ///////////////////////////////////////////////////////////////////////////
30 /** Represents a property with its API-name, its XML-name and the type of
33 struct XMLPropertyMapEntry
35 const sal_Char
* msApiName
; /// Property-Name
36 sal_Int32 nApiNameLength
; /// length of property name
37 sal_uInt16 mnNameSpace
; /** declares the Namespace in which this
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
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
48 ///////////////////////////////////////////////////////////////////////////
50 /** Smart struct to transport an Any with an index to the appropriate
53 struct XMLPropertyState
56 ::com::sun::star::uno::Any maValue
;
58 XMLPropertyState( sal_Int32 nIndex
)
59 : mnIndex( nIndex
) {}
60 XMLPropertyState( sal_Int32 nIndex
, const ::com::sun::star::uno::Any
& rValue
)
61 : mnIndex( nIndex
), maValue( rValue
) {}
62 XMLPropertyState( const XMLPropertyState
& rPropState
)
63 : mnIndex( rPropState
.mnIndex
), maValue( rPropState
.maValue
) {}
66 #endif // INCLUDED_XMLOFF_MAPTYPE_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */