kspread

KSpread::FormatManipulator Class Reference

#include <manipulator.h>

Inheritance diagram for KSpread::FormatManipulator:
KSpread::Manipulator KSpread::Region KSpread::AngleManipulator KSpread::BackgroundColorManipulator KSpread::BorderManipulator KSpread::FontColorManipulator KSpread::FontManipulator KSpread::HorAlignManipulator KSpread::VerAlignManipulator

Public Member Functions

void setProperty (Format::Properties property)
bool isEmpty ()
void setFontFamily (const TQString &font)
void setFontSize (int size)
void setFontBold (uint bold)
void setFontItalic (uint italic)
void setFontStrike (uint strike)
void setFontUnderline (uint underline)
void setAngle (int angle)
void setTextColor (const TQColor &textColor)
void setBackgroundColor (const TQColor &bgColor)
void setTopBorderPen (const TQPen &pen)
void setBottomBorderPen (const TQPen &pen)
void setLeftBorderPen (const TQPen &pen)
void setRightBorderPen (const TQPen &pen)
void setHorizontalPen (const TQPen &pen)
void setVerticalPen (const TQPen &pen)
void setFallDiagonalPen (const TQPen &pen)
void setGoUpDiagonalPen (const TQPen &pen)
void setHorizontalAlignment (Format::Align align)
void setVerticalAlignment (Format::AlignY align)
void setBackgroundBrush (const TQBrush &brush)
void setIndent (double indent)
void setMultiRow (bool multiRow)
void setVerticalText (bool verticalText)
void setDontPrintText (bool dontPrintText)
void setNotProtected (bool notProtected)
void setHideAll (bool hideAll)
void setHideFormula (bool hideFormula)
void setComment (const TQString &comment)
void setPrefix (const TQString &prefix)
void setPostfix (const TQString &postfix)
void setPrecision (int precision)
void setFloatFormat (Format::FloatFormat floatFormat)
void setFloatColor (Format::FloatColor floatColor)
void setFormatType (FormatType formatType)
void setCurrency (int type, const TQString &symbol)
Public Member Functions inherited from KSpread::Manipulator
Sheet * sheet () const
void setSheet (Sheet *sheet)
bool creation ()
void setCreation (bool creation)
bool format ()
void setFormat (bool f)
virtual void execute ()
virtual void unexecute ()
virtual void setArgument (const TQString &, const TQString &)
virtual void setReverse (bool reverse)
void setRegisterUndo (bool registerUndo)
virtual void setName (const TQString &n)
Public Member Functions inherited from KSpread::Region
 Region ()
 Region (const TQPoint &point, Sheet *sheet=0)
 Region (const TQRect &range, Sheet *sheet=0)
 Region (View *view, const TQString &strRegion, Sheet *sheet=0)
 Region (const Region &region)
 Region (int col, int row, Sheet *sheet=0)
 Region (int col, int row, int width, int height, Sheet *sheet=0)
virtual ~Region ()
TQString name (Sheet *originSheet=0) const
Sheet * filterSheetName (TQString &sRegion)
bool isEmpty () const
bool isSingular () const
bool isContiguous () const
bool isValid () const
bool isColumnSelected (uint col=0) const
bool isRowSelected (uint row=0) const
bool isColumnOrRowSelected () const
bool isColumnAffected (uint col) const
bool isRowAffected (uint row) const
bool contains (const TQPoint &point, Sheet *sheet=0) const
Element * add (const TQPoint &point, Sheet *sheet=0)
Element * add (const TQRect &range, Sheet *sheet=0)
Element * add (const Region &region)
void sub (const TQPoint &point)
void sub (const TQRect &range)
void sub (const Region &region)
virtual Element * eor (const TQPoint &point, Sheet *sheet=0)
virtual void clear ()
TQRect boundingRect () const
bool operator== (const Region &region) const
void operator= (const Region &region)
View * view () const
void setView (View *)
ConstIterator constBegin () const
ConstIterator constEnd () const

Protected Member Functions

virtual TQString name () const
virtual bool preProcessing ()
virtual bool process (Element *)
void copyFormat (TQValueList< layoutCell > &list, TQValueList< layoutColumn > &listCol, TQValueList< layoutRow > &listRow)
bool testCondition (RowFormat *)
void doWork (Format *, bool isTop, bool isBottom, bool isLeft, bool isRight)
void prepareCell (Cell *)
Protected Member Functions inherited from KSpread::Manipulator
virtual bool process (Cell *)
virtual bool process (Format *)
virtual bool postProcessing ()
Protected Member Functions inherited from KSpread::Region
TQValueList< Element * > & cells () const
Iterator insert (Iterator iterator, const TQPoint &point, Sheet *, bool multi=true)
Iterator insert (Iterator iterator, const TQRect &range, Sheet *, bool multi=true)
virtual Point * createPoint (const TQPoint &) const
virtual Point * createPoint (const TQString &) const
virtual Point * createPoint (const Point &) const
virtual Range * createRange (const TQRect &) const
virtual Range * createRange (const TQString &) const
virtual Range * createRange (const Range &) const

Additional Inherited Members

Public Types inherited from KSpread::Region
typedef TQValueList< Element * >::Iterator Iterator
typedef TQValueList< Element * >::ConstIterator ConstIterator
Protected Attributes inherited from KSpread::Manipulator
Sheet * m_sheet
TQString m_name
bool m_creation: 1
bool m_reverse: 1
bool m_firstrun: 1
bool m_format: 1
bool m_register: 1

Detailed Description

FormatManipulator.

Definition at line 119 of file manipulator.h.

Constructor & Destructor Documentation

◆ FormatManipulator()

FormatManipulator::FormatManipulator ( )

Definition at line 237 of file manipulator.cpp.

◆ ~FormatManipulator()

FormatManipulator::~FormatManipulator ( )
virtual

Definition at line 251 of file manipulator.cpp.

Member Function Documentation

◆ copyFormat()

void FormatManipulator::copyFormat ( TQValueList< layoutCell > & list,
TQValueList< layoutColumn > & listCol,
TQValueList< layoutRow > & listRow )
protected

Definition at line 424 of file manipulator.cpp.

◆ doWork()

void FormatManipulator::doWork ( Format * format,
bool isTop,
bool isBottom,
bool isLeft,
bool isRight )
protected

Definition at line 580 of file manipulator.cpp.

◆ isEmpty()

bool KSpread::FormatManipulator::isEmpty ( )
inline

Definition at line 126 of file manipulator.h.

◆ name()

virtual TQString KSpread::FormatManipulator::name ( ) const
inlineprotectedvirtual

Reimplemented from KSpread::Manipulator.

Definition at line 174 of file manipulator.h.

◆ prepareCell()

void FormatManipulator::prepareCell ( Cell * cell)
protected

Definition at line 773 of file manipulator.cpp.

◆ preProcessing()

bool FormatManipulator::preProcessing ( )
protectedvirtual

Reimplemented from KSpread::Manipulator.

Definition at line 293 of file manipulator.cpp.

◆ process()

bool FormatManipulator::process ( Element * element)
protectedvirtual

Reimplemented from KSpread::Manipulator.

Definition at line 302 of file manipulator.cpp.

◆ setAngle()

void KSpread::FormatManipulator::setAngle ( int angle)
inline

Definition at line 137 of file manipulator.h.

◆ setBackgroundBrush()

void KSpread::FormatManipulator::setBackgroundBrush ( const TQBrush & brush)
inline

Definition at line 156 of file manipulator.h.

◆ setBackgroundColor()

void KSpread::FormatManipulator::setBackgroundColor ( const TQColor & bgColor)
inline

Definition at line 141 of file manipulator.h.

◆ setBottomBorderPen()

void KSpread::FormatManipulator::setBottomBorderPen ( const TQPen & pen)
inline

Definition at line 144 of file manipulator.h.

◆ setComment()

void KSpread::FormatManipulator::setComment ( const TQString & comment)
inline

Definition at line 164 of file manipulator.h.

◆ setCurrency()

void KSpread::FormatManipulator::setCurrency ( int type,
const TQString & symbol )
inline

Definition at line 171 of file manipulator.h.

◆ setDontPrintText()

void KSpread::FormatManipulator::setDontPrintText ( bool dontPrintText)
inline

Definition at line 160 of file manipulator.h.

◆ setFallDiagonalPen()

void KSpread::FormatManipulator::setFallDiagonalPen ( const TQPen & pen)
inline

Definition at line 149 of file manipulator.h.

◆ setFloatColor()

void KSpread::FormatManipulator::setFloatColor ( Format::FloatColor floatColor)
inline

Definition at line 169 of file manipulator.h.

◆ setFloatFormat()

void KSpread::FormatManipulator::setFloatFormat ( Format::FloatFormat floatFormat)
inline

Definition at line 168 of file manipulator.h.

◆ setFontBold()

void KSpread::FormatManipulator::setFontBold ( uint bold)
inline

Definition at line 132 of file manipulator.h.

◆ setFontFamily()

void KSpread::FormatManipulator::setFontFamily ( const TQString & font)
inline

Definition at line 130 of file manipulator.h.

◆ setFontItalic()

void KSpread::FormatManipulator::setFontItalic ( uint italic)
inline

Definition at line 133 of file manipulator.h.

◆ setFontSize()

void KSpread::FormatManipulator::setFontSize ( int size)
inline

Definition at line 131 of file manipulator.h.

◆ setFontStrike()

void KSpread::FormatManipulator::setFontStrike ( uint strike)
inline

Definition at line 134 of file manipulator.h.

◆ setFontUnderline()

void KSpread::FormatManipulator::setFontUnderline ( uint underline)
inline

Definition at line 135 of file manipulator.h.

◆ setFormatType()

void KSpread::FormatManipulator::setFormatType ( FormatType formatType)
inline

Definition at line 170 of file manipulator.h.

◆ setGoUpDiagonalPen()

void KSpread::FormatManipulator::setGoUpDiagonalPen ( const TQPen & pen)
inline

Definition at line 150 of file manipulator.h.

◆ setHideAll()

void KSpread::FormatManipulator::setHideAll ( bool hideAll)
inline

Definition at line 162 of file manipulator.h.

◆ setHideFormula()

void KSpread::FormatManipulator::setHideFormula ( bool hideFormula)
inline

Definition at line 163 of file manipulator.h.

◆ setHorizontalAlignment()

void KSpread::FormatManipulator::setHorizontalAlignment ( Format::Align align)
inline

Definition at line 152 of file manipulator.h.

◆ setHorizontalPen()

void KSpread::FormatManipulator::setHorizontalPen ( const TQPen & pen)
inline

Definition at line 147 of file manipulator.h.

◆ setIndent()

void KSpread::FormatManipulator::setIndent ( double indent)
inline

Definition at line 157 of file manipulator.h.

◆ setLeftBorderPen()

void KSpread::FormatManipulator::setLeftBorderPen ( const TQPen & pen)
inline

Definition at line 145 of file manipulator.h.

◆ setMultiRow()

void KSpread::FormatManipulator::setMultiRow ( bool multiRow)
inline

Definition at line 158 of file manipulator.h.

◆ setNotProtected()

void KSpread::FormatManipulator::setNotProtected ( bool notProtected)
inline

Definition at line 161 of file manipulator.h.

◆ setPostfix()

void KSpread::FormatManipulator::setPostfix ( const TQString & postfix)
inline

Definition at line 166 of file manipulator.h.

◆ setPrecision()

void KSpread::FormatManipulator::setPrecision ( int precision)
inline

Definition at line 167 of file manipulator.h.

◆ setPrefix()

void KSpread::FormatManipulator::setPrefix ( const TQString & prefix)
inline

Definition at line 165 of file manipulator.h.

◆ setProperty()

void KSpread::FormatManipulator::setProperty ( Format::Properties property)
inline

Definition at line 125 of file manipulator.h.

◆ setRightBorderPen()

void KSpread::FormatManipulator::setRightBorderPen ( const TQPen & pen)
inline

Definition at line 146 of file manipulator.h.

◆ setTextColor()

void KSpread::FormatManipulator::setTextColor ( const TQColor & textColor)
inline

Definition at line 139 of file manipulator.h.

◆ setTopBorderPen()

void KSpread::FormatManipulator::setTopBorderPen ( const TQPen & pen)
inline

Definition at line 143 of file manipulator.h.

◆ setVerticalAlignment()

void KSpread::FormatManipulator::setVerticalAlignment ( Format::AlignY align)
inline

Definition at line 154 of file manipulator.h.

◆ setVerticalPen()

void KSpread::FormatManipulator::setVerticalPen ( const TQPen & pen)
inline

Definition at line 148 of file manipulator.h.

◆ setVerticalText()

void KSpread::FormatManipulator::setVerticalText ( bool verticalText)
inline

Definition at line 159 of file manipulator.h.

◆ testCondition()

bool FormatManipulator::testCondition ( RowFormat * row)
protected

Definition at line 566 of file manipulator.cpp.


The documentation for this class was generated from the following files: