filters

pixmapFrame.h

00001 /* A TEXT ZONE IS SOME WORDS WITH A SPECIAL STYLE (ITALIC, ...).
00002  * IT'S NOT USE FOR TITLE (BUT IN THE FUTURE IT WILL BE USED FOR)
00003  * OR FOR SPECIAL PARAG.
00004  */
00005 /*
00006 ** Header file for inclusion with kword_xml2latex.c
00007 **
00008 ** Copyright (C) 2000 Robert JACOLIN
00009 **
00010 ** This library is free software; you can redistribute it and/or
00011 ** modify it under the terms of the GNU Library General Public
00012 ** License as published by the Free Software Foundation; either
00013 ** version 2 of the License, or (at your option) any later version.
00014 **
00015 ** This library is distributed in the hope that it will be useful,
00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 ** Library General Public License for more details.
00019 **
00020 ** To receive a copy of the GNU Library General Public License, write to the
00021 ** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00022  * Boston, MA 02110-1301, USA.
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 /* Class: PixmapFrame                                                       */
00033 /***********************************************************************/
00034 
00039 class PixmapFrame : public Element
00040 {
00041     /* DATA MARKUP */
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     /* TEXT MARKUP */
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         /*void generate_format_begin(QTextStream &);
00096         void generate_format_end(QTextStream &);*/
00097 
00098     private:
00099         void analyseParamFrame(const QDomNode);
00100 };
00101 
00102 #endif /* __KWORD_LATEX_EXPORT_PIXMAPFRAME_H__ */
KDE Home | KDE Accessibility Home | Description of Access Keys