Foxit PDF SDK
fs_ofdlayer.h
1 #ifndef FS_OFD_LAYER_H_
2 #define FS_OFD_LAYER_H_
3 
4 #include "common/fs_common.h"
5 #include "graphics/fs_ofdgraphicsobject.h"
6 #include "graphics/fs_ofdtextobject.h"
7 #include "graphics/fs_ofdpathobject.h"
8 #include "graphics/fs_ofdimageobject.h"
9 #include "graphics/fs_ofdcompositeobject.h"
10 
16 namespace foxit {
20 namespace ofd {
24 namespace graphics {
25 class OFDGraphicsObject;
26 class OFDBlockObject;
27 class OFDVideoObject;
28 }
29 
32  public:
38  typedef enum _LayerType {
45  } LayerType;
46 
52  typedef enum _GraphicsObjectType {
72 
73 
75  ~OFDLayer();
76 
82  OFDLayer(const OFDLayer& other);
83 
91  OFDLayer& operator = (const OFDLayer& other);
92 
100  bool operator == (const OFDLayer& other) const;
101 
109  bool operator != (const OFDLayer& other) const;
110 
118  bool IsEmpty() const;
119 
128  void SetType(LayerType type = e_LayerTypeBody);
129 
137  int GetGraphicsObjectIndexByName(const String& name) const;
138 
145 
152 
159 
166 
173 
180 
190 
196  int GetGraphicsObjectCount() const;
197 
207 
216  graphics::OFDBlockObject GetPageBlock(int index) const;
217 
227  GraphicsObjectType GetGraphicsObjectType(int index) const;
228 
237  void RemoveGraphicsObject(int index);
238 
245 
254 
255  explicit OFDLayer(FS_HANDLE handle);
256 };
257 } // namespace ofd
258 } // namespace foxit
259 
260 #endif // FS_OFD_LAYER_H_
graphics::OFDTextObject AddTextObject()
添加图元对象-文本对象。
int GetGraphicsObjectIndexByName(const String &name) const
通过名称获取图元对象索引。
OFDLayer(const OFDLayer &other)
构造函数,通过另一个OFD层对象。
graphics::OFDGraphicsObject AddGraphicsObject(GraphicsObjectType type)
添加图元对象。
int GetGraphicsObjectCount() const
获取图元对象数量。
Definition: fs_ofdgraphicsobject.h:177
层类型。
Definition: fs_ofdlayer.h:56
graphics::OFDCompositeObject AddCompositeObject()
添加图元对象-复合对象。
矢量对象。
Definition: fs_ofdlayer.h:62
bool operator !=(const OFDLayer &other) const
不相等操作符。
Definition: fs_ofdpathobject.h:206
GraphicsObjectType GetGraphicsObjectType(int index) const
获取指定索引的图元对象类型。
文本对象。
Definition: fs_ofdlayer.h:64
void RemoveGraphicsObject(int index)
删除指定索引的图元对象。
bool operator==(const OFDLayer &other) const
相等操作符。
前景层。
Definition: fs_ofdlayer.h:44
graphics::OFDBlockObject AddBlockObject()
添加图元对象-块对象。
void SetType(LayerType type=e_LayerTypeBody)
设置类型
路径对象。
Definition: fs_ofdlayer.h:66
视频对象。
Definition: fs_ofdlayer.h:70
bool IsEmpty() const
检查当前对象是否为空。
graphics::OFDVideoObject AddVideoObject()
添加图元对象-视频对象。
未知类型。
Definition: fs_ofdlayer.h:54
graphics::OFDImageObject AddImageObject()
添加图元对象-图像对象。
复合对象。
Definition: fs_ofdlayer.h:60
graphics::OFDGraphicsObject GetGraphicsObjectByID(int id)
通过ID获取图元对象。
Definition: fs_ofdblockobject.h:21
图像类型。
Definition: fs_ofdlayer.h:68
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
通用定义和类的头文件。
GraphicsObjectType
OFD页面对象类型类型枚举。
Definition: fs_ofdlayer.h:52
背景层。
Definition: fs_ofdlayer.h:40
Definition: fs_ofdimageobject.h:22
void RemoveAllGraphicsObjects()
删除所有图元对象。
OFDLayer & operator=(const OFDLayer &other)
赋值操作符。
页面块对象。
Definition: fs_ofdlayer.h:58
Definition: fs_ofdcompositeobject.h:111
Foxit命名空间。
Definition: fs_pdf3d.h:26
graphics::OFDBlockObject GetPageBlock(int index) const
获取指定索引的页面块对象。
字节字符串类
Definition: fx_string.h:317
LayerType
OFD页面层类型枚举。
Definition: fs_ofdlayer.h:38
Definition: fs_ofdlayer.h:31
正文层。
Definition: fs_ofdlayer.h:42
graphics::OFDGraphicsObject GetGraphicsObject(int index) const
获取指定索引的图元对象。
~OFDLayer()
析构函数。
Definition: fs_ofdtextobject.h:90
graphics::OFDPathObject AddPathObject()
添加图元对象-路径对象。
Definition: fs_ofdvideoobject.h:22