kspread
KSpread::Currency Class Reference
#include <Currency.h>
Public Types | |
| enum | Format { Native, Gnumeric, OpenCalc, ApplixSpread, GobeProductiveSpread, HancomSheet } |
Public Member Functions | |
| Currency (QString const &code, Format format=Native) | |
| Currency (int index=0) | |
| ~Currency () | |
| QString | code (Format format=Native) const |
| QString | country () const |
| int | index () const |
| QString | name () const |
| bool | operator!= (Currency const &other) const |
| bool | operator== (Currency const &other) const |
| QString | symbol () const |
Static Public Member Functions | |
| static QString | chooseString (int type, bool &ok) |
Detailed Description
Definition at line 31 of file Currency.h.
Member Enumeration Documentation
Definition at line 34 of file Currency.h.
Constructor & Destructor Documentation
| Currency::Currency | ( | int | index = 0 |
) | [explicit] |
Constructor.
Creates a currency corresponding to the given currency table index. If index is omitted or zero, a currency with the locale default currency unit is created.
Definition at line 395 of file Currency.cpp.
Constructor.
Creates a currency corresponding to code . Looks up the index. If the code is found more than once: saved without country info. If the code is not found, code is handled as custom unit. code e.g. EUR, USD,..
- Parameters:
-
format in Gnumeric the code is: [$EUR]
Definition at line 401 of file Currency.cpp.
| Currency::~Currency | ( | ) |
Destructor.
Definition at line 429 of file Currency.cpp.
Member Function Documentation
| QString Currency::chooseString | ( | int | type, | |
| bool & | ok | |||
| ) | [static] |
Definition at line 475 of file Currency.cpp.
Definition at line 442 of file Currency.cpp.
| QString Currency::country | ( | ) | const |
Definition at line 453 of file Currency.cpp.
| int Currency::index | ( | ) | const |
Definition at line 470 of file Currency.cpp.
| QString Currency::name | ( | ) | const |
Definition at line 458 of file Currency.cpp.
| bool KSpread::Currency::operator!= | ( | Currency const & | other | ) | const [inline] |
Definition at line 62 of file Currency.h.
| bool Currency::operator== | ( | Currency const & | other | ) | const |
Definition at line 433 of file Currency.cpp.
| QString Currency::symbol | ( | ) | const |
Definition at line 463 of file Currency.cpp.
The documentation for this class was generated from the following files:
