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 .
21 #ifndef OOX_PPT_PPTFILTERHELPERS
22 #define OOX_PPT_PPTFILTERHELPERS
24 #include <rtl/ustring.hxx>
26 namespace oox
{ namespace ppt
{
29 //BEGIN CUT&PASTE from sd pptanimations.hxx
30 // conversion of MS to OOo attributes.
31 enum MS_AttributeNames
33 MS_PPT_X
, MS_PPT_Y
, MS_PPT_W
, MS_PPT_H
, MS_PPT_C
, MS_R
, MS_XSHEAR
, MS_FILLCOLOR
, MS_FILLTYPE
,
34 MS_STROKECOLOR
, MS_STROKEON
, MS_STYLECOLOR
, MS_STYLEROTATION
, MS_FONTWEIGHT
,
35 MS_STYLEUNDERLINE
, MS_STYLEFONTFAMILY
, MS_STYLEFONTSIZE
, MS_STYLEFONTSTYLE
,
36 MS_STYLEVISIBILITY
, MS_STYLEOPACITY
, MS_UNKNOWN
39 struct ImplAttributeNameConversion
41 MS_AttributeNames meAttribute
;
43 const char* mpAPIName
;
46 static const ImplAttributeNameConversion gImplConversionList
[] =
48 { MS_PPT_X
, "ppt_x", "X" },
49 { MS_PPT_Y
, "ppt_y", "Y" },
50 { MS_PPT_W
, "ppt_w", "Width" },
51 { MS_PPT_H
, "ppt_h", "Height" },
52 { MS_PPT_C
, "ppt_c", "DimColor" },
53 { MS_R
, "r", "Rotate" },
54 { MS_XSHEAR
, "xshear", "SkewX" },
55 { MS_FILLCOLOR
, "fillColor", "FillColor" },
56 { MS_FILLCOLOR
, "fillcolor", "FillColor" },
57 { MS_FILLTYPE
, "fill.type", "FillStyle" },
58 { MS_STROKECOLOR
, "stroke.color", "LineColor" },
59 { MS_STROKEON
, "stroke.on", "LineStyle" },
60 { MS_STYLECOLOR
, "style.color", "CharColor" },
61 { MS_STYLEROTATION
, "style.rotation", "Rotate" },
62 { MS_FONTWEIGHT
, "style.fontWeight", "CharWeight" },
63 { MS_STYLEUNDERLINE
, "style.textDecorationUnderline","CharUnderline" },
64 { MS_STYLEFONTFAMILY
, "style.fontFamily", "CharFontName" },
65 { MS_STYLEFONTSIZE
, "style.fontSize", "CharHeight" },
66 { MS_STYLEFONTSTYLE
, "style.fontStyle", "CharPosture" },
67 { MS_STYLEVISIBILITY
, "style.visibility", "Visibility" },
68 { MS_STYLEOPACITY
, "style.opacity", "Opacity" },
69 { MS_UNKNOWN
, NULL
, NULL
}
74 // BEGIN CUT&PASTE from sd pptanimations.hxx
77 const sal_Char
* mpName
;
80 sal_Bool mbDirection
; // true: default geometric direction
82 static const transition
* find( const OUString
& rName
);
83 static const sal_Char
* find( const sal_Int16 mnType
, const sal_Int16 mnSubType
, const sal_Bool bDirection
);
88 // BEGIN CUT&PASTE from sd pptinanimation.cxx
89 bool convertMeasure( OUString
& rString
);
90 // END CUT&PASTE from sd pptinanimation.cxx
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */