~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to filters/kword/latex/export/footnote.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* A PARA IS A TITLE, A SET OF WORDS OR A LIST. TO KNOW ITS TYPE,
 
2
 * YOU MUST LOOK AT IN THE LAYOUT CLASS.
 
3
 */
 
4
/*
 
5
** Header file for inclusion with kword_xml2latex.c
 
6
**
 
7
** Copyright (C) 2000 Robert JACOLIN
 
8
**
 
9
** This library is free software; you can redistribute it and/or
 
10
** modify it under the terms of the GNU Library General Public
 
11
** License as published by the Free Software Foundation; either
 
12
** version 2 of the License, or (at your option) any later version.
 
13
**
 
14
** This library is distributed in the hope that it will be useful,
 
15
** but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
** Library General Public License for more details.
 
18
**
 
19
** To receive a copy of the GNU Library General Public License, write to the
 
20
** Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
21
** Boston, MA  02111-1307, USA.
 
22
**
 
23
*/
 
24
 
 
25
#ifndef __KWORD_LATEX_FOOTNOTE_H__
 
26
#define __KWORD_LATEX_FOOTNOTE_H__
 
27
 
 
28
#include <qstring.h>
 
29
#include "format.h"
 
30
 
 
31
/***********************************************************************/
 
32
/* Class: Footnote                                                     */
 
33
/***********************************************************************/
 
34
 
 
35
/**
 
36
 * This class hold a footnote. This class will be a lot modified because
 
37
 * it doesn't correspond whith the dtd 1.0.
 
38
 */
 
39
class Footnote: public Format
 
40
{
 
41
        int     _from,   _to;
 
42
        int     _start,  _end;
 
43
        QString _before, _after, _space;        // TODO: Change in QChar
 
44
        QString _ref;
 
45
 
 
46
        public:
 
47
                /**
 
48
                 * Constructors
 
49
                 *
 
50
                 * Creates a new instances of Footnote.
 
51
                 *
 
52
                 * @param Para is the parent class
 
53
                 */
 
54
                Footnote(Para* para = 0);
 
55
                //Footnote(TextZone);
 
56
 
 
57
                /* 
 
58
                 * Destructor
 
59
                 *
 
60
                 * Nothing to do
 
61
                 */
 
62
                virtual ~Footnote();
 
63
 
 
64
                /**
 
65
                 * Accessors
 
66
                 */
 
67
 
 
68
                /**
 
69
                 * Modifiers
 
70
                 */
 
71
                void setFrom  (int   f) { _from   = f; }
 
72
                void setTo    (int   t) { _to     = t; }
 
73
                void setSpace (QString);
 
74
                void setStart (int   s) { _start  = s; }
 
75
                void setEnd   (int   e) { _end    = e; }
 
76
                void setBefore(QString);
 
77
                void setAfter (QString);
 
78
                void setRef   (QString);
 
79
 
 
80
                /**
 
81
                 * Helpfull functions
 
82
                 */
 
83
                void analyse (const QDomNode);
 
84
                void analyseInternal(const QDomNode);
 
85
                void analyseRange(const QDomNode);
 
86
                void analyseText(const QDomNode);
 
87
                void analyseDescript(const QDomNode);
 
88
 
 
89
                void generate(QTextStream&);
 
90
 
 
91
        //private:
 
92
};
 
93
 
 
94
 
 
95
#endif /* __KWORD_LATEX_FOOTNOTE_H__ */
 
96