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");
#define NUM_ATTRIBUTE_STACKS
const sal_uInt8 StackPos[]
Attribute to Stack Mapping.
Provides access to settings of a document.
Used by Attribute Iterators to organize attributes on stacks to find the valid attribute in each cate...
const IDocumentSettingAccess * m_pIDocumentSettingAccess
void Init(const SwAttrSet &rAttrSet, const IDocumentSettingAccess &rIDocumentSettingAccess)
const SwFont * GetFont() const
void PushAndChg(const SwTextAttr &rAttr, SwFont &rFnt)
void ResetFont(SwFont &rFnt) const
void Pop(const SwTextAttr &rAttr)
Only used during redlining.
const SwViewShell * m_pShell
std::optional< SwFont > m_oFnt
bool Push(const SwTextAttr &rAttr, const SfxPoolItem &rItem)
std::vector< const SwTextAttr * > m_aAttrStack[NUM_ATTRIBUTE_STACKS]
const SfxPoolItem * m_pDefaultArray[NUM_DEFAULT_VALUES]
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...
void PopAndChg(const SwTextAttr &rAttr, SwFont &rFnt)
void ActivateTop(SwFont &rFnt, sal_uInt16 nStackPos)
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.
const SwTextAttr * GetTop(sal_uInt16 nStack)
void RemoveFromStack(sal_uInt16 nWhich, const SwTextAttr &rAttr)
bool IsVertLayout() const
To take Asian or other languages into consideration, an SwFont object consists of 3 SwSubFonts (Latin...
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
#define NUM_DEFAULT_VALUES