21#include <com/sun/star/awt/FontFamily.hpp>
22#include <com/sun/star/awt/FontSlant.hpp>
23#include <com/sun/star/awt/FontStrikeout.hpp>
24#include <com/sun/star/awt/FontUnderline.hpp>
25#include <com/sun/star/i18n/ScriptType.hpp>
28#include <vcl/font.hxx>
31#include <rtl/tencinfo.h>
43#define EXC_PALETTE_EGA_COLORS_LIGHT \
44 Color(0x000000), Color(0xFFFFFF), Color(0xFF0000), Color(0x00FF00), Color(0x0000FF), Color(0xFFFF00), Color(0xFF00FF), Color(0x00FFFF)
46#define EXC_PALETTE_EGA_COLORS_DARK \
47 Color(0x800000), Color(0x008000), Color(0x000080), Color(0x808000), Color(0x800080), Color(0x008080), Color(0xC0C0C0), Color(0x808080)
89#undef EXC_PALETTE_EGA_COLORS_LIGHT
90#undef EXC_PALETTE_EGA_COLORS_DARK
93 mpnColorTable( nullptr ),
145 else switch( nXclIndex )
159 SAL_WARN(
"sc",
"XclDefaultPalette::GetDefColor - unknown default color index: " << nXclIndex );
167namespace Awt = ::com::sun::star::awt;
168namespace AwtFontFamily = Awt::FontFamily;
169namespace AwtFontLineStyle = Awt::FontUnderline;
170namespace AwtFontStrikeout = Awt::FontStrikeout;
241 ((eDefTextEnc == RTL_TEXTENCODING_APPLE_ROMAN) &&
242 (
maName.equalsIgnoreAsciiCase(
"Geneva" ) ||
maName.equalsIgnoreAsciiCase(
"Chicago" ))) ?
251 return rtl_getTextEncodingFromWindowsCharset(
mnCharSet );
309 mnHeight =
static_cast< sal_uInt16
>( ::std::min( nTwips,
static_cast<sal_Int32
>(0x7FFFL) ) );
324 OSL_FAIL(
"XclFontData::SetScFamily - unknown font family" );
332 mnCharSet = rtl_getBestWindowsCharsetFromTextEncoding( eFontEnc );
375 else if( nScEscapem < 0 )
398 sal_Int16 nApiFamily = AwtFontFamily::DONTKNOW;
402 case FAMILY_MODERN: nApiFamily = AwtFontFamily::MODERN;
break;
403 case FAMILY_ROMAN: nApiFamily = AwtFontFamily::ROMAN;
break;
404 case FAMILY_SCRIPT: nApiFamily = AwtFontFamily::SCRIPT;
break;
405 case FAMILY_SWISS: nApiFamily = AwtFontFamily::SWISS;
break;
406 case FAMILY_SYSTEM: nApiFamily = AwtFontFamily::SYSTEM;
break;
419 return mbItalic ? Awt::FontSlant_ITALIC : Awt::FontSlant_NONE;
442 sal_Int16 nApiEscapem = 0;
478 (eApiPosture == Awt::FontSlant_OBLIQUE) ||
479 (eApiPosture == Awt::FontSlant_ITALIC) ||
480 (eApiPosture == Awt::FontSlant_REVERSE_OBLIQUE) ||
481 (eApiPosture == Awt::FontSlant_REVERSE_ITALIC);
495 case AwtFontLineStyle::DOUBLE:
503 if( nApiEscapem > 0 )
505 else if( nApiEscapem < 0 )
515 (nApiStrikeout != AwtFontStrikeout::DONTKNOW);
538const char *
const sppcPropNamesChCommon[] =
540 "CharUnderline",
"CharStrikeout",
"CharColor",
"CharContoured",
"CharShadowed",
nullptr
543const char *
const sppcPropNamesChWstrn[] =
545 "CharFontName",
"CharHeight",
"CharPosture",
"CharWeight",
nullptr
548const char *
const sppcPropNamesChAsian[] =
550 "CharFontNameAsian",
"CharHeightAsian",
"CharPostureAsian",
"CharWeightAsian",
nullptr
553const char *
const sppcPropNamesChCmplx[] =
555 "CharFontNameComplex",
"CharHeightComplex",
"CharPostureComplex",
"CharWeightComplex",
nullptr
558const char *
const sppcPropNamesChEscapement[] =
560 "CharEscapement",
"CharEscapementHeight",
nullptr
562const sal_Int8 EXC_API_ESC_HEIGHT = 58;
565const char *
const *
const sppcPropNamesChWstrnNoName = sppcPropNamesChWstrn + 1;
567const char *
const *
const sppcPropNamesChAsianNoName = sppcPropNamesChAsian + 1;
569const char *
const *
const sppcPropNamesChCmplxNoName = sppcPropNamesChCmplx + 1;
572const char *
const sppcPropNamesControl[] =
574 "FontName",
"FontFamily",
"FontCharset",
"FontHeight",
"FontSlant",
575 "FontWeight",
"FontLineStyle",
"FontStrikeout",
"TextColor",
nullptr
580 const OUString& rApiFontName,
float fApiHeight,
float fApiWeight,
581 Awt::FontSlant eApiPosture, sal_Int16 nApiUnderl, sal_Int16 nApiStrikeout )
602 rPropSetHlp << rFontData.
maName;
612 maHlpChCommon( sppcPropNamesChCommon ),
613 maHlpChWstrn( sppcPropNamesChWstrn ),
614 maHlpChAsian( sppcPropNamesChAsian ),
615 maHlpChCmplx( sppcPropNamesChCmplx ),
616 maHlpChWstrnNoName( sppcPropNamesChWstrnNoName ),
617 maHlpChAsianNoName( sppcPropNamesChAsianNoName ),
618 maHlpChCmplxNoName( sppcPropNamesChCmplxNoName ),
619 maHlpChEscapement( sppcPropNamesChEscapement ),
620 maHlpControl( sppcPropNamesControl )
631 OUString aApiFontName;
632 float fApiHeight, fApiWeight;
633 sal_Int16 nApiUnderl = 0, nApiStrikeout = 0;
634 Awt::FontSlant eApiPosture;
639 rPropSetHlp >> aApiFontName >> fApiHeight >> eApiPosture >> fApiWeight;
651 lclSetApiFontSettings( rFontData, aApiFontName,
652 fApiHeight, fApiWeight, eApiPosture, nApiUnderl, nApiStrikeout );
655 sal_Int16 nApiEscapement = 0;
667 OUString aApiFontName;
668 float fApiHeight(0.0), fApiWeight(0.0);
669 sal_Int16 nApiFamily(0), nApiCharSet(0), nApiPosture(0), nApiUnderl(0), nApiStrikeout(0);
686 Awt::FontSlant eApiPosture =
static_cast< Awt::FontSlant
>( nApiPosture );
687 lclSetApiFontSettings( rFontData, aApiFontName,
688 fApiHeight, fApiWeight, eApiPosture, nApiUnderl, nApiStrikeout );
698 const XclFontData& rFontData,
bool bHasWstrn,
bool bHasAsian,
bool bHasCmplx,
699 const Color* pFontColor )
736 <<
static_cast< sal_Int16
>( rFontData.
GetApiHeight() + 0.5 )
750 namespace ApiScriptType = ::com::sun::star::i18n::ScriptType;
756 default: OSL_FAIL(
"XclFontPropSetHelper::GetChartHelper - unknown script type" );
776struct XclBuiltInFormat
778 sal_uInt16 mnXclNumFmt;
779 const char* mpFormat;
781 sal_uInt16 mnXclReuseFmt;
785#define EXC_NUMFMT_STRING( nXclNumFmt, pcUtf8 ) \
786 { nXclNumFmt, pcUtf8, NF_NUMBER_STANDARD, 0 }
789#define EXC_NUMFMT_OFFSET( nXclNumFmt, eOffset ) \
790 { nXclNumFmt, nullptr, eOffset, 0 }
793#define EXC_NUMFMT_REUSE( nXclNumFmt, nXclReuse ) \
794 { nXclNumFmt, nullptr, PRV_NF_INDEX_REUSE, nXclReuse }
797#define EXC_NUMFMT_ENDTABLE() \
798 { EXC_FORMAT_NOTFOUND, nullptr, NF_NUMBER_STANDARD, 0 }
801#define UTF8_BAHT "\340\270\277"
802#define UTF8_EURO "\342\202\254"
803#define UTF8_POUND_UK "\302\243"
804#define UTF8_SHEQEL "\342\202\252"
805#define UTF8_WON "\357\277\246"
806#define UTF8_YEN_CS "\357\277\245"
807#define UTF8_YEN_JP "\302\245"
810#define UTF8_CJ_YEAR "\345\271\264"
811#define UTF8_CJ_MON "\346\234\210"
812#define UTF8_CJ_DAY "\346\227\245"
813#define UTF8_CJ_HOUR "\346\231\202"
814#define UTF8_CJ_MIN "\345\210\206"
815#define UTF8_CJ_SEC "\347\247\222"
818#define UTF8_CS_HOUR "\346\227\266"
821#define UTF8_KO_YEAR "\353\205\204"
822#define UTF8_KO_MON "\354\233\224"
823#define UTF8_KO_DAY "\354\235\274"
824#define UTF8_KO_HOUR "\354\213\234"
825#define UTF8_KO_MIN "\353\266\204"
826#define UTF8_KO_SEC "\354\264\210"
829const XclBuiltInFormat spBuiltInFormats_DONTKNOW[] =
922const XclBuiltInFormat spBuiltInFormats_ENGLISH[] =
933const XclBuiltInFormat spBuiltInFormats_ENGLISH_UK[] =
942const XclBuiltInFormat spBuiltInFormats_ENGLISH_EIRE[] =
951const XclBuiltInFormat spBuiltInFormats_ENGLISH_US[] =
970const XclBuiltInFormat spBuiltInFormats_ENGLISH_CAN[] =
982const XclBuiltInFormat spBuiltInFormats_ENGLISH_AUS[] =
997const XclBuiltInFormat spBuiltInFormats_ENGLISH_SAFRICA[] =
1013const XclBuiltInFormat spBuiltInFormats_FRENCH[] =
1023const XclBuiltInFormat spBuiltInFormats_FRENCH_FRANCE[] =
1037const XclBuiltInFormat spBuiltInFormats_FRENCH_CANADIAN[] =
1051const XclBuiltInFormat spBuiltInFormats_FRENCH_SWISS[] =
1064const XclBuiltInFormat spBuiltInFormats_FRENCH_BELGIAN[] =
1078const XclBuiltInFormat spBuiltInFormats_GERMAN[] =
1089const XclBuiltInFormat spBuiltInFormats_GERMAN_GERMANY[] =
1102const XclBuiltInFormat spBuiltInFormats_GERMAN_AUSTRIAN[] =
1114const XclBuiltInFormat spBuiltInFormats_GERMAN_SWISS[] =
1123const XclBuiltInFormat spBuiltInFormats_GERMAN_LUXEMBOURG[] =
1139const XclBuiltInFormat spBuiltInFormats_GERMAN_LIECHTENSTEIN[] =
1150const XclBuiltInFormat spBuiltInFormats_ITALIAN_ITALY[] =
1167const XclBuiltInFormat spBuiltInFormats_ITALIAN_SWISS[] =
1184const XclBuiltInFormat spBuiltInFormats_SWEDISH_SWEDEN[] =
1203const XclBuiltInFormat spBuiltInFormats_SWEDISH_FINLAND[] =
1227const XclBuiltInFormat spBuiltInFormats_ASIAN[] =
1251const XclBuiltInFormat spBuiltInFormats_JAPANESE[] =
1273const XclBuiltInFormat spBuiltInFormats_KOREAN[] =
1295const XclBuiltInFormat spBuiltInFormats_CHINESE_SIMPLIFIED[] =
1319const XclBuiltInFormat spBuiltInFormats_CHINESE_TRADITIONAL[] =
1350const XclBuiltInFormat spBuiltInFormats_HEBREW[] =
1364const XclBuiltInFormat spBuiltInFormats_THAI[] =
1399#undef EXC_NUMFMT_ENDTABLE
1400#undef EXC_NUMFMT_REUSE
1401#undef EXC_NUMFMT_OFFSET
1402#undef EXC_NUMFMT_STRING
1405struct XclBuiltInFormatTable
1412const XclBuiltInFormatTable spBuiltInFormatTables[] =
1426 {
LANGUAGE_FRENCH, PRV_LANGUAGE_FRENCH_PRIM, spBuiltInFormats_FRENCH_FRANCE },
1434 {
LANGUAGE_GERMAN, PRV_LANGUAGE_GERMAN_PRIM, spBuiltInFormats_GERMAN_GERMANY },
1448 {
LANGUAGE_KOREAN, PRV_LANGUAGE_ASIAN_PRIM, spBuiltInFormats_KOREAN },
1459 meSysLang( rRoot.GetSysLanguage() ),
1460 mnStdScNumFmt( rRoot.GetFormatter().GetStandardIndex(
ScGlobal::eLnge ) )
1485 typedef ::std::map< LanguageType, const XclBuiltInFormatTable* > XclBuiltInMap;
1486 XclBuiltInMap aBuiltInMap;
1487 for(
const auto &rTable : spBuiltInFormatTables)
1488 aBuiltInMap[ rTable.meLanguage ] = &rTable;
1491 typedef ::std::vector< const XclBuiltInFormatTable* > XclBuiltInVec;
1492 XclBuiltInVec aBuiltInVec;
1493 for( XclBuiltInMap::const_iterator aMIt = aBuiltInMap.find(
meSysLang ), aMEnd = aBuiltInMap.end();
1494 aMIt != aMEnd; aMIt = aBuiltInMap.find( aMIt->second->meParentLang ) )
1495 aBuiltInVec.push_back( aMIt->second );
1497 if( aBuiltInVec.empty() )
1499 SAL_WARN(
"sc",
"XclNumFmtBuffer::InsertBuiltinFormats - language not supported (#i29949#) 0x" << std::hex <<
meSysLang );
1501 OSL_ENSURE( aMIt != aBuiltInMap.end(),
"XclNumFmtBuffer::InsertBuiltinFormats - default map not found" );
1502 if( aMIt != aBuiltInMap.end() )
1503 aBuiltInVec.push_back( aMIt->second );
1507 std::map< sal_uInt16, sal_uInt16 > aReuseMap;
1508 for( XclBuiltInVec::reverse_iterator aVIt = aBuiltInVec.rbegin(), aVEnd = aBuiltInVec.rend(); aVIt != aVEnd; ++aVIt )
1512 for(
const XclBuiltInFormat* pBuiltIn = (*aVIt)->mpFormats; pBuiltIn && (pBuiltIn->mnXclNumFmt !=
EXC_FORMAT_NOTFOUND); ++pBuiltIn )
1516 rNumFmt.
meOffset = pBuiltIn->meOffset;
1519 if( pBuiltIn->mpFormat )
1520 rNumFmt.
maFormat = OUString( pBuiltIn->mpFormat, strlen(pBuiltIn->mpFormat), RTL_TEXTENCODING_UTF8 );
1524 if( pBuiltIn->meOffset == PRV_NF_INDEX_REUSE )
1525 aReuseMap[ pBuiltIn->mnXclNumFmt ] = pBuiltIn->mnXclReuseFmt;
1527 aReuseMap.erase( pBuiltIn->mnXclNumFmt );
1532 for(
const auto& [rXclNumFmt, rXclReuseFmt] : aReuseMap )
1556 mbLineBreak( false ),
1574 default: OSL_FAIL(
"XclCellAlign::GetScHorAlign - unknown horizontal alignment" );
1594 default: OSL_FAIL(
"XclCellAlign::GetScVerAlign - unknown vertical alignment" );
1612 default: OSL_FAIL(
"XclCellAlign::GetScFrameDir - unknown CTL text direction" );
1628 OSL_FAIL(
"XclCellAlign::SetScHorAlign - unknown horizontal alignment" );
1641 OSL_FAIL(
"XclCellAlign::SetScVerAlign - unknown vertical alignment" );
1653 OSL_FAIL(
"XclCellAlign::SetScFrameDir - unknown CTL text direction" );
1677 mbDiagTLtoBR( false ),
1678 mbDiagBLtoTR( false )
1703 mnPattern( nPattern )
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
Generic helper class for reading from and writing to property sets.
void ReadFromPropertySet(const ScfPropertySet &rPropSet)
Reads all values from the passed property set.
void WriteToPropertySet(ScfPropertySet &rPropSet) const
Writes all values to the passed property set.
void InitializeWrite()
Must be called before reading or storing property values in the helper.
A wrapper for a UNO property set.
constexpr tools::Long Height() const
const Color & GetFaceColor() const
short GetEscapement() const
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
Color mnNoteBack
Note text color.
sal_uInt32 mnTableSize
Note background color.
Color mnFaceColor
The table with RGB values.
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.
XclNumFmtBuffer(const XclRoot &rRoot)
const LanguageType meSysLang
Map containing all default and user-defined formats.
Access to global data for a filter object (imported or exported document) from other classes.
XclBiff GetBiff() const
Returns the current BIFF version of the importer/exporter.
Contains base members for XF record import/export.
bool mbBorderUsed
true = alignment used.
bool mbAreaUsed
true = border data used.
bool mbProtUsed
true = cell XF, false = style XF.
bool HasUsedFlags() const
Returns true, if any "attribute used" flags are ste in this XF.
bool mbFmtUsed
true = font index used.
bool mbAlignUsed
true = number format used.
bool mbCellXF
Index to parent style XF.
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.
void setColor(Color const &rColor)
Color const & getFinalColor() const
FontFamily GetFamilyType()
FontStrikeout GetStrikeout() const
const OUString & GetFamilyName() const
const Size & GetFontSize() const
FontLineStyle GetUnderline() const
rtl_TextEncoding GetCharSet() const
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
#define LANGUAGE_GERMAN_AUSTRIAN
#define LANGUAGE_GERMAN_SWISS
#define LANGUAGE_ENGLISH_AUS
#define LANGUAGE_CHINESE_TRADITIONAL
#define LANGUAGE_FRENCH_LUXEMBOURG
#define LANGUAGE_SWEDISH_FINLAND
#define LANGUAGE_GERMAN_LUXEMBOURG
#define LANGUAGE_ENGLISH_CAN
#define LANGUAGE_ITALIAN_SWISS
#define LANGUAGE_FRENCH_SWISS
#define LANGUAGE_CHINESE_SIMPLIFIED
#define LANGUAGE_JAPANESE
#define LANGUAGE_FRENCH_MONACO
#define LANGUAGE_ENGLISH_EIRE
#define LANGUAGE_ENGLISH_UK
#define LANGUAGE_ENGLISH_NZ
#define LANGUAGE_FRENCH_CANADIAN
#define LANGUAGE_FRENCH_BELGIAN
#define LANGUAGE_DONTKNOW
#define LANGUAGE_ENGLISH_SAFRICA
#define LANGUAGE_GERMAN_LIECHTENSTEIN
constexpr LanguageType primary(LanguageType lt)
#define LANGUAGE_ENGLISH_US
#define SAL_WARN(area, stream)
#define SAL_N_ELEMENTS(arr)
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
VCL_DLLPUBLIC float ConvertFontWeight(FontWeight eWeight)
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_ORIENT_NONE
const sal_uInt8 EXC_ROT_NONE
Text orientation: 90 deg clockwise.
@ EXC_BIFF8
MS Excel 5.0, MS Excel 7.0 (95)
const Color spnDefColorTable8[]
Default color table for BIFF8.
const Color spnDefColorTable2[]
Default color table for BIFF2.
#define EXC_PALETTE_EGA_COLORS_LIGHT
Standard EGA colors, bright.
#define EXC_PALETTE_EGA_COLORS_DARK
Standard EGA colors, dark.
#define EXC_NUMFMT_STRING(nXclNumFmt, pcUtf8)
Defines a literal Excel built-in number format.
#define EXC_NUMFMT_OFFSET(nXclNumFmt, eOffset)
Defines an Excel built-in number format that maps to an own built-in format.
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)
#define EXC_NUMFMT_ENDTABLE()
Terminates an Excel built-in number format table.
const Color spnDefColorTable5[]
Default color table for BIFF5/BIFF7.
#define EXC_NUMFMT_REUSE(nXclNumFmt, nXclReuse)
Defines an Excel built-in number format that is the same as the specified.
const Color spnDefColorTable3[]
Default color table for BIFF3/BIFF4.
const sal_uInt8 EXC_FONTFAM_MODERN
const sal_uInt16 EXC_COLOR_NOTEBACK
Automatic frame border for series (BIFF8 charts).
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 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_FONTWGHT_SEMIBOLD
const sal_uInt8 EXC_XF_HOR_GENERAL
const sal_uInt8 EXC_XF_HOR_DISTRIB
const sal_uInt8 EXC_XF_TEXTDIR_LTR
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_COLOR_NOTETEXT
Note background color.
const sal_uInt8 EXC_FONTFAM_SYSTEM
const sal_uInt16 EXC_FONTESC_SUPER
const sal_uInt16 EXC_COLOR_FONTAUTO
Note text color.
const sal_uInt16 EXC_FONTWGHT_BLACK
const sal_uInt8 EXC_XF_HOR_CENTER_AS
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 sal_uInt8 EXC_XF_TEXTDIR_RTL
const sal_uInt8 EXC_FONTUNDERL_DOUBLE_ACC
const sal_uInt8 EXC_FONTFAM_DECORATIVE
const sal_uInt8 EXC_FONTUNDERL_SINGLE
const sal_uInt16 EXC_COLOR_CHBORDERAUTO
Chart window background color (BIFF8 charts).
const sal_uInt8 EXC_LINE_NONE
const sal_uInt16 EXC_COLOR_WINDOWTEXT
System window background color (BIFF3-BIFF4).
const sal_uInt8 EXC_FONTUNDERL_DOUBLE
const sal_uInt8 EXC_XF_VER_TOP
const sal_uInt8 EXC_XF_VER_JUSTIFY
const sal_uInt16 EXC_XF_STYLEPARENT
const sal_uInt16 EXC_FONTESC_NONE
const sal_uInt8 EXC_XF_VER_BOTTOM
const sal_uInt8 EXC_PATT_NONE
const sal_uInt8 EXC_XF_VER_CENTER
const sal_uInt8 EXC_FONTUNDERL_NONE
const sal_uInt8 EXC_XF_HOR_FILL
const sal_uInt16 EXC_FONTWGHT_ULTRALIGHT
const sal_uInt16 EXC_COLOR_WINDOWTEXT3
First user defined color.
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_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_uInt8 EXC_XF_VER_DISTRIB
const sal_uInt16 EXC_COLOR_WINDOWBACK3
System window text color (BIFF3-BIFF4).
const sal_uInt16 EXC_FORMAT_NOTFOUND
const sal_uInt16 EXC_FONTWGHT_BOLD
const sal_uInt8 EXC_XF_HOR_LEFT
const sal_uInt8 EXC_FONTFAM_ROMAN
const sal_uInt16 EXC_COLOR_CHWINDOWTEXT
System button background color (face color).
const sal_uInt8 EXC_XF_TEXTDIR_CONTEXT
const sal_uInt16 EXC_FONTESC_SUB
const sal_uInt16 EXC_FONTWGHT_DONTKNOW
NF_DATETIME_SYSTEM_SHORT_HHMM