InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
BookContentInfo Class Reference

#include <IBookUtils.h>

Public Types

typedef object_type data_type
 

Public Member Functions

 BookContentInfo ()
 
 BookContentInfo (const int32 &position, const UID &content)
 
bool16 operator== (const BookContentInfo &other) const
 
bool16 operator< (const BookContentInfo &other) const
 

Public Attributes

int32 fPosition
 
UID fContent
 

Detailed Description

An object class represent a book content(chapter) within a book database.

Constructor & Destructor Documentation

BookContentInfo::BookContentInfo ()
inline

Construct an emptry chapter.

BookContentInfo::BookContentInfo (const int32 & position,
const UIDcontent 
)
inline

Construct a chapter with the position and UID information.

Member Function Documentation

bool16 BookContentInfo::operator< (const BookContentInfoother) const
inline

Compare two chapters.

Parameters
otherthe chapter to compare with.
Returns
bool16 kTrue means this chapter is before the compared one, otherwise, return kFalse.
bool16 BookContentInfo::operator== (const BookContentInfoother) const
inline

Operator == to compare two chapters are same or not.

Parameters
otherthe chapter to compare with.
Returns
bool16 kTrue means they are same, otherwise, return kFalse.

Member Data Documentation

UID BookContentInfo::fContent

The chapter's UID in the book database.

int32 BookContentInfo::fPosition

The chapter's position within the book. Position starts from 0.