filters
pptSlide.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <kdebug.h>
00028 #include <qstring.h>
00029 #include <qstringlist.h>
00030 #include <qptrlist.h>
00031
00032
00033 #define TITLE_TEXT 0 //title
00034 #define BODY_TEXT 1 //body
00035 #define NOTES_TEXT 2 //notes
00036 #define NOTUSED_TEXT 3 //not used
00037 #define OTHER_TEXT 4 //other(test in shape)
00038 #define CENTER_BODY_TEXT 5 //center body(subtitle in title slide)
00039 #define CENTER_TITLE_TEXT 6 //center title(title in title slide)
00040 #define HALF_BODY_TEXT 7 //half body(body in two-column slide)
00041 #define QUARTER_BODY_TEXT 8 //quarter body(body in four-body slide)
00042
00043
00044
00045 enum
00046 {
00047 BOLD_STYLE = 1,
00048 ITALIC_STYLE = 2,
00049 UNDERLINE_STYLE = 3
00050 };
00051
00052
00053 class PptSlide
00054 {
00055 public:
00056 typedef struct
00057 {
00058 Q_UINT16 style;
00059 Q_UINT16 length;
00060 }styleRunType;
00061
00062 typedef QPtrList<styleRunType> styleRun;
00063
00064 PptSlide();
00065 QStringList getPlaceholderText(void);
00066
00067 Q_UINT16 getPlaceholderType(void);
00068 Q_UINT16 gotoPlaceholder(Q_UINT16 pholderNumber);
00069 Q_UINT16 getNumberOfPholders();
00070
00071 Q_INT32 getPsrReference(void);
00072 void setPsrReference(Q_INT32 psr);
00073
00074 void addText(QString text, Q_UINT16 type);
00075 void addToStyleRun(Q_UINT16 style, Q_UINT16 length);
00076
00077 private:
00078 typedef struct
00079 {
00080 QStringList paragraphs;
00081 Q_UINT16 type;
00082 styleRun style;
00083 }placeholder;
00084
00085 Q_INT16 m_slideLayout;
00086 Q_INT16 m_numberOfPholders;
00087 Q_INT32 m_psrReference;
00088 QPtrList<placeholder> m_placeholderList;
00089 placeholder* m_currentPholder;
00090
00091 };
00092
00093
|