InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IIndexPageEntryData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michel Hutinel
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 // Comments: This interface saves the informations about an Index Page Entry.
24 //
25 //========================================================================================
26 
27 #ifndef __IINDEXPAGEENTRYDATA__
28 #define __IINDEXPAGEENTRYDATA__
29 
30 #include "IPMUnknown.h"
31 #include "IndexingID.h"
32 
33 class WideString;
34 
39 {
40  public:
41  enum { kDefaultIID = IID_IINDEXPAGEENTRYDATA };
42 
44  enum PageRangeType { kNoPageRange = 0, // SuppressPageNumber
45  kCurrentPage = 1,
46  kToNextStyleChange = 2,
47  kToNextUseOfStyle = 3, // nextStyleUID must be filled
48  kToEndOfStory = 4,
49  kToEndOfDocument = 5,
50  kToEndOfSection = 6,
51  kForNextNParagraphs = 7, // nParOrPage must be filled
52  kForNextNPages = 8 };
53 
55  enum MarkerPlace { kPage = 1,
56  kPasteboard = 2,
57  kMasterPage = 4,
58  kOverset = 8,
59  kHiddenLayer = 16,
60  kUnplacedFrame = 32,
61  kFootnote = 64,
62  kNote = 128,
63  kHiddenText = 256,
64  kHiddenState = 512,
65  kDummyValue = 0xFFFFFFFF};
66 
67 
68  // Get/Set methods
69 
76  virtual void GetPageRangeType(PageRangeType& type, UID& nextStyleUID, int32& nParOrPage) const = 0;
77 
85  virtual void SetPageRangeType(const PageRangeType type, const UID nextStyleUID, const int32 nParOrPage) = 0;
86 
90  virtual UID GetStyleUID() const = 0;
91 
95  virtual void SetStyleUID(const UID styleUID) = 0;
96 
101  virtual void GetPageRange(int32& startPage, int32& endPage) const = 0;
102 
108  virtual void SetPageRange(const int32 startPage, const int32 endPage) = 0;
109 
114  virtual void GetMarkerPlace(MarkerPlace& place) const = 0;
115 
119  virtual void SetMarkerPlace(const MarkerPlace place) = 0;
120 
124  virtual uint32 GetMarkerUniqueID() const = 0;
125 };
126 
127 #endif // __IINDEXPAGEENTRYDATA__