1#ifndef KSPREAD_GLOBAL_H
2#define KSPREAD_GLOBAL_H
7#include <kiconloader.h>
9#include "kspread_factory.h"
12#define KS_rowMax 0x7FFF
14#define KS_colMax 0x7FFF
17#define KS_spanMax 0xFFF
26 enum OutputMode { Default, PrintOnlyTime };
32 ElapsedTime( TQString const & name, OutputMode mode = Default )
36 if ( mode != PrintOnlyTime )
37 kdDebug() << "*** (" << name << ")... Starting measuring... " << endl;
42 uint milliSec = m_time.elapsed();
43 uint min = (uint) ( milliSec / ( 1000 * 60 ) );
44 milliSec -= ( min * 60 * 1000 );
45 uint sec = (uint) ( milliSec / 1000 );
46 milliSec -= sec * 1000;
48 if ( m_name.isNull() )
49 kdDebug() << "*** Elapsed time: " << min << " min, " << sec << " sec, " << milliSec << " msec" << endl;
51 kdDebug() << "*** (" << m_name << ") Elapsed time " << min << " min, " << sec << " sec, " << milliSec << " msec" << endl;
126enum Series { Column,Row,Linear,Geometric };
128enum MoveTo { Bottom, Left, Top, Right, BottomFirst };
129enum MethodOfCalc { SumOfNumber, Min, Max, Average, Count, NoneCalc, CountA };
133 Number_format=1, Text_format=5, Money_format=10, Percentage_format=25,
134 Scientific_format=30,
135 ShortDate_format=35, TextDate_format=36, Time_format=50,
136 SecondeTime_format=51,
137 Time_format1=52, Time_format2=53, Time_format3=54, Time_format4=55,
138 Time_format5=56, Time_format6=57, Time_format7=58, Time_format8=59,
139 fraction_half=70,fraction_quarter=71,fraction_eighth=72,fraction_sixteenth=73,
140 fraction_tenth=74,fraction_hundredth=75,fraction_one_digit=76,
141 fraction_two_digits=77,fraction_three_digits=78,
142 date_format1=200,date_format2=201,date_format3=202,date_format4=203,
143 date_format5=204,date_format6=205,date_format7=206,date_format8=207,
144 date_format9=208,date_format10=209,date_format11=210,date_format12=211,
145 date_format13=212,date_format14=213,date_format15=214,date_format16=215,
146 date_format17=216,date_format18=217,date_format19=218,date_format20=219,
147 date_format21=220,date_format22=221,date_format23=222,date_format24=223,
148 date_format25=224,date_format26=225,
149 Custom_format = 300, No_format = 400
This namespace collects enumerations related to pasting operations.
Operation The current cell value treatment.
@ Result Result only, no formula.
@ NoBorder not the borders
This namespace collects enumerations related to cell content restrictions.
Type The type of the restriction.
@ Number Restrict to numbers.
@ Integer Restrict to integers.
@ TextLength Restrict text length.
|