filters
pixmapFrame.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 #ifndef __KWORD_LATEX_EXPORT_PIXMAPFRAME_H__
00027 #define __KWORD_LATEX_EXPORT_PIXMAPFRAME_H__
00028
00029 #include "element.h"
00030
00031
00032
00033
00034
00039 class PixmapFrame : public Element
00040 {
00041
00042 int _left;
00043 int _top;
00044 int _right;
00045 int _bottom;
00046 TAround _runaround;
00047 double _runaroundGap;
00048 TCreate _autoCreate;
00049 TNFrame _newFrameBehaviour;
00050 TSide _sheetSide;
00051 bool _keepAspectRatio;
00052
00053
00054 QString _key;
00055 QString _filenamePS;
00056
00057 public:
00058 PixmapFrame();
00059 PixmapFrame(QString, QString);
00060 virtual ~PixmapFrame();
00061
00065 TAround getRunAround () const { return _runaround; }
00066 double getAroundGap () const { return _runaroundGap; }
00067 TCreate getAutoCreate () const { return _autoCreate; }
00068 TNFrame getNewFrame () const { return _newFrameBehaviour; }
00069 TSide getSheetSide () const { return _sheetSide; }
00070
00071 void getPixmap(QDomNode);
00072 QString getKey () const { return _key; }
00073 QString getFilenamePS() const { return _filenamePS; }
00074
00078 void setRunAround (const int a) { _runaround = (TAround) a; }
00079 void setAroundGap (const double r) { _runaroundGap = r; }
00080 void setAutoCreate(const int a) { _autoCreate = (TCreate) a; }
00081 void setNewFrame (const int n) { _newFrameBehaviour = (TNFrame) n; }
00082 void setSheetSide (const int s) { _sheetSide = (TSide) s; }
00083 void setKeepAspectRatio(const QString);
00084
00085 void setKey (QString k) { _key = k; }
00086 void setFilenamePS (QString f) { _filenamePS = f; }
00087
00092 void analyse(const QDomNode);
00093 void convert();
00094 void generate(QTextStream&);
00095
00096
00097
00098 private:
00099 void analyseParamFrame(const QDomNode);
00100 };
00101
00102 #endif
|