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< SwLayCacheImplpImpl
 
sal_uInt16 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 nLockCount.

Member Function Documentation

void SwLayoutCache::ClearImpl ( )

Definition at line 440 of file laycache.cxx.

References IsLocked(), and pImpl.

Referenced by InsertCnt_().

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

Definition at line 55 of file laycache.hxx.

References nLockCount.

bool SwLayoutCache::IsLocked ( ) const
inline

Definition at line 54 of file laycache.hxx.

Referenced by ClearImpl().

SwLayCacheImpl* SwLayoutCache::LockImpl ( )
inline

Definition at line 56 of file laycache.hxx.

References nLockCount.

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

void SwLayoutCache::Read ( SvStream rStream)

Definition at line 68 of file laycache.cxx.

References pImpl.

void SwLayoutCache::UnlockImpl ( )
inline
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(), 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::nLockCount
private

Definition at line 44 of file laycache.hxx.

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

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

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: