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;
240 ((eDefTextEnc == RTL_TEXTENCODING_APPLE_ROMAN) &&
241 (
maName.equalsIgnoreAsciiCase(
"Geneva" ) ||
maName.equalsIgnoreAsciiCase(
"Chicago" ))) ?
250 return rtl_getTextEncodingFromWindowsCharset(
mnCharSet );
308 mnHeight =
static_cast< sal_uInt16
>( ::std::min( nTwips,
static_cast<sal_Int32
>(0x7FFFL) ) );
323 OSL_FAIL(
"XclFontData::SetScFamily - unknown font family" );
331 mnCharSet = rtl_getBestWindowsCharsetFromTextEncoding( eFontEnc );
374 else if( nScEscapem < 0 )
397 sal_Int16 nApiFamily = AwtFontFamily::DONTKNOW;
401 case FAMILY_MODERN: nApiFamily = AwtFontFamily::MODERN;
break;
402 case FAMILY_ROMAN: nApiFamily = AwtFontFamily::ROMAN;
break;
403 case FAMILY_SCRIPT: nApiFamily = AwtFontFamily::SCRIPT;
break;
404 case FAMILY_SWISS: nApiFamily = AwtFontFamily::SWISS;
break;
405 case FAMILY_SYSTEM: nApiFamily = AwtFontFamily::SYSTEM;
break;
418 return mbItalic ? Awt::FontSlant_ITALIC : Awt::FontSlant_NONE;
441 sal_Int16 nApiEscapem = 0;
477 (eApiPosture == Awt::FontSlant_OBLIQUE) ||
478 (eApiPosture == Awt::FontSlant_ITALIC) ||
479 (eApiPosture == Awt::FontSlant_REVERSE_OBLIQUE) ||
480 (eApiPosture == Awt::FontSlant_REVERSE_ITALIC);
494 case AwtFontLineStyle::DOUBLE:
502 if( nApiEscapem > 0 )
504 else if( nApiEscapem < 0 )
514 (nApiStrikeout != AwtFontStrikeout::DONTKNOW);
537const char *
const sppcPropNamesChCommon[] =
539 "CharUnderline",
"CharStrikeout",
"CharColor",
"CharContoured",
"CharShadowed",
nullptr
542const char *
const sppcPropNamesChWstrn[] =
544 "CharFontName",
"CharHeight",
"CharPosture",
"CharWeight",
nullptr
547const char *
const sppcPropNamesChAsian[] =
549 "CharFontNameAsian",
"CharHeightAsian",
"CharPostureAsian",
"CharWeightAsian",
nullptr
552const char *
const sppcPropNamesChCmplx[] =
554 "CharFontNameComplex",
"CharHeightComplex",
"CharPostureComplex",
"CharWeightComplex",
nullptr
557const char *
const sppcPropNamesChEscapement[] =
559 "CharEscapement",
"CharEscapementHeight",
nullptr
561const sal_Int8 EXC_API_ESC_HEIGHT = 58;
564const char *
const *
const sppcPropNamesChWstrnNoName = sppcPropNamesChWstrn + 1;
566const char *
const *
const sppcPropNamesChAsianNoName = sppcPropNamesChAsian + 1;
568const char *
const *
const sppcPropNamesChCmplxNoName = sppcPropNamesChCmplx + 1;
571const char *
const sppcPropNamesControl[] =
573 "FontName",
"FontFamily",
"FontCharset",
"FontHeight",
"FontSlant",
574 "FontWeight",
"FontLineStyle",
"FontStrikeout",
"TextColor",
nullptr
579 const OUString& rApiFontName,
float fApiHeight,
float fApiWeight,
580 Awt::FontSlant eApiPosture, sal_Int16 nApiUnderl, sal_Int16 nApiStrikeout )
601 rPropSetHlp << rFontData.
maName;
611 maHlpChCommon( sppcPropNamesChCommon ),
612 maHlpChWstrn( sppcPropNamesChWstrn ),
613 maHlpChAsian( sppcPropNamesChAsian ),
614 maHlpChCmplx( sppcPropNamesChCmplx ),
615 maHlpChWstrnNoName( sppcPropNamesChWstrnNoName ),
616 maHlpChAsianNoName( sppcPropNamesChAsianNoName ),
617 maHlpChCmplxNoName( sppcPropNamesChCmplxNoName ),
618 maHlpChEscapement( sppcPropNamesChEscapement ),
619 maHlpControl( sppcPropNamesControl )
630 OUString aApiFontName;
631 float fApiHeight, fApiWeight;
632 sal_Int16 nApiUnderl = 0, nApiStrikeout = 0;
633 Awt::FontSlant eApiPosture;
638 rPropSetHlp >> aApiFontName >> fApiHeight >> eApiPosture >> fApiWeight;
648 lclSetApiFontSettings( rFontData, aApiFontName,
649 fApiHeight, fApiWeight, eApiPosture, nApiUnderl, nApiStrikeout );
652 sal_Int16 nApiEscapement = 0;
664 OUString aApiFontName;
665 float fApiHeight(0.0), fApiWeight(0.0);
666 sal_Int16 nApiFamily(0), nApiCharSet(0), nApiPosture(0), nApiUnderl(0), nApiStrikeout(0);
681 Awt::FontSlant eApiPosture =
static_cast< Awt::FontSlant
>( nApiPosture );
682 lclSetApiFontSettings( rFontData, aApiFontName,
683 fApiHeight, fApiWeight, eApiPosture, nApiUnderl, nApiStrikeout );
693 const XclFontData& rFontData,
bool bHasWstrn,
bool bHasAsian,
bool bHasCmplx,
694 const Color* pFontColor )
702 const Color& rColor = pFontColor ? *pFontColor : rFontData.
maColor;
731 <<
static_cast< sal_Int16
>( rFontData.
GetApiHeight() + 0.5 )
745 namespace ApiScriptType = ::com::sun::star::i18n::ScriptType;
751 default: OSL_FAIL(
"XclFontPropSetHelper::GetChartHelper - unknown script type" );
771struct XclBuiltInFormat
773 sal_uInt16 mnXclNumFmt;
774 const char* mpFormat;
776 sal_uInt16 mnXclReuseFmt;
780#define EXC_NUMFMT_STRING( nXclNumFmt, pcUtf8 ) \
781 { nXclNumFmt, pcUtf8, NF_NUMBER_STANDARD, 0 }
784#define EXC_NUMFMT_OFFSET( nXclNumFmt, eOffset ) \
785 { nXclNumFmt, nullptr, eOffset, 0 }
788#define EXC_NUMFMT_REUSE( nXclNumFmt, nXclReuse ) \
789 { nXclNumFmt, nullptr, PRV_NF_INDEX_REUSE, nXclReuse }
792#define EXC_NUMFMT_ENDTABLE() \
793 { EXC_FORMAT_NOTFOUND, nullptr, NF_NUMBER_STANDARD, 0 }
796#define UTF8_BAHT "\340\270\277"
797#define UTF8_EURO "\342\202\254"
798#define UTF8_POUND_UK "\302\243"
799#define UTF8_SHEQEL "\342\202\252"
800#define UTF8_WON "\357\277\246"
801#define UTF8_YEN_CS "\357\277\245"
802#define UTF8_YEN_JP "\302\245"
805#define UTF8_CJ_YEAR "\345\271\264"
806#define UTF8_CJ_MON "\346\234\210"
807#define UTF8_CJ_DAY "\346\227\245"
808#define UTF8_CJ_HOUR "\346\231\202"
809#define UTF8_CJ_MIN "\345\210\206"
810#define UTF8_CJ_SEC "\347\247\222"
813#define UTF8_CS_HOUR "\346\227\266"
816#define UTF8_KO_YEAR "\353\205\204"
817#define UTF8_KO_MON "\354\233\224"
818#define UTF8_KO_DAY "\354\235\274"
819#define UTF8_KO_HOUR "\354\213\234"
820#define UTF8_KO_MIN "\353\266\204"
821#define UTF8_KO_SEC "\354\264\210"
824const XclBuiltInFormat spBuiltInFormats_DONTKNOW[] =
917const XclBuiltInFormat spBuiltInFormats_ENGLISH[] =
928const XclBuiltInFormat spBuiltInFormats_ENGLISH_UK[] =
937const XclBuiltInFormat spBuiltInFormats_ENGLISH_EIRE[] =
946const XclBuiltInFormat spBuiltInFormats_ENGLISH_US[] =
965const XclBuiltInFormat spBuiltInFormats_ENGLISH_CAN[] =
977const XclBuiltInFormat spBuiltInFormats_ENGLISH_AUS[] =
992const XclBuiltInFormat spBuiltInFormats_ENGLISH_SAFRICA[] =
1008const XclBuiltInFormat spBuiltInFormats_FRENCH[] =
1018const XclBuiltInFormat spBuiltInFormats_FRENCH_FRANCE[] =
1032const XclBuiltInFormat spBuiltInFormats_FRENCH_CANADIAN[] =
1046const XclBuiltInFormat spBuiltInFormats_FRENCH_SWISS[] =
1059const XclBuiltInFormat spBuiltInFormats_FRENCH_BELGIAN[] =
1073const XclBuiltInFormat spBuiltInFormats_GERMAN[] =
1084const XclBuiltInFormat spBuiltInFormats_GERMAN_GERMANY[] =
1097const XclBuiltInFormat spBuiltInFormats_GERMAN_AUSTRIAN[] =
1109const XclBuiltInFormat spBuiltInFormats_GERMAN_SWISS[] =
1118const XclBuiltInFormat spBuiltInFormats_GERMAN_LUXEMBOURG[] =
1134const XclBuiltInFormat spBuiltInFormats_GERMAN_LIECHTENSTEIN[] =
1145const XclBuiltInFormat spBuiltInFormats_ITALIAN_ITALY[] =
1162const XclBuiltInFormat spBuiltInFormats_ITALIAN_SWISS[] =
1179const XclBuiltInFormat spBuiltInFormats_SWEDISH_SWEDEN[] =
1198const XclBuiltInFormat spBuiltInFormats_SWEDISH_FINLAND[] =
1222const XclBuiltInFormat spBuiltInFormats_ASIAN[] =
1246const XclBuiltInFormat spBuiltInFormats_JAPANESE[] =
1268const XclBuiltInFormat spBuiltInFormats_KOREAN[] =
1290const XclBuiltInFormat spBuiltInFormats_CHINESE_SIMPLIFIED[] =
1314const XclBuiltInFormat spBuiltInFormats_CHINESE_TRADITIONAL[] =
1345const XclBuiltInFormat spBuiltInFormats_HEBREW[] =
1359const XclBuiltInFormat spBuiltInFormats_THAI[] =
1394#undef EXC_NUMFMT_ENDTABLE
1395#undef EXC_NUMFMT_REUSE
1396#undef EXC_NUMFMT_OFFSET
1397#undef EXC_NUMFMT_STRING
1400struct XclBuiltInFormatTable
1407const XclBuiltInFormatTable spBuiltInFormatTables[] =
1421 {
LANGUAGE_FRENCH, PRV_LANGUAGE_FRENCH_PRIM, spBuiltInFormats_FRENCH_FRANCE },
1429 {
LANGUAGE_GERMAN, PRV_LANGUAGE_GERMAN_PRIM, spBuiltInFormats_GERMAN_GERMANY },
1443 {
LANGUAGE_KOREAN, PRV_LANGUAGE_ASIAN_PRIM, spBuiltInFormats_KOREAN },
1454 meSysLang( rRoot.GetSysLanguage() ),
1455 mnStdScNumFmt( rRoot.GetFormatter().GetStandardIndex(
ScGlobal::eLnge ) )
1480 typedef ::std::map< LanguageType, const XclBuiltInFormatTable* > XclBuiltInMap;
1481 XclBuiltInMap aBuiltInMap;
1482 for(
const auto &rTable : spBuiltInFormatTables)
1483 aBuiltInMap[ rTable.meLanguage ] = &rTable;
1486 typedef ::std::vector< const XclBuiltInFormatTable* > XclBuiltInVec;
1487 XclBuiltInVec aBuiltInVec;
1488 for( XclBuiltInMap::const_iterator aMIt = aBuiltInMap.find(
meSysLang ), aMEnd = aBuiltInMap.end();
1489 aMIt != aMEnd; aMIt = aBuiltInMap.find( aMIt->second->meParentLang ) )
1490 aBuiltInVec.push_back( aMIt->second );
1492 if( aBuiltInVec.empty() )
1494 SAL_WARN(
"sc",
"XclNumFmtBuffer::InsertBuiltinFormats - language not supported (#i29949#) 0x" << std::hex <<
meSysLang );
1496 OSL_ENSURE( aMIt != aBuiltInMap.end(),
"XclNumFmtBuffer::InsertBuiltinFormats - default map not found" );
1497 if( aMIt != aBuiltInMap.end() )
1498 aBuiltInVec.push_back( aMIt->second );
1502 std::map< sal_uInt16, sal_uInt16 > aReuseMap;
1503 for( XclBuiltInVec::reverse_iterator aVIt = aBuiltInVec.rbegin(), aVEnd = aBuiltInVec.rend(); aVIt != aVEnd; ++aVIt )
1507 for(
const XclBuiltInFormat* pBuiltIn = (*aVIt)->mpFormats; pBuiltIn && (pBuiltIn->mnXclNumFmt !=
EXC_FORMAT_NOTFOUND); ++pBuiltIn )
1511 rNumFmt.
meOffset = pBuiltIn->meOffset;
1514 if( pBuiltIn->mpFormat )
1515 rNumFmt.
maFormat = OUString( pBuiltIn->mpFormat, strlen(pBuiltIn->mpFormat), RTL_TEXTENCODING_UTF8 );
1519 if( pBuiltIn->meOffset == PRV_NF_INDEX_REUSE )
1520 aReuseMap[ pBuiltIn->mnXclNumFmt ] = pBuiltIn->mnXclReuseFmt;
1522 aReuseMap.erase( pBuiltIn->mnXclNumFmt );
1527 for(
const auto& [rXclNumFmt, rXclReuseFmt] : aReuseMap )
1551 mbLineBreak( false ),
1569 default: OSL_FAIL(
"XclCellAlign::GetScHorAlign - unknown horizontal alignment" );
1589 default: OSL_FAIL(
"XclCellAlign::GetScVerAlign - unknown vertical alignment" );
1607 default: OSL_FAIL(
"XclCellAlign::GetScFrameDir - unknown CTL text direction" );
1623 OSL_FAIL(
"XclCellAlign::SetScHorAlign - unknown horizontal alignment" );
1636 OSL_FAIL(
"XclCellAlign::SetScVerAlign - unknown vertical alignment" );
1648 OSL_FAIL(
"XclCellAlign::SetScFrameDir - unknown CTL text direction" );
1672 mbDiagTLtoBR( false ),
1673 mbDiagBLtoTR( false )
1698 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.
FontFamily GetFamilyType()
FontStrikeout GetStrikeout() const
const OUString & GetFamilyName() const
const Size & GetFontSize() const
const Color & GetColor() 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)
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.
Color maColor
String with styles (bold, italic).
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
Font color.
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.
XclFontData()
true = Shadowed.
void SetApiPosture(css::awt::FontSlant eApiPosture)
Sets the API font posture.
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.
SvxEscapement GetScEscapement() const
Returns the Calc escapement style.
void FillFromSvxFont(const SvxFont &rFont)
Fills all members (except color) from the passed SVX font.
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