Foxit PDF SDK
fs_pdfnumbertree.h
浏览该文件的文档.
1 
15 #ifndef FS_PDFNUMBERTREE_H_
16 #define FS_PDFNUMBERTREE_H_
17 
18 #include "common/fs_common.h"
20 
26 namespace foxit {
30 namespace pdf {
34 namespace objects {
57 class PDFNumberTree FS_FINAL : public Base {
58  public:
64  typedef enum _Type {
67  } Type;
68 
81  PDFNumberTree(const PDFDoc& document, Type type);
82 
84  PDFNumberTree();
85 
88 
94  PDFNumberTree(const PDFNumberTree& other);
95 
103  PDFNumberTree& operator = (const PDFNumberTree& other);
104 
112  bool operator == (const PDFNumberTree& other) const;
113 
121  bool operator != (const PDFNumberTree& other) const;
122 
130  bool IsEmpty() const;
131 
138  Type GetType();
139 
148  bool HasNumber(int number);
149 
159  objects::PDFObject* GetObj(int number);
160 
174  bool SetObj(int number, objects::PDFObject* pdf_object);
175 
186  bool RemoveObj(int number);
187 
193  bool RemoveAllObjs();
194 
195  // 强烈建议用户不要使用此方法;否则可能发生未知情况。
196  explicit PDFNumberTree(FS_HANDLE handle);
197 
198 };
199 
200 } // namespace objects
201 } // namespace pdf
202 } // namespace foxit
203 #endif // FS_PDFNUMBERTREE_H_
204 
PDFNumberTree & operator=(const PDFNumberTree &other)
赋值操作符。
Type GetType()
获取当前数字树的类型。
bool RemoveAllObjs()
从当前数字树中删除所有键整数及其值(作为PDF对象)。
Definition: fs_pdfdoc.h:771
"PageLabels"数字树。
Definition: fs_pdfnumbertree.h:66
bool RemoveObj(int number)
从当前数字树中删除一个键整数及其值(作为PDF对象)。
bool IsEmpty() const
检查当前对象是否为空。
bool operator==(const PDFNumberTree &other) const
相等操作符。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:214
通用定义和类的头文件。
bool SetObj(int number, objects::PDFObject *pdf_object)
设置指定键整数的值(作为PDF对象)。如果键整数不存在,它将与值一起 添加到当前数字树中。
PDF对象相关定义和类的头文件。
Definition: fs_basictypes.h:449
bool operator !=(const PDFNumberTree &other) const
不等操作符。
Foxit命名空间。
Definition: fs_taggedpdf.h:27
Definition: fs_pdfobject.h:55
bool HasNumber(int number)
检查指定的键整数是否存在于当前数字树中。
objects::PDFObject * GetObj(int number)
获取指定键整数的值(作为PDF对象)。
Type
数字树类型的枚举。
Definition: fs_pdfnumbertree.h:64
Definition: fs_pdfnumbertree.h:57