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

Iterator for Booknotes. More...

#include <ww8scan.hxx>

Inheritance diagram for WW8PLCFx_Book:
[legend]
Collaboration diagram for WW8PLCFx_Book:
[legend]

Public Member Functions

 WW8PLCFx_Book (SvStream *pTableSt, const WW8Fib &rFib)
 
virtual ~WW8PLCFx_Book () override
 
tools::Long GetIMax () const
 
virtual sal_uInt32 GetIdx () const override
 
virtual void SetIdx (sal_uInt32 nI) override
 
virtual sal_uInt32 GetIdx2 () const override
 
virtual void SetIdx2 (sal_uInt32 nIdx) override
 
virtual bool SeekPos (WW8_CP nCpPos) override
 
virtual WW8_CP Where () override
 
virtual tools::Long GetNoSprms (WW8_CP &rStart, WW8_CP &rEnd, sal_Int32 &rLen) override
 
virtual void advance () override
 
const OUString * GetName () const
 
WW8_CP GetStartPos () const
 
tools::Long GetLen () const
 
bool GetIsEnd () const
 
tools::Long GetHandle () const
 
void SetStatus (sal_uInt16 nIndex, eBookStatus eStat)
 
void MapName (OUString &rName)
 
OUString GetBookmark (tools::Long nStart, tools::Long nEnd, sal_uInt16 &nIndex)
 
eBookStatus GetStatus () const
 
OUString GetUniqueBookmarkName (const OUString &rSuggestedName)
 
- Public Member Functions inherited from WW8PLCFx
 WW8PLCFx (const WW8Fib &rFib, bool bSprm)
 
virtual ~WW8PLCFx ()
 
bool IsSprm () const
 
virtual void GetSprms (WW8PLCFxDesc *p)
 
virtual sal_uInt16 GetIstd () const
 
virtual void Save (WW8PLCFxSave1 &rSave) const
 
virtual void Restore (const WW8PLCFxSave1 &rSave)
 
ww::WordVersion GetFIBVersion () const
 
const WW8FibGetFIB () const
 
void SetStartFc (WW8_FC nFc)
 
WW8_FC GetStartFc () const
 
void SetDirty (bool bIn)
 
bool GetDirty () const
 

Private Member Functions

 WW8PLCFx_Book (const WW8PLCFx_Book &)=delete
 
WW8PLCFx_Bookoperator= (const WW8PLCFx_Book &)=delete
 

Private Attributes

std::unique_ptr< WW8PLCFspecialm_pBook [2]
 
std::vector< OUString > m_aBookNames
 
std::vector< eBookStatusm_aStatus
 
tools::Long m_nIMax
 
sal_uInt16 m_nIsEnd
 
sal_Int32 m_nBookmarkId
 

Detailed Description

Iterator for Booknotes.

Definition at line 750 of file ww8scan.hxx.

Constructor & Destructor Documentation

WW8PLCFx_Book::WW8PLCFx_Book ( const WW8PLCFx_Book )
privatedelete
WW8PLCFx_Book::WW8PLCFx_Book ( SvStream pTableSt,
const WW8Fib rFib 
)
WW8PLCFx_Book::~WW8PLCFx_Book ( )
overridevirtual

Definition at line 4311 of file ww8scan.cxx.

Member Function Documentation

void WW8PLCFx_Book::advance ( )
overridevirtual

Implements WW8PLCFx.

Definition at line 4386 of file ww8scan.cxx.

References GetIdx(), m_nIMax, m_nIsEnd, m_pBook, and p.

OUString WW8PLCFx_Book::GetBookmark ( tools::Long  nStart,
tools::Long  nEnd,
sal_uInt16 &  nIndex 
)
tools::Long WW8PLCFx_Book::GetHandle ( ) const

Definition at line 4446 of file ww8scan.cxx.

References GetData, GetIdx(), LONG_MAX, m_nIsEnd, m_pBook, and p.

Referenced by GetStatus(), and SwWW8ImplReader::Read_Book().

sal_uInt32 WW8PLCFx_Book::GetIdx ( ) const
overridevirtual

Implements WW8PLCFx.

Definition at line 4315 of file ww8scan.cxx.

References m_nIMax, and m_pBook.

Referenced by advance(), GetHandle(), GetName(), and GetNoSprms().

sal_uInt32 WW8PLCFx_Book::GetIdx2 ( ) const
overridevirtual

Reimplemented from WW8PLCFx.

Definition at line 4326 of file ww8scan.cxx.

References m_nIMax, m_nIsEnd, and m_pBook.

tools::Long WW8PLCFx_Book::GetIMax ( ) const
inline

Definition at line 766 of file ww8scan.hxx.

References m_nIMax.

Referenced by WW8PLCFx_Book().

bool WW8PLCFx_Book::GetIsEnd ( ) const
inline

Definition at line 779 of file ww8scan.hxx.

Referenced by SwWW8ImplReader::Read_Book().

tools::Long WW8PLCFx_Book::GetLen ( ) const

Definition at line 4410 of file ww8scan.cxx.

References Get(), m_nIsEnd, m_pBook, and p.

Referenced by SwWW8ImplReader::Read_Book().

const OUString * WW8PLCFx_Book::GetName ( ) const

Definition at line 4534 of file ww8scan.cxx.

References GetIdx(), m_aBookNames, m_nIMax, m_nIsEnd, and m_pBook.

Referenced by SwWW8ImplReader::Read_Book().

tools::Long WW8PLCFx_Book::GetNoSprms ( WW8_CP rStart,
WW8_CP rEnd,
sal_Int32 &  rLen 
)
overridevirtual

Reimplemented from WW8PLCFx.

Definition at line 4357 of file ww8scan.cxx.

References Get(), GetIdx(), m_nIMax, m_nIsEnd, m_pBook, pData, void(), and WW8_CP_MAX.

WW8_CP WW8PLCFx_Book::GetStartPos ( ) const
inline

Definition at line 776 of file ww8scan.hxx.

References WW8_CP_MAX.

Referenced by SwWW8ImplReader::Read_Book().

eBookStatus WW8PLCFx_Book::GetStatus ( ) const

Definition at line 4438 of file ww8scan.cxx.

References BOOK_NORMAL, GetHandle(), m_aStatus, and m_nIMax.

Referenced by SwWW8ImplReader::Read_Book().

OUString WW8PLCFx_Book::GetUniqueBookmarkName ( const OUString &  rSuggestedName)
void WW8PLCFx_Book::MapName ( OUString &  rName)

Definition at line 4517 of file ww8scan.cxx.

References i, m_aBookNames, and m_pBook.

WW8PLCFx_Book& WW8PLCFx_Book::operator= ( const WW8PLCFx_Book )
privatedelete
bool WW8PLCFx_Book::SeekPos ( WW8_CP  nCpPos)
overridevirtual

Implements WW8PLCFx.

Definition at line 4340 of file ww8scan.cxx.

References m_nIsEnd, and m_pBook.

void WW8PLCFx_Book::SetIdx ( sal_uInt32  nI)
overridevirtual

Implements WW8PLCFx.

Definition at line 4320 of file ww8scan.cxx.

References m_nIMax, and m_pBook.

void WW8PLCFx_Book::SetIdx2 ( sal_uInt32  nIdx)
overridevirtual

Reimplemented from WW8PLCFx.

Definition at line 4331 of file ww8scan.cxx.

References m_nIMax, m_nIsEnd, and m_pBook.

void WW8PLCFx_Book::SetStatus ( sal_uInt16  nIndex,
eBookStatus  eStat 
)
WW8_CP WW8PLCFx_Book::Where ( )
overridevirtual

Implements WW8PLCFx.

Definition at line 4352 of file ww8scan.cxx.

References m_nIsEnd, and m_pBook.

Member Data Documentation

std::vector<OUString> WW8PLCFx_Book::m_aBookNames
private

Definition at line 754 of file ww8scan.hxx.

Referenced by GetBookmark(), GetName(), GetUniqueBookmarkName(), MapName(), and WW8PLCFx_Book().

std::vector<eBookStatus> WW8PLCFx_Book::m_aStatus
private

Definition at line 755 of file ww8scan.hxx.

Referenced by GetStatus(), SetStatus(), and WW8PLCFx_Book().

sal_Int32 WW8PLCFx_Book::m_nBookmarkId
private

Definition at line 758 of file ww8scan.hxx.

Referenced by GetUniqueBookmarkName().

tools::Long WW8PLCFx_Book::m_nIMax
private
sal_uInt16 WW8PLCFx_Book::m_nIsEnd
private

Definition at line 757 of file ww8scan.hxx.

Referenced by advance(), GetHandle(), GetIdx2(), GetLen(), GetName(), GetNoSprms(), SeekPos(), SetIdx2(), and Where().

std::unique_ptr<WW8PLCFspecial> WW8PLCFx_Book::m_pBook[2]
private

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