~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
**
20
20
*/
21
21
 
22
 
#include <stdlib.h>             /* for atoi function    */
23
 
#include <kdebug.h>             /* for kDebug() stream */
 
22
#include <stdlib.h>  /* for atoi function    */
 
23
#include <kdebug.h>  /* for kDebug() stream */
24
24
#include "map.h"
25
25
#include <QTextStream>
26
26
 
36
36
/*******************************************/
37
37
Map::~Map()
38
38
{
39
 
        kDebug(30522) <<"Destruction of a map.";
 
39
    kDebug(30522) << "Destruction of a map.";
40
40
}
41
41
 
42
42
/*******************************************/
44
44
/*******************************************/
45
45
void Map::analyze(const QDomNode node)
46
46
{
47
 
        /* Analysis of the parameters */
48
 
        kDebug(30522) <<"ANALYZE A MAP";
 
47
    /* Analysis of the parameters */
 
48
    kDebug(30522) << "ANALYZE A MAP";
49
49
 
50
 
        /* Analysis of the child markups */
51
 
        for(int index = 0; index < getNbChild(node); index++)
52
 
        {
53
 
                // Only tables
54
 
                Table* table = new Table();
55
 
                table->analyze(getChild(node, index));
56
 
                _tables.append(table);
57
 
        }
58
 
        kDebug(30522) <<"END OF MAP";
 
50
    /* Analysis of the child markups */
 
51
    for (int index = 0; index < getNbChild(node); index++) {
 
52
        // Only tables
 
53
        Table* table = new Table();
 
54
        table->analyze(getChild(node, index));
 
55
        _tables.append(table);
 
56
    }
 
57
    kDebug(30522) << "END OF MAP";
59
58
}
60
59
 
61
60
/*******************************************/
66
65
/*******************************************/
67
66
void Map::generate(QTextStream &out)
68
67
{
69
 
        Table *table = NULL;
70
 
        kDebug(30522) <<"  MAP GENERATION";
71
 
        foreach(Table* table, _tables) {
72
 
                table->generate(out);
73
 
        }
 
68
    Table *table = NULL;
 
69
    kDebug(30522) << "  MAP GENERATION";
 
70
    foreach(Table* table, _tables) {
 
71
        table->generate(out);
 
72
    }
74
73
 
75
 
        kDebug(30522) <<"MAP GENERATED";
 
74
    kDebug(30522) << "MAP GENERATED";
76
75
}
77
76