InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CusDtLnkLinkResourceHelperHandler.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 2017 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 //========================================================================================
27 
28 #ifndef __CusDtLnkLinkResourceHelperHandler__
29 #define __CusDtLnkLinkResourceHelperHandler__
30 
31 #include "CPMUnknown.h"
32 #include "ILink.h"
33 #include "ILinkResource.h"
34 #include "ILinkResourceHelperHandler.h"
35 #include "LinksID.h"
36 
37 
38 // =============================================================================
39 // * CusDtLnkLinkResourceHelperHandler
40 // =============================================================================
41 
42 class CusDtLnkLinkResourceHelperHandler : public CPMUnknown<ILinkResourceHelperHandler>
43 {
44 public:
47 
48  virtual ILinkResourceHelper::IconStatus GetIcon(const UIDRef& ref, const URI& uri, const ILink* link) const;
49  virtual ILinkResourceHelper::IconStatus GetPageItemAdornmentIcon(const UIDRef& ref, const URI& uri, const ILink* link) const;
50 
51  virtual bool CanDoDoubleClickInaccessibleAction() const { return false; }
52  virtual void DoubleClickInaccessibleAction() const { return; }
53  virtual void ReplaceWithOriginalAsset() const { return; }
54  virtual bool IsInaccessibleActionSupportedURIScheme() const { return false; }
55  virtual void InaccessibleActionOnOpenDoc() const { return; }
56  virtual PMString InaccessibleLinksWarningMessage(int32 count) const { return ""; }
57 
65  virtual bool CanProvideSupportedApplicationList(const UIDRef& ref, const URI& uri) const;
66 
76  virtual void GetSupportedApplicationList(const UIDRef& ref, const URI& uri, AppInfoList& appList, bool16 bDefaultEditorOnly = false) const;
77 };
78 
79 #endif