filters

textFrame.h
1/* A TEXT IS A SET OF TITLES, A (SET OF) PARAGRAPHS OR LISTS */
2/*
3** Header file for inclusion with kword_xml2latex.c
4**
5** Copyright (C) 2000 Robert JACOLIN
6**
7** This library is free software; you can redistribute it and/or
8** modify it under the terms of the GNU Library General Public
9** License as published by the Free Software Foundation; either
10** version 2 of the License, or (at your option) any later version.
11**
12** This library is distributed in the hope that it will be useful,
13** but WITHOUT ANY WARRANTY; without even the implied warranty of
14** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15** Library General Public License for more details.
16**
17** To receive a copy of the GNU Library General Public License, write to the
18** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20**
21*/
22
23#ifndef __KWORD_LATEX_FRAMETEXT_H__
24#define __KWORD_LATEX_FRAMETEXT_H__
25
26#include <tqptrlist.h>
27#include "element.h"
28//#include "border.h"
29#include "para.h"
30
31/***********************************************************************/
32/* Class: TextFrame */
33/***********************************************************************/
34
39class TextFrame: public Element
40{
41 /* DATA MARKUP */
42 double _left,
43 _top,
44 _right,
45 _bottom;
46 TAround _runaround;
47 double _runaroundGap;
48 TCreate _autoCreate;
49 TNFrame _newFrameBehaviour;
50 TSide _sheetSide;
51
52 /* CHILD MARKUP */
53 TQPtrList<Para> _parags;
54 //TQPtrList<Para> _footnotes;
55
56 /* USEFULL DATA */
57 EEnv _lastEnv;
58 EType _lastTypeEnum;
59
60 public:
67 TextFrame();
68
69 /*
70 * Destructor
71 *
72 * The destructor must remove the list of parag and footnotes.
73 */
74 virtual ~TextFrame()
75 {
76 //delete _footnotes;
77 kdDebug(30522) << "Destruction of a txt frame" << endl;
78 }
79
83 /*bool hasColor () const;
84 bool hasUline () const;*/
85 double getLeft () const { return _left; }
86 double getRight () const { return _right; }
87 double getTop () const { return _top; }
88 double getBottom () const { return _bottom; }
89 TAround getRunAround () const { return _runaround; }
90 double getAroundGap () const { return _runaroundGap; }
91 TCreate getAutoCreate () const { return _autoCreate; }
92 TNFrame getNewFrame () const { return _newFrameBehaviour; }
93 TSide getSheetSide () const { return _sheetSide; }
94 Para* getFirstPara () const { return _parags.getFirst(); }
95 EEnv getNextEnv (TQPtrList<Para>, const int);
96 bool isBeginEnum (Para*, Para*);
97 bool isCloseEnum (Para*, Para*);
98
102 void setLeft (const double l) { _left = l; }
103 void setRight (const double r) { _right = r; }
104 void setTop (const double t) { _top = t; }
105 void setBottom (const double b) { _bottom = b; }
106
107 void setRunAround (const int a) { _runaround = (TAround) a; }
108 void setAroundGap (const double r) { _runaroundGap = r; }
109 void setAutoCreate(const int a) { _autoCreate = (TCreate) a; }
110 void setNewFrame (const int n) { _newFrameBehaviour = (TNFrame) n; }
111 void setSheetSide (const int s) { _sheetSide = (TSide) s; }
112
113 //Para* searchFootnote(const TQString);
114
118 void analyse(const TQDomNode);
119
123 void generate(TQTextStream&);
124
125 private:
130 void analyseParamFrame(const TQDomNode);
131
132};
133
134#endif /* __KWORD_LATEX_FRAMETEXT_H__ */
135
Element()
Constructors.
void analyse(const TQDomNode)
Get informations from a markup tree.
Definition textFrame.cpp:64
void generate(TQTextStream &)
Write the text in a file.
TextFrame()
Constructors.
Definition textFrame.cpp:29
void setLeft(const double l)
Modifiors.
Definition textFrame.h:102
double getLeft() const
Accessors.
Definition textFrame.h:85