GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / oox / source / ppt / pptfilterhelpers.hxx
blobcf167614073fe8e54eb7a93a87e0345bacfc3b24
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_OOX_SOURCE_PPT_PPTFILTERHELPERS_HXX
21 #define INCLUDED_OOX_SOURCE_PPT_PPTFILTERHELPERS_HXX
23 #include <rtl/ustring.hxx>
25 namespace oox { namespace ppt {
28 //BEGIN CUT&PASTE from sd pptanimations.hxx
29 // conversion of MS to OOo attributes.
30 enum MS_AttributeNames
32 MS_PPT_X, MS_PPT_Y, MS_PPT_W, MS_PPT_H, MS_PPT_C, MS_R, MS_XSHEAR, MS_FILLCOLOR, MS_FILLTYPE,
33 MS_STROKECOLOR, MS_STROKEON, MS_STYLECOLOR, MS_STYLEROTATION, MS_FONTWEIGHT,
34 MS_STYLEUNDERLINE, MS_STYLEFONTFAMILY, MS_STYLEFONTSIZE, MS_STYLEFONTSTYLE,
35 MS_STYLEVISIBILITY, MS_STYLEOPACITY, MS_UNKNOWN
38 struct ImplAttributeNameConversion
40 MS_AttributeNames meAttribute;
41 const char* mpMSName;
42 const char* mpAPIName;
45 static const ImplAttributeNameConversion gImplConversionList[] =
47 { MS_PPT_X, "ppt_x", "X" },
48 { MS_PPT_Y, "ppt_y", "Y" },
49 { MS_PPT_W, "ppt_w", "Width" },
50 { MS_PPT_H, "ppt_h", "Height" },
51 { MS_PPT_C, "ppt_c", "DimColor" },
52 { MS_R, "r", "Rotate" },
53 { MS_XSHEAR, "xshear", "SkewX" },
54 { MS_FILLCOLOR, "fillColor", "FillColor" },
55 { MS_FILLCOLOR, "fillcolor", "FillColor" },
56 { MS_FILLTYPE, "fill.type", "FillStyle" },
57 { MS_STROKECOLOR, "stroke.color", "LineColor" },
58 { MS_STROKEON, "stroke.on", "LineStyle" },
59 { MS_STYLECOLOR, "style.color", "CharColor" },
60 { MS_STYLEROTATION, "style.rotation", "Rotate" },
61 { MS_FONTWEIGHT, "style.fontWeight", "CharWeight" },
62 { MS_STYLEUNDERLINE, "style.textDecorationUnderline","CharUnderline" },
63 { MS_STYLEFONTFAMILY, "style.fontFamily", "CharFontName" },
64 { MS_STYLEFONTSIZE, "style.fontSize", "CharHeight" },
65 { MS_STYLEFONTSTYLE, "style.fontStyle", "CharPosture" },
66 { MS_STYLEVISIBILITY, "style.visibility", "Visibility" },
67 { MS_STYLEOPACITY, "style.opacity", "Opacity" },
68 { MS_UNKNOWN, NULL, NULL }
70 //END CUT&PASTE
73 // BEGIN CUT&PASTE from sd pptanimations.hxx
74 struct transition
76 const sal_Char* mpName;
77 sal_Int16 mnType;
78 sal_Int16 mnSubType;
79 sal_Bool mbDirection; // true: default geometric direction
81 static const transition* find( const OUString& rName );
82 static const sal_Char* find( const sal_Int16 mnType, const sal_Int16 mnSubType, const sal_Bool bDirection );
84 // END CUT&PASTE
87 // BEGIN CUT&PASTE from sd pptinanimation.cxx
88 bool convertMeasure( OUString& rString );
89 // END CUT&PASTE from sd pptinanimation.cxx
92 } }
94 #endif
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */