filters

Swinder::FormatAlignment Class Reference

#include <format.h>

Public Member Functions

 FormatAlignment ()
 ~FormatAlignment ()
 FormatAlignment (const FormatAlignment &)
FormatAlignment & operator= (const FormatAlignment &)
FormatAlignment & assign (const FormatAlignment &)
bool isNull () const
unsigned alignX () const
void setAlignX (unsigned xa)
unsigned alignY () const
void setAlignY (unsigned xa)
bool wrap () const
void setWrap (bool w)
unsigned indentLevel () const
void setIndentLevel (unsigned i)
unsigned rotationAngle () const
void setRotationAngle (unsigned r)
bool operator== (const FormatAlignment &f) const
bool operator!= (const FormatAlignment &f) const

Detailed Description

Defines alignment information for cell format.

Class FormatAlignment defines the horizontal and vertical alignment for the text inside a cell.

Definition at line 276 of file kspread/excel/sidewinder/format.h.

Constructor & Destructor Documentation

◆ FormatAlignment() [1/2]

FormatAlignment::FormatAlignment ( )

Creates a default alignment information.

Definition at line 244 of file kspread/excel/sidewinder/format.cpp.

◆ ~FormatAlignment()

FormatAlignment::~FormatAlignment ( )

Destroys the alignment information.

Definition at line 256 of file kspread/excel/sidewinder/format.cpp.

◆ FormatAlignment() [2/2]

FormatAlignment::FormatAlignment ( const FormatAlignment & align)

Creates a copy of alignment information.

Definition at line 262 of file kspread/excel/sidewinder/format.cpp.

Member Function Documentation

◆ alignX()

unsigned FormatAlignment::alignX ( ) const

Returns horizontal alignment.

Possible values are Format::Left, Format::Right and Format::Center.

See also
setAlignX

Definition at line 291 of file kspread/excel/sidewinder/format.cpp.

◆ alignY()

unsigned FormatAlignment::alignY ( ) const

Returns horizontal alignment.

Possible values are Format::Top, Format::Middle and Format::Bottom.

See also
setAlignY

Definition at line 302 of file kspread/excel/sidewinder/format.cpp.

◆ assign()

FormatAlignment & FormatAlignment::assign ( const FormatAlignment & align)

Assigns from another alignment information.

Definition at line 275 of file kspread/excel/sidewinder/format.cpp.

◆ indentLevel()

unsigned FormatAlignment::indentLevel ( ) const

Returns the indentation level.

See also
setIndentLevel

Definition at line 324 of file kspread/excel/sidewinder/format.cpp.

◆ isNull()

bool FormatAlignment::isNull ( ) const

Returns true if it is a default alignment information.

Definition at line 286 of file kspread/excel/sidewinder/format.cpp.

◆ operator!=()

bool FormatAlignment::operator!= ( const FormatAlignment & f) const

Returns true if this alignment is not equal to f; otherwise returns false.

Definition at line 356 of file kspread/excel/sidewinder/format.cpp.

◆ operator=()

FormatAlignment & FormatAlignment::operator= ( const FormatAlignment & align)

Assigns from another alignment information.

Definition at line 269 of file kspread/excel/sidewinder/format.cpp.

◆ operator==()

bool FormatAlignment::operator== ( const FormatAlignment & f) const

Returns true if this alignment is equal to f; otherwise returns false.

Definition at line 346 of file kspread/excel/sidewinder/format.cpp.

◆ rotationAngle()

unsigned FormatAlignment::rotationAngle ( ) const

Returns the text rotation angle.

See also
setRotationAngle

Definition at line 335 of file kspread/excel/sidewinder/format.cpp.

◆ setAlignX()

void FormatAlignment::setAlignX ( unsigned xa)

Sets the horizontal alignment.

See also
alignX

Definition at line 296 of file kspread/excel/sidewinder/format.cpp.

◆ setAlignY()

void FormatAlignment::setAlignY ( unsigned xa)

Sets the horizontal alignment.

See also
alignY

Definition at line 307 of file kspread/excel/sidewinder/format.cpp.

◆ setIndentLevel()

void FormatAlignment::setIndentLevel ( unsigned i)

Sets the indentation level.

See also
indentLevel

Definition at line 329 of file kspread/excel/sidewinder/format.cpp.

◆ setRotationAngle()

void FormatAlignment::setRotationAngle ( unsigned r)

Sets the text rotation angle.

See also
rotationAngle

Definition at line 340 of file kspread/excel/sidewinder/format.cpp.

◆ setWrap()

void FormatAlignment::setWrap ( bool w)

Sets whether the text should be wrapped at right border.

See also
setWrap

Definition at line 318 of file kspread/excel/sidewinder/format.cpp.

◆ wrap()

bool FormatAlignment::wrap ( ) const

Returns true if the text should be wrapped at right border.

See also
setWrap

Definition at line 313 of file kspread/excel/sidewinder/format.cpp.


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