InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IEPubViewingAppsPrefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Vani Sivasankar
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change $
14 // ___________________
15 //
16 // ADOBE CONFIDENTIAL
17 //
18 // Copyright 2014 Adobe Systems Incorporated
19 // All Rights Reserved.
20 //
21 // NOTICE: All information contained herein is, and remains
22 // the property of Adobe Systems Incorporated and its suppliers,
23 // if any. The intellectual and technical concepts contained
24 // herein are proprietary to Adobe Systems Incorporated and its
25 // suppliers and are protected by all applicable intellectual property
26 // laws, including trade secret and copyright laws.
27 // Dissemination of this information or reproduction of this material
28 // is strictly forbidden unless prior written permission is obtained
29 // from Adobe Systems Incorporated.
30 //
31 //========================================================================================
32 
33 #ifndef __IEPubViewingAppsPrefs_h__
34 #define __IEPubViewingAppsPrefs_h__
35 
36 #include "EBookExportID.h"
37 #include "K2Vector.h"
38 
40 {
41 public:
42  typedef object_type data_type;
43 
44  PreviewApplicationInfo(const PMString& appName, bool16 isSelReflow, bool16 isSelFXL):
45  fAppName(appName),
46  fIsSelectedReflow(isSelReflow),
47  fIsSelectedFXL(isSelFXL)
48  {}
49 
51  fAppName(kNullString),
52  fIsSelectedReflow(kTrue),
53  fIsSelectedFXL(kTrue)
54  {}
55 
56  PMString GetAppName()
57  {
58  return fAppName;
59  }
60 
61  bool16 GetIsAppSelectedInReflow()
62  {
63  return fIsSelectedReflow;
64  }
65 
66  bool16 GetIsAppSelectedInFXL()
67  {
68  return fIsSelectedFXL;
69  }
70 
71  void Set(const PMString& appName, bool16 isSelReflow, bool16 isSelFXL)
72  {
73  fAppName = appName;
74  fIsSelectedReflow = isSelReflow;
75  fIsSelectedFXL = isSelFXL;
76  }
77 
79  {
80  }
81 
82 private:
83  PMString fAppName;
84  bool16 fIsSelectedReflow;
85  bool16 fIsSelectedFXL;
86 };
87 
89 {
90 public:
91  enum { kDefaultIID = IID_IEPUBVIEWINGAPPSPREFS };
92 
95  virtual bool16 GetPreview() const = 0;
96  virtual void SetPreview(bool16 preview) = 0;
97 
101  virtual void SetApplications(const K2Vector<PreviewApplicationInfo>& applications) = 0;
102 
103  virtual void AddApplication(const PMString& appName, bool16 isSelReflow, bool16 isSelFXL) = 0;
104  virtual void RemoveApplicationByIndex(int32 index) = 0;
105  virtual PreviewApplicationInfo ApplicationAtIndex(int32 index) = 0;
106 
107  virtual int32 GetApplicationsCount() = 0;
108 
112  virtual void Copy(IEPubViewingAppsPrefs const * other) = 0;
113 };
114 
115 #endif