LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SwLayoutCache Class Reference

#include <laycache.hxx>

Public Member Functions

 SwLayoutCache ()
 
 ~SwLayoutCache ()
 
void Read (SvStream &rStream)
 
void ClearImpl ()
 
bool IsLocked () const
 
sal_uInt16 & GetLockCount ()
 
SwLayCacheImplLockImpl ()
 
void UnlockImpl ()
 
bool CompareLayout (const SwDoc &rDoc) const
 

Static Public Member Functions

static void Write (SvStream &rStream, const SwDoc &rDoc)
 writes the index (more precise: the difference between the index and the first index of the document content) of the first paragraph/table at the top of every page. More...
 

Private Attributes

std::unique_ptr< SwLayCacheImplm_pImpl
 
sal_uInt16 m_nLockCount
 

Detailed Description

Definition at line 41 of file laycache.hxx.

Constructor & Destructor Documentation

◆ SwLayoutCache()

SwLayoutCache::SwLayoutCache ( )

Definition at line 55 of file laycache.cxx.

◆ ~SwLayoutCache()

SwLayoutCache::~SwLayoutCache ( )

Definition at line 448 of file laycache.cxx.

References m_nLockCount.

Member Function Documentation

◆ ClearImpl()

void SwLayoutCache::ClearImpl ( )

Definition at line 440 of file laycache.cxx.

References IsLocked(), and m_pImpl.

Referenced by InsertCnt_().

◆ CompareLayout()

bool SwLayoutCache::CompareLayout ( const SwDoc rDoc) const

◆ GetLockCount()

sal_uInt16 & SwLayoutCache::GetLockCount ( )
inline

Definition at line 55 of file laycache.hxx.

References m_nLockCount.

◆ IsLocked()

bool SwLayoutCache::IsLocked ( ) const
inline

Definition at line 54 of file laycache.hxx.

References m_nLockCount.

Referenced by ClearImpl().

◆ LockImpl()

SwLayCacheImpl * SwLayoutCache::LockImpl ( )
inline

Definition at line 56 of file laycache.hxx.

References m_nLockCount, and m_pImpl.

Referenced by SwLayHelper::CalcPageCount(), and SwLayHelper::SwLayHelper().

◆ Read()

void SwLayoutCache::Read ( SvStream rStream)

Definition at line 68 of file laycache.cxx.

References m_pImpl.

◆ UnlockImpl()

void SwLayoutCache::UnlockImpl ( )
inline

◆ Write()

void SwLayoutCache::Write ( SvStream rStream,
const SwDoc rDoc 
)
static

writes the index (more precise: the difference between the index and the first index of the document content) of the first paragraph/table at the top of every page.

If at the top of a page is the rest of a paragraph/table from the bottom of the previous page, the character/row number is stored, too. The position, size and page number of the text frames are stored, too

Definition at line 163 of file laycache.cxx.

References SwLayCacheIoImpl::CloseFlagRec(), SwLayCacheIoImpl::CloseRec(), COMPLETE_STRING, SwLayoutFrame::ContainsAny(), SwFlyFrame::DynCastFlyFrame(), FAR_AWAY, SwFootnoteBossFrame::FindBodyCont(), SwTabFrame::FindMaster(), SwFrame::FindPageFrame(), IDocumentLayoutAccess::GetCurrentLayout(), SwNodes::GetEndOfContent(), SwTabFrame::GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwDoc::getIDocumentLayoutAccess(), SwNode::GetIndex(), SwTextFrame::GetMergedPara(), SwFrame::GetNext(), SwDoc::GetNodes(), SwPageFrame::GetPhyPageNum(), SwFrame::GetPrev(), SwPageFrame::GetSortedObjs(), SwLayCacheIoImpl::GetStream(), SwTabFrame::GetTable(), SwTable::GetTableNode(), SwTextFrame::GetTextNodeFirst(), GetUserCall(), SwRect::Height(), SwFrame::IsSctFrame(), SwFrame::IsTabFrame(), SwFrame::IsTextFrame(), SwRect::Left(), SwLayoutFrame::Lower(), SwLayCacheIoImpl::OpenFlagRec(), SwLayCacheIoImpl::OpenRec(), SW_LAYCACHE_IO_REC_FLY, SW_LAYCACHE_IO_REC_PAGES, SW_LAYCACHE_IO_REC_PARA, SW_LAYCACHE_IO_REC_TABLE, SwRect::Top(), SwRect::Width(), SvStream::WriteInt32(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().

Referenced by SwDoc::WriteLayoutCache().

Member Data Documentation

◆ m_nLockCount

sal_uInt16 SwLayoutCache::m_nLockCount
private

Definition at line 44 of file laycache.hxx.

Referenced by GetLockCount(), IsLocked(), LockImpl(), UnlockImpl(), and ~SwLayoutCache().

◆ m_pImpl

std::unique_ptr<SwLayCacheImpl> SwLayoutCache::m_pImpl
private

Definition at line 43 of file laycache.hxx.

Referenced by ClearImpl(), CompareLayout(), LockImpl(), and Read().


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