20 #ifndef INCLUDED_SC_SOURCE_FILTER_INC_XLSTYLE_HXX
21 #define INCLUDED_SC_SOURCE_FILTER_INC_XLSTYLE_HXX
24 #include <com/sun/star/awt/FontSlant.hpp>
411 sal_Int16 nScript = -1 );
417 bool bHasWstrn,
bool bHasAsian,
bool bHasCmplx,
418 const Color* pFontColor );
463 void InsertFormat( sal_uInt16 nXclNumFmt,
const OUString& rFormat );
XclFontPropSetType
Enumerates different types for objects with font settings (using different property names)...
sal_uInt16 mnBottomColor
Palette index for top line.
void FillFromVclFont(const vcl::Font &rFont)
Fills all members (except color and escapement) from the passed font.
sal_uInt8 mnTopLine
Style of right line.
bool mbShrink
true = Multi-line text.
bool mbAreaUsed
true = border data used.
const sal_uInt8 EXC_XF_VER_CENTER
const sal_uInt8 EXC_XF_HOR_JUSTIFY
const sal_uInt8 EXC_XF_HOR_CENTER
bool mbDiagBLtoTR
true = Top-left to bottom-right on.
sal_uInt32 GetStdScNumFmt() const
Returns the core index of the current standard number format.
sal_uInt8 mnCharSet
Windows font family.
const sal_uInt8 EXC_XF_TEXTDIR_CONTEXT
const sal_uInt16 EXC_FONTWGHT_THIN
sal_uInt16 mnDiagColor
Palette index for bottom line.
sal_uInt8 mnOrient
Vertical alignment.
bool mbShadow
true = Outlined.
const sal_uInt16 EXC_XF_LINEBREAK
Styles don't have a parent.
void SetAllUsedFlags(bool bUsed)
Sets all "attribute used" flags to the passed state.
const sal_uInt16 EXC_XF_DEFAULTCELL
Excel index to default style XF.
const sal_uInt8 EXC_XF_HOR_DISTRIB
const sal_uInt8 EXC_XF_DIFF_VALFMT
Shrink to fit into cell.
const sal_uInt8 EXC_PATT_6_25_PERC
const sal_uInt16 EXC_ID_STYLEEXT
Default value for unused level.
css::awt::FontSlant GetApiPosture() const
Returns the API font posture.
sal_Int16 GetApiFontEncoding() const
Returns the API font text encoding.
const sal_uInt16 EXC_XF_LOCKED
bool mbDiagTLtoBR
Style of diagonal line(s).
const sal_uInt32 mnStdScNumFmt
Current system language.
Color mnNoteBack
Note text color.
const sal_uInt16 EXC_STYLE_XFMASK
const sal_uInt16 EXC_COLOR_BUTTONBACK
System window background color (>=BIFF5).
const sal_uInt8 EXC_LINE_MEDIUM_DASHDOTDOT
const sal_uInt8 EXC_LINE_DOTTED
const XclNumFmtMap & GetFormatMap() const
Returns the current number format map.
ScfPropSetHelper maHlpChCommon
const sal_uInt8 EXC_XF_HOR_RIGHT
Color mnNoteText
System button background color.
bool mbCellXF
Index to parent style XF.
sal_Int16 GetApiEscapement() const
Returns the API escapement style.
This struct helps reading and writing Excel fonts.
const size_t EXC_FONT_MAXCOUNT4
sal_uInt8 mnRightLine
Style of left line.
SvxEscapement GetScEscapement() const
Returns the Calc escapement style.
const sal_uInt16 EXC_COLOR_NOTEBACK
Automatic frame border for series (BIFF8 charts).
ScfPropSetHelper maHlpChCmplx
Chart properties for Asian script.
const sal_uInt16 EXC_XF8_MERGE
Shrink to fit into cell.
const sal_uInt8 EXC_LINE_THIN_DASHDOTDOT
bool mbFmtUsed
true = font index used.
XclFontData()
true = Shadowed.
Stores all default colors for a specific BIFF version.
const Color * mpnColorTable
sal_uInt16 mnHeight
Font color.
const sal_uInt16 EXC_XF_NOTFOUND
Excel index to default cell XF.
const sal_uInt16 EXC_FONTATTR_UNDERLINE
rtl_TextEncoding GetFontEncoding() const
Returns the font text encoding.
const sal_uInt16 EXC_FONTWGHT_DONTKNOW
ScfPropSetHelper maHlpChEscapement
Chart properties for Complex script, no font name.
Use Calc Which-IDs (ATTR_*).
const sal_uInt8 EXC_XF_VER_JUSTIFY
const sal_uInt16 EXC_FONTWGHT_SEMILIGHT
const sal_uInt8 EXC_FONTFAM_SWISS
const sal_uInt16 EXC_COLOR_USEROFFSET
sal_uInt32 GetColorCount() const
Returns the color count in the current palette.
const sal_uInt16 EXC_FONTATTR_ITALIC
const sal_uInt8 EXC_STYLE_USERDEF
"Followed_Hyperlink" style.
void SetScFrameDir(SvxFrameDirection eFrameDir)
Sets the Calc frame direction.
const sal_uInt8 EXC_STYLE_COMMA_0
"Percent" style.
const sal_uInt16 EXC_FONTWGHT_LIGHT
sal_uInt32 mnTableSize
Note background color.
SvxCellVerJustify GetScVerAlign() const
Returns the Calc vertical alignment.
FontItalic GetScPosture() const
Returns the Calc font posture.
const sal_uInt8 EXC_XF_HOR_GENERAL
const sal_uInt8 EXC_PATT_25_PERC
const sal_uInt16 EXC_FORMAT_NOTFOUND
const sal_uInt8 EXC_LINE_THIN
const sal_uInt16 EXC_FONTESC_SUB
const sal_uInt8 EXC_LINE_HAIR
const sal_uInt16 EXC_COLOR_BIFF2_BLACK
const sal_uInt8 EXC_STYLE_CURRENCY
"Comma" style.
const sal_uInt16 EXC_FONTWGHT_BOLD
SvxCellJustifyMethod GetScVerJustifyMethod() const
Returns vertical justification method as Calc's attribute.
const sal_uInt8 EXC_FONTFAM_ROMAN
::std::map< sal_uInt16, XclNumFmt > XclNumFmtMap
const sal_uInt16 EXC_FONT_APP
void SetApiWeight(float fApiWeight)
Sets the API font weight.
Helper class for usage of property sets.
const sal_uInt16 EXC_FONT_NOTFOUND
Application font index.
const sal_uInt16 EXC_COLOR_NOTETEXT
Note background color.
const sal_uInt8 EXC_PATT_75_PERC
const sal_uInt16 EXC_FONTWGHT_BLACK
const sal_uInt8 EXC_LINE_MEDIUM_SLANT_DASHDOT
ScfPropSetHelper maHlpControl
Chart properties for font escapement.
bool mbOutline
true = Struck out.
const size_t EXC_FONT_MAXCOUNT8
sal_uInt16 mnBackColor
Palette index to foreground color.
bool IsStyleXF() const
Returns true, if this is a cell style.
XclCellArea()
Fill pattern.
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)
const sal_uInt16 EXC_FONTESC_NONE
const sal_uInt16 EXC_FONTWGHT_MEDIUM
const sal_uInt8 EXC_XF_DIFF_ALIGN
void SetScWeight(FontWeight eScWeight)
Sets the Calc font weight.
LanguageType meLanguage
SvNumberFormatter format index, if maFormat is empty.
sal_uInt8 mnDiagLine
Style of bottom line.
sal_uInt16 mnRightColor
Palette index for left line.
void SetApiPosture(css::awt::FontSlant eApiPosture)
Sets the API font posture.
sal_uInt16 mnTopColor
Palette index for right line.
bool mbItalic
Underline style.
bool IsCellXF() const
Returns true, if this is a hard cell format.
const sal_uInt32 EXC_XF_MAXCOUNT
const sal_uInt16 EXC_COLOR_WINDOWTEXT3
First user defined color.
const sal_uInt8 EXC_PATT_12_5_PERC
void InsertBuiltinFormats()
Inserts built-in number formats for the current system language.
const sal_uInt8 EXC_STYLE_ROWLEVEL
"Normal" style.
const sal_uInt8 EXC_STYLE_HYPERLINK
"Currency [0]" style.
Color mnWindowBack
System window text color.
const sal_uInt8 EXC_FONTFAM_SCRIPT
const sal_uInt8 EXC_STYLEEXT_HIDDEN
bool mbFontUsed
true = cell protection used.
const sal_uInt8 EXC_XF2_LEFTLINE
bool mbAlignUsed
true = number format used.
sal_uInt8 mnVerAlign
Horizontal alignment.
const sal_uInt16 EXC_ID_EFONT
Both.
const sal_uInt16 EXC_XF_STYLEPARENT
const sal_uInt8 EXC_LINE_DASHED
ScfPropSetHelper maHlpChAsian
Chart properties for Western script.
NfIndexTableOffset meOffset
Format string, may be empty (meOffset used then).
FontWeight GetScWeight() const
Returns the Calc font weight.
XclFontItemType
Enumerates different types of Which-IDs for font items.
XclNumFmtBuffer(const XclRoot &rRoot)
const sal_uInt8 EXC_STYLE_PERCENT
"Currency" style.
sal_uInt16 mnEscapem
Boldness: 400=normal, 700=bold.
void SetScEscapement(short nScEscapem)
Sets the Calc escapement style.
bool IsTransparent() const
Returns true, if the area represents transparent state.
const sal_uInt8 EXC_XF_HOR_FILL
const sal_uInt16 EXC_FONTWGHT_ULTRABOLD
FontStrikeout GetScStrikeout() const
Returns the Calc strike-out style.
const sal_uInt16 EXC_ID2_FORMAT
OUString maStyle
Font name.
void SetScVerAlign(SvxCellVerJustify eVerJust)
Sets the Calc vertical alignment.
sal_uInt8 mnUnderline
Windows character set.
ScfPropSetHelper maHlpChWstrnNoName
Chart properties for Complex script.
const sal_uInt16 EXC_FONTATTR_BOLD
const sal_uInt8 EXC_FONTUNDERL_DOUBLE_ACC
Contains all cell protection attributes.
Contains all cell alignment attributes.
const sal_uInt8 EXC_XF_DIFF_PROT
const sal_uInt16 EXC_COLOR_WINDOWTEXT
System window background color (BIFF3-BIFF4).
float GetApiWeight() const
Returns the API font weight.
void SetApiStrikeout(sal_Int16 nApiStrikeout)
Sets the API font strike-out style.
SvxCellJustifyMethod GetScHorJustifyMethod() const
Returns horizontal justification method as Calc's attribute.
const sal_uInt16 EXC_COLOR_CHWINDOWTEXT
System button background color (face color).
const sal_uInt8 EXC_LINE_MEDIUM_DASHED
const sal_uInt32 EXC_XF_DIAGONAL_TL_TO_BR
Color GetDefColor(sal_uInt16 nXclIndex) const
Returns the default color for a (non-zero-based) Excel color or COL_AUTO on error.
const sal_uInt8 EXC_STYLE_LEVELCOUNT
No built-in style.
const sal_uInt8 EXC_FONTFAM_DECORATIVE
const sal_uInt8 EXC_LINE_DOUBLE
const sal_uInt8 EXC_XF2_VALFMT_MASK
XclCellAlign()
true = Shrink to fit cell size.
const sal_uInt8 EXC_XF2_BACKGROUND
const sal_uInt8 EXC_XF2_TOPLINE
const sal_uInt8 EXC_STYLEEXT_BUILTIN
const sal_uInt8 EXC_XF2_HIDDEN
const sal_uInt32 EXC_XF_DIAGONAL_BOTH
Bottom-left to top-right.
const sal_uInt8 EXC_XF_DIFF_FONT
const sal_uInt8 EXC_XF_DIFF_AREA
void SetApiHeight(float fPoint)
Sets the API font height.
const sal_uInt16 EXC_STYLE_BUILTIN
const sal_uInt8 EXC_XF_VER_TOP
const sal_uInt16 EXC_ID_STYLE
Font auto color (system window text color).
bool mbLineBreak
Indentation.
const sal_uInt16 EXC_ID3_XF
const sal_uInt8 EXC_XF_HOR_CENTER_AS
const sal_uInt16 EXC_FORMAT_OFFSET8
const sal_uInt32 EXC_XF_MAXSTYLECOUNT
Maximum number of all XF records.
const sal_uInt8 EXC_STYLE_NOLEVEL
Number of outline level styles.
const sal_uInt8 EXC_XF_HOR_LEFT
bool IsSystemColor(sal_uInt16 nXclIndex) const
Returns true, if the passed Excel color index is a system color.
sal_uInt8 mnPattern
Palette index to background color.
const sal_uInt8 EXC_FONTUNDERL_SINGLE
const size_t EXC_FONT_MAXCOUNT5
void SetScUnderline(FontLineStyle eScUnderl)
Sets the Calc underline style.
const sal_uInt16 EXC_FONTWGHT_NORMAL
ScfPropSetHelper maHlpChAsianNoName
Chart properties for Western script, no font name.
sal_uInt8 mnLeftLine
Palette index for diagonal line(s).
void SetScFamily(FontFamily eScFamily)
Sets the Calc font family.
const sal_uInt16 EXC_ID4_FORMAT
const sal_uInt8 EXC_XF_DIFF_BORDER
const sal_uInt8 EXC_STYLE_COLLEVEL
"RowLevel_*" styles.
const sal_uInt16 EXC_FONTWGHT_ULTRALIGHT
sal_uInt8 mnTextDir
Text orientation.
const sal_uInt8 EXC_STYLE_NORMAL
const sal_uInt32 EXC_XFID_NOTFOUND
Special index for "not found" state.
void ReadFontProperties(XclFontData &rFontData, const ScfPropertySet &rPropSet, XclFontPropSetType eType, sal_Int16 nScript=-1)
Reads all font properties from the passed property set.
Contains color and line style for each cell border line.
const sal_uInt16 EXC_ID3_FONT
void SetApiEscapement(sal_Int16 nApiEscapem)
Sets the API escapement style.
const sal_uInt16 EXC_FONTESC_SUPER
const sal_uInt16 EXC_ID4_XF
const sal_uInt16 EXC_COLOR_FONTAUTO
Note text color.
const sal_uInt8 EXC_STYLE_CURRENCY_0
"Comma [0]" style.
const sal_uInt16 EXC_FONTATTR_STRIKEOUT
A wrapper for a UNO property set.
const sal_uInt16 EXC_COLOR_CHBORDERAUTO
System window background color (BIFF8 charts).
const sal_uInt16 EXC_COLOR_WINDOWBACK3
System window text color (BIFF3-BIFF4).
sal_uInt8 mnBottomLine
Style of top line.
FontLineStyle GetScUnderline() const
Returns the Calc font underline style.
const sal_uInt8 EXC_FONTFAM_SYSTEM
const sal_uInt16 EXC_XF_STYLE
const sal_uInt8 EXC_FONTCSET_ANSI_LATIN
void SetScHeight(sal_Int32 nTwips)
Sets the Calc font height (in twips).
const sal_uInt16 EXC_ID_PALETTE
float GetApiHeight() const
Returns the API font height.
const sal_uInt8 EXC_XF_VER_BOTTOM
const sal_uInt16 EXC_FONTATTR_OUTLINE
const sal_uInt16 EXC_FONTATTR_SHADOW
const sal_uInt8 EXC_STYLE_FOLLOWED_HYPERLINK
"Hyperlink" style.
void SetScPosture(FontItalic eScPosture)
Sets the Calc font posture.
const sal_uInt8 EXC_PATT_SOLID
const sal_uInt16 EXC_COLOR_BIFF2_WHITE
const sal_uInt8 EXC_LINE_MEDIUM_DASHDOT
void InitializeImport()
Clears all buffered data, used to set up for a new sheet.
const sal_uInt8 EXC_LINE_NONE
SvxFrameDirection GetScFrameDir() const
Returns the Calc frame direction.
const sal_uInt8 EXC_XF2_LOCKED
sal_uInt8 mnFamily
Escapement type.
const sal_uInt8 EXC_PATT_50_PERC
const sal_uInt16 EXC_COLOR_CHWINDOWBACK
System window text color (BIFF8 charts).
bool HasUsedFlags() const
Returns true, if any "attribute used" flags are ste in this XF.
const sal_uInt16 EXC_FONTWGHT_SEMIBOLD
const sal_uInt16 EXC_FORMAT_OFFSET5
sal_uInt16 mnWeight
Font height in twips (1/20 of a point).
const sal_uInt8 EXC_LINE_MEDIUM
void SetApiUnderline(sal_Int16 nApiUnderl)
Sets the API font underline style.
void SetApiFamily(sal_Int16 nApiFamily)
Sets the API font family.
const sal_uInt8 EXC_XF2_BOTTOMLINE
sal_Int16 GetApiFamily() const
Returns the API font family.
void SetFontEncoding(rtl_TextEncoding eFontEnc)
Sets the font text encoding.
const sal_uInt8 EXC_FONTUNDERL_SINGLE_ACC
Contains background colors and pattern for a cell.
void SetScStrikeout(FontStrikeout eScStrikeout)
Sets the Calc strike-out style.
sal_uInt8 mnIndent
Text rotation angle.
const sal_uInt8 EXC_FONTUNDERL_NONE
bool mbHidden
true = Locked against editing.
FontFamily GetScFamily(rtl_TextEncoding eDefTextEnc) const
Returns the Calc font family.
const sal_uInt32 EXC_XF_DIAGONAL_BL_TO_TR
Top-left to bottom-right.
const sal_uInt16 EXC_COLOR_WINDOWBACK
System window text color (>=BIFF5).
XclCellProt()
true = Formula is hidden.
void FillFromSvxFont(const SvxFont &rFont)
Fills all members (except color) from the passed SVX font.
bool Equals(const XclXFBase &rCmp) const
Returns true, if this object is equal to the passed.
bool mbProtUsed
true = cell XF, false = style XF.
const sal_uInt16 EXC_ID2_FONT
Color mnWindowText
The table with RGB values.
const sal_uInt16 EXC_ID2_XF
const sal_uInt16 EXC_FONTATTR_NONE
const sal_uInt8 EXC_PATT_NONE
const sal_uInt8 EXC_XF_VER_DISTRIB
void SetScHorAlign(SvxCellHorJustify eHorJust)
Sets the Calc horizontal alignment.
const sal_uInt8 EXC_XF_TEXTDIR_LTR
const sal_uInt16 EXC_XF_SHRINK
Automatic line break.
ScfPropSetHelper maHlpChCmplxNoName
Chart properties for Asian script, no font name.
const sal_uInt8 EXC_LINE_THIN_DASHDOT
sal_Int16 GetApiUnderline() const
Returns the API font underline style.
void Clear()
Resets all members to default (empty) values.
const sal_uInt16 EXC_ID5_XF
Color maColor
String with styles (bold, italic).
Color mnFaceColor
System window background color.
sal_uInt8 mnRotation
CTL text direction.
XclCellBorder()
true = Bottom-left to top-right on.
const sal_uInt16 EXC_XF8_SHRINK
const LanguageType meSysLang
Map containing all default and user-defined formats.
const sal_uInt8 EXC_STYLEEXT_CUSTOM
const sal_uInt16 EXC_XF_HIDDEN
void WriteFontProperties(ScfPropertySet &rPropSet, XclFontPropSetType eType, const XclFontData &rFontData, bool bHasWstrn, bool bHasAsian, bool bHasCmplx, const Color *pFontColor)
Writes all font properties to the passed property set, uses passed color as font color.
const sal_uInt8 EXC_LINE_THICK
ScfPropSetHelper maHlpChWstrn
Chart properties for all scripts.
bool mbBorderUsed
true = alignment used.
Generic helper class for reading from and writing to property sets.
void InsertFormat(sal_uInt16 nXclNumFmt, const OUString &rFormat)
Inserts a new number format for the specified Excel format index.
const sal_uInt8 EXC_FONTUNDERL_DOUBLE
bool mbStrikeout
true = Italic.
Access to global data for a filter object (imported or exported document) from other classes...
XclDefaultPalette(const XclRoot &rRoot)
const sal_uInt8 EXC_XF_TEXTDIR_RTL
Contains base members for XF record import/export.
const sal_uInt16 EXC_XF_DEFAULTSTYLE
Arbitrary maximum number of style XFs.
const sal_uInt8 EXC_STYLE_COMMA
"ColLevel_*" styles.
SvxCellHorJustify GetScHorAlign() const
Returns the Calc horizontal alignment.
All text objects in charts.
ScfPropSetHelper & GetChartHelper(sal_Int16 nScript)
Returns a chart property set helper according to the passed script type.
const sal_uInt8 EXC_XF2_RIGHTLINE
sal_Int16 GetApiStrikeout() const
Returns the API font strike-out style.
const sal_uInt8 EXC_FONTFAM_DONTKNOW
XclXFBase & operator=(XclXFBase const &)=default
const sal_uInt8 EXC_FONTFAM_MODERN