Foxit PDF SDK
fs_ofdoutline.h
1 #ifndef FS_OFD_OUTLINE_H_
2 #define FS_OFD_OUTLINE_H_
3 
4 #include "common/fs_common.h"
5 
11 namespace foxit {
15 namespace ofd {
16 class Action;
17 class ActionDestinationInfo;
18 
20 class Outline FS_FINAL : public Base {
21  public:
23  ~Outline();
24 
30  Outline(const Outline& other);
31 
39  Outline& operator = (const Outline& other);
40 
48  bool operator == (const Outline& other) const;
49 
57  bool operator != (const Outline& other) const;
58 
66  bool IsEmpty() const;
67 
73  int GetOutlineCount();
74 
83  Outline GetOutline(int index);
84 
91 
100  bool RemoveOutline(int index);
101 
107  String GetTitle();
108 
114  Action GetAction();
115 
122 
128  String GetURI();
129 
137  void SetTitle(const String& title);
138 
146  void EnableExpanded(bool expanded);
147 
157  void SetDestination(int page_index, float x, float y);
158 
166  void SetURI(const String& uri);
167 
168  explicit Outline(FS_HANDLE handle);
169 };
170 
171 } // namespace ofd
172 } // namespace foxit
173 
174 #endif // FS_OFD_OUTLINE_H_
void EnableExpanded(bool expanded)
设置是否展开。
int GetOutlineCount()
获取子大纲的数量。
~Outline()
析构函数。
Outline & operator=(const Outline &other)
赋值操作符。
Definition: fs_ofdoutline.h:20
ActionDestinationInfo GetDestination()
获取目标信息对象。
bool IsEmpty() const
检查当前对象是否为空。
String GetURI()
获取uri。
bool RemoveOutline(int index)
删除指定索引的子大纲。
Outline AddOutline()
添加子大纲。
bool operator==(const Outline &other) const
相等操作符。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
通用定义和类的头文件。
Action GetAction()
获取动作对象。
String GetTitle()
获取标题。
void SetURI(const String &uri)
设置URI。
Definition: fs_basictypes.h:465
Definition: fs_ofdaction.h:162
Outline(const Outline &other)
构造函数,通过另一个大纲对象。
Foxit命名空间。
Definition: fs_taggedpdf.h:27
Outline GetOutline(int index)
获取指定索引的子大纲对象。
字节字符串类
Definition: fx_string.h:317
void SetDestination(int page_index, float x, float y)
设置跳转目标到指定页面和位置。
bool operator !=(const Outline &other) const
不相等操作符。
void SetTitle(const String &title)
设置标题。
Definition: fs_ofdaction.h:17