InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILinkSourceAltDestination.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Brendan O'Shea
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 __ILinkSourceAltDestination__
25 #define __ILinkSourceAltDestination__
26 
27 #include "HyperlinkID.h"
28 
34 {
35 public:
36  enum { kDefaultIID = IID_ILINKSOURCEALTDESTINATION };
37 
38  enum AltDestType
39  {
40  kNone = 0,
41 
42  kIndexMarker,
43  kTOCTextAnchor,
44  };
45 
48  virtual AltDestType GetDestType() const = 0;
49 
52  virtual void SetDestType(AltDestType type) = 0;
53 
54  // data for index marker
58  virtual uint32 GetIndexMarkerID() const = 0;
59 
63  virtual void SetIndexMarkerID(uint32 id) = 0;
64 
65  // data for toc text anchor
69  virtual PMString GetTextAnchorName() const = 0;
70 
74  virtual void SetTextAnchorName(const PMString & name) = 0;
75 
79  virtual WideString GetTOCPageNumberString() const = 0;
80 
84  virtual void SetTOCPageNumberString(const WideString & pageNumberStr) = 0;
85 
89  virtual int32 GetTOCEntryLevel() const = 0;
90 
94  virtual void SetTOCEntryLevel(int32 level) = 0;
95 };
96 
97 #endif // __ILinkSourceAltDestination__