kspread

KSpread::RowFormat Class Reference

Inheritance diagram for KSpread::RowFormat:

KSpread::Format List of all members.

Detailed Description

Definition at line 463 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
bool operator== (const RowFormat &other) const
bool operator!= (const RowFormat &other) 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

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

double RowFormat::mmHeight (  )  const

Returns:
the height in millimeters.

Definition at line 2608 of file kspread_format.cc.

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 2560 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 2565 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 2555 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 517 of file kspread_format.h.

bool RowFormat::isDefault (  )  const [virtual]

Reimplemented from superclass.

Reimplemented from KSpread::Format.

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

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

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2704 of file kspread_format.cc.

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

Reimplemented from superclass.

Reimplemented from KSpread::Format.

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

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

Reimplemented from superclass.

Reimplemented from KSpread::Format.

Definition at line 2695 of file kspread_format.cc.

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

Sets the hide flag.

Definition at line 2729 of file kspread_format.cc.

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

Reimplemented from superclass.

Reimplemented from KSpread::Format.

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


Member Data Documentation

double KSpread::RowFormat::m_fHeight [protected]

Width of the cell in unzoomed points.

Definition at line 579 of file kspread_format.h.

Flag that indicates whether this is the default format.

See also:
isDefault

setDefault

Definition at line 587 of file kspread_format.h.

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 594 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