52 #include <osl/diagnose.h>
57 #include <stlsheet.hxx>
58 #include <stlpool.hxx>
59 #include <document.hxx>
61 #include <globstr.hrc>
66 #include <boost/functional/hash.hpp>
96 pStyle ( rPatternAttr.pStyle ),
97 mnKey(rPatternAttr.mnKey)
115 static bool StrCmp(
const OUString* pStr1,
const OUString* pStr2 )
123 return *pStr1 == *pStr2;
145 if (!SfxPoolItem::operator==(rCmp) )
149 auto const & rOther =
static_cast<const ScPatternAttr&
>(rCmp);
150 if (!rOther.mxHashCode)
164 eOrient = SvxCellOrientation::Stacked;
169 if( nAngle == 9000_deg100 )
170 eOrient = SvxCellOrientation::BottomUp;
171 else if( nAngle == 27000_deg100 )
172 eOrient = SvxCellOrientation::TopBottom;
186 sal_uInt16& nFontId, sal_uInt16& nHeightId, sal_uInt16& nWeightId, sal_uInt16& nPostureId, sal_uInt16& nLangId)
188 if ( nScript == SvtScriptType::ASIAN )
196 else if ( nScript == SvtScriptType::COMPLEX )
220 const Color* pBackConfigColor,
const Color* pTextConfigColor )
225 sal_uInt32 nFontHeight;
239 sal_uInt16 nFontId, nHeightId, nWeightId, nPostureId, nLangId;
240 getFontIDsByScriptType(nScript, nFontId, nHeightId, nWeightId, nPostureId, nLangId);
246 if ( pCondSet->
GetItemState( nFontId,
true, &pItem ) != SfxItemState::SET )
247 pItem = &rItemSet.
Get( nFontId );
248 pFontAttr =
static_cast<const SvxFontItem*
>(pItem);
250 if ( pCondSet->
GetItemState( nHeightId,
true, &pItem ) != SfxItemState::SET )
251 pItem = &rItemSet.
Get( nHeightId );
254 if ( pCondSet->
GetItemState( nWeightId,
true, &pItem ) != SfxItemState::SET )
255 pItem = &rItemSet.
Get( nWeightId );
258 if ( pCondSet->
GetItemState( nPostureId,
true, &pItem ) != SfxItemState::SET )
259 pItem = &rItemSet.
Get( nPostureId );
298 if ( pCondSet->
GetItemState( nLangId,
true, &pItem ) != SfxItemState::SET )
299 pItem = &rItemSet.
Get( nLangId );
304 pFontAttr = &
static_cast<const SvxFontItem&
>(rItemSet.
Get( nFontId ));
306 rItemSet.
Get( nHeightId )).GetHeight();
323 OSL_ENSURE(pFontAttr,
"Oops?");
342 if ( pOutDev !=
nullptr )
348 Size aSize( 0, static_cast<tools::Long>(nFontHeight) );
350 MapMode aSrcMode( MapUnit::MapTwip,
Point(), aFraction, aFraction );
383 aBackColor =
static_cast<const SvxBrushItem*
>(pItem)->GetColor();
394 else if ( pBackConfigColor )
397 aBackColor = *pBackConfigColor;
407 else if ( pTextConfigColor )
410 aSysTextColor = *pTextConfigColor;
429 aColor = aSysTextColor;
453 const Color* pBackConfigColor,
const Color* pTextConfigColor )
const
455 GetFont( rFont,
GetItemSet(), eAutoMode, pOutDev, pScale, pCondSet, nScript, pBackConfigColor, pTextConfigColor );
460 sal_uInt16 nFontId, nHeightId, nWeightId, nPostureId, nLangId;
461 getFontIDsByScriptType(nScript, nFontId, nHeightId, nWeightId, nPostureId, nLangId);
466 if ( rItemSet.
GetItemState( nFontId,
true, &pItem ) == SfxItemState::SET )
468 pItem = &rItemSet.
Get( nFontId );
472 if ( rItemSet.
GetItemState( nHeightId,
true, &pItem ) == SfxItemState::SET )
474 pItem = &rItemSet.
Get( nHeightId );
478 if ( rItemSet.
GetItemState( nWeightId,
true, &pItem ) == SfxItemState::SET )
480 pItem = &rItemSet.
Get( nWeightId );
484 if ( rItemSet.
GetItemState( nPostureId,
true, &pItem ) == SfxItemState::SET )
486 pItem = &rItemSet.
Get( nPostureId );
544 if ( rItemSet.
GetItemState( nLangId,
true, &pItem ) == SfxItemState::SET )
546 pItem = &rItemSet.
Get( nLangId );
557 std::unique_ptr<SvxColorItem> aColorItem(std::make_unique<SvxColorItem>(
EE_CHAR_COLOR));
558 std::unique_ptr<SvxFontItem> aFontItem(std::make_unique<SvxFontItem>(
EE_CHAR_FONTINFO));
585 aColorItem.reset(static_cast<SvxColorItem*>(pItem->
Clone()));
589 aFontItem.reset(static_cast<SvxFontItem*>(pItem->
Clone()));
593 aCjkFontItem.reset(static_cast<SvxFontItem*>(pItem->
Clone()));
597 aCtlFontItem.reset(static_cast<SvxFontItem*>(pItem->
Clone()));
631 aUnderlineItem.reset(static_cast<SvxUnderlineItem*>(pItem->
Clone()));
635 aOverlineItem.reset(static_cast<SvxOverlineItem*>(pItem->
Clone()));
721 if ( aColorItem->GetValue() ==
COL_AUTO )
790 rDestSet.
Put( *static_cast<const SvxFontItem*>(pItem),
ATTR_FONT );
863 switch ( static_cast<const SvxAdjustItem*>(pItem)->GetAdjust() )
865 case SvxAdjust::Left:
868 eVal = SvxCellHorJustify::Standard;
870 case SvxAdjust::Right:
871 eVal = SvxCellHorJustify::Right;
873 case SvxAdjust::Block:
874 eVal = SvxCellHorJustify::Block;
876 case SvxAdjust::Center:
877 eVal = SvxCellHorJustify::Center;
879 case SvxAdjust::BlockLine:
880 eVal = SvxCellHorJustify::Block;
883 eVal = SvxCellHorJustify::Right;
886 eVal = SvxCellHorJustify::Standard;
888 if ( eVal != SvxCellHorJustify::Standard )
912 case SvxCellHorJustify::Right: eSvxAdjust = SvxAdjust::Right;
break;
913 case SvxCellHorJustify::Center: eSvxAdjust = SvxAdjust::Center;
break;
914 case SvxCellHorJustify::Block: eSvxAdjust = SvxAdjust::Block;
break;
915 default: eSvxAdjust = SvxAdjust::Left;
break;
931 if ( rThisSet.
GetItemState( nSubWhich,
false, &pThisItem ) == SfxItemState::SET )
934 if ( eOldState == SfxItemState::SET )
937 if ( pThisItem == pOldItem )
943 else if ( eOldState != SfxItemState::DONTCARE )
959 for (sal_uInt16
i=0; pWhich[
i];
i++)
960 if ( rSet.
GetItemState( pWhich[
i],
false ) == SfxItemState::SET )
968 for (sal_uInt16
i=0; pWhich[
i];
i++)
981 if ( !pSrcStyle || !pDestPool || !pSrcPool )
983 OSL_FAIL(
"CopyStyleToPool: Invalid Arguments :-/" );
987 const OUString aStrSrcStyle = pSrcStyle->
GetName();
993 const OUString aStrParent = pSrcStyle->
GetParent();
996 pDestStyle = &pDestPool->
Make( aStrSrcStyle, eFamily, SfxStyleSearchBits::UserDefined );
998 rDestSet.
Put( rSrcSet );
1004 if ( pFormatExchangeList &&
1008 SvNumberFormatterIndexTable::const_iterator it = pFormatExchangeList->find(nOldFormat);
1009 if (it != pFormatExchangeList->end())
1011 sal_uInt32 nNewFormat = it->second;
1018 if (
ScResId(STR_STYLENAME_STANDARD) != aStrParent &&
1019 aStrSrcStyle != aStrParent &&
1020 !pDestPool->
Find( aStrParent, eFamily ) )
1023 pSrcPool, pDestPool, pFormatExchangeList );
1037 SfxItemSet* pDestSet = &pDestPattern->GetItemSet();
1041 if ( pDestDoc != pSrcDoc )
1043 OSL_ENSURE(
pStyle,
"Missing Pattern-Style! :-/" );
1053 pDestPattern->SetStyleSheet( static_cast<ScStyleSheet*>(pStyleCpy) );
1060 if (eItemState==SfxItemState::SET)
1062 std::unique_ptr<SfxPoolItem> pNewItem;
1084 SvNumberFormatterIndexTable::const_iterator it = pDestDoc->
GetFormatExchangeList()->find(nOldFormat);
1087 sal_uInt32 nNewFormat = it->second;
1094 pDestSet->
Put(*pNewItem);
1097 pDestSet->
Put(*pSrcItem);
1102 return pPatternAttr;
1113 if ( eState == SfxItemState::SET )
1114 if ( static_cast<const SvxBrushItem*>(pItem)->GetColor() !=
COL_TRANSPARENT )
1118 if ( eState == SfxItemState::SET )
1127 if ( eState == SfxItemState::SET )
1128 if( static_cast< const SvxLineItem* >( pItem )->GetLine() )
1132 if ( eState == SfxItemState::SET )
1133 if( static_cast< const SvxLineItem* >( pItem )->GetLine() )
1137 if ( eState == SfxItemState::SET )
1138 if ( static_cast<const SvxShadowItem*>(pItem)->GetLocation() != SvxShadowLocation::NONE )
1148 return ( pItem1 == pItem2 || *pItem1 == *pItem2 );
1177 if (bClearDirectFormat)
1191 OSL_FAIL(
"ScPatternAttr::SetStyleSheet( NULL ) :-|" );
1238 return static_cast<const SvxFontItem*
>(pItem)->GetCharSet() == RTL_TEXTENCODING_SYMBOL;
1245 sal_uInt32 getNumberFormatKey(
const SfxItemSet& rSet)
1259 sal_uInt32 nFormat = getNumberFormatKey(
GetItemSet());
1263 else if ( pFormatter )
1285 nFormat = getNumberFormatKey(*pCondSet);
1287 eLang = getLanguageType(*pCondSet);
1303 if ( pCondSet && pCondSet->
GetItemState( nWhich,
true, &pCondItem ) == SfxItemState::SET )
1305 return rItemSet.
Get(nWhich);
1321 GetValue() == SvxCellHorJustify::Repeat );
1344 Degree100 nRot180 = nAttrRotate % 18000_deg100;
1345 if ( nRot180 == 9000_deg100 )
void SetFamily(FontFamily)
virtual std::unique_ptr< SfxStyleSheetIterator > CreateIterator(SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
constexpr TypedWhichId< SvxWeightItem > ATTR_CTL_FONT_WEIGHT(118)
void SetStrikeout(FontStrikeout)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CJK(EE_CHAR_START+17)
std::optional< FontItalic > eItalic
constexpr TypedWhichId< SvxEmphasisMarkItem > ATTR_FONT_EMPHASISMARK(121)
sal_uInt64 GetKey() const
ScRotateDir GetRotateDir(const SfxItemSet *pCondSet) const
constexpr TypedWhichId< SvxScriptSpaceItem > EE_PARA_ASIANCJKSPACING(EE_PARA_START+4)
void SetFontSize(const Size &)
static bool StrCmp(const OUString *pStr1, const OUString *pStr2)
constexpr TypedWhichId< SvxLanguageItem > ATTR_LANGUAGE_FORMAT(147)
std::optional< Color > aColor
const OUString & GetFamilyName() const
constexpr TypedWhichId< ScPatternAttr > ATTR_PATTERN(156)
constexpr TypedWhichId< SvxBoxItem > ATTR_BORDER(150)
constexpr TypedWhichId< SvxLanguageItem > ATTR_CJK_FONT_LANGUAGE(115)
constexpr sal_uInt16 ATTR_PATTERN_START(100)
const OUString & GetStyleName() const
Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
like DISPLAY, but ignore stored font and background colors
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const =0
virtual bool SetParent(const OUString &)
void SetOverline(FontLineStyle)
constexpr TypedWhichId< SvxCrossedOutItem > ATTR_FONT_CROSSEDOUT(106)
constexpr TypedWhichId< SvxLanguageItem > ATTR_FONT_LANGUAGE(110)
ScPatternAttr(std::unique_ptr< SfxItemSet > &&pItemSet, const OUString &rStyleName)
constexpr TypedWhichId< SvxRotateModeItem > ATTR_ROTATE_MODE(136)
virtual const OUString & GetParent() const
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC(EE_CHAR_START+7)
void SetWeight(FontWeight)
const SfxItemSet & GetItemSet() const
bool HasItemsSet(const sal_uInt16 *pWhich) const
void SetOutline(bool bOutline)
like DISPLAY, but ignore stored background color (use configured color)
const MapMode & GetMapMode() const
constexpr TypedWhichId< SvxAdjustItem > EE_PARA_JUST(EE_PARA_START+15)
constexpr TypedWhichId< SvxCharReliefItem > ATTR_FONT_RELIEF(124)
void SetCharSet(rtl_TextEncoding)
constexpr TypedWhichId< SvxFontItem > ATTR_FONT(100)
virtual SfxItemSet & GetItemSet()
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CJK(EE_CHAR_START+15)
like DISPLAY, but ignore stored font color (assume COL_AUTO)
static void FillToEditItemSet(SfxItemSet &rEditSet, const SfxItemSet &rSrcSet, const SfxItemSet *pCondSet=nullptr)
Converts all Calc items contained in rSrcSet to edit engine items and puts them into rEditSet...
const editeng::SvxBorderLine * GetRight() const
SfxStyleFamily GetFamily() const
static SfxStyleSheetBase * lcl_CopyStyleToPool(SfxStyleSheetBase *pSrcStyle, SfxStyleSheetBasePool *pSrcPool, SfxStyleSheetBasePool *pDestPool, const SvNumberFormatterIndexTable *pFormatExchangeList)
FontPitch GetPitch() const
std::optional< FontRelief > eRelief
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
FontFamily GetFamily() const
constexpr TypedWhichId< SvxFrameDirectionItem > EE_PARA_WRITINGDIR(EE_PARA_START+0)
std::map< sal_uInt16, sal_uInt32 > SvNumberFormatterIndexTable
SC_DLLPUBLIC ScDocumentPool * GetPool()
constexpr::Color COL_AUTO(0xFF, 0xFF, 0xFF, 0xFF)
constexpr TypedWhichId< ScRotateValueItem > ATTR_ROTATE_VALUE(135)
static bool EqualPatternSets(const SfxItemSet &rSet1, const SfxItemSet &rSet2)
constexpr::Color COL_TRANSPARENT(0xFF, 0xFF, 0xFF, 0xFF)
bool IsSymbolFont() const
If font is an old symbol font StarBats/StarMath with text encoding RTL_TEXTENC_SYMBOL.
const OUString & GetName() const
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
constexpr TypedWhichId< SvxShadowItem > ATTR_SHADOW(152)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CTL(EE_CHAR_START+18)
rtl_TextEncoding GetCharSet() const
std::optional< FontEmphasisMark > eEmphasis
const ScValidationDataList * GetValidationList() const
constexpr TypedWhichId< SvxForbiddenRuleItem > EE_PARA_FORBIDDENRULES(EE_PARA_START+3)
void CalcHashCode() const
void SetUnderline(FontLineStyle)
void DeleteUnchanged(const ScPatternAttr *pOldAttrs)
std::optional< bool > bOutline
constexpr TypedWhichId< SvxContourItem > EE_CHAR_OUTLINE(EE_CHAR_START+8)
void SetLanguage(LanguageType)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT(EE_CHAR_START+4)
void SetShadow(bool bShadow)
void SetPitch(FontPitch ePitch)
constexpr TypedWhichId< SvxUnderlineItem > ATTR_FONT_UNDERLINE(104)
const OUString & GetStyleName() const
const SfxPoolItem & GetItem(sal_uInt16 nWhichP) const
constexpr TypedWhichId< SvxLineItem > ATTR_BORDER_TLBR(141)
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALIDDATA(153)
void SetRelief(FontRelief)
virtual ~ScPatternAttr() override
constexpr TypedWhichId< SvxShadowedItem > EE_CHAR_SHADOW(EE_CHAR_START+9)
const editeng::SvxBorderLine * GetTop() const
constexpr TypedWhichId< SvxPostureItem > ATTR_FONT_POSTURE(103)
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
constexpr TypedWhichId< SvxShadowedItem > ATTR_FONT_SHADOWED(108)
void SetScaleX(const Fraction &rScaleX)
static void GetFont(vcl::Font &rFont, const SfxItemSet &rItemSet, ScAutoFontColorMode eAutoMode, const OutputDevice *pOutDev=nullptr, const Fraction *pScale=nullptr, const SfxItemSet *pCondSet=nullptr, SvtScriptType nScript=SvtScriptType::NONE, const Color *pBackConfigColor=nullptr, const Color *pTextConfigColor=nullptr)
Static helper function to fill a font object from the passed item set.
ScValidationData * GetData(sal_uInt32 nKey)
void SetFamilyName(const OUString &rFamilyName)
void FillEditParaItems(SfxItemSet *pSet) const
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CJK_FONT_HEIGHT(112)
const editeng::SvxBorderLine * GetLeft() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
std::optional< bool > bShadow
virtual SfxStyleSheetBase & Make(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
LanguageType GetLanguage(SwWrtShell &rSh, sal_uInt16 nLangWhichId)
static void GetFromEditItemSet(SfxItemSet &rDestSet, const SfxItemSet &rEditSet)
Converts all edit engine items contained in rEditSet to Calc items and puts them into rDestSet...
constexpr TypedWhichId< SvxCharReliefItem > EE_CHAR_RELIEF(EE_CHAR_START+26)
std::optional< size_t > mxHashCode
void SetWordLineMode(bool bWordLine)
OUString ScResId(const char *pId)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT_CJK(EE_CHAR_START+21)
void SetScaleY(const Fraction &rScaleY)
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALUE_FORMAT(146)
sal_uInt32 GetNumberFormat(SvNumberFormatter *) const
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC_CTL(EE_CHAR_START+24)
inline::tools::Long HMMToTwips(::tools::Long nHMM)
std::optional< const SvxFontItem * > pFontAttr
constexpr TypedWhichId< ScVerticalStackCell > ATTR_STACKED(134)
MapUnit GetMapUnit() const
#define SV_COUNTRY_LANGUAGE_OFFSET
virtual bool operator==(const SfxPoolItem &rCmp) const override
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CTL_FONT_HEIGHT(117)
constexpr TypedWhichId< SvxFontItem > ATTR_CTL_FONT(116)
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
static SvxCellOrientation GetCellOrientation(const SfxItemSet &rItemSet, const SfxItemSet *pCondSet)
SfxItemPool * GetPool() const
constexpr TypedWhichId< ScHyphenateCell > ATTR_HYPHENATE(125)
void SetStyleSheet(ScStyleSheet *pNewStyle, bool bClearDirectFormat=true)
Degree100 GetRotateVal(const SfxItemSet *pCondSet) const
void UpdateStyleSheet(const ScDocument &rDoc)
void SetColor(const Color &)
ScAutoFontColorMode
how to treat COL_AUTO in GetFont:
constexpr TypedWhichId< SvxFontItem > ATTR_CJK_FONT(111)
Point LogicToPixel(const Point &rLogicPt) const
void SetParent(const SfxItemSet *pNew)
constexpr TypedWhichId< SvxBrushItem > ATTR_BACKGROUND(148)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CTL(EE_CHAR_START+16)
constexpr TypedWhichId< SvxLanguageItem > ATTR_CTL_FONT_LANGUAGE(120)
constexpr TypedWhichId< SvxFrameDirectionItem > ATTR_WRITINGDIR(138)
const OUString & GetFamilyName() const
SC_DLLPUBLIC sal_uLong AddValidationEntry(const ScValidationData &rNew)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
std::optional< FontStrikeout > eStrike
constexpr TypedWhichId< SvxCrossedOutItem > EE_CHAR_STRIKEOUT(EE_CHAR_START+6)
void SetEmphasisMark(FontEmphasisMark)
void SetStyleName(const OUString &rStyleName)
constexpr TypedWhichId< SvxPostureItem > ATTR_CTL_FONT_POSTURE(119)
static bool OneEqual(const SfxItemSet &rSet1, const SfxItemSet &rSet2, sal_uInt16 nId)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CTL(EE_CHAR_START+20)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
constexpr TypedWhichId< SvxOverlineItem > ATTR_FONT_OVERLINE(105)
SfxPoolItem const ** GetItems_Impl() const
ScPatternAttr * PutInPool(ScDocument *pDestDoc, ScDocument *pSrcDoc) const
void ClearItems(const sal_uInt16 *pWhich)
void SetTransparent(bool bTransparent)
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_WHITE
void SetKey(sal_uInt64 nKey)
std::optional< sal_uInt32 > nFontHeight
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT_CTL(EE_CHAR_START+22)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
constexpr TypedWhichId< SvxPostureItem > ATTR_CJK_FONT_POSTURE(114)
inline::tools::Long TwipsToHMM(::tools::Long nTwips)
black or white, depending on background
constexpr TypedWhichId< SvxWordLineModeItem > EE_CHAR_WLM(EE_CHAR_START+13)
virtual SC_DLLPUBLIC SfxItemSet & GetItemSet() override
constexpr TypedWhichId< SvxEmphasisMarkItem > EE_CHAR_EMPHASISMARK(EE_CHAR_START+25)
const T & Put(std::unique_ptr< T > xItem, sal_uInt16 nWhich=0)
constexpr TypedWhichId< SvxWeightItem > ATTR_FONT_WEIGHT(102)
constexpr TypedWhichId< SfxBoolItem > EE_PARA_HYPHENATE(EE_PARA_START+6)
constexpr TypedWhichId< SvxOverlineItem > EE_CHAR_OVERLINE(EE_CHAR_START+29)
constexpr TypedWhichId< SvxHorJustifyItem > ATTR_HOR_JUSTIFY(129)
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
These need to be in global namespace just like their respective types are.
constexpr sal_uInt16 ATTR_PATTERN_END(155)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
std::optional< OUString > pName
SC_DLLPUBLIC ScStyleSheetPool * GetStyleSheetPool() const
void SetItalic(FontItalic)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC_CJK(EE_CHAR_START+23)
bool IsVisibleEqual(const ScPatternAttr &rOther) const
constexpr TypedWhichId< SvxUnderlineItem > EE_CHAR_UNDERLINE(EE_CHAR_START+5)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CJK(EE_CHAR_START+19)
constexpr TypedWhichId< SvxWordLineModeItem > ATTR_FONT_WORDLINE(123)
std::optional< LanguageType > eLang
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
constexpr TypedWhichId< SvxColorItem > ATTR_FONT_COLOR(109)
constexpr TypedWhichId< SvxWeightItem > ATTR_CJK_FONT_WEIGHT(113)
std::optional< FontWeight > eWeight
constexpr TypedWhichId< SvxFontHeightItem > ATTR_FONT_HEIGHT(101)
const editeng::SvxBorderLine * GetBottom() const
constexpr TypedWhichId< SvxLineItem > ATTR_BORDER_BLTR(142)
constexpr TypedWhichId< SvxContourItem > ATTR_FONT_CONTOUR(107)
const OUString * GetStyleName() const
std::optional< FontLineStyle > eUnder
SvNumberFormatterIndexTable * GetFormatExchangeList() const
SAL_DLLPRIVATE sal_Int32 GetDPIX() const
virtual ScPatternAttr * Clone(SfxItemPool *pPool=nullptr) const override
std::optional< bool > bWordLine
void FillEditItemSet(SfxItemSet *pEditSet, const SfxItemSet *pCondSet=nullptr) const
Converts all Calc items contained in the own item set to edit engine items and puts them into pEditSe...
static ScDxfFont GetDxfFont(const SfxItemSet &rSet, SvtScriptType nScript)
std::optional< FontLineStyle > eOver
constexpr TypedWhichId< SvxForbiddenRuleItem > ATTR_FORBIDDEN_RULES(128)