fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / oox / source / ppt / pptfilterhelpers.hxx
blob7cbedd3040816a4533ab307e552a9980496f962c
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 {
27 //BEGIN CUT&PASTE from sd pptanimations.hxx
28 // conversion of MS to OOo attributes.
29 enum MS_AttributeNames
31 MS_PPT_X, MS_PPT_Y, MS_PPT_W, MS_PPT_H, MS_PPT_C, MS_R, MS_XSHEAR, MS_FILLCOLOR, MS_FILLTYPE,
32 MS_STROKECOLOR, MS_STROKEON, MS_STYLECOLOR, MS_STYLEROTATION, MS_FONTWEIGHT,
33 MS_STYLEUNDERLINE, MS_STYLEFONTFAMILY, MS_STYLEFONTSIZE, MS_STYLEFONTSTYLE,
34 MS_STYLEVISIBILITY, MS_STYLEOPACITY, MS_UNKNOWN
37 struct ImplAttributeNameConversion
39 MS_AttributeNames meAttribute;
40 const char* mpMSName;
41 const char* mpAPIName;
44 static const ImplAttributeNameConversion gImplConversionList[] =
46 { MS_PPT_X, "ppt_x", "X" },
47 { MS_PPT_Y, "ppt_y", "Y" },
48 { MS_PPT_W, "ppt_w", "Width" },
49 { MS_PPT_H, "ppt_h", "Height" },
50 { MS_PPT_C, "ppt_c", "DimColor" },
51 { MS_R, "r", "Rotate" },
52 { MS_XSHEAR, "xshear", "SkewX" },
53 { MS_FILLCOLOR, "fillColor", "FillColor" },
54 { MS_FILLCOLOR, "fillcolor", "FillColor" },
55 { MS_FILLTYPE, "fill.type", "FillStyle" },
56 { MS_STROKECOLOR, "stroke.color", "LineColor" },
57 { MS_STROKEON, "stroke.on", "LineStyle" },
58 { MS_STYLECOLOR, "style.color", "CharColor" },
59 { MS_STYLEROTATION, "style.rotation", "Rotate" },
60 { MS_FONTWEIGHT, "style.fontWeight", "CharWeight" },
61 { MS_STYLEUNDERLINE, "style.textDecorationUnderline","CharUnderline" },
62 { MS_STYLEFONTFAMILY, "style.fontFamily", "CharFontName" },
63 { MS_STYLEFONTSIZE, "style.fontSize", "CharHeight" },
64 { MS_STYLEFONTSTYLE, "style.fontStyle", "CharPosture" },
65 { MS_STYLEVISIBILITY, "style.visibility", "Visibility" },
66 { MS_STYLEOPACITY, "style.opacity", "Opacity" },
67 { MS_UNKNOWN, NULL, NULL }
69 //END CUT&PASTE
71 // BEGIN CUT&PASTE from sd pptanimations.hxx
72 struct transition
74 const sal_Char* mpName;
75 sal_Int16 mnType;
76 sal_Int16 mnSubType;
77 bool mbDirection; // true: default geometric direction
79 static const transition* find( const OUString& rName );
80 static const sal_Char* find( const sal_Int16 mnType, const sal_Int16 mnSubType, const bool bDirection );
82 // END CUT&PASTE
84 // BEGIN CUT&PASTE from sd pptinanimation.cxx
85 bool convertMeasure( OUString& rString );
86 // END CUT&PASTE from sd pptinanimation.cxx
88 } }
90 #endif
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */