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

« back to all changes in this revision

Viewing changes to kugar/lib/mreportsection.cpp

  • 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
1
/***************************************************************************
2
2
              mreportsection.cpp  -  Kugar report section
3
3
              -------------------
4
 
    begin     : Mon Aug 23 1999                                           
5
 
    copyright : (C) 1999 by Mutiny Bay Software                         
6
 
    email     : info@mutinybaysoftware.com                                     
 
4
    begin     : Mon Aug 23 1999
 
5
    copyright : (C) 1999 by Mutiny Bay Software
 
6
    email     : info@mutinybaysoftware.com
 
7
    copyright : (C) 2002 Alexander Dymo
 
8
    email     : cloudtemple@mksat.net   
7
9
 ***************************************************************************/
8
10
 
9
11
#include "mreportsection.h"
31
33
 
32
34
/** Copy constructor */
33
35
MReportSection::MReportSection(const MReportSection& mReportSection)/*: QObject((QObject &) mReportSection)*/{
34
 
  copy(&mReportSection);        
 
36
  copy(&mReportSection);
35
37
}
36
38
 
37
39
/** Assignment operator */
49
51
 
50
52
/** Destructor */
51
53
MReportSection::~MReportSection(){
52
 
        clear();        
 
54
        clear();
53
55
}
54
56
 
55
57
/** Frees all resources allocated by the report section */
99
101
  height = h;
100
102
}
101
103
 
 
104
/** Sets the level of the section */
 
105
void MReportSection::setLevel(int l)
 
106
{
 
107
        level = l;
 
108
}
 
109
 
 
110
/** Gets the level of the section */
 
111
int MReportSection::getLevel()
 
112
{
 
113
        return level;
 
114
}
 
115
 
102
116
/** Set the current page number - used by special fields */
103
117
void MReportSection::setPageNumber(int page){
104
118
  pageNumber = page;
134
148
}
135
149
 
136
150
/** Sets the data for the all calculated fields - list size must number of calculated fields */
137
 
void MReportSection::setCalcFieldData(QList<QArray<double> >* values){
 
151
void MReportSection::setCalcFieldData(QPtrList<QMemArray<double> >* values){
138
152
  MCalcObject* field;
139
153
  int i = 0;
140
154