LibreOffice Module sd (master) 1
pptx-animations-cond.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#pragma once
10
11#include <o3tl/any.hxx>
12#include <com/sun/star/uno/Reference.hxx>
13#include <com/sun/star/drawing/XShape.hpp>
14#include <com/sun/star/animations/XAnimationNode.hpp>
15
16namespace oox::core
17{
18struct Cond
19{
20 OString msDelay;
21 const char* mpEvent;
22 css::uno::Reference<css::drawing::XShape> mxShape;
23 css::uno::Reference<css::animations::XAnimationNode> mxNode;
24
25 Cond(const css::uno::Any& rAny, bool bIsMainSeqChild);
26
27 bool isValid() const { return msDelay.getLength() || mpEvent; }
28 const char* getDelay() const { return msDelay.getLength() ? msDelay.getStr() : nullptr; }
29};
30}
31/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const char * getDelay() const
css::uno::Reference< css::drawing::XShape > mxShape
Cond(const css::uno::Any &rAny, bool bIsMainSeqChild)
css::uno::Reference< css::animations::XAnimationNode > mxNode