From cedbbf9bcce05c3fb86bca9baab0530700c5db1e Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 3 Apr 2008 14:55:18 +0000 Subject: INTEGRATION: CWS presenterview (1.1.2); FILE ADDED 2008/02/26 16:04:52 af 1.1.2.1: #i18486# Initial revision. --- sdext/source/presenter/PresenterAnimator.hxx | 81 ++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 sdext/source/presenter/PresenterAnimator.hxx (limited to 'sdext/source/presenter/PresenterAnimator.hxx') diff --git a/sdext/source/presenter/PresenterAnimator.hxx b/sdext/source/presenter/PresenterAnimator.hxx new file mode 100644 index 000000000000..5f1674debd88 --- /dev/null +++ b/sdext/source/presenter/PresenterAnimator.hxx @@ -0,0 +1,81 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: PresenterAnimator.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: kz $ $Date: 2008-04-03 15:55:18 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef SDEXT_PRESENTER_ANIMATOR_HXX +#define SDEXT_PRESENTER_ANIMATOR_HXX + +#include "PresenterAnimation.hxx" +#include +#include +#include +#include + +namespace sdext { namespace presenter { + +/** Simple animation management. Call AddAnimation to run animations + concurrently or one of the other. See PresenterAnimation for details of + how to specify animations. +*/ +class PresenterAnimator + : private ::boost::noncopyable, + private ::cppu::BaseMutex +{ +public: + PresenterAnimator (void); + virtual ~PresenterAnimator (void); + + /** Add an animation. The time at which to start and end this animation + is provided by the animation itself. + */ + void AddAnimation (const SharedPresenterAnimation& rpAnimation); + +private: + typedef ::std::multimap AnimationList; + AnimationList maFutureAnimations; + AnimationList maActiveAnimations; + class Timer; + ::boost::scoped_ptr mpTimer; + sal_uInt64 mnNextTime; + + void Process (void); + void ActivateAnimations (const sal_uInt64 nCurrentTime); + void ScheduleNextRun (void); + void ScheduleNextRun (const sal_uInt64 nStartTime); + +}; + +} } // end of namespace ::sdext::presenter + +#endif -- cgit From 2d237c4741d4d98d87566a74bc892de7620a1a1f Mon Sep 17 00:00:00 2001 From: Rüdiger Timm Date: Fri, 11 Apr 2008 10:22:31 +0000 Subject: INTEGRATION: CWS changefileheaderm6 (1.2.2); FILE MERGED 2008/04/09 16:07:34 rt 1.2.2.1: #i87884# Change license header to LPGL v3. --- sdext/source/presenter/PresenterAnimator.hxx | 40 +++++++++++++--------------- 1 file changed, 18 insertions(+), 22 deletions(-) (limited to 'sdext/source/presenter/PresenterAnimator.hxx') diff --git a/sdext/source/presenter/PresenterAnimator.hxx b/sdext/source/presenter/PresenterAnimator.hxx index 5f1674debd88..307644ecc1ec 100644 --- a/sdext/source/presenter/PresenterAnimator.hxx +++ b/sdext/source/presenter/PresenterAnimator.hxx @@ -1,35 +1,31 @@ /************************************************************************* * - * OpenOffice.org - a multi-platform office productivity suite + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * - * $RCSfile: PresenterAnimator.hxx,v $ + * Copyright 2008 by Sun Microsystems, Inc. * - * $Revision: 1.2 $ + * OpenOffice.org - a multi-platform office productivity suite * - * last change: $Author: kz $ $Date: 2008-04-03 15:55:18 $ + * $RCSfile: PresenterAnimator.hxx,v $ * - * The Contents of this file are made available subject to - * the terms of GNU Lesser General Public License Version 2.1. + * $Revision: 1.3 $ * + * This file is part of OpenOffice.org. * - * GNU Lesser General Public License Version 2.1 - * ============================================= - * Copyright 2005 by Sun Microsystems, Inc. - * 901 San Antonio Road, Palo Alto, CA 94303, USA + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License version 2.1, as published by the Free Software Foundation. + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * + * for a copy of the LGPLv3 License. * ************************************************************************/ -- cgit From 961c9f77cce91fc1aec6021e308d7f1097e718bf Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 13 May 2008 13:27:11 +0000 Subject: INTEGRATION: CWS presenterscreen (1.2.4); FILE MERGED 2008/04/22 08:25:57 af 1.2.4.2: RESYNC: (1.2-1.3); FILE MERGED 2008/04/18 14:51:11 af 1.2.4.1: #i18486# Changed implementation of PresenterTimer. --- sdext/source/presenter/PresenterAnimator.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sdext/source/presenter/PresenterAnimator.hxx') diff --git a/sdext/source/presenter/PresenterAnimator.hxx b/sdext/source/presenter/PresenterAnimator.hxx index 307644ecc1ec..71656f707de3 100644 --- a/sdext/source/presenter/PresenterAnimator.hxx +++ b/sdext/source/presenter/PresenterAnimator.hxx @@ -8,7 +8,7 @@ * * $RCSfile: PresenterAnimator.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -61,8 +61,7 @@ private: typedef ::std::multimap AnimationList; AnimationList maFutureAnimations; AnimationList maActiveAnimations; - class Timer; - ::boost::scoped_ptr mpTimer; + sal_Int32 mnCurrentTaskId; sal_uInt64 mnNextTime; void Process (void); -- cgit From 4326ef06febe54729620f31d18505fd9f847a7f1 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Fri, 12 Feb 2010 15:01:35 +0100 Subject: changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) --- sdext/source/presenter/PresenterAnimator.hxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sdext/source/presenter/PresenterAnimator.hxx') diff --git a/sdext/source/presenter/PresenterAnimator.hxx b/sdext/source/presenter/PresenterAnimator.hxx index 71656f707de3..0c0efadb22f7 100644 --- a/sdext/source/presenter/PresenterAnimator.hxx +++ b/sdext/source/presenter/PresenterAnimator.hxx @@ -2,14 +2,10 @@ * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * - * Copyright 2008 by Sun Microsystems, Inc. + * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * - * $RCSfile: PresenterAnimator.hxx,v $ - * - * $Revision: 1.4 $ - * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify -- cgit From 0b468b7e7dcff4492a74582ef9482f6f0cc13c7c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 27 Oct 2010 12:45:53 +0100 Subject: add modelines to .hxx files as well --- sdext/source/presenter/PresenterAnimator.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sdext/source/presenter/PresenterAnimator.hxx') diff --git a/sdext/source/presenter/PresenterAnimator.hxx b/sdext/source/presenter/PresenterAnimator.hxx index 0c0efadb22f7..073592b69947 100644 --- a/sdext/source/presenter/PresenterAnimator.hxx +++ b/sdext/source/presenter/PresenterAnimator.hxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -70,3 +71,5 @@ private: } } // end of namespace ::sdext::presenter #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit