Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / oox / ppt / pptfilterhelpers.hxx
blobb1007992319f905af4d67b1d0f3236993eed3f7f
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_PPT_PPTFILTERHELPERS_HXX
21 #define INCLUDED_OOX_PPT_PPTFILTERHELPERS_HXX
23 #include <com/sun/star/uno/Reference.hxx>
24 #include <oox/dllapi.h>
25 #include <sal/types.h>
26 #include <rtl/ustring.hxx>
28 namespace com { namespace sun { namespace star {
29 namespace animations { class XAnimationNode; }
30 } } }
32 namespace oox { namespace ppt {
34 // conversion of MS to OOo attributes.
35 enum MS_AttributeNames
37 MS_PPT_X, MS_PPT_Y, MS_PPT_W, MS_PPT_H, MS_PPT_C, MS_R, MS_XSHEAR, MS_FILLCOLOR, MS_FILLTYPE,
38 MS_STROKECOLOR, MS_STROKEON, MS_STYLECOLOR, MS_STYLEROTATION, MS_FONTWEIGHT,
39 MS_STYLEUNDERLINE, MS_STYLEFONTFAMILY, MS_STYLEFONTSIZE, MS_STYLEFONTSTYLE,
40 MS_STYLEVISIBILITY, MS_STYLEOPACITY, MS_UNKNOWN
43 struct ImplAttributeNameConversion
45 MS_AttributeNames meAttribute;
46 const char* mpMSName;
47 const char* mpAPIName;
50 OOX_DLLPUBLIC const ImplAttributeNameConversion *getAttributeConversionList();
52 struct OOX_DLLPUBLIC transition
54 const sal_Char* mpName;
55 sal_Int16 mnType;
56 sal_Int16 mnSubType;
57 bool mbDirection; // true: default geometric direction
59 static const transition* getList();
60 static const transition* find( const OUString& rName );
63 struct OOX_DLLPUBLIC convert_subtype
65 sal_Int32 mnID;
66 const sal_Char* mpStrSubType;
68 static const convert_subtype* getList();
71 struct OOX_DLLPUBLIC preset_maping
73 sal_Int32 mnPresetClass;
74 sal_Int32 mnPresetId;
75 const sal_Char* mpStrPresetId;
77 static const preset_maping* getList();
80 OOX_DLLPUBLIC OUString getConvertedSubType( sal_Int16 nPresetClass, sal_Int32 nPresetId, sal_Int32 nPresetSubType );
82 OOX_DLLPUBLIC void fixMainSequenceTiming( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
84 OOX_DLLPUBLIC void fixInteractiveSequenceTiming( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
85 } }
87 #endif
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */