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