LibreOffice Module slideshow (master) 1
transitioninfo.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_SLIDESHOW_SOURCE_INC_TRANSITIONINFO_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_INC_TRANSITIONINFO_HXX
22
23#include <sal/types.h>
24
25
26namespace slideshow::internal {
27
29{
30 // the following two member serve as the search key
31 // for an incoming XTransitionFilter node
32
33 // {
34
37
38 // }
39
40
44 {
47
50
53 };
54
57
60
62 double mnScaleX;
63
65 double mnScaleY;
66
77 enum class ReverseMethod
78 {
82 Ignore,
83
87 SubtractAndInvert,
88
90 Rotate180,
91
93 FlipX,
94
96 FlipY
97 };
98
105
113
119
120
123 {
126 public:
127 Comparator( sal_Int16 nTransitionType,
128 sal_Int16 nTransitionSubType )
129 : mnTransitionType( nTransitionType ),
130 mnTransitionSubType( nTransitionSubType ) {}
131 bool operator()( const TransitionInfo& rEntry ) const {
132 return rEntry.mnTransitionType == mnTransitionType &&
134 }
135 };
136};
137
138} // namespace presentation::internal
139
140#endif // INCLUDED_SLIDESHOW_SOURCE_INC_TRANSITIONINFO_HXX
141
142/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool operator()(const TransitionInfo &rEntry) const
Comparator(sal_Int16 nTransitionType, sal_Int16 nTransitionSubType)
ReverseMethod
This enum determines the method how to reverse a parametric clip polygon transition.
bool mbScaleIsotrophically
when true, scale clip polygon isotropically to target size.
bool mbOutInvertsSweep
When true, transition 'out' effects are realized by inverting the parameter sweep direction (1->0 ins...
double mnScaleX
X scaling of clip polygon (negative values mirror)
double mnRotationAngle
Rotation angle of clip polygon.
TransitionClass meTransitionClass
class of effect handling
TransitionClass
This enum classifies a transition type.
@ TRANSITION_SPECIAL
Transition expressed by hand-crafted function.
@ TRANSITION_CLIP_POLYPOLYGON
Transition expressed by parametric clip polygon.
double mnScaleY
Y scaling of clip polygon (negative values mirror)
ReverseMethod meReverseMethod
Indicating the method to use when transition should be 'reversed'.