pagestructs.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #ifndef PAGESTRUCTS_H
00008 #define PAGESTRUCTS_H
00009
00010 #include <QMap>
00011 #include <QList>
00012 #include <QString>
00013
00014 struct ObjectAttribute
00015 {
00016 QString name;
00017 QString type;
00018 QString value;
00019 QString parameter;
00020 QString relationship;
00021 QString relationshipto;
00022 QString autoaddto;
00023 };
00024
00025 typedef QList<ObjectAttribute> ObjAttrVector;
00026
00027 typedef enum {Beginning, End, NotShown} TOCPageLocation;
00028
00029 struct ToCSetup
00030 {
00031 QString name;
00032 QString itemAttrName;
00033 QString frameName;
00034 TOCPageLocation pageLocation;
00035 bool listNonPrintingFrames;
00036 QString textStyle;
00037
00038
00039 };
00040
00041 typedef QList<ToCSetup> ToCSetupVector;
00042
00043
00044 typedef enum
00045 {
00046 Type_1_2_3,
00047 Type_i_ii_iii,
00048 Type_I_II_III,
00049 Type_a_b_c,
00050 Type_A_B_C,
00051 Type_None=99
00052 } DocumentSectionType;
00053
00054 struct DocumentSection
00055 {
00056 uint number;
00057 QString name;
00058 uint fromindex;
00059 uint toindex;
00060 DocumentSectionType type;
00061 uint sectionstartindex;
00062 bool reversed;
00063 bool active;
00064 };
00065
00066 typedef QMap<uint, DocumentSection> DocumentSectionMap;
00067
00068 typedef enum
00069 {
00070 singlePage,
00071 doublePage,
00072 triplePage,
00073 quadroPage
00074 } PageLayout;
00075
00076 typedef enum
00077 {
00078 LeftPage,
00079 MiddlePage,
00080 RightPage
00081 } PageLocation;
00082
00083
00084 #endif