InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IBookmarkUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
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 __IBookmarkUtils__
25 #define __IBookmarkUtils__
26 
27 
28 #include "HyperlinkID.h"
29 #include "IPMUnknown.h"
30 #include "Utils.h"
31 
32 class IBookMarkData;
33 
34 #define BOOKMARKUTILS Utils<IBookmarkUtils>()
35 
42 class IBookmarkUtils : public IPMUnknown
43 {
44 public:
45  enum { kDefaultIID = IID_IBOOKMARKUTILS };
46 
54  virtual int32 GetChildIndexFromParent(IDataBase *db, const UID parent, const UID child) = 0;
55 
62  virtual int32 GetBookmarkChildCount(UIDRef bookmarkRef) = 0;
63 
70  virtual UIDRef GetNthBookmarkOfParent(UIDRef bookmarkRef, int32 index) = 0;
71 
78  virtual void BuildListOfNestedBookmarks(IBookMarkData *bookmark, UIDList *nestedList) = 0;
79 
88  virtual bool16 IsBookmarkAParentOfUID(IDataBase *db, const UID parent, const UID child) = 0;
89 };
90 
91 
92 #endif // __IBookmarkUtils__