Files
libreoffice/slideshow/source/engine/animationnodes/sequentialtimecontainer.hxx
Noel Grandin 858e455634 loplugin:constantfunction: various
Change-Id: I6eddda9f4b31c7ce413c328b6a857a81bd222eed
2015-03-24 10:51:22 +02:00

68 lines
2.3 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_SEQUENTIALTIMECONTAINER_HXX
#define INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_SEQUENTIALTIMECONTAINER_HXX
#include "basecontainernode.hxx"
namespace slideshow {
namespace internal {
/** This class implements sequential node containers
All children of this node are played sequentially
*/
class SequentialTimeContainer : public BaseContainerNode
{
public:
SequentialTimeContainer(
::com::sun::star::uno::Reference<
::com::sun::star::animations::XAnimationNode> const& xNode,
BaseContainerNodeSharedPtr const& pParent,
NodeContext const& rContext )
: BaseContainerNode( xNode, pParent, rContext ) {}
#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL)
virtual const char* getDescription() const
{ return "SequentialTimeContainer"; }
#endif
protected:
virtual void dispose() SAL_OVERRIDE;
private:
virtual void activate_st() SAL_OVERRIDE;
virtual void notifyDeactivating( AnimationNodeSharedPtr const& rNotifier ) SAL_OVERRIDE;
void skipEffect( AnimationNodeSharedPtr const& pChildNode );
private:
bool resolveChild( AnimationNodeSharedPtr const& pChildNode );
EventSharedPtr mpCurrentSkipEvent;
EventSharedPtr mpCurrentRewindEvent;
};
} // namespace internal
} // namespace slideshow
#endif // INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_SEQUENTIALTIMECONTAINER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */