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 ( )

Definition at line 55 of file laycache.cxx.

SwLayoutCache::~SwLayoutCache ( )

Definition at line 448 of file laycache.cxx.

References m_nLockCount.

Member Function Documentation

void SwLayoutCache::ClearImpl ( )

Definition at line 440 of file laycache.cxx.

References IsLocked(), and m_pImpl.

Referenced by InsertCnt_().

bool SwLayoutCache::CompareLayout ( const SwDoc rDoc) const
sal_uInt16& SwLayoutCache::GetLockCount ( )

Definition at line 55 of file laycache.hxx.

References m_nLockCount.

bool SwLayoutCache::IsLocked ( ) const

Definition at line 54 of file laycache.hxx.

Referenced by ClearImpl().

SwLayCacheImpl* SwLayoutCache::LockImpl ( )

Definition at line 56 of file laycache.hxx.

References m_nLockCount.

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

void SwLayoutCache::Read ( SvStream rStream)

Definition at line 68 of file laycache.cxx.

References m_pImpl.

void SwLayoutCache::UnlockImpl ( )
void SwLayoutCache::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.

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 assert(), SwLayCacheIoImpl::CloseFlagRec(), SwLayCacheIoImpl::CloseRec(), COMPLETE_STRING, SwLayoutFrame::ContainsAny(), 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(), SwFlowFrame::IsFollow(), 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

sal_uInt16 SwLayoutCache::m_nLockCount

Definition at line 44 of file laycache.hxx.

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

std::unique_ptr<SwLayCacheImpl> SwLayoutCache::m_pImpl

Definition at line 43 of file laycache.hxx.

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

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