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:
26 ~OFDCompositeUnit();
27
33 OFDCompositeUnit(const OFDCompositeUnit& other);
34
42 OFDCompositeUnit& operator = (const OFDCompositeUnit& other);
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
121 ~OFDCompositeObject();
122
128 OFDCompositeObject(const OFDCompositeObject& other);
129
137 OFDCompositeObject& operator = (const OFDCompositeObject& other);
138
146 bool operator == (const OFDCompositeObject& other) const;
147
155 bool operator != (const OFDCompositeObject& other) const;
156
164 bool IsEmpty() const;
165
171 OFDCompositeUnit AddUnit();
172
173 explicit OFDCompositeObject(FS_HANDLE handle);
174 };
175 } // namespace graphics
176 } // namespace ofd
177 } // namespace foxit
178
179 #endif // FS_OFD_COMPOSITEOBJECT_H_
foxit::ofd::graphics::OFDGraphicsObject
Definition: fs_ofdgraphicsobject.h:177
foxit::ofd::graphics::OFDCompositeObject::operator==
bool operator==(const OFDCompositeObject &other) const
相等操作符。
foxit::ofd::graphics::OFDCompositeUnit::SetSubstitution
void SetSubstitution(foxit::uint32 resource_id)
设置复合单元替换缩略图。
foxit::ofd::graphics::OFDCompositeUnit::~OFDCompositeUnit
~OFDCompositeUnit()
析构函数。
foxit::ofd::graphics::OFDCompositeObject::~OFDCompositeObject
~OFDCompositeObject()
析构函数。
foxit::ofd::graphics::OFDCompositeObject::operator=
OFDCompositeObject & operator=(const OFDCompositeObject &other)
赋值操作符。
foxit::ofd::graphics::OFDCompositeUnit::OFDCompositeUnit
OFDCompositeUnit(const OFDCompositeUnit &other)
构造函数，通过另一个OFD复合对象单元对象。
foxit::ofd::graphics::OFDCompositeUnit
Definition: fs_ofdcompositeobject.h:23
foxit::ofd::graphics::OFDCompositeUnit::operator==
bool operator==(const OFDCompositeUnit &other) const
相等操作符。
foxit::uint32
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:195
foxit::FS_HANDLE
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
fs_common.h
通用定义和类的头文件。
foxit::ofd::graphics::OFDCompositeObject::OFDCompositeObject
OFDCompositeObject(OFDGraphicsObject object)
构造函数，从现有foxit::ofd::graphics::OFDGraphicsObject对象。
foxit::Base
Definition: fs_basictypes.h:465
foxit::ofd::graphics::OFDCompositeObject
Definition: fs_ofdcompositeobject.h:111
foxit::ofd::graphics::OFDCompositeUnit::SetThumbnail
void SetThumbnail(foxit::uint32 resource_id)
设置复合单元缩略图。
foxit::ofd::graphics::OFDCompositeUnit::operator !=
bool operator !=(const OFDCompositeUnit &other) const
不相等操作符。
foxit
Foxit命名空间。
Definition: fs_taggedpdf.h:27
foxit::ofd::graphics::OFDCompositeObject::IsEmpty
bool IsEmpty() const
检查当前对象是否为空。
foxit::ofd::graphics::OFDCompositeUnit::SetWidth
void SetWidth(float width)
设置复合单元宽度。
foxit::ofd::graphics::OFDCompositeObject::operator !=
bool operator !=(const OFDCompositeObject &other) const
不相等操作符。
foxit::ofd::graphics::OFDCompositeObject::AddUnit
OFDCompositeUnit AddUnit()
添加复合单元。
foxit::ofd::graphics::OFDCompositeUnit::operator=
OFDCompositeUnit & operator=(const OFDCompositeUnit &other)
赋值操作符。
foxit::ofd::graphics::OFDCompositeUnit::IsEmpty
bool IsEmpty() const
检查当前对象是否为空。
foxit::ofd::graphics::OFDCompositeUnit::SetHeight
void SetHeight(float height)
设置复合单元高度。