InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DVGIFPlayerView.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Atishay Jain
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 2020 Adobe Inc.
18 // All Rights Reserved.
19 //
20 // NOTICE: All information contained herein is, and remains
21 // the property of Adobe Inc. and its suppliers,
22 // if any. The intellectual and technical concepts contained
23 // herein are proprietary to Adobe Inc. and its
24 // suppliers and are protected by all applicable intellectual property
25 // laws, including trade secret and copyright laws.
26 // Dissemination of this information or reproduction of this material
27 // is strictly forbidden unless prior written permission is obtained
28 // from Adobe Inc.
29 //
30 //========================================================================================
31 
32 #ifndef __DVGIFPlayerView__
33 #define __DVGIFPlayerView__
34 
35 #include "DVControlView.h"
36 
37 /*
38 DVGIFPlayerView is Wrapper over UI_GIFPlayer.
39 Added to create and manage view for GIF workflows in the application.
40 For More details see DVControlView in DVControlView.h
41 Sample Usage:
42 InterfacePtr<IPanelControlData> iPanelControlData(this, UseDefaultIID());
43 std::string path = "~/eglite.gif";
44 PMString gifPath(path.c_str());
45 ControlView* gifView = iPanelControlData->FindWidget(kGIFPlayerWidgetID);
46 DVGIFPlayerView* view = dynamic_cast<DVGIFPlayerView*>(gifView);
47 view->SetGIFPath(gifPath);
48 
49 */
50 class DV_ DVGIFPlayerView : public DVControlView
51 {
52  typedef DVControlView inherited;
53 public:
61  virtual ~DVGIFPlayerView();
66  virtual void DoPostCreate();
70  virtual void CreateDVAControl();
74  virtual void ReCreateDVAControlWithGIFPlayer();
78  virtual PMString GetGIFPath();
82  virtual void SetGIFPath(PMString path);
86  virtual void Activate();
87 protected:
91  virtual void ResetWithDummyDVAControl();
92  class ID_GIFView_Impl;
93 };
94 
95 
96 #endif