Foxit PDF SDK
fs_ofdcompositeobject.h
1 #ifndef FS_OFD_COMPOSITEOBJECT_H_
2 #define FS_OFD_COMPOSITEOBJECT_H_
3 
4 #include "common/fs_common.h"
5 #include "fs_ofdgraphicsobject.h"
6 
12 namespace foxit {
16 namespace ofd {
20 namespace graphics {
21 class OFDBlock;
23 class OFDCompositeUnit FS_FINAL : public Base {
24  public:
27 
33  OFDCompositeUnit(const OFDCompositeUnit& other);
34 
43 
51  bool operator == (const OFDCompositeUnit& other) const;
52 
60  bool operator != (const OFDCompositeUnit& other) const;
61 
69  bool IsEmpty() const;
70 
78  void SetWidth(float width);
79 
87  void SetHeight(float height);
88 
96  void SetThumbnail(foxit::uint32 resource_id);
97 
105  void SetSubstitution(foxit::uint32 resource_id);
106 
107  explicit OFDCompositeUnit(FS_HANDLE handle);
108 };
109 
111 class OFDCompositeObject FS_FINAL : public OFDGraphicsObject {
112  public:
118  explicit OFDCompositeObject(OFDGraphicsObject object);
119 
122 
129 
138 
146  bool operator == (const OFDCompositeObject& other) const;
147 
155  bool operator != (const OFDCompositeObject& other) const;
156 
164  bool IsEmpty() const;
165 
172 
173  explicit OFDCompositeObject(FS_HANDLE handle);
174 };
175 } // namespace graphics
176 } // namespace ofd
177 } // namespace foxit
178 
179 #endif // FS_OFD_COMPOSITEOBJECT_H_
Definition: fs_ofdgraphicsobject.h:177
bool operator==(const OFDCompositeObject &other) const
相等操作符。
void SetSubstitution(foxit::uint32 resource_id)
设置复合单元替换缩略图。
OFDCompositeObject & operator=(const OFDCompositeObject &other)
赋值操作符。
OFDCompositeUnit(const OFDCompositeUnit &other)
构造函数,通过另一个OFD复合对象单元对象。
Definition: fs_ofdcompositeobject.h:23
bool operator==(const OFDCompositeUnit &other) const
相等操作符。
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:195
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
通用定义和类的头文件。
OFDCompositeObject(OFDGraphicsObject object)
构造函数,从现有foxit::ofd::graphics::OFDGraphicsObject对象。
Definition: fs_basictypes.h:465
Definition: fs_ofdcompositeobject.h:111
void SetThumbnail(foxit::uint32 resource_id)
设置复合单元缩略图。
bool operator !=(const OFDCompositeUnit &other) const
不相等操作符。
Foxit命名空间。
Definition: fs_pdf3d.h:26
bool IsEmpty() const
检查当前对象是否为空。
void SetWidth(float width)
设置复合单元宽度。
bool operator !=(const OFDCompositeObject &other) const
不相等操作符。
OFDCompositeUnit AddUnit()
添加复合单元。
OFDCompositeUnit & operator=(const OFDCompositeUnit &other)
赋值操作符。
bool IsEmpty() const
检查当前对象是否为空。
void SetHeight(float height)
设置复合单元高度。