2010-10-27 12:53:26 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-27 16:10:40 +00:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2004-11-26 18:53:51 +00:00
|
|
|
|
|
|
|
#ifndef _SD_CUSTOMANIMATIONCREATEDIALOG_HXX
|
|
|
|
#define _SD_CUSTOMANIMATIONCREATEDIALOG_HXX
|
|
|
|
|
|
|
|
#include "CustomAnimationPreset.hxx"
|
|
|
|
#include <vcl/tabdlg.hxx>
|
|
|
|
|
2007-07-06 12:10:50 +00:00
|
|
|
enum PathKind { NONE, CURVE, POLYGON, FREEFORM };
|
|
|
|
|
2004-11-26 18:53:51 +00:00
|
|
|
class TabControl;
|
|
|
|
class OKButton;
|
|
|
|
class CancelButton;
|
|
|
|
class HelpButton;
|
|
|
|
|
|
|
|
namespace sd {
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
|
|
|
class CustomAnimationCreateTabPage;
|
|
|
|
class CustomAnimationPane;
|
|
|
|
|
|
|
|
class CustomAnimationCreateDialog : public TabDialog
|
|
|
|
{
|
|
|
|
friend class CustomAnimationCreateTabPage;
|
|
|
|
public:
|
2013-04-07 12:06:47 +02:00
|
|
|
CustomAnimationCreateDialog( ::Window* pParent, CustomAnimationPane* pPane, const std::vector< ::com::sun::star::uno::Any >& rTargets, bool bHasText, const OUString& rsPresetId, double fDuration );
|
2004-11-26 18:53:51 +00:00
|
|
|
~CustomAnimationCreateDialog();
|
|
|
|
|
2007-07-06 12:10:50 +00:00
|
|
|
PathKind getCreatePathKind() const;
|
2004-11-26 18:53:51 +00:00
|
|
|
CustomAnimationPresetPtr getSelectedPreset() const;
|
|
|
|
double getSelectedDuration() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
CustomAnimationCreateTabPage* getCurrentPage() const;
|
|
|
|
void preview( const CustomAnimationPresetPtr& pPreset ) const;
|
2005-03-23 12:56:37 +00:00
|
|
|
void setPosition();
|
|
|
|
void storePosition();
|
2004-11-26 18:53:51 +00:00
|
|
|
|
2012-03-01 18:00:32 +01:00
|
|
|
DECL_LINK(implActivatePagekHdl, void *);
|
|
|
|
DECL_LINK(implDeactivatePagekHdl, void *);
|
2004-11-26 18:53:51 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
CustomAnimationPane* mpPane;
|
|
|
|
const std::vector< ::com::sun::star::uno::Any >& mrTargets;
|
|
|
|
|
|
|
|
double mfDuration;
|
2007-08-01 10:08:21 +00:00
|
|
|
bool mbIsPreview;
|
2004-11-26 18:53:51 +00:00
|
|
|
|
|
|
|
TabControl* mpTabControl;
|
|
|
|
OKButton* mpOKButton;
|
|
|
|
CancelButton* mpCancelButton;
|
|
|
|
HelpButton* mpHelpButton;
|
|
|
|
|
2009-01-06 08:40:41 +00:00
|
|
|
CustomAnimationCreateTabPage* mpTabPages[5];
|
2004-11-26 18:53:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _SD_CUSTOMANIMATIONCREATEDIALOG_HXX
|
2010-10-27 12:53:26 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|