kspread

KSpread::RowFormat Class Reference

Inheritance diagram for KSpread::RowFormat:

KSpread::Format List of all members.

Detailed Description

Definition at line 456 of file kspread_format.h.


Public Member Functions

 RowFormat (Sheet *_sheet, int _row)
 ~RowFormat ()
DCOPObject * dcopObject ()
QDomElement save (QDomDocument &, int yshift=0, bool copy=false) const
bool load (const QDomElement &row, int yshift=0, Paste::Mode sp=Paste::Normal, bool paste=false)
bool loadOasis (const QDomElement &row, QDomElement *rowStyle)
int height (const Canvas *_canvas=0L) const
double dblHeight (const Canvas *_canvas=0L) const
double mmHeight () const
void setHeight (int _h, const Canvas *_canvas=0L)
void setDblHeight (double _h, const Canvas *_canvas=0L)
void setMMHeight (double _h)
void setDefault ()
virtual bool isDefault () const
int row () const
void setRow (int _r)
void setDisplayDirtyFlag ()
void clearDisplayDirtyFlag ()
RowFormatnext () const
RowFormatprevious () const
void setNext (RowFormat *c)
void setPrevious (RowFormat *c)
const QPen & bottomBorderPen (int col, int row) const
void setBottomBorderPen (const QPen &p)
const QPen & topBorderPen (int col, int row) const
void setTopBorderPen (const QPen &p)
void setHide (bool _hide, bool repaint=true)
bool isHide () const

Protected Member Functions

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

Protected Attributes

double m_fHeight
bool m_bDefault
int m_iRow
bool m_bDisplayDirtyFlag
bool m_bHide
RowFormatm_next
RowFormatm_prev
DCOPObject * m_dcop

Member Function Documentation

const QPen & RowFormat::bottomBorderPen int  col,
int  row
const [virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2673 of file kspread_format.cc.

double RowFormat::dblHeight const Canvas _canvas = 0L  )  const
 

Parameters:
_canvas is needed to get information about the zooming factor.
Returns:
the height in zoomed pixels as double value. Use this function, if you want to work with height without having rounding problems.

Definition at line 2568 of file kspread_format.cc.

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

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2724 of file kspread_format.cc.

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

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2719 of file kspread_format.cc.

int RowFormat::height const Canvas _canvas = 0L  )  const
 

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

Definition at line 2563 of file kspread_format.cc.

bool RowFormat::isDefault  )  const [virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2729 of file kspread_format.cc.

double RowFormat::mmHeight  )  const
 

Returns:
the height in millimeters.

Definition at line 2579 of file kspread_format.cc.

int KSpread::RowFormat::row  )  const [inline]
 

Returns:
the row for this RowFormat. May be 0 if this is the default format.
See also:
row

Definition at line 521 of file kspread_format.h.

void RowFormat::setBottomBorderPen const QPen &  p  )  [virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2686 of file kspread_format.cc.

void RowFormat::setDblHeight double  _h,
const Canvas _canvas = 0L
 

Sets the height to _h zoomed pixels.

Parameters:
_h is calculated in display pixels as double value. The function cares for zooming. Use this function when setting the height, to not get rounding problems.
_canvas is needed to get information about the zooming factor.

Definition at line 2536 of file kspread_format.cc.

void KSpread::RowFormat::setDefault  )  [inline]
 

Use this function to tell this format that it is the default format.

Definition at line 510 of file kspread_format.h.

void RowFormat::setHeight int  _h,
const Canvas _canvas = 0L
 

Sets the height to _h zoomed pixels.

Parameters:
_h is calculated in display pixels as integer value. The function cares for zooming.
_canvas is needed to get information about the zooming factor.

Definition at line 2531 of file kspread_format.cc.

void RowFormat::setHide bool  _hide,
bool  repaint = true
 

Sets the hide flag.

Definition at line 2698 of file kspread_format.cc.

void RowFormat::setMMHeight double  _h  ) 
 

Sets the height.

Parameters:
'_h' is assumed to be a unzoomed millimeter value.

Definition at line 2526 of file kspread_format.cc.

void RowFormat::setTopBorderPen const QPen &  p  )  [virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2664 of file kspread_format.cc.

const QPen & RowFormat::topBorderPen int  col,
int  row
const [virtual]
 

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2651 of file kspread_format.cc.


Member Data Documentation

bool KSpread::RowFormat::m_bDefault [protected]
 

Flag that indicates whether this is the default format.

See also:
isDefault

setDefault

Definition at line 577 of file kspread_format.h.

double KSpread::RowFormat::m_fHeight [protected]
 

Width of the cell in unzoomed points.

Definition at line 569 of file kspread_format.h.

int KSpread::RowFormat::m_iRow [protected]
 

This is the row to which this format belongs.

If this value is 0, then this might be the default format.

See also:
row

Definition at line 584 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