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 sal_uInt32 GetIdx () const =0
 
virtual void SetIdx (sal_uInt32 nIdx)=0
 
virtual sal_uInt32 GetIdx2 () const
 
virtual void SetIdx2 (sal_uInt32 nIdx)
 
virtual bool SeekPos (WW8_CP nCpPos)=0
 
virtual WW8_FC Where ()=0
 
virtual void GetSprms (WW8PLCFxDesc *p)
 
virtual tools::Long GetNoSprms (WW8_CP &rStart, WW8_CP &, sal_Int32 &rLen)
 
virtual void advance ()=0
 
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() [1/2]

WW8PLCFx_Book::WW8PLCFx_Book ( const WW8PLCFx_Book )
privatedelete

◆ WW8PLCFx_Book() [2/2]

WW8PLCFx_Book::WW8PLCFx_Book ( SvStream pTableSt,
const WW8Fib rFib 
)

◆ ~WW8PLCFx_Book()

WW8PLCFx_Book::~WW8PLCFx_Book ( )
overridevirtual

Definition at line 4311 of file ww8scan.cxx.

Member Function Documentation

◆ advance()

void WW8PLCFx_Book::advance ( )
overridevirtual

Implements WW8PLCFx.

Definition at line 4386 of file ww8scan.cxx.

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

Referenced by advance().

◆ GetBookmark()

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

◆ GetHandle()

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

◆ GetIdx()

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

◆ GetIdx2()

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.

◆ GetIMax()

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

Definition at line 766 of file ww8scan.hxx.

References m_nIMax.

Referenced by WW8PLCFx_Book().

◆ GetIsEnd()

bool WW8PLCFx_Book::GetIsEnd ( ) const
inline

Definition at line 779 of file ww8scan.hxx.

References m_nIsEnd.

Referenced by SwWW8ImplReader::Read_Book().

◆ GetLen()

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

◆ GetName()

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

◆ GetNoSprms()

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, and WW8_CP_MAX.

◆ GetStartPos()

WW8_CP WW8PLCFx_Book::GetStartPos ( ) const
inline

Definition at line 776 of file ww8scan.hxx.

References m_nIsEnd, m_pBook, and WW8_CP_MAX.

Referenced by SwWW8ImplReader::Read_Book().

◆ GetStatus()

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

◆ GetUniqueBookmarkName()

OUString WW8PLCFx_Book::GetUniqueBookmarkName ( const OUString &  rSuggestedName)

◆ MapName()

void WW8PLCFx_Book::MapName ( OUString &  rName)

Definition at line 4517 of file ww8scan.cxx.

References i, m_aBookNames, and m_pBook.

◆ operator=()

WW8PLCFx_Book & WW8PLCFx_Book::operator= ( const WW8PLCFx_Book )
privatedelete

◆ SeekPos()

bool WW8PLCFx_Book::SeekPos ( WW8_CP  nCpPos)
overridevirtual

Implements WW8PLCFx.

Definition at line 4340 of file ww8scan.cxx.

References m_nIsEnd, and m_pBook.

◆ SetIdx()

void WW8PLCFx_Book::SetIdx ( sal_uInt32  nI)
overridevirtual

Implements WW8PLCFx.

Definition at line 4320 of file ww8scan.cxx.

References m_nIMax, and m_pBook.

◆ SetIdx2()

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.

◆ SetStatus()

void WW8PLCFx_Book::SetStatus ( sal_uInt16  nIndex,
eBookStatus  eStat 
)

◆ Where()

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

◆ m_aBookNames

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

◆ m_aStatus

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

Definition at line 755 of file ww8scan.hxx.

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

◆ m_nBookmarkId

sal_Int32 WW8PLCFx_Book::m_nBookmarkId
private

Definition at line 758 of file ww8scan.hxx.

Referenced by GetUniqueBookmarkName().

◆ m_nIMax

tools::Long WW8PLCFx_Book::m_nIMax
private

◆ m_nIsEnd

sal_uInt16 WW8PLCFx_Book::m_nIsEnd
private

◆ m_pBook

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

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