kspread

KSpread::ColumnFormat Class Reference

Inheritance diagram for KSpread::ColumnFormat:

KSpread::Format List of all members.

Detailed Description

Definition at line 595 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 ()
ColumnFormatnext () const
ColumnFormatprevious () 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

Protected Member Functions

FormatfallbackFormat (int col, int row)
const FormatfallbackFormat (int col, int row) const

Protected Attributes

double m_fWidth
bool m_bDefault
int m_iColumn
bool m_bDisplayDirtyFlag
bool m_bHide
ColumnFormatm_next
ColumnFormatm_prev
DCOPObject * m_dcop

Member Function Documentation

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 661 of file kspread_format.h.

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 2817 of file kspread_format.cc.

const Format * ColumnFormat::fallbackFormat int  col,
int  row
const [protected, virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2971 of file kspread_format.cc.

Format * ColumnFormat::fallbackFormat int  col,
int  row
[protected, virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2945 of file kspread_format.cc.

bool ColumnFormat::isDefault  )  const [virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2976 of file kspread_format.cc.

const QPen & ColumnFormat::leftBorderPen int  col,
int  row
const [virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2898 of file kspread_format.cc.

double ColumnFormat::mmWidth  )  const
 

Returns:
the width in millimeters.

Definition at line 2828 of file kspread_format.cc.

const QPen & ColumnFormat::rightBorderPen int  col,
int  row
const [virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2920 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 2785 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 650 of file kspread_format.h.

void ColumnFormat::setLeftBorderPen const QPen &  p  )  [virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2911 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 2775 of file kspread_format.cc.

void ColumnFormat::setRightBorderPen const QPen &  p  )  [virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2933 of file kspread_format.cc.

void ColumnFormat::setWidth int  _w,
const Canvas _canvas = 0L
 

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 2780 of file kspread_format.cc.

int ColumnFormat::width const Canvas _canvas = 0L  )  const
 

Parameters:
_canvas is needed to get information about the zooming factor.
Returns:
the width in zoomed pixels as integer.

Definition at line 2812 of file kspread_format.cc.


Member Data Documentation

bool KSpread::ColumnFormat::m_bDefault [protected]
 

Flag that indicates whether this is the default format.

See also:
isDefault

setDefault

Definition at line 715 of file kspread_format.h.

double KSpread::ColumnFormat::m_fWidth [protected]
 

Width of the cells in unzoomed pixels.

Definition at line 707 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 722 of file kspread_format.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys