kspread
KSpread::ColumnFormat Class Reference
Inheritance diagram for KSpread::ColumnFormat:

Detailed Description
Definition at line 605 of file kspread_format.h.
Public Member Functions | |
ColumnFormat (Sheet *_sheet, int _column) | |
~ColumnFormat () | |
QDomElement | save (QDomDocument &, int xshift=0, bool copy=false) const |
bool | load (const QDomElement &row, int xshift=0, Paste::Mode sp=Paste::Normal, bool paste=false) |
DCOPObject * | dcopObject () |
int | width (const Canvas *_canvas=0L) const |
double | dblWidth (const Canvas *_canvas=0L) const |
double | mmWidth () const |
void | setWidth (int _w, const Canvas *_canvas=0L) |
void | setDblWidth (double _w, const Canvas *_canvas=0L) |
void | setMMWidth (double _w) |
void | setDefault () |
virtual bool | isDefault () const |
int | column () const |
void | setColumn (int _c) |
void | setDisplayDirtyFlag () |
void | clearDisplayDirtyFlag () |
ColumnFormat * | next () const |
ColumnFormat * | previous () const |
void | setNext (ColumnFormat *c) |
void | setPrevious (ColumnFormat *c) |
virtual const QPen & | rightBorderPen (int col, int row) const |
virtual void | setRightBorderPen (const QPen &p) |
virtual const QPen & | leftBorderPen (int col, int row) const |
virtual void | setLeftBorderPen (const QPen &p) |
void | setHide (bool _hide) |
bool | isHide () const |
bool | operator== (const ColumnFormat &other) const |
bool | operator!= (const ColumnFormat &other) const |
Protected Member Functions | |
Format * | fallbackFormat (int col, int row) |
const Format * | fallbackFormat (int col, int row) const |
Protected Attributes | |
double | m_fWidth |
bool | m_bDefault |
int | m_iColumn |
bool | m_bDisplayDirtyFlag |
bool | m_bHide |
ColumnFormat * | m_next |
ColumnFormat * | m_prev |
DCOPObject * | m_dcop |
Member Function Documentation
- Parameters:
-
_canvas is needed to get information about the zooming factor.
- Returns:
- the width in zoomed pixels as integer.
Definition at line 2857 of file kspread_format.cc.
double ColumnFormat::dblWidth | ( | const Canvas * | _canvas = 0L |
) | const |
- Parameters:
-
_canvas is needed to get information about the zooming factor.
- Returns:
- the width in zoomed pixels as double. Use this function, if you want to use the width and later restore it back, so you don't get rounding problems
Definition at line 2862 of file kspread_format.cc.
double ColumnFormat::mmWidth | ( | ) | const |
Sets the width to _w zoomed pixels.
- Parameters:
-
_w is calculated in display pixels. The function cares for zooming. _canvas is needed to get information about the zooming factor.
Definition at line 2825 of file kspread_format.cc.
void ColumnFormat::setDblWidth | ( | double | _w, | |
const Canvas * | _canvas = 0L | |||
) |
Sets the width to _w zoomed pixels as double value.
Use this function to set the width without getting rounding problems.
- Parameters:
-
_w is calculated in display pixels. The function cares for zooming. _canvas is needed to get information about the zooming factor.
Definition at line 2830 of file kspread_format.cc.
void ColumnFormat::setMMWidth | ( | double | _w | ) |
Sets the width.
- Parameters:
-
_w is assumed to be a unzoomed millimeter value.
Definition at line 2820 of file kspread_format.cc.
void KSpread::ColumnFormat::setDefault | ( | ) | [inline] |
Use this function to tell this format that it is the default format.
Definition at line 660 of file kspread_format.h.
bool ColumnFormat::isDefault | ( | ) | const [virtual] |
- Reimplemented from superclass.
Reimplemented from KSpread::Format.
Definition at line 3021 of file kspread_format.cc.
int KSpread::ColumnFormat::column | ( | ) | const [inline] |
- Returns:
- the column of this ColumnFormat.
May be 0 if this is the default format.
- See also:
- column
Definition at line 671 of file kspread_format.h.
- Reimplemented from superclass.
Reimplemented from KSpread::Format.
Definition at line 2965 of file kspread_format.cc.
void ColumnFormat::setRightBorderPen | ( | const QPen & | p | ) | [virtual] |
- Reimplemented from superclass.
Reimplemented from KSpread::Format.
Definition at line 2978 of file kspread_format.cc.
- Reimplemented from superclass.
Reimplemented from KSpread::Format.
Definition at line 2943 of file kspread_format.cc.
void ColumnFormat::setLeftBorderPen | ( | const QPen & | p | ) | [virtual] |
- Reimplemented from superclass.
Reimplemented from KSpread::Format.
Definition at line 2956 of file kspread_format.cc.
- Reimplemented from superclass.
Reimplemented from KSpread::Format.
Definition at line 2990 of file kspread_format.cc.
- Reimplemented from superclass.
Reimplemented from KSpread::Format.
Definition at line 3016 of file kspread_format.cc.
Member Data Documentation
double KSpread::ColumnFormat::m_fWidth [protected] |
bool KSpread::ColumnFormat::m_bDefault [protected] |
Flag that indicates whether this is the default format.
- See also:
- isDefault
Definition at line 727 of file kspread_format.h.
int KSpread::ColumnFormat::m_iColumn [protected] |
This is the column to which this format belongs.
If this value is 0, then this might be the default format.
- See also:
- column
Definition at line 734 of file kspread_format.h.
The documentation for this class was generated from the following files: