-
Notifications
You must be signed in to change notification settings - Fork 1
/
OFD.h
66 lines (61 loc) · 1.18 KB
/
OFD.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#pragma once
#include <string>
#include <vector>
#include "Definitions.h"
#include "Document.h"
#include <map>
#include "Signatures.h"
struct CustomData
{
std::string name;
std::string data;
};
struct CT_DocInfo
{
std::string DocID;
std::string title;
std::string author;
std::string subject;
std::string abstract;
time_t creationDate;
time_t modDate;
std::string docUsage;
ST_Loc *cover = nullptr;
std::vector<std::string> keywords;
std::string creator;
std::string creatorVersion;
std::vector<CustomData *> CustomDatas;
};
struct Version
{
std::string id;
int index;
bool current = false;
ST_Loc *baseLoc = nullptr;
};
struct DocBody
{
CT_DocInfo *docInfo = nullptr;
ST_Loc *docRoot = nullptr;
std::vector<Version *> versions;
ST_Loc *Signatures = nullptr;
};
struct OFD
{
std::vector<DocBody *> docBodies;
std::string version = "1.0";
std::string docType = "OFD";
ST_Loc ofdRoot;
//userDef
std::string root_path = "";
std::vector<Document *> documents;
union DataA
{
CT_ColorSpace *colorSpace = nullptr;
CT_DrawParam *drawParam;
CT_Font *font;
CT_MultiMedia *multiMedia;
CT_VectorG *vectorG;
};
std::map<ST_ID, std::pair<Res::TYPE, OFD::DataA*>> *resAll;
};