LibreOffice Module sw (master) 1
Public Member Functions | List of all members
SwSaveSetLRUOfst Class Reference

Try to prevent visible SwParaPortions from being deleted. More...

#include <swcache.hxx>

Public Member Functions

 SwSaveSetLRUOfst ()
 Prevent the SwParaPortions of the visible paragraphs from being deleted; they would just be recreated on the next paint. More...
 
 ~SwSaveSetLRUOfst ()
 

Detailed Description

Try to prevent visible SwParaPortions from being deleted.

Definition at line 124 of file swcache.hxx.

Constructor & Destructor Documentation

◆ SwSaveSetLRUOfst()

SwSaveSetLRUOfst::SwSaveSetLRUOfst ( )

Prevent the SwParaPortions of the visible paragraphs from being deleted; they would just be recreated on the next paint.

Heuristic: 100 per view are visible

If the cache is too small, enlarge it to ensure there are sufficient free entries for the layout so it doesn't have to throw away a node's SwParaPortion when it starts formatting the next node.

Definition at line 167 of file txtcache.cxx.

References SwCache::GetCurMax(), SfxViewShell::GetFirst(), SfxViewShell::GetNext(), SwTextFrame::GetTextCache(), SwCache::IncreaseMax(), and SwCache::SetLRUOfst().

◆ ~SwSaveSetLRUOfst()

SwSaveSetLRUOfst::~SwSaveSetLRUOfst ( )

Definition at line 188 of file txtcache.cxx.

References SwTextFrame::GetTextCache(), and SwCache::ResetLRUOfst().


The documentation for this class was generated from the following files: