21 #define NUM_ATTRIBUTE_STACKS 45
77 bool bVertLayout,
bool bVertLayoutLRBT );
101 sal_uInt16& nHeight)
const;
106 OSL_ENSURE(
m_oFnt,
"ResetFont without a font");
void Pop(const SwTextAttr &rAttr)
Only used during redlining.
void PopAndChg(const SwTextAttr &rAttr, SwFont &rFnt)
void FontChg(const SfxPoolItem &rItem, SwFont &rFnt, bool bPush)
When popping an attribute from the stack, the top more remaining attribute in the stack becomes valid...
const SfxPoolItem * m_pDefaultArray[NUM_DEFAULT_VALUES]
void ResetFont(SwFont &rFnt) const
#define NUM_DEFAULT_VALUES
const SwFont * GetFont() const
A wrapper around SfxPoolItem to store the start position of (usually) a text portion, with an optional end.
Used by Attribute Iterators to organize attributes on stacks to find the valid attribute in each cate...
const sal_uInt8 StackPos[]
Attribute to Stack Mapping.
void Init(const SwAttrSet &rAttrSet, const IDocumentSettingAccess &rIDocumentSettingAccess)
#define NUM_ATTRIBUTE_STACKS
bool IsVertLayout() const
const IDocumentSettingAccess * m_pIDocumentSettingAccess
Provides access to settings of a document.
void RemoveFromStack(sal_uInt16 nWhich, const SwTextAttr &rAttr)
void GetDefaultAscentAndHeight(SwViewShell const *pShell, OutputDevice const &rOut, sal_uInt16 &nAscent, sal_uInt16 &nHeight) const
Takes the default font and calculated the ascent and height.
bool Push(const SwTextAttr &rAttr, const SfxPoolItem &rItem)
const SwTextAttr * GetTop(sal_uInt16 nStack)
std::optional< SwFont > m_oFnt
const SwViewShell * m_pShell
void ActivateTop(SwFont &rFnt, sal_uInt16 nStackPos)
std::vector< const SwTextAttr * > m_aAttrStack[NUM_ATTRIBUTE_STACKS]
void PushAndChg(const SwTextAttr &rAttr, SwFont &rFnt)