InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IBookContent.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Yeming Liu
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 // TODO::expand the book content as directories etc.
24 //
25 //========================================================================================
26 
27 #ifndef __IBOOKCONTENT__
28 #define __IBOOKCONTENT__
29 
30 #include "BookID.h"
31 
40 class IBookContent : public IPMUnknown
41 {
42  public:
43  enum { kDefaultIID = IID_IBOOKCONTENT };
44 
49  virtual PMString GetCurrentBook() = 0;
50 
54  virtual void SetCurrentBook(const PMString& book) = 0;
55 
60  virtual PMString GetPageRange() = 0;
61 
65  virtual void SetPageRange(const PMString& pageRange) = 0;
66 
71  virtual int32 GetFirstPageNum() = 0;
72 
76  virtual void SetFirstPageNum(const int32& pageNum) = 0;
77 
82  virtual int32 GetNonHiddenFirstPageNum() = 0;
83 
87  virtual void SetNonHiddenFirstPageNum(const int32& pageNum) = 0;
88 
92  virtual bool16 IsAvailable() = 0;
93 
98  virtual bool16 IsPaginated() = 0;
99 
103  virtual void SetPaginated(bool16 paginate) = 0;
104 
109  virtual void Open() = 0;
114  virtual int32 GetChapterNumber() = 0;
118  virtual void SetChapterNumber(int32 chapterNumber) = 0;
119 
124  virtual bool16 GetIDFile(IDFile& file) const = 0;
125 
129  virtual WideString GetShortName() const = 0;
130 
134  virtual WideString GetLongName() const = 0;
135 
139  virtual uint64 GetSize() const = 0;
140 
144  virtual IDTime GetModTime() const = 0;
145 
149  virtual bool16 IsNormal() const = 0;
150 
154  virtual bool16 IsMissing() const = 0;
155 
159  virtual bool16 IsModified() const = 0;
160 };
161 
162 #endif //__IBOOKCONTENT__