InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILinkResourceHelperHandler.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Manohar Gour
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 2016 Adobe
18 // All Rights Reserved.
19 //
20 // NOTICE: Adobe permits you to use, modify, and distribute this file in
21 // accordance with the terms of the Adobe license agreement accompanying
22 // it. If you have received this file from a source other than Adobe,
23 // then your use, modification, or distribution of it requires the prior
24 // written permission of Adobe.
25 //
26 // Description:
27 // This class defines an interface that implements behavior for an ILinkResource that
28 // is specific to the type of the resource as identified by the scheme of the link
29 // resource's URI.
30 //
31 //========================================================================================
32 
33 #ifndef __ILinkResourceHelperHandler__
34 #define __ILinkResourceHelperHandler__
35 
36 // ----- Includes -----
37 #include "IPMUnknown.h"
38 #include "LinksUIID.h"
39 
40 #include "ILinkResourceHelper.h"
41 
42 
47 {
48 public:
49  enum { kDefaultIID = IID_ILINKRESOURCEHELPERHANDLER };
50 
51  virtual ILinkResourceHelper::IconStatus GetIcon(const UIDRef& ref, const URI& uri, const ILink* link) const = 0;
52  virtual ILinkResourceHelper::IconStatus GetPageItemAdornmentIcon(const UIDRef& ref, const URI& uri, const ILink* link) const = 0;
53  virtual bool CanDoDoubleClickInaccessibleAction() const = 0;
54  virtual void DoubleClickInaccessibleAction() const = 0;
55  virtual void ReplaceWithOriginalAsset() const = 0;
56  virtual bool IsInaccessibleActionSupportedURIScheme() const = 0;
57  virtual void InaccessibleActionOnOpenDoc() const = 0;
58  virtual PMString InaccessibleLinksWarningMessage(int32 count) const = 0;
59 
67  virtual bool CanProvideSupportedApplicationList(const UIDRef& ref, const URI& uri) const = 0;
68 
78  virtual void GetSupportedApplicationList(const UIDRef& ref, const URI& uri, AppInfoList& appList, bool16 bDefaultEditorOnly = false) const = 0;
79 };
80 
81 #endif // __ILinkResourceHandler__