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

Handles the import of PlcfBkfFactoid and PlcfBklFactoid: start / end position of factoids. More...

#include <ww8scan.hxx>

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

Public Member Functions

 WW8PLCFx_FactoidBook (SvStream *pTableSt, const WW8Fib &rFib)
 
virtual ~WW8PLCFx_FactoidBook () override
 
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
 
tools::Long getHandle () const
 Handle is the unique ID of a factoid mark. More...
 
bool getIsEnd () const
 
- 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_FactoidBook (const WW8PLCFx_FactoidBook &)=delete
 
WW8PLCFx_FactoidBookoperator= (const WW8PLCFx_FactoidBook &)=delete
 

Private Attributes

std::unique_ptr< WW8PLCFspecialm_pBook [2]
 Start and end positions. More...
 
sal_Int32 m_nIMax
 Number of factoid marks. More...
 
bool m_bIsEnd
 

Detailed Description

Handles the import of PlcfBkfFactoid and PlcfBklFactoid: start / end position of factoids.

Definition at line 819 of file ww8scan.hxx.

Constructor & Destructor Documentation

◆ WW8PLCFx_FactoidBook() [1/2]

WW8PLCFx_FactoidBook::WW8PLCFx_FactoidBook ( const WW8PLCFx_FactoidBook )
privatedelete

◆ WW8PLCFx_FactoidBook() [2/2]

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

◆ ~WW8PLCFx_FactoidBook()

WW8PLCFx_FactoidBook::~WW8PLCFx_FactoidBook ( )
overridevirtual

Definition at line 4690 of file ww8scan.cxx.

Member Function Documentation

◆ advance()

void WW8PLCFx_FactoidBook::advance ( )
overridevirtual

Implements WW8PLCFx.

Definition at line 4755 of file ww8scan.cxx.

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

◆ getHandle()

tools::Long WW8PLCFx_FactoidBook::getHandle ( ) const

Handle is the unique ID of a factoid mark.

Definition at line 4779 of file ww8scan.cxx.

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

◆ GetIdx()

sal_uInt32 WW8PLCFx_FactoidBook::GetIdx ( ) const
overridevirtual

Implements WW8PLCFx.

Definition at line 4694 of file ww8scan.cxx.

References m_nIMax, and m_pBook.

Referenced by advance(), getHandle(), and GetNoSprms().

◆ GetIdx2()

sal_uInt32 WW8PLCFx_FactoidBook::GetIdx2 ( ) const
overridevirtual

Reimplemented from WW8PLCFx.

Definition at line 4705 of file ww8scan.cxx.

References m_bIsEnd, m_nIMax, and m_pBook.

◆ getIsEnd()

bool WW8PLCFx_FactoidBook::getIsEnd ( ) const

Definition at line 4795 of file ww8scan.cxx.

References m_bIsEnd.

◆ GetNoSprms()

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

Reimplemented from WW8PLCFx.

Definition at line 4739 of file ww8scan.cxx.

References GetIdx(), m_bIsEnd, m_nIMax, m_pBook, pData, and WW8_CP_MAX.

◆ operator=()

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

◆ SeekPos()

bool WW8PLCFx_FactoidBook::SeekPos ( WW8_CP  nCpPos)
overridevirtual

Implements WW8PLCFx.

Definition at line 4722 of file ww8scan.cxx.

References m_bIsEnd, and m_pBook.

◆ SetIdx()

void WW8PLCFx_FactoidBook::SetIdx ( sal_uInt32  nI)
overridevirtual

Implements WW8PLCFx.

Definition at line 4699 of file ww8scan.cxx.

References m_nIMax, and m_pBook.

◆ SetIdx2()

void WW8PLCFx_FactoidBook::SetIdx2 ( sal_uInt32  nIdx)
overridevirtual

Reimplemented from WW8PLCFx.

Definition at line 4713 of file ww8scan.cxx.

References m_bIsEnd, m_nIMax, and m_pBook.

◆ Where()

WW8_CP WW8PLCFx_FactoidBook::Where ( )
overridevirtual

Implements WW8PLCFx.

Definition at line 4734 of file ww8scan.cxx.

References m_bIsEnd, m_pBook, and Where().

Referenced by Where().

Member Data Documentation

◆ m_bIsEnd

bool WW8PLCFx_FactoidBook::m_bIsEnd
private

Definition at line 826 of file ww8scan.hxx.

Referenced by advance(), getHandle(), GetIdx2(), getIsEnd(), GetNoSprms(), SeekPos(), SetIdx2(), and Where().

◆ m_nIMax

sal_Int32 WW8PLCFx_FactoidBook::m_nIMax
private

Number of factoid marks.

Definition at line 825 of file ww8scan.hxx.

Referenced by advance(), GetIdx(), GetIdx2(), GetNoSprms(), SetIdx(), SetIdx2(), and WW8PLCFx_FactoidBook().

◆ m_pBook

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

Start and end positions.

Definition at line 823 of file ww8scan.hxx.

Referenced by advance(), getHandle(), GetIdx(), GetIdx2(), GetNoSprms(), SeekPos(), SetIdx(), SetIdx2(), Where(), and WW8PLCFx_FactoidBook().


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