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

« back to all changes in this revision

Viewing changes to filters/kspread/latex/export/row.cc

  • 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
/*
 
2
** A program to convert the XML rendered by KSpread into LATEX.
 
3
**
 
4
** Copyright (C) 2003 Robert JACOLIN
 
5
**
 
6
** This library is free software; you can redistribute it and/or
 
7
** modify it under the terms of the GNU Library General Public
 
8
** License as published by the Free Software Foundation; either
 
9
** version 2 of the License, or (at your option) any later version.
 
10
**
 
11
** This library is distributed in the hope that it will be useful,
 
12
** but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
** Library General Public License for more details.
 
15
**
 
16
** To receive a copy of the GNU Library General Public License, write to the
 
17
** Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
** Boston, MA  02111-1307, USA.
 
19
**
 
20
*/
 
21
 
 
22
#include <kdebug.h>             /* for kdDebug stream */
 
23
 
 
24
#include "row.h"
 
25
 
 
26
/*******************************************/
 
27
/* Constructor                             */
 
28
/*******************************************/
 
29
Row::Row(): Format()
 
30
{
 
31
        setRow(0);
 
32
}
 
33
 
 
34
/*******************************************/
 
35
/* Destructor                              */
 
36
/*******************************************/
 
37
Row::~Row()
 
38
{
 
39
}
 
40
 
 
41
void Row::analyse(const QDomNode balise)
 
42
{
 
43
        _row = getAttr(balise, "row").toLong();
 
44
        _height = getAttr(balise, "height").toDouble();
 
45
        Format::analyse(getChild(balise, "format"));
 
46
}
 
47
 
 
48
/*******************************************/
 
49
/* generate                                */
 
50
/*******************************************/
 
51
void Row::generate(QTextStream& out)
 
52
{
 
53
        //generateTopBorder(out);
 
54
        if(getBrushStyle() >= 1)
 
55
        {
 
56
                out << "\\rowcolor";
 
57
                generateColor(out);
 
58
        }
 
59
        //generateBottomBorder(out);
 
60
                
 
61
        //out << "m{" << getHeight() << "pt}";
 
62
        
 
63
}
 
64
 
 
65