filters

pixmapFrame.h
1/* A TEXT ZONE IS SOME WORDS WITH A SPECIAL STYLE (ITALIC, ...).
2 * IT'S NOT USE FOR TITLE (BUT IN THE FUTURE IT WILL BE USED FOR)
3 * OR FOR SPECIAL PARAG.
4 */
5/*
6** Header file for inclusion with kword_xml2latex.c
7**
8** Copyright (C) 2000 Robert JACOLIN
9**
10** This library is free software; you can redistribute it and/or
11** modify it under the terms of the GNU Library General Public
12** License as published by the Free Software Foundation; either
13** version 2 of the License, or (at your option) any later version.
14**
15** This library is distributed in the hope that it will be useful,
16** but WITHOUT ANY WARRANTY; without even the implied warranty of
17** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18** Library General Public License for more details.
19**
20** To receive a copy of the GNU Library General Public License, write to the
21** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
23**
24*/
25
26#ifndef __KWORD_LATEX_EXPORT_PIXMAPFRAME_H__
27#define __KWORD_LATEX_EXPORT_PIXMAPFRAME_H__
28
29#include "element.h"
30
31/***********************************************************************/
32/* Class: PixmapFrame */
33/***********************************************************************/
34
39class PixmapFrame : public Element
40{
41 /* DATA MARKUP */
42 int _left;
43 int _top;
44 int _right;
45 int _bottom;
46 TAround _runaround;
47 double _runaroundGap;
48 TCreate _autoCreate;
49 TNFrame _newFrameBehaviour;
50 TSide _sheetSide;
51 bool _keepAspectRatio;
52
53 /* TEXT MARKUP */
54 TQString _key;
55 TQString _filenamePS;
56
57 public:
58 PixmapFrame();
59 PixmapFrame(TQString, TQString);
60 virtual ~PixmapFrame();
61
65 TAround getRunAround () const { return _runaround; }
66 double getAroundGap () const { return _runaroundGap; }
67 TCreate getAutoCreate () const { return _autoCreate; }
68 TNFrame getNewFrame () const { return _newFrameBehaviour; }
69 TSide getSheetSide () const { return _sheetSide; }
70
71 void getPixmap(TQDomNode);
72 TQString getKey () const { return _key; }
73 TQString getFilenamePS() const { return _filenamePS; }
74
78 void setRunAround (const int a) { _runaround = (TAround) a; }
79 void setAroundGap (const double r) { _runaroundGap = r; }
80 void setAutoCreate(const int a) { _autoCreate = (TCreate) a; }
81 void setNewFrame (const int n) { _newFrameBehaviour = (TNFrame) n; }
82 void setSheetSide (const int s) { _sheetSide = (TSide) s; }
83 void setKeepAspectRatio(const TQString);
84
85 void setKey (TQString k) { _key = k; }
86 void setFilenamePS (TQString f) { _filenamePS = f; }
87
91
92 void analyse(const TQDomNode);
93 void convert();
94 void generate(TQTextStream&);
95 /*void generate_format_begin(TQTextStream &);
96 void generate_format_end(TQTextStream &);*/
97
98 private:
99 void analyseParamFrame(const TQDomNode);
100};
101
102#endif /* __KWORD_LATEX_EXPORT_PIXMAPFRAME_H__ */
Element()
Constructors.
void convert()
Convert a pixmap file in eps file.
void setRunAround(const int a)
Modifiers.
Definition pixmapFrame.h:78
TAround getRunAround() const
Accessors.
Definition pixmapFrame.h:65
void analyse(const TQDomNode)
Helpfull functions.