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

#include <ww8scan.hxx>

Public Member Functions

 WW8PLCF (SvStream &rSt, WW8_FC nFilePos, sal_Int32 nPLCF, int nStruct, WW8_CP nStartPos=-1)
 
 WW8PLCF (SvStream &rSt, WW8_FC nFilePos, sal_Int32 nPLCF, int nStruct, WW8_CP nStartPos, sal_Int32 nPN, sal_Int32 ncpN)
 
sal_Int32 GetIdx () const
 
void SetIdx (sal_Int32 nI)
 
sal_Int32 GetIMax () const
 
bool SeekPos (WW8_CP nPos)
 
WW8_CP Where () const
 
bool Get (WW8_CP &rStart, WW8_CP &rEnd, void *&rpValue) const
 
void advance ()
 
const void * GetData (sal_Int32 nInIdx) const
 

Private Member Functions

void ReadPLCF (SvStream &rSt, WW8_FC nFilePos, sal_uInt32 nPLCF)
 
void GeneratePLCF (SvStream &rSt, sal_Int32 nPN, sal_Int32 ncpN)
 
void MakeFailedPLCF ()
 
void TruncToSortedRange ()
 

Private Attributes

std::unique_ptr< WW8_CP[]> m_pPLCF_PosArray
 
sal_uInt8m_pPLCF_Contents
 
sal_Int32 m_nIMax
 
sal_Int32 m_nIdx
 
int m_nStru
 

Detailed Description

Definition at line 294 of file ww8scan.hxx.

Constructor & Destructor Documentation

◆ WW8PLCF() [1/2]

WW8PLCF::WW8PLCF ( SvStream rSt,
WW8_FC  nFilePos,
sal_Int32  nPLCF,
int  nStruct,
WW8_CP  nStartPos = -1 
)

Definition at line 2264 of file ww8scan.cxx.

References m_nIMax, ReadPLCF(), SAL_WARN, and SeekPos().

◆ WW8PLCF() [2/2]

WW8PLCF::WW8PLCF ( SvStream rSt,
WW8_FC  nFilePos,
sal_Int32  nPLCF,
int  nStruct,
WW8_CP  nStartPos,
sal_Int32  nPN,
sal_Int32  ncpN 
)

Definition at line 2286 of file ww8scan.cxx.

References GeneratePLCF(), m_nIMax, ReadPLCF(), SAL_MAX_INT32, SAL_WARN, and SeekPos().

Member Function Documentation

◆ advance()

void WW8PLCF::advance ( )
inline

Definition at line 330 of file ww8scan.hxx.

References m_nIdx, and m_nIMax.

Referenced by SwWW8ImplReader::CoreLoad(), and WW8PLCF_HdFt::GetTextPos().

◆ GeneratePLCF()

void WW8PLCF::GeneratePLCF ( SvStream rSt,
sal_Int32  nPN,
sal_Int32  ncpN 
)
private

◆ Get()

bool WW8PLCF::Get ( WW8_CP rStart,
WW8_CP rEnd,
void *&  rpValue 
) const

◆ GetData()

const void * WW8PLCF::GetData ( sal_Int32  nInIdx) const
inline

Definition at line 332 of file ww8scan.hxx.

References m_nIMax, m_nStru, and m_pPLCF_Contents.

◆ GetIdx()

sal_Int32 WW8PLCF::GetIdx ( ) const
inline

Definition at line 324 of file ww8scan.hxx.

References m_nIdx.

◆ GetIMax()

sal_Int32 WW8PLCF::GetIMax ( ) const
inline

Definition at line 326 of file ww8scan.hxx.

References m_nIMax.

◆ MakeFailedPLCF()

void WW8PLCF::MakeFailedPLCF ( )
private

Definition at line 2348 of file ww8scan.cxx.

References m_nIMax, m_pPLCF_Contents, m_pPLCF_PosArray, and WW8_CP_MAX.

Referenced by GeneratePLCF(), and ReadPLCF().

◆ ReadPLCF()

void WW8PLCF::ReadPLCF ( SvStream rSt,
WW8_FC  nFilePos,
sal_uInt32  nPLCF 
)
private

◆ SeekPos()

bool WW8PLCF::SeekPos ( WW8_CP  nPos)

Definition at line 2469 of file ww8scan.cxx.

References m_nIdx, m_nIMax, m_pPLCF_PosArray, n, and nPos.

Referenced by WW8PLCF().

◆ SetIdx()

void WW8PLCF::SetIdx ( sal_Int32  nI)
inline

Definition at line 325 of file ww8scan.hxx.

References m_nIdx.

Referenced by WW8PLCF_HdFt::GetTextPos(), and WW8PLCF_HdFt::GetTextPosExact().

◆ TruncToSortedRange()

void WW8PLCF::TruncToSortedRange ( )
private

Definition at line 2380 of file ww8scan.cxx.

References m_nIMax, m_pPLCF_PosArray, and TruncToSortedRange().

Referenced by ReadPLCF(), and TruncToSortedRange().

◆ Where()

WW8_CP WW8PLCF::Where ( ) const

Definition at line 2518 of file ww8scan.cxx.

References m_nIdx, m_nIMax, m_pPLCF_PosArray, and WW8_CP_MAX.

Member Data Documentation

◆ m_nIdx

sal_Int32 WW8PLCF::m_nIdx
private

Definition at line 300 of file ww8scan.hxx.

Referenced by advance(), Get(), GetIdx(), ReadPLCF(), SeekPos(), SetIdx(), and Where().

◆ m_nIMax

sal_Int32 WW8PLCF::m_nIMax
private

◆ m_nStru

int WW8PLCF::m_nStru
private

Definition at line 301 of file ww8scan.hxx.

Referenced by GeneratePLCF(), Get(), and GetData().

◆ m_pPLCF_Contents

sal_uInt8* WW8PLCF::m_pPLCF_Contents
private

Definition at line 298 of file ww8scan.hxx.

Referenced by GeneratePLCF(), Get(), GetData(), MakeFailedPLCF(), and ReadPLCF().

◆ m_pPLCF_PosArray

std::unique_ptr<WW8_CP[]> WW8PLCF::m_pPLCF_PosArray
private

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