InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CLinkInfoProvider.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: lance bushore
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __CLinkInfoProvider__
25 #define __CLinkInfoProvider__
26 
27 // ----- Interface files
28 #include "ILinkInfoProvider.h"
29 #include "PMTypes.h"
30 #include "WidgetDefs.h"
31 
32 
33 class CLinkInfoProvider : public CPMUnknown<ILinkInfoProvider>
34 {
35  public:
36 
38  virtual ~CLinkInfoProvider();
39 
40  virtual bool16 IsLinkInfoDynamic() const { return kFalse; }
41  virtual PMRsrcID GetInfoDescriptionIcon() const { PMRsrcID defaultRsrc; return defaultRsrc; }
42  virtual int32 GetDefaultColumnWidth() const { return 50; }
43  virtual int16 GetInfoTextAlignment() const { return kAlignLeft; }
44  virtual PMRsrcID GetUpdatedIconForLink(const ILink*, const ILinkResource*) const { PMRsrcID defaultRsrc; return defaultRsrc; }
45  virtual void AttachToDocument(IObserver *observer, const IDocument* newDoc);
46  virtual void DetachFromDocument(IObserver *observer, const IDocument* oldDoc);
47  virtual bool16 ShouldCauseRefreshOfInfo(const PMIID &protocol) const;
48  virtual bool16 CanDoSingleClickAction(const ILink*, const ILinkResource*) const { return kFalse; }
49  virtual void DoSingleClickAction(const ILink* link, const ILinkResource* linkResource);
50  virtual bool16 CanDoDoubleClickAction(const ILink*, const ILinkResource*) const { return kFalse; }
51  virtual void DoDoubleClickAction(const ILink* link, const ILinkResource* linkResource);
52  virtual PMString GetDoubleClickDescription(const ILink* link, const ILinkResource* linkResource) const;
53 
54  virtual int32 Compare(const ILink* link1, const ILinkResource* linkResource1,const ILink* link2, const ILinkResource* linkResource2) const;
55 
56 };
57 
58 #endif