kspread

KSpread::Format Namespace Reference

Collection of string formatting enumeration and functions. More...

Enumerations

enum  Type {
  Generic = 0, Number = 1, Text = 5, Money = 10,
  Percentage = 25, Scientific = 30, ShortDate = 35, TextDate = 36,
  DatesBegin = 200, Date1 = 200, Date2 = 201, Date3 = 202,
  Date4 = 203, Date5 = 204, Date6 = 205, Date7 = 206,
  Date8 = 207, Date9 = 208, Date10 = 209, Date11 = 210,
  Date12 = 211, Date13 = 212, Date14 = 213, Date15 = 214,
  Date16 = 215, Date17 = 216, Date18 = 217, Date19 = 218,
  Date20 = 219, Date21 = 220, Date22 = 221, Date23 = 222,
  Date24 = 223, Date25 = 224, Date26 = 225, DatesEnd = 225,
  DateTime = 40, TimesBegin = 50, Time = 50, SecondeTime = 51,
  Time1 = 52, Time2 = 53, Time3 = 54, Time4 = 55,
  Time5 = 56, Time6 = 57, Time7 = 58, Time8 = 59,
  TimesEnd = 59, FractionsBegin = 70, fraction_half = 70, fraction_quarter = 71,
  fraction_eighth = 72, fraction_sixteenth = 73, fraction_tenth = 74, fraction_hundredth = 75,
  fraction_one_digit = 76, fraction_two_digits = 77, fraction_three_digits = 78, FractionsEnd = 78,
  Custom = 300, None = 400
}

Functions

bool isDate (Type type)
bool isFraction (Type type)
bool isTime (Type type)

Detailed Description

Collection of string formatting enumeration and functions.


Enumeration Type Documentation

Enumerator:
Generic 
Number 
Text 
Money 
Percentage 
Scientific 
ShortDate 

Short (numeric) date format, e.g. 08-04-2007 (locale specific).

TextDate 

Long (text) date format, e.g. Sunday 08 April 2007 (locale specific).

DatesBegin 

For internal use only.

Date1 

e.g. 18-Feb-99

Date2 

e.g. 18-Feb-1999

Date3 

e.g. 18-Feb

Date4 

e.g. 18-05

Date5 

e.g. 18/05/00

Date6 

e.g. 18/05/1999

Date7 

e.g. Feb-99

Date8 

e.g. February-99

Date9 

e.g. February-1999

Date10 

e.g. F-99

Date11 

e.g. 18/Feb

Date12 

e.g. 18/02

Date13 

e.g. 18/Feb/1999

Date14 

e.g. 2000/Feb/18

Date15 

e.g. 2000-Feb-18

Date16 

e.g. 2000-02-18

Date17 

e.g. 2 February 2000

Date18 

e.g. 02/18/1999

Date19 

e.g. 02/18/99

Date20 

e.g. Feb/18/99

Date21 

e.g. Feb/18/1999

Date22 

e.g. Feb-1999

Date23 

e.g. 1999

Date24 

e.g. 99

Date25 

e.g. 2000/02/18

Date26 

e.g. 2000/Feb/18

DatesEnd 

For internal use only.

DateTime 

e.g. 08-04-2007 11:02 (locale specific)

TimesBegin 

For internal use only.

Time 

Short time format without seconds, e.g. 11:02 (locale specific).

SecondeTime 

Long time format with seconds, e.g. 11:02:45 (locale specific).

Time1 

e.g. 9:01 AM

Time2 

e.g. 9:01:05 AM

Time3 

e.g. 9 h 01 min 28 s

Time4 

e.g. 9:01

Time5 

e.g. 9:01:12

Time6 

[mm]:ss

Time7 

[h]:mm:ss

Time8 

[h]:mm

TimesEnd 

For internal use only.

FractionsBegin 

For internal use only.

fraction_half 
fraction_quarter 
fraction_eighth 
fraction_sixteenth 
fraction_tenth 
fraction_hundredth 
fraction_one_digit 
fraction_two_digits 
fraction_three_digits 
FractionsEnd 

For internal use only.

Custom 
None 

Definition at line 42 of file Format.h.


Function Documentation

bool KSpread::Format::isDate ( Type  type  ) 

Definition at line 25 of file Format.cpp.

bool KSpread::Format::isFraction ( Type  type  ) 

Definition at line 36 of file Format.cpp.

bool KSpread::Format::isTime ( Type  type  ) 

Definition at line 31 of file Format.cpp.