LibreOffice Module xmloff (master)  1
maptype.hxx
Go to the documentation of this file.
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 
32 {
33  const char* msApiName;
34  sal_Int32 nApiNameLength;
35  sal_uInt16 mnNameSpace;
38 
86  sal_uInt32 mnType;
87 
88  sal_Int16 mnContextId;
89  SvtSaveOptions::ODFDefaultVersion mnEarliestODFVersionForExport;// no export when the used ODF version is lower than this
90 
98 };
99 
100 
105 {
106  sal_Int32 mnIndex;
107  css::uno::Any maValue;
108 
109  XMLPropertyState( sal_Int32 nIndex )
110  : mnIndex( nIndex ) {}
111  XMLPropertyState( sal_Int32 nIndex, const css::uno::Any& rValue )
112  : mnIndex( nIndex ), maValue( rValue ) {}
113 };
114 
115 #endif // INCLUDED_XMLOFF_MAPTYPE_HXX
116 
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 nApiNameLength
Property-Name.
Definition: maptype.hxx:34
XMLPropertyState(sal_Int32 nIndex)
Definition: maptype.hxx:109
sal_uInt16 mnNameSpace
length of property name
Definition: maptype.hxx:35
sal_Int32 mnIndex
Definition: maptype.hxx:106
SvtSaveOptions::ODFDefaultVersion mnEarliestODFVersionForExport
User defined id for context filtering.
Definition: maptype.hxx:89
css::uno::Any const & rValue
Definition: ImageStyle.hxx:38
XMLPropertyState(sal_Int32 nIndex, const css::uno::Any &rValue)
Definition: maptype.hxx:111
XMLTokenEnum
The enumeration of all XML tokens.
Definition: xmltoken.hxx:47
sal_uInt32 mnType
XML-Name.
Definition: maptype.hxx:86
const char * msApiName
Definition: maptype.hxx:33
Represents a property with its API-name, its XML-name and the type of its value.
Definition: maptype.hxx:31
bool mbImportOnly
Flag to specify whether entry is only used during import.
Definition: maptype.hxx:97
css::uno::Any maValue
Definition: maptype.hxx:107
Smart struct to transport an Any with an index to the appropriate property-name.
Definition: maptype.hxx:104
enum::xmloff::token::XMLTokenEnum meXMLName
declares the Namespace in which this property exists
Definition: maptype.hxx:37
sal_Int16 mnContextId
Definition: maptype.hxx:88