#include <kspread_style.h>
|
| enum | StyleType { BUILTIN
, CUSTOM
, AUTO
, TENTATIVE
} |
| |
| enum | FontFlags { FBold = 0x01
, FUnderline = 0x02
, FItalic = 0x04
, FStrike = 0x08
} |
| |
| enum | Properties {
PDontPrintText = 0x01
, PCustomFormat = 0x02
, PNotProtected = 0x04
, PHideAll = 0x08
,
PHideFormula = 0x10
, PMultiRow = 0x20
, PVerticalText = 0x40
} |
| |
| enum | FlagsSet {
SAlignX = 0x01
, SAlignY = 0x02
, SPrefix = 0x08
, SPostfix = 0x10
,
SLeftBorder = 0x20
, SRightBorder = 0x40
, STopBorder = 0x80
, SBottomBorder = 0x100
,
SFallDiagonal = 0x200
, SGoUpDiagonal = 0x400
, SBackgroundBrush = 0x800
, SFont = 0x1000
,
STextPen = 0x2000
, SBackgroundColor = 0x4000
, SFloatFormat = 0x8000
, SFloatColor = 0x10000
,
SMultiRow = 0x20000
, SVerticalText = 0x40000
, SPrecision = 0x80000
, SFormatType = 0x100000
,
SAngle = 0x200000
, SIndent = 0x800000
, SDontPrintText = 0x1000000
, SCustomFormat = 0x2000000
,
SNotProtected = 0x4000000
, SHideAll = 0x8000000
, SHideFormula = 0x10000000
, SFontSize = 0x20000000
,
SFontFlag = 0x40000000
, SFontFamily = 0x80000000
} |
| |
|
| static FormatType | dateType (const TQString &_format) |
| |
| static FormatType | timeType (const TQString &_format) |
| |
| static FormatType | fractionType (const TQString &_format) |
| |
| static TQString | saveOasisStyleNumeric (KoGenStyle &style, KoGenStyles &mainStyles, FormatType _style, const TQString &_prefix, const TQString &_postfix, int _precision, const TQString &symbol) |
| |
| static TQString | saveOasisStyleNumericDate (KoGenStyles &mainStyles, FormatType _style, const TQString &_prefix, const TQString &_suffix) |
| |
| static TQString | saveOasisStyleNumericFraction (KoGenStyles &mainStyles, FormatType _style, const TQString &_prefix, const TQString _suffix) |
| |
| static TQString | saveOasisStyleNumericTime (KoGenStyles &mainStyles, FormatType _style, const TQString &_prefix, const TQString &_suffix) |
| |
| static TQString | saveOasisStyleNumericCustom (KoGenStyles &mainStyles, FormatType _style, const TQString &_prefix, const TQString &_suffix) |
| |
| static TQString | saveOasisStyleNumericScientific (KoGenStyles &mainStyles, FormatType _style, const TQString &_prefix, const TQString _suffix, int _precision) |
| |
| static TQString | saveOasisStyleNumericPercentage (KoGenStyles &mainStyles, FormatType _style, int _precision, const TQString &_prefix, const TQString &_suffix) |
| |
| static TQString | saveOasisStyleNumericMoney (KoGenStyles &mainStyles, FormatType _style, const TQString &symbol, int _precision, const TQString &_prefix, const TQString &_suffix) |
| |
| static TQString | saveOasisStyleNumericText (KoGenStyles &mainStyles, FormatType _style, int _precision, const TQString &_prefix, const TQString &_suffix) |
| |
| static TQString | saveOasisStyleNumericNumber (KoGenStyles &mainStyles, FormatType _style, int _precision, const TQString &_prefix, const TQString &_suffix) |
| |
| static TQString | saveOasisBackgroundStyle (KoGenStyles &mainStyles, const TQBrush &brush) |
| |
| static TQString | colorName (const TQColor &color) |
| |
The Style class represents a cell style.
Built-in and custom styles, the ones shown in the StyleManager dialog, are CustomStyles. Pure Styles have no name, for instance, and are only used as AUTO styles.
Definition at line 45 of file kspread_style.h.
◆ FlagsSet
◆ FontFlags
| enum KSpread::Style::FontFlags |
◆ Properties
◆ StyleType
The style type.
| Enumerator |
|---|
| BUILTIN | built-in style (the default style)
|
| CUSTOM | custom style (defined in the StyleManager dialog)
|
| AUTO | automatically generated on cell format changes
|
Definition at line 49 of file kspread_style.h.
◆ Style() [1/2]
Constructor.
Creates an empty automatic style.
Definition at line 50 of file kspread_style.cpp.
◆ Style() [2/2]
| Style::Style |
( |
Style * |
style | ) |
|
Constructor.
Creates an automatic style. If style is a custom or built-in style (e.g. the default style), style becomes the parent style. In this case, features are NOT SET. - Parameters
-
| style | The style which features are copied. |
Definition at line 90 of file kspread_style.cpp.
◆ ~Style()
◆ addRef()
Marks this style as used.
The internal reference counter is incremented.
Definition at line 1831 of file kspread_style.cpp.
◆ alignX()
| Format::Align Style::alignX |
( |
| ) |
const |
◆ alignY()
| Format::AlignY Style::alignY |
( |
| ) |
const |
◆ backGroundBrush()
| TQBrush const & Style::backGroundBrush |
( |
| ) |
const |
◆ bgColor()
| TQColor const & Style::bgColor |
( |
| ) |
const |
◆ bottomBorderPen()
| TQPen const & Style::bottomBorderPen |
( |
| ) |
const |
◆ bottomPenValue()
| uint KSpread::Style::bottomPenValue |
( |
| ) |
const |
|
inline |
◆ clearFeature()
◆ clearProperty()
◆ colorName()
| TQString Style::colorName |
( |
const TQColor & |
color | ) |
|
|
static |
Returns the name of a colour.
This is the same as returned by TQColor::name, but an internal cache is used to reduce the overhead when asking for the name of the same colour.
Definition at line 2671 of file kspread_style.cpp.
◆ currency()
| Format::Currency const & Style::currency |
( |
| ) |
const |
◆ dateType()
| FormatType Style::dateType |
( |
const TQString & |
_format | ) |
|
|
static |
◆ fallDiagonalPen()
| TQPen const & Style::fallDiagonalPen |
( |
| ) |
const |
◆ features()
| uint KSpread::Style::features |
( |
| ) |
const |
|
inline |
◆ featureSet()
| bool KSpread::Style::featureSet |
( |
FlagsSet |
f | ) |
const |
|
inlineprotected |
◆ floatColor()
| Format::FloatColor Style::floatColor |
( |
| ) |
const |
◆ floatFormat()
| Format::FloatFormat Style::floatFormat |
( |
| ) |
const |
◆ font()
| TQFont Style::font |
( |
| ) |
const |
◆ fontFamily()
| TQString const & Style::fontFamily |
( |
| ) |
const |
◆ fontFlags()
| uint Style::fontFlags |
( |
| ) |
const |
◆ fontSize()
| int Style::fontSize |
( |
| ) |
const |
◆ formatType()
| FormatType Style::formatType |
( |
| ) |
const |
◆ fractionType()
| FormatType Style::fractionType |
( |
const TQString & |
_format | ) |
|
|
static |
◆ goUpDiagonalPen()
| TQPen const & Style::goUpDiagonalPen |
( |
| ) |
const |
◆ hasFeature()
| bool Style::hasFeature |
( |
FlagsSet |
f, |
|
|
bool |
withoutParent |
|
) |
| const |
◆ hasProperty()
◆ indent()
| double Style::indent |
( |
| ) |
const |
◆ leftBorderPen()
| TQPen const & Style::leftBorderPen |
( |
| ) |
const |
◆ leftPenValue()
| uint KSpread::Style::leftPenValue |
( |
| ) |
const |
|
inline |
◆ loadOasisDataStyle()
| void Style::loadOasisDataStyle |
( |
KoOasisStyles & |
oasisStyles, |
|
|
const TQDomElement & |
styleStack |
|
) |
| |
|
protected |
◆ loadOasisParagraphProperties()
| void Style::loadOasisParagraphProperties |
( |
KoOasisStyles & |
oasisStyles, |
|
|
const KoStyleStack & |
styleStack |
|
) |
| |
|
protected |
◆ loadOasisStyle()
| void Style::loadOasisStyle |
( |
KoOasisStyles & |
oasisStyles, |
|
|
const TQDomElement & |
element |
|
) |
| |
◆ loadOasisTableCellProperties()
| void Style::loadOasisTableCellProperties |
( |
KoOasisStyles & |
oasisStyles, |
|
|
const KoStyleStack & |
styleStack |
|
) |
| |
|
protected |
◆ loadOasisTextProperties()
| void Style::loadOasisTextProperties |
( |
KoOasisStyles & |
oasisStyles, |
|
|
const KoStyleStack & |
styleStack |
|
) |
| |
|
protected |
◆ loadXML()
| bool Style::loadXML |
( |
TQDomElement & |
format | ) |
|
◆ operator!=()
| bool KSpread::Style::operator!= |
( |
const Style & |
other | ) |
const |
|
inline |
◆ operator==()
| bool Style::operator== |
( |
const Style & |
style | ) |
const |
Returns true if both styles have the same properties.
Definition at line 127 of file kspread_style.cpp.
◆ parent()
◆ parentName()
| TQString const & KSpread::Style::parentName |
( |
| ) |
const |
|
inline |
◆ pen()
| TQPen const & Style::pen |
( |
| ) |
const |
◆ postfix()
| TQString const & Style::postfix |
( |
| ) |
const |
◆ precision()
| int Style::precision |
( |
| ) |
const |
◆ prefix()
| TQString const & Style::prefix |
( |
| ) |
const |
◆ release()
Releases this style.
The internal reference counter is decremented. - Returns
- true, if this style is not used anymore and should be deleted.
Definition at line 1818 of file kspread_style.cpp.
◆ rightBorderPen()
| TQPen const & Style::rightBorderPen |
( |
| ) |
const |
◆ rightPenValue()
| uint KSpread::Style::rightPenValue |
( |
| ) |
const |
|
inline |
◆ rotateAngle()
| int Style::rotateAngle |
( |
| ) |
const |
◆ saveOasis()
| TQString Style::saveOasis |
( |
KoGenStyle & |
style, |
|
|
KoGenStyles & |
mainStyles |
|
) |
| |
|
virtual |
◆ saveOasisBackgroundStyle()
| TQString Style::saveOasisBackgroundStyle |
( |
KoGenStyles & |
mainStyles, |
|
|
const TQBrush & |
brush |
|
) |
| |
|
static |
◆ saveOasisStyle()
| void Style::saveOasisStyle |
( |
KoGenStyle & |
style, |
|
|
KoGenStyles & |
mainStyles |
|
) |
| |
|
protected |
Helper function for saveOasis Does the real work by determining the used attributes.
Definition at line 1123 of file kspread_style.cpp.
◆ saveOasisStyleNumeric()
| TQString Style::saveOasisStyleNumeric |
( |
KoGenStyle & |
style, |
|
|
KoGenStyles & |
mainStyles, |
|
|
FormatType |
_style, |
|
|
const TQString & |
_prefix, |
|
|
const TQString & |
_postfix, |
|
|
int |
_precision, |
|
|
const TQString & |
symbol |
|
) |
| |
|
static |
- Returns
- the name of the data style (number, currency, percentage, date, boolean, text)
Definition at line 696 of file kspread_style.cpp.
◆ saveOasisStyleNumericCustom()
| TQString Style::saveOasisStyleNumericCustom |
( |
KoGenStyles & |
mainStyles, |
|
|
FormatType |
_style, |
|
|
const TQString & |
_prefix, |
|
|
const TQString & |
_suffix |
|
) |
| |
|
static |
◆ saveOasisStyleNumericDate()
| TQString Style::saveOasisStyleNumericDate |
( |
KoGenStyles & |
mainStyles, |
|
|
FormatType |
_style, |
|
|
const TQString & |
_prefix, |
|
|
const TQString & |
_suffix |
|
) |
| |
|
static |
◆ saveOasisStyleNumericFraction()
| TQString Style::saveOasisStyleNumericFraction |
( |
KoGenStyles & |
mainStyles, |
|
|
FormatType |
_style, |
|
|
const TQString & |
_prefix, |
|
|
const TQString |
_suffix |
|
) |
| |
|
static |
◆ saveOasisStyleNumericMoney()
| TQString Style::saveOasisStyleNumericMoney |
( |
KoGenStyles & |
mainStyles, |
|
|
FormatType |
_style, |
|
|
const TQString & |
symbol, |
|
|
int |
_precision, |
|
|
const TQString & |
_prefix, |
|
|
const TQString & |
_suffix |
|
) |
| |
|
static |
◆ saveOasisStyleNumericNumber()
| TQString Style::saveOasisStyleNumericNumber |
( |
KoGenStyles & |
mainStyles, |
|
|
FormatType |
_style, |
|
|
int |
_precision, |
|
|
const TQString & |
_prefix, |
|
|
const TQString & |
_suffix |
|
) |
| |
|
static |
◆ saveOasisStyleNumericPercentage()
| TQString Style::saveOasisStyleNumericPercentage |
( |
KoGenStyles & |
mainStyles, |
|
|
FormatType |
_style, |
|
|
int |
_precision, |
|
|
const TQString & |
_prefix, |
|
|
const TQString & |
_suffix |
|
) |
| |
|
static |
◆ saveOasisStyleNumericScientific()
| TQString Style::saveOasisStyleNumericScientific |
( |
KoGenStyles & |
mainStyles, |
|
|
FormatType |
_style, |
|
|
const TQString & |
_prefix, |
|
|
const TQString |
_suffix, |
|
|
int |
_precision |
|
) |
| |
|
static |
◆ saveOasisStyleNumericText()
| TQString Style::saveOasisStyleNumericText |
( |
KoGenStyles & |
mainStyles, |
|
|
FormatType |
_style, |
|
|
int |
_precision, |
|
|
const TQString & |
_prefix, |
|
|
const TQString & |
_suffix |
|
) |
| |
|
static |
◆ saveOasisStyleNumericTime()
| TQString Style::saveOasisStyleNumericTime |
( |
KoGenStyles & |
mainStyles, |
|
|
FormatType |
_style, |
|
|
const TQString & |
_prefix, |
|
|
const TQString & |
_suffix |
|
) |
| |
|
static |
◆ saveXML()
| void Style::saveXML |
( |
TQDomDocument & |
doc, |
|
|
TQDomElement & |
format |
|
) |
| const |
◆ setAlignX()
| Style * Style::setAlignX |
( |
Format::Align |
alignX | ) |
|
◆ setAlignY()
| Style * Style::setAlignY |
( |
Format::AlignY |
alignY | ) |
|
◆ setBackGroundBrush()
| Style * Style::setBackGroundBrush |
( |
TQBrush const & |
brush | ) |
|
◆ setBgColor()
| Style * Style::setBgColor |
( |
TQColor const & |
color | ) |
|
◆ setBottomBorderPen()
| Style * Style::setBottomBorderPen |
( |
TQPen const & |
pen | ) |
|
◆ setCurrency()
| Style * Style::setCurrency |
( |
Format::Currency const & |
currency | ) |
|
◆ setFallDiagonalPen()
| Style * Style::setFallDiagonalPen |
( |
TQPen const & |
pen | ) |
|
◆ setFloatColor()
| Style * Style::setFloatColor |
( |
Format::FloatColor |
color | ) |
|
◆ setFloatFormat()
| Style * Style::setFloatFormat |
( |
Format::FloatFormat |
format | ) |
|
◆ setFont()
| Style * Style::setFont |
( |
TQFont const & |
f | ) |
|
◆ setFontFamily()
| Style * Style::setFontFamily |
( |
TQString const & |
fam | ) |
|
◆ setFontFlags()
| Style * Style::setFontFlags |
( |
uint |
flags | ) |
|
◆ setFontSize()
| Style * Style::setFontSize |
( |
int |
size | ) |
|
◆ setFormatType()
| Style * Style::setFormatType |
( |
FormatType |
format | ) |
|
◆ setGoUpDiagonalPen()
| Style * Style::setGoUpDiagonalPen |
( |
TQPen const & |
pen | ) |
|
◆ setIndent()
| Style * Style::setIndent |
( |
double |
indent | ) |
|
◆ setLeftBorderPen()
| Style * Style::setLeftBorderPen |
( |
TQPen const & |
pen | ) |
|
◆ setParent()
◆ setPen()
| Style * Style::setPen |
( |
TQPen const & |
pen | ) |
|
◆ setPostfix()
| Style * Style::setPostfix |
( |
TQString const & |
postfix | ) |
|
◆ setPrecision()
| Style * Style::setPrecision |
( |
int |
precision | ) |
|
◆ setPrefix()
| Style * Style::setPrefix |
( |
TQString const & |
prefix | ) |
|
◆ setProperty()
◆ setRightBorderPen()
| Style * Style::setRightBorderPen |
( |
TQPen const & |
pen | ) |
|
◆ setRotateAngle()
| Style * Style::setRotateAngle |
( |
int |
angle | ) |
|
◆ setStrFormat()
| Style * Style::setStrFormat |
( |
TQString const & |
strFormat | ) |
|
◆ setTopBorderPen()
| Style * Style::setTopBorderPen |
( |
TQPen const & |
pen | ) |
|
◆ strFormat()
| TQString const & Style::strFormat |
( |
| ) |
const |
◆ timeType()
| FormatType Style::timeType |
( |
const TQString & |
_format | ) |
|
|
static |
◆ topBorderPen()
| TQPen const & Style::topBorderPen |
( |
| ) |
const |
◆ topPenValue()
| uint KSpread::Style::topPenValue |
( |
| ) |
const |
|
inline |
◆ type()
◆ usage()
| int KSpread::Style::usage |
( |
| ) |
const |
|
inline |
- Returns
- the number of references to this style.
Definition at line 195 of file kspread_style.h.
◆ m_alignX
| Format::Align KSpread::Style::m_alignX |
|
protected |
◆ m_alignY
| Format::AlignY KSpread::Style::m_alignY |
|
protected |
Aligment of the text at top middle or bottom.
Definition at line 299 of file kspread_style.h.
◆ m_backGroundBrush
| TQBrush KSpread::Style::m_backGroundBrush |
|
protected |
◆ m_bgColor
| TQColor KSpread::Style::m_bgColor |
|
protected |
◆ m_bottomBorderPen
| TQPen KSpread::Style::m_bottomBorderPen |
|
protected |
◆ m_bottomPenValue
| uint KSpread::Style::m_bottomPenValue |
|
protected |
◆ m_currency
| Format::Currency KSpread::Style::m_currency |
|
protected |
Currency information: about which currency from which country.
Definition at line 387 of file kspread_style.h.
◆ m_fallDiagonalPen
| TQPen KSpread::Style::m_fallDiagonalPen |
|
protected |
◆ m_featuresSet
| uint KSpread::Style::m_featuresSet |
|
protected |
◆ m_floatColor
| Format::FloatColor KSpread::Style::m_floatColor |
|
protected |
The color format of a floating point value.
Definition at line 305 of file kspread_style.h.
◆ m_floatFormat
| Format::FloatFormat KSpread::Style::m_floatFormat |
|
protected |
◆ m_fontFamily
| TQString KSpread::Style::m_fontFamily |
|
protected |
◆ m_fontFlags
| uint KSpread::Style::m_fontFlags |
|
protected |
◆ m_fontSize
| int KSpread::Style::m_fontSize |
|
protected |
◆ m_formatType
| FormatType KSpread::Style::m_formatType |
|
protected |
◆ m_goUpDiagonalPen
| TQPen KSpread::Style::m_goUpDiagonalPen |
|
protected |
The pen used to draw the the diagonal which go up.
Definition at line 352 of file kspread_style.h.
◆ m_indent
| double KSpread::Style::m_indent |
|
protected |
◆ m_leftBorderPen
| TQPen KSpread::Style::m_leftBorderPen |
|
protected |
◆ m_leftPenValue
| uint KSpread::Style::m_leftPenValue |
|
protected |
◆ m_parent
◆ m_parentName
| TQString KSpread::Style::m_parentName |
|
protected |
◆ m_postfix
| TQString KSpread::Style::m_postfix |
|
protected |
The postfix of a numeric value ( for example "DM" ) May be empty.
Definition at line 382 of file kspread_style.h.
◆ m_precision
| int KSpread::Style::m_precision |
|
protected |
The precision of the floating point representation If precision is -1, this means that no precision is specified.
Definition at line 372 of file kspread_style.h.
◆ m_prefix
| TQString KSpread::Style::m_prefix |
|
protected |
The prefix of a numeric value ( for example "$" ) May be empty.
Definition at line 377 of file kspread_style.h.
◆ m_properties
| uint KSpread::Style::m_properties |
|
protected |
Stores information like: DonPrint, DontShowFormula, Protected...
Definition at line 392 of file kspread_style.h.
◆ m_rightBorderPen
| TQPen KSpread::Style::m_rightBorderPen |
|
protected |
◆ m_rightPenValue
| uint KSpread::Style::m_rightPenValue |
|
protected |
◆ m_rotateAngle
| int KSpread::Style::m_rotateAngle |
|
protected |
◆ m_strFormat
| TQString KSpread::Style::m_strFormat |
|
protected |
Format of the content, e.g.
#.##0.00, dd/mmm/yyyy,...
Definition at line 367 of file kspread_style.h.
◆ m_textPen
| TQPen KSpread::Style::m_textPen |
|
protected |
◆ m_topBorderPen
| TQPen KSpread::Style::m_topBorderPen |
|
protected |
◆ m_topPenValue
| uint KSpread::Style::m_topPenValue |
|
protected |
◆ m_type
◆ m_usageCount
| uint KSpread::Style::m_usageCount |
|
protected |
The documentation for this class was generated from the following files:
|