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>
31 #include <rtl/tencinfo.h>
42 #define EXC_PALETTE_EGA_COLORS_LIGHT \
43 Color(0x000000), Color(0xFFFFFF), Color(0xFF0000), Color(0x00FF00), Color(0x0000FF), Color(0xFFFF00), Color(0xFF00FF), Color(0x00FFFF)
45 #define EXC_PALETTE_EGA_COLORS_DARK \
46 Color(0x800000), Color(0x008000), Color(0x000080), Color(0x808000), Color(0x800080), Color(0x008080), Color(0xC0C0C0), Color(0x808080)
88 #undef EXC_PALETTE_EGA_COLORS_LIGHT
89 #undef EXC_PALETTE_EGA_COLORS_DARK
92 mpnColorTable( nullptr ),
146 else switch( nXclIndex )
160 SAL_WARN(
"sc",
"XclDefaultPalette::GetDefColor - unknown default color index: " << nXclIndex );
168 namespace Awt = ::com::sun::star::awt;
169 namespace AwtFontFamily = Awt::FontFamily;
170 namespace AwtFontLineStyle = Awt::FontUnderline;
171 namespace 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);
538 const char *
const sppcPropNamesChCommon[] =
540 "CharUnderline",
"CharStrikeout",
"CharColor",
"CharContoured",
"CharShadowed",
nullptr
543 const char *
const sppcPropNamesChWstrn[] =
545 "CharFontName",
"CharHeight",
"CharPosture",
"CharWeight",
nullptr
548 const char *
const sppcPropNamesChAsian[] =
550 "CharFontNameAsian",
"CharHeightAsian",
"CharPostureAsian",
"CharWeightAsian",
nullptr
553 const char *
const sppcPropNamesChCmplx[] =
555 "CharFontNameComplex",
"CharHeightComplex",
"CharPostureComplex",
"CharWeightComplex",
nullptr
558 const char *
const sppcPropNamesChEscapement[] =
560 "CharEscapement",
"CharEscapementHeight",
nullptr
562 const sal_Int8 EXC_API_ESC_HEIGHT = 58;
565 const char *
const *
const sppcPropNamesChWstrnNoName = sppcPropNamesChWstrn + 1;
567 const char *
const *
const sppcPropNamesChAsianNoName = sppcPropNamesChAsian + 1;
569 const char *
const *
const sppcPropNamesChCmplxNoName = sppcPropNamesChCmplx + 1;
572 const char *
const sppcPropNamesControl[] =
574 "FontName",
"FontFamily",
"FontCharset",
"FontHeight",
"FontSlant",
575 "FontWeight",
"FontLineStyle",
"FontStrikeout",
"TextColor",
nullptr
579 void lclSetApiFontSettings(
XclFontData& rFontData,
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;
649 lclSetApiFontSettings( rFontData, aApiFontName,
650 fApiHeight, fApiWeight, eApiPosture, nApiUnderl, nApiStrikeout );
653 sal_Int16 nApiEscapement = 0;
665 OUString aApiFontName;
666 float fApiHeight(0.0), fApiWeight(0.0);
667 sal_Int16 nApiFamily(0), nApiCharSet(0), nApiPosture(0), nApiUnderl(0), nApiStrikeout(0);
682 Awt::FontSlant eApiPosture =
static_cast< Awt::FontSlant
>( nApiPosture );
683 lclSetApiFontSettings( rFontData, aApiFontName,
684 fApiHeight, fApiWeight, eApiPosture, nApiUnderl, nApiStrikeout );
694 const XclFontData& rFontData,
bool bHasWstrn,
bool bHasAsian,
bool bHasCmplx,
695 const Color* pFontColor )
703 const Color& rColor = pFontColor ? *pFontColor : rFontData.
maColor;
732 <<
static_cast< sal_Int16
>( rFontData.
GetApiHeight() + 0.5 )
746 namespace ApiScriptType = ::com::sun::star::i18n::ScriptType;
752 default: OSL_FAIL(
"XclFontPropSetHelper::GetChartHelper - unknown script type" );
772 struct XclBuiltInFormat
774 sal_uInt16 mnXclNumFmt;
775 const char* mpFormat;
777 sal_uInt16 mnXclReuseFmt;
781 #define EXC_NUMFMT_STRING( nXclNumFmt, pcUtf8 ) \
782 { nXclNumFmt, pcUtf8, NF_NUMBER_STANDARD, 0 }
785 #define EXC_NUMFMT_OFFSET( nXclNumFmt, eOffset ) \
786 { nXclNumFmt, nullptr, eOffset, 0 }
789 #define EXC_NUMFMT_REUSE( nXclNumFmt, nXclReuse ) \
790 { nXclNumFmt, nullptr, PRV_NF_INDEX_REUSE, nXclReuse }
793 #define EXC_NUMFMT_ENDTABLE() \
794 { EXC_FORMAT_NOTFOUND, nullptr, NF_NUMBER_STANDARD, 0 }
797 #define UTF8_BAHT "\340\270\277"
798 #define UTF8_EURO "\342\202\254"
799 #define UTF8_POUND_UK "\302\243"
800 #define UTF8_SHEQEL "\342\202\252"
801 #define UTF8_WON "\357\277\246"
802 #define UTF8_YEN_CS "\357\277\245"
803 #define UTF8_YEN_JP "\302\245"
806 #define UTF8_CJ_YEAR "\345\271\264"
807 #define UTF8_CJ_MON "\346\234\210"
808 #define UTF8_CJ_DAY "\346\227\245"
809 #define UTF8_CJ_HOUR "\346\231\202"
810 #define UTF8_CJ_MIN "\345\210\206"
811 #define UTF8_CJ_SEC "\347\247\222"
814 #define UTF8_CS_HOUR "\346\227\266"
817 #define UTF8_KO_YEAR "\353\205\204"
818 #define UTF8_KO_MON "\354\233\224"
819 #define UTF8_KO_DAY "\354\235\274"
820 #define UTF8_KO_HOUR "\354\213\234"
821 #define UTF8_KO_MIN "\353\266\204"
822 #define UTF8_KO_SEC "\354\264\210"
825 const XclBuiltInFormat spBuiltInFormats_DONTKNOW[] =
918 const XclBuiltInFormat spBuiltInFormats_ENGLISH[] =
929 const XclBuiltInFormat spBuiltInFormats_ENGLISH_UK[] =
938 const XclBuiltInFormat spBuiltInFormats_ENGLISH_EIRE[] =
947 const XclBuiltInFormat spBuiltInFormats_ENGLISH_US[] =
966 const XclBuiltInFormat spBuiltInFormats_ENGLISH_CAN[] =
978 const XclBuiltInFormat spBuiltInFormats_ENGLISH_AUS[] =
993 const XclBuiltInFormat spBuiltInFormats_ENGLISH_SAFRICA[] =
1009 const XclBuiltInFormat spBuiltInFormats_FRENCH[] =
1019 const XclBuiltInFormat spBuiltInFormats_FRENCH_FRANCE[] =
1033 const XclBuiltInFormat spBuiltInFormats_FRENCH_CANADIAN[] =
1047 const XclBuiltInFormat spBuiltInFormats_FRENCH_SWISS[] =
1060 const XclBuiltInFormat spBuiltInFormats_FRENCH_BELGIAN[] =
1074 const XclBuiltInFormat spBuiltInFormats_GERMAN[] =
1085 const XclBuiltInFormat spBuiltInFormats_GERMAN_GERMANY[] =
1098 const XclBuiltInFormat spBuiltInFormats_GERMAN_AUSTRIAN[] =
1110 const XclBuiltInFormat spBuiltInFormats_GERMAN_SWISS[] =
1119 const XclBuiltInFormat spBuiltInFormats_GERMAN_LUXEMBOURG[] =
1135 const XclBuiltInFormat spBuiltInFormats_GERMAN_LIECHTENSTEIN[] =
1146 const XclBuiltInFormat spBuiltInFormats_ITALIAN_ITALY[] =
1163 const XclBuiltInFormat spBuiltInFormats_ITALIAN_SWISS[] =
1180 const XclBuiltInFormat spBuiltInFormats_SWEDISH_SWEDEN[] =
1199 const XclBuiltInFormat spBuiltInFormats_SWEDISH_FINLAND[] =
1223 const XclBuiltInFormat spBuiltInFormats_ASIAN[] =
1247 const XclBuiltInFormat spBuiltInFormats_JAPANESE[] =
1269 const XclBuiltInFormat spBuiltInFormats_KOREAN[] =
1291 const XclBuiltInFormat spBuiltInFormats_CHINESE_SIMPLIFIED[] =
1315 const XclBuiltInFormat spBuiltInFormats_CHINESE_TRADITIONAL[] =
1346 const XclBuiltInFormat spBuiltInFormats_HEBREW[] =
1360 const XclBuiltInFormat spBuiltInFormats_THAI[] =
1395 #undef EXC_NUMFMT_ENDTABLE
1396 #undef EXC_NUMFMT_REUSE
1397 #undef EXC_NUMFMT_OFFSET
1398 #undef EXC_NUMFMT_STRING
1401 struct XclBuiltInFormatTable
1408 const XclBuiltInFormatTable spBuiltInFormatTables[] =
1422 {
LANGUAGE_FRENCH, PRV_LANGUAGE_FRENCH_PRIM, spBuiltInFormats_FRENCH_FRANCE },
1430 {
LANGUAGE_GERMAN, PRV_LANGUAGE_GERMAN_PRIM, spBuiltInFormats_GERMAN_GERMANY },
1444 {
LANGUAGE_KOREAN, PRV_LANGUAGE_ASIAN_PRIM, spBuiltInFormats_KOREAN },
1455 meSysLang( rRoot.GetSysLanguage() ),
1456 mnStdScNumFmt( rRoot.GetFormatter().GetStandardIndex(
ScGlobal::eLnge ) )
1481 typedef ::std::map< LanguageType, const XclBuiltInFormatTable* > XclBuiltInMap;
1482 XclBuiltInMap aBuiltInMap;
1483 for(
const auto &rTable : spBuiltInFormatTables)
1484 aBuiltInMap[ rTable.meLanguage ] = &rTable;
1487 typedef ::std::vector< const XclBuiltInFormatTable* > XclBuiltInVec;
1488 XclBuiltInVec aBuiltInVec;
1489 for( XclBuiltInMap::const_iterator aMIt = aBuiltInMap.find(
meSysLang ), aMEnd = aBuiltInMap.end();
1490 aMIt != aMEnd; aMIt = aBuiltInMap.find( aMIt->second->meParentLang ) )
1491 aBuiltInVec.push_back( aMIt->second );
1493 if( aBuiltInVec.empty() )
1495 SAL_WARN(
"sc",
"XclNumFmtBuffer::InsertBuiltinFormats - language not supported (#i29949#) 0x" << std::hex <<
meSysLang );
1497 OSL_ENSURE( aMIt != aBuiltInMap.end(),
"XclNumFmtBuffer::InsertBuiltinFormats - default map not found" );
1498 if( aMIt != aBuiltInMap.end() )
1499 aBuiltInVec.push_back( aMIt->second );
1503 std::map< sal_uInt16, sal_uInt16 > aReuseMap;
1504 for( XclBuiltInVec::reverse_iterator aVIt = aBuiltInVec.rbegin(), aVEnd = aBuiltInVec.rend(); aVIt != aVEnd; ++aVIt )
1508 for(
const XclBuiltInFormat* pBuiltIn = (*aVIt)->mpFormats; pBuiltIn && (pBuiltIn->mnXclNumFmt !=
EXC_FORMAT_NOTFOUND); ++pBuiltIn )
1512 rNumFmt.
meOffset = pBuiltIn->meOffset;
1515 if( pBuiltIn->mpFormat )
1516 rNumFmt.
maFormat = OUString( pBuiltIn->mpFormat, strlen(pBuiltIn->mpFormat), RTL_TEXTENCODING_UTF8 );
1520 if( pBuiltIn->meOffset == PRV_NF_INDEX_REUSE )
1521 aReuseMap[ pBuiltIn->mnXclNumFmt ] = pBuiltIn->mnXclReuseFmt;
1523 aReuseMap.erase( pBuiltIn->mnXclNumFmt );
1528 for(
const auto& [rXclNumFmt, rXclReuseFmt] : aReuseMap )
1552 mbLineBreak( false ),
1570 default: OSL_FAIL(
"XclCellAlign::GetScHorAlign - unknown horizontal alignment" );
1590 default: OSL_FAIL(
"XclCellAlign::GetScVerAlign - unknown vertical alignment" );
1608 default: OSL_FAIL(
"XclCellAlign::GetScFrameDir - unknown CTL text direction" );
1624 OSL_FAIL(
"XclCellAlign::SetScHorAlign - unknown horizontal alignment" );
1637 OSL_FAIL(
"XclCellAlign::SetScVerAlign - unknown vertical alignment" );
1649 OSL_FAIL(
"XclCellAlign::SetScFrameDir - unknown CTL text direction" );
1673 mbDiagTLtoBR( false ),
1674 mbDiagBLtoTR( false )
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)
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.
const sal_uInt8 EXC_ORIENT_NONE
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_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.
const Color spnDefColorTable8[]
Default color table for BIFF8.
#define LANGUAGE_ENGLISH_SAFRICA
sal_uInt8 mnOrient
Vertical alignment.
#define LANGUAGE_ENGLISH_UK
bool mbShadow
true = Outlined.
const OUString & GetFamilyName() const
void SetAllUsedFlags(bool bUsed)
Sets all "attribute used" flags to the passed state.
const sal_uInt8 EXC_XF_HOR_DISTRIB
css::awt::FontSlant GetApiPosture() const
Returns the API font posture.
sal_Int16 GetApiFontEncoding() const
Returns the API font text encoding.
#define LANGUAGE_ENGLISH_US
#define EXC_PALETTE_EGA_COLORS_DARK
Standard EGA colors, dark.
bool mbDiagTLtoBR
Style of diagonal line(s).
Color mnNoteBack
Note text color.
const sal_uInt16 EXC_COLOR_BUTTONBACK
System window background color (>=BIFF5).
ScfPropSetHelper maHlpChCommon
const sal_uInt8 EXC_XF_HOR_RIGHT
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
Color mnNoteText
System button background color.
bool mbCellXF
Index to parent style XF.
sal_Int16 GetApiEscapement() const
Returns the API escapement style.
const Color & GetFaceColor() const
constexpr::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
This struct helps reading and writing Excel fonts.
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.
bool mbFmtUsed
true = font index used.
XclFontData()
true = Shadowed.
const Color * mpnColorTable
sal_uInt16 mnHeight
Font color.
#define LANGUAGE_FRENCH_MONACO
rtl_TextEncoding GetFontEncoding() const
Returns the font text encoding.
const Color spnDefColorTable3[]
Default color table for BIFF3/BIFF4.
const sal_uInt16 EXC_FONTWGHT_DONTKNOW
ScfPropSetHelper maHlpChEscapement
Chart properties for Complex script, no font name.
const sal_uInt8 EXC_XF_VER_JUSTIFY
#define LANGUAGE_FRENCH_SWISS
const sal_uInt16 EXC_FONTWGHT_SEMILIGHT
#define LANGUAGE_GERMAN_AUSTRIAN
const sal_uInt8 EXC_FONTFAM_SWISS
#define LANGUAGE_FRENCH_CANADIAN
void SetScFrameDir(SvxFrameDirection eFrameDir)
Sets the Calc frame direction.
#define LANGUAGE_ENGLISH_NZ
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_uInt16 EXC_FORMAT_NOTFOUND
FontFamily GetFamilyType()
const sal_uInt16 EXC_FONTESC_SUB
const sal_uInt16 EXC_FONTWGHT_BOLD
SvxCellJustifyMethod GetScVerJustifyMethod() const
Returns vertical justification method as Calc's attribute.
const sal_uInt8 EXC_FONTFAM_ROMAN
void SetApiWeight(float fApiWeight)
Sets the API font weight.
const sal_uInt16 EXC_COLOR_NOTETEXT
Note background color.
const Color spnDefColorTable2[]
Default color table for BIFF2.
const sal_uInt16 EXC_FONTWGHT_BLACK
ScfPropSetHelper maHlpControl
Chart properties for font escapement.
bool mbOutline
true = Struck out.
sal_uInt16 mnBackColor
Palette index to foreground color.
XclCellArea()
Fill pattern.
const sal_uInt16 EXC_FONTESC_NONE
const sal_uInt16 EXC_FONTWGHT_MEDIUM
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 InitializeWrite()
Must be called before reading or storing property values in the helper.
void SetApiPosture(css::awt::FontSlant eApiPosture)
Sets the API font posture.
sal_uInt16 mnTopColor
Palette index for right line.
bool mbItalic
Underline style.
#define LANGUAGE_SWEDISH_FINLAND
const sal_uInt16 EXC_COLOR_WINDOWTEXT3
First user defined color.
void InsertBuiltinFormats()
Inserts built-in number formats for the current system language.
Color mnWindowBack
System window text color.
const sal_uInt8 EXC_FONTFAM_SCRIPT
void ReadFromPropertySet(const ScfPropertySet &rPropSet)
Reads all values from the passed property set.
#define LANGUAGE_ENGLISH_CAN
bool mbFontUsed
true = cell protection used.
constexpr auto convert(N n, sal_Int64 mul, sal_Int64 div)
bool mbAlignUsed
true = number format used.
sal_uInt8 mnVerAlign
Horizontal alignment.
#define SAL_N_ELEMENTS(arr)
const sal_uInt16 EXC_XF_STYLEPARENT
ScfPropSetHelper maHlpChAsian
Chart properties for Western script.
void WriteToPropertySet(ScfPropertySet &rPropSet) const
Writes all values to the passed property set.
NfIndexTableOffset meOffset
Format string, may be empty (meOffset used then).
FontWeight GetScWeight() const
Returns the Calc font weight.
#define EXC_NUMFMT_REUSE(nXclNumFmt, nXclReuse)
Defines an Excel built-in number format that is the same as the specified.
XclNumFmtBuffer(const XclRoot &rRoot)
sal_uInt16 mnEscapem
Boldness: 400=normal, 700=bold.
void SetScEscapement(short nScEscapem)
Sets the Calc escapement style.
#define LANGUAGE_ITALIAN_SWISS
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.
MS Excel 5.0, MS Excel 7.0 (95)
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_uInt8 EXC_FONTUNDERL_DOUBLE_ACC
Contains all cell protection attributes.
Contains all cell alignment attributes.
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).
Color GetDefColor(sal_uInt16 nXclIndex) const
Returns the default color for a (non-zero-based) Excel color or COL_AUTO on error.
#define LANGUAGE_GERMAN_LIECHTENSTEIN
const sal_uInt8 EXC_FONTFAM_DECORATIVE
XclCellAlign()
true = Shrink to fit cell size.
const Color spnDefColorTable5[]
Default color table for BIFF5/BIFF7.
void SetApiHeight(float fPoint)
Sets the API font height.
#define LANGUAGE_DONTKNOW
#define LANGUAGE_ENGLISH_EIRE
const Size & GetFontSize() const
#define EXC_NUMFMT_OFFSET(nXclNumFmt, eOffset)
Defines an Excel built-in number format that maps to an own built-in format.
const sal_uInt8 EXC_XF_VER_TOP
#define LANGUAGE_CHINESE_SIMPLIFIED
bool mbLineBreak
Indentation.
constexpr LanguageType primary(LanguageType lt)
FontStrikeout GetStrikeout() const
const sal_uInt8 EXC_XF_HOR_CENTER_AS
const sal_uInt8 EXC_XF_HOR_LEFT
#define LANGUAGE_GERMAN_LUXEMBOURG
sal_uInt8 mnPattern
Palette index to background color.
const sal_uInt8 EXC_FONTUNDERL_SINGLE
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_FONTWGHT_ULTRALIGHT
sal_uInt8 mnTextDir
Text orientation.
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.
void SetApiEscapement(sal_Int16 nApiEscapem)
Sets the API escapement style.
const sal_uInt16 EXC_FONTESC_SUPER
const sal_uInt16 EXC_COLOR_FONTAUTO
Note text color.
A wrapper for a UNO property set.
const sal_uInt16 EXC_COLOR_CHBORDERAUTO
System window background color (BIFF8 charts).
const Color & GetColor() const
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_uInt8 EXC_FONTCSET_ANSI_LATIN
void SetScHeight(sal_Int32 nTwips)
Sets the Calc font height (in twips).
float GetApiHeight() const
Returns the API font height.
const sal_uInt8 EXC_XF_VER_BOTTOM
void SetScPosture(FontItalic eScPosture)
Sets the Calc font posture.
#define EXC_PALETTE_EGA_COLORS_LIGHT
Standard EGA colors, bright.
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.
sal_uInt8 mnFamily
Escapement type.
VCL_DLLPUBLIC float ConvertFontWeight(FontWeight eWeight)
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
sal_uInt16 mnWeight
Font height in twips (1/20 of a point).
void SetApiUnderline(sal_Int16 nApiUnderl)
Sets the API font underline style.
void SetApiFamily(sal_Int16 nApiFamily)
Sets the API font family.
short GetEscapement() const
tools::Long Height() const
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.
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
sal_uInt8 mnIndent
Text rotation angle.
const sal_uInt8 EXC_FONTUNDERL_NONE
const Color & GetWindowColor() const
XclBiff GetBiff() const
Returns the current BIFF version of the importer/exporter.
bool mbHidden
true = Locked against editing.
FontFamily GetScFamily(rtl_TextEncoding eDefTextEnc) const
Returns the Calc font family.
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.
Color mnWindowText
The table with RGB values.
const sal_uInt8 EXC_ROT_NONE
Text orientation: 90 deg clockwise.
FontLineStyle GetUnderline() const
#define LANGUAGE_FRENCH_LUXEMBOURG
NF_DATETIME_SYSTEM_SHORT_HHMM
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
#define EXC_NUMFMT_ENDTABLE()
Terminates an Excel built-in number format table.
#define SAL_WARN(area, stream)
#define LANGUAGE_CHINESE_TRADITIONAL
ScfPropSetHelper maHlpChCmplxNoName
Chart properties for Asian script, no font name.
sal_Int16 GetApiUnderline() const
Returns the API font underline style.
void Clear()
Resets all members to default (empty) values.
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.
#define LANGUAGE_FRENCH_BELGIAN
const LanguageType meSysLang
Map containing all default and user-defined formats.
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.
#define EXC_NUMFMT_STRING(nXclNumFmt, pcUtf8)
Defines a literal Excel built-in number format.
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
#define LANGUAGE_ENGLISH_AUS
bool mbStrikeout
true = Italic.
Access to global data for a filter object (imported or exported document) from other classes...
#define LANGUAGE_JAPANESE
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.
#define LANGUAGE_GERMAN_SWISS
SvxCellHorJustify GetScHorAlign() const
Returns the Calc horizontal alignment.
const Color & GetWindowTextColor() const
All text objects in charts.
ScfPropSetHelper & GetChartHelper(sal_Int16 nScript)
Returns a chart property set helper according to the passed script type.
rtl_TextEncoding GetCharSet() const
sal_Int16 GetApiStrikeout() const
Returns the API font strike-out style.
const sal_uInt8 EXC_FONTFAM_DONTKNOW
const sal_uInt8 EXC_FONTFAM_MODERN