LibreOffice Module sw (master) 1
|
#include <laycache.hxx>
Public Member Functions | |
SwLayoutCache () | |
~SwLayoutCache () | |
void | Read (SvStream &rStream) |
void | ClearImpl () |
bool | IsLocked () const |
sal_uInt16 & | GetLockCount () |
SwLayCacheImpl * | LockImpl () |
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< SwLayCacheImpl > | m_pImpl |
sal_uInt16 | m_nLockCount |
Definition at line 41 of file laycache.hxx.
SwLayoutCache::SwLayoutCache | ( | ) |
Definition at line 55 of file laycache.cxx.
SwLayoutCache::~SwLayoutCache | ( | ) |
Definition at line 448 of file laycache.cxx.
References m_nLockCount.
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 |
Definition at line 325 of file laycache.cxx.
References COMPLETE_STRING, SwLayoutFrame::ContainsAny(), SwFootnoteBossFrame::FindBodyCont(), SwTabFrame::FindMaster(), SwFrame::FindPageFrame(), IDocumentLayoutAccess::GetCurrentLayout(), SwNodes::GetEndOfContent(), SwTabFrame::GetFollow(), SwDoc::getIDocumentLayoutAccess(), SwNode::GetIndex(), SwTextFrame::GetMergedPara(), SwFrame::GetNext(), SwDoc::GetNodes(), SwTabFrame::GetTable(), SwTable::GetTableNode(), SwTextFrame::GetTextNodeFirst(), SwFrame::IsSctFrame(), SwFrame::IsTabFrame(), SwFrame::IsTextFrame(), SwLayoutFrame::Lower(), m_pImpl, nIndex, SW_LAYCACHE_IO_REC_PARA, and SW_LAYCACHE_IO_REC_TABLE.
Referenced by InsertCnt_().
|
inline |
Definition at line 55 of file laycache.hxx.
References m_nLockCount.
|
inline |
|
inline |
Definition at line 56 of file laycache.hxx.
References m_nLockCount, and m_pImpl.
Referenced by SwLayHelper::CalcPageCount(), and SwLayHelper::SwLayHelper().
void SwLayoutCache::Read | ( | SvStream & | rStream | ) |
Definition at line 68 of file laycache.cxx.
References m_pImpl.
|
inline |
Definition at line 61 of file laycache.hxx.
References m_nLockCount.
Referenced by SwLayHelper::CalcPageCount(), SwLayHelper::SwLayHelper(), and SwLayHelper::~SwLayHelper().
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().
|
private |
Definition at line 44 of file laycache.hxx.
Referenced by GetLockCount(), IsLocked(), LockImpl(), UnlockImpl(), and ~SwLayoutCache().
|
private |
Definition at line 43 of file laycache.hxx.
Referenced by ClearImpl(), CompareLayout(), LockImpl(), and Read().