LibreOffice Module oox (master) 1
pptfilterhelpers.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_OOX_PPT_PPTFILTERHELPERS_HXX
21#define INCLUDED_OOX_PPT_PPTFILTERHELPERS_HXX
22
23#include <com/sun/star/uno/Reference.hxx>
24#include <oox/dllapi.h>
25#include <sal/types.h>
26#include <rtl/ustring.hxx>
27#include <com/sun/star/uno/Any.hxx>
28
29namespace com::sun::star {
30 namespace animations { class XAnimationNode; }
31}
32
33namespace oox::ppt {
34
35 // conversion of MS to OOo attributes.
37 {
42 };
43
45 {
47 const char* mpMSName;
48 const char* mpAPIName;
49 };
50
52
54 {
55 const char* mpName;
56 sal_Int16 mnType;
57 sal_Int16 mnSubType;
58 bool mbDirection; // true: default geometric direction
59
60 static const transition* getList();
61 static const transition* find( std::u16string_view rName );
62 };
63
65 {
66 sal_Int32 mnID;
67 const char* mpStrSubType;
68
69 static const convert_subtype* getList();
70 };
71
73 {
74 sal_Int32 mnPresetClass;
75 sal_Int32 mnPresetId;
76 const char* mpStrPresetId;
77
78 static const preset_mapping* getList();
79 };
80
81 OOX_DLLPUBLIC OUString getConvertedSubType( sal_Int16 nPresetClass, sal_Int32 nPresetId, sal_Int32 nPresetSubType );
82
83 OOX_DLLPUBLIC void fixMainSequenceTiming( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
84
85 OOX_DLLPUBLIC void fixInteractiveSequenceTiming( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
86
89 OOX_DLLPUBLIC bool convertAnimationValue(AnimationAttributeEnum eAttribute, css::uno::Any& rValue);
90
94 OOX_DLLPUBLIC bool convertMeasure(OUString& rString);
95}
96
97#endif
98
99/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define OOX_DLLPUBLIC
Definition: dllapi.h:28
UNKNOWN
OSQLColumns::const_iterator find(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, std::u16string_view _rVal, const ::comphelper::UStringMixEqual &_rCase)
bool convertMeasure(OUString &rString)
convert the measure string to LibreOffice format.
const ImplAttributeNameConversion * getAttributeConversionList()
void fixMainSequenceTiming(const css::uno::Reference< css::animations::XAnimationNode > &xNode)
Definition: timenode.cxx:140
bool convertAnimationValue(AnimationAttributeEnum eAttribute, css::uno::Any &rValue)
convert attribute values of the animation target so that LibreOffice understand.
void fixInteractiveSequenceTiming(const css::uno::Reference< css::animations::XAnimationNode > &xNode)
Definition: timenode.cxx:201
OUString getConvertedSubType(sal_Int16 nPresetClass, sal_Int32 nPresetId, sal_Int32 nPresetSubType)
const sal_uInt8 R