Foxit PDF SDK
fs_ofdcatalog.h
1 #ifndef FS_OFD_CATALOG_H_
2 #define FS_OFD_CATALOG_H_
3 
4 #include "common/fs_common.h"
5 
11 namespace foxit {
15 namespace ofd {
16 class Attachments;
17 
19 class Catalog FS_FINAL : public Base {
20  public:
26  typedef enum _CatalogPositionType {
32 
33 
37  Catalog();
38 
40  ~Catalog();
41 
47  Catalog(const Catalog& other);
48 
56  Catalog& operator = (const Catalog& other);
57 
65  bool operator == (const Catalog& other) const;
66 
74  bool operator != (const Catalog& other) const;
75 
83  bool IsEmpty() const;
84 
93  void SetMargin(float x_margin, float y_margin);
94 
105  void SetFormat(int section, const String& font_name, float font_size, float lower_space);
106 
115  void SetPosition(CatalogPositionType type);
116 
125  bool AddItemInfo(const String& title, int page_count);
126 
137  bool AddItemInfo(const String& title, int page_count, float x, float y);
138 
146  bool AddAttachment(const Attachments& attachments);
147 
148  explicit Catalog(FS_HANDLE handle);
149 };
150 
151 } // namespace ofd
152 } // namespace foxit
153 
154 #endif // FS_OFD_CATALOG_H_
Catalog & operator=(const Catalog &other)
赋值操作符。
bool operator !=(const Catalog &other) const
不相等操作符。
CatalogPositionType
OFD目录位置类型定义枚举类型。
Definition: fs_ofdcatalog.h:26
bool IsEmpty() const
检查当前对象是否为空。
void SetFormat(int section, const String &font_name, float font_size, float lower_space)
设置目录格式。
Catalog()
构造函数。
bool AddAttachment(const Attachments &attachments)
添加附件对象目录。
Definition: fs_ofdattachment.h:395
Definition: fs_ofdcatalog.h:19
~Catalog()
析构函数。
目录位置:在第二页前新增一页作为目录页。
Definition: fs_ofdcatalog.h:30
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
通用定义和类的头文件。
bool operator==(const Catalog &other) const
相等操作符。
Definition: fs_basictypes.h:465
bool AddItemInfo(const String &title, int page_count)
添加目录项信息。
Foxit命名空间。
Definition: fs_pdf3d.h:26
字节字符串类
Definition: fx_string.h:317
void SetMargin(float x_margin, float y_margin)
设置目录边距。
目录位置:在第一页前新增一页作为目录页。
Definition: fs_ofdcatalog.h:28
void SetPosition(CatalogPositionType type)
设置目录位置。