29 m_pLine(
std::move(pNew) )
105 OSL_ENSURE( !
IsLocked(),
"+SwTextFrame::ClearPara: this is locked." );
112 pTextLine->
SetPara(
nullptr,
true );
137 pTextLine->
SetPara( pNew, bDelete );
141 OSL_ENSURE( !pNew,
"+SetPara: Losing SwParaPortion" );
152 OSL_FAIL(
"+SetPara: InsertCache failed." );
168 sal_uInt16 nVisibleShells(0);
178 sal_uInt16
const nPreserved(100 * nVisibleShells);
180 if (rCache.
GetCurMax() < nPreserved + 250)
Represents the visualization of a paragraph.
sal_uInt16 GetCachePos() const
void SetLRUOfst(const sal_uInt16 nOfst)
sal_uInt16 GetCurMax() const
SwParaPortion * GetPara()
SwParaPortion * GetPara()
SwParaPortion * GetPara()
Collection of SwLineLayout instances, represents the paragraph text in Writer layout.
void SetPara(SwParaPortion *pNew, bool bDelete=true)
void SetPara(SwParaPortion *pNew, bool bDelete)
static SwCache * GetTextCache()
SwCacheObj * Get(bool isDuplicateOwnerAllowed)
void ResetLRUOfst()
nOfst determines how many are not to be touched
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
static SfxViewShell * GetNext(const SfxViewShell &rPrev, bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
sal_uInt16 GetCacheIdx() const
SwTextLineAccess(const SwTextFrame *pOwner)
virtual void UpdateCachePos() override
void IncreaseMax(const sal_uInt16 nAdd)
void RemoveFromCache()
Removes this frame completely from the Cache.
SwSaveSetLRUOfst()
Prevent the SwParaPortions of the visible paragraphs from being deleted; they would just be recreated...
virtual ~SwTextLine() override
static SfxViewShell * GetFirst(bool bOnlyVisible=true, const std::function< bool(const SfxViewShell *)> &isViewShell=nullptr)
virtual SwCacheObj * NewObj() override
Can be use in NewObj.
SwTextLine(SwTextFrame const *pFrame, std::unique_ptr< SwParaPortion > pNew=nullptr)
void Delete(const void *pOwner, sal_uInt16 nIndex)
void ClearPara()
Removes the Line information from the Cache but retains the entry itself.
The Cache object base class Users of the Cache must derive a class from the SwCacheObj and store thei...
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
SVXCORE_DLLPUBLIC MSO_SPT Get(const OUString &)
void SetCacheIdx(const sal_uInt16 nNew)
Access class for the Cache.
static SwCache * s_pTextCache
SwLineLayout cache: the lines are not actually owned by the SwTextFrame but by this SwCache...