LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Private Attributes | List of all members
OpenStormBento::LtcBenContainer Class Reference

#include <bento.hxx>

Collaboration diagram for OpenStormBento::LtcBenContainer:
[legend]

Public Member Functions

BenError Open ()
 
void RegisterPropertyName (const char *sPropertyName, CBenPropertyName **ppPropertyName)
 
CBenObjectGetNextObject (CBenObject const *pCurrObject)
 
CBenObjectFindNextObjectWithProperty (CBenObject *pCurrObject, BenObjectID PropertyID)
 
 LtcBenContainer (LwpSvStream *pStream)
 Construction. More...
 
 ~LtcBenContainer ()
 
sal_uLong remainingSize () const
 
void Read (void *pBuffer, size_t MaxSize, size_t *pAmtRead)
 Read buffer for bento file with specified buffer. More...
 
BenError ReadKnownSize (void *pBuffer, size_t Amt)
 Read buffer from bento file with specified size. More...
 
void SeekToPosition (BenContainerPos Pos)
 Seek to position from the beginning of the bento file. More...
 
void SeekFromEnd (tools::Long Offset)
 Seek to position compare to end of bento file. More...
 
void SetNextAvailObjectID (BenObjectID ID)
 
CUtListGetObjects ()
 
CUtListGetNamedObjects ()
 
LtcUtBenValueStreamFindNextValueStreamWithPropertyName (const char *sPropertyName)
 Find the next value stream with property name. More...
 
LtcUtBenValueStreamFindValueStreamWithPropertyName (const char *sPropertyName)
 Find the unique value stream with property name. More...
 
std::vector< sal_uInt8GetGraphicData (const char *pObjectName)
 Find hazily according to object ID. More...
 
sal_uLong GetSize () const
 

Private Attributes

CUtOwningList cObjects
 
CUtList cNamedObjects
 
LwpSvStreamcpStream
 
sal_uLong m_ulLength
 
BenObjectID cNextAvailObjectID
 

Detailed Description

Definition at line 194 of file bento.hxx.

Constructor & Destructor Documentation

◆ LtcBenContainer()

OpenStormBento::LtcBenContainer::LtcBenContainer ( LwpSvStream pStream)
explicit

Construction.

Parameters
Bentofile stream pointer
Returns

Definition at line 157 of file bencont.cxx.

References cpStream, m_ulLength, LwpSvStream::Seek(), STREAM_SEEK_TO_BEGIN, STREAM_SEEK_TO_END, and LwpSvStream::Tell().

◆ ~LtcBenContainer()

OpenStormBento::LtcBenContainer::~LtcBenContainer ( )

Definition at line 93 of file bencont.cxx.

Member Function Documentation

◆ FindNextObjectWithProperty()

CBenObject * OpenStormBento::LtcBenContainer::FindNextObjectWithProperty ( CBenObject pCurrObject,
BenObjectID  PropertyID 
)

◆ FindNextValueStreamWithPropertyName()

LtcUtBenValueStream * OpenStormBento::LtcBenContainer::FindNextValueStreamWithPropertyName ( const char *  sPropertyName)

Find the next value stream with property name.

Parameters
stringof property name
Returns
next value stream pointer with the property names

Definition at line 214 of file bencont.cxx.

References FindNextObjectWithProperty(), pPropertyName, RegisterPropertyName(), and OpenStormBento::CBenObject::UseValue().

Referenced by FindValueStreamWithPropertyName().

◆ FindValueStreamWithPropertyName()

LtcUtBenValueStream * OpenStormBento::LtcBenContainer::FindValueStreamWithPropertyName ( const char *  sPropertyName)

Find the unique value stream with property name.

Parameters
stringof property name
Returns
the only value stream pointer with the property names

Definition at line 242 of file bencont.cxx.

References FindNextValueStreamWithPropertyName().

Referenced by GetGraphicData().

◆ GetGraphicData()

std::vector< sal_uInt8 > OpenStormBento::LtcBenContainer::GetGraphicData ( const char *  pObjectName)

Find hazily according to object ID.

Parameters
pObjectname- format as "GrXX,XXXXXXXX" wherein XX is high part of object ID, and XXXXXXXX is low part

Definition at line 272 of file bencont.cxx.

References aData, and FindValueStreamWithPropertyName().

◆ GetNamedObjects()

CUtList & OpenStormBento::LtcBenContainer::GetNamedObjects ( )
inline

Definition at line 219 of file bento.hxx.

References cNamedObjects.

Referenced by OpenStormBento::CBenTOCReader::ReadTOC().

◆ GetNextObject()

CBenObject * OpenStormBento::LtcBenContainer::GetNextObject ( CBenObject const *  pCurrObject)

Definition at line 136 of file bencont.cxx.

References cObjects, and OpenStormBento::CUtList::GetNextOrNULL().

Referenced by FindNextObjectWithProperty().

◆ GetObjects()

CUtList & OpenStormBento::LtcBenContainer::GetObjects ( )
inline

Definition at line 218 of file bento.hxx.

References cObjects.

Referenced by OpenStormBento::CBenTOCReader::ReadTOC().

◆ GetSize()

sal_uLong OpenStormBento::LtcBenContainer::GetSize ( ) const
inline

◆ Open()

BenError OpenStormBento::LtcBenContainer::Open ( )

◆ Read()

void OpenStormBento::LtcBenContainer::Read ( void *  pBuffer,
size_t  MaxSize,
size_t *  pAmtRead 
)

Read buffer for bento file with specified buffer.

Parameters
bufferpointer
buffersize
numberof bytes read

Definition at line 172 of file bencont.cxx.

References cpStream, and LwpSvStream::Read().

Referenced by OpenStormBento::CBenValue::ReadValueData().

◆ ReadKnownSize()

BenError OpenStormBento::LtcBenContainer::ReadKnownSize ( void *  pBuffer,
size_t  Amt 
)

Read buffer from bento file with specified size.

Parameters
bufferpointer
numberof bytes to be read
Returns
BenError

Definition at line 183 of file bencont.cxx.

References OpenStormBento::BenErr_OK, OpenStormBento::BenErr_ReadPastEndOfContainer, cpStream, and LwpSvStream::Read().

Referenced by OpenStormBento::CBenTOCReader::ReadLabel(), OpenStormBento::CBenTOCReader::ReadLabelAndTOC(), OpenStormBento::CBenTOCReader::ReadTOC(), and OpenStormBento::CBenTOCReader::SearchForLabel().

◆ RegisterPropertyName()

void OpenStormBento::LtcBenContainer::RegisterPropertyName ( const char *  sPropertyName,
CBenPropertyName **  ppPropertyName 
)

◆ remainingSize()

sal_uLong OpenStormBento::LtcBenContainer::remainingSize ( ) const

Definition at line 321 of file bencont.cxx.

References cpStream, m_ulLength, and LwpSvStream::Tell().

Referenced by OpenStormBento::CBenTOCReader::ReadTOC().

◆ SeekFromEnd()

void OpenStormBento::LtcBenContainer::SeekFromEnd ( tools::Long  Offset)

Seek to position compare to end of bento file.

Parameters
positionin container file from end

Definition at line 204 of file bencont.cxx.

References cpStream, Offset, LwpSvStream::Seek(), LwpSvStream::SeekRel(), and STREAM_SEEK_TO_END.

Referenced by OpenStormBento::CBenTOCReader::ReadLabel().

◆ SeekToPosition()

void OpenStormBento::LtcBenContainer::SeekToPosition ( BenContainerPos  Pos)

Seek to position from the beginning of the bento file.

Parameters
positionin container file from beginning

Definition at line 196 of file bencont.cxx.

References cpStream, Pos, and LwpSvStream::Seek().

Referenced by OpenStormBento::CBenTOCReader::ReadLabelAndTOC(), OpenStormBento::CBenTOCReader::ReadTOC(), OpenStormBento::CBenValue::ReadValueData(), and OpenStormBento::CBenTOCReader::SearchForLabel().

◆ SetNextAvailObjectID()

void OpenStormBento::LtcBenContainer::SetNextAvailObjectID ( BenObjectID  ID)
inline

Definition at line 217 of file bento.hxx.

References cNextAvailObjectID, and ID.

Referenced by OpenStormBento::CBenTOCReader::ReadTOC().

Member Data Documentation

◆ cNamedObjects

CUtList OpenStormBento::LtcBenContainer::cNamedObjects
private

Definition at line 228 of file bento.hxx.

Referenced by GetNamedObjects(), and RegisterPropertyName().

◆ cNextAvailObjectID

BenObjectID OpenStormBento::LtcBenContainer::cNextAvailObjectID
private

Definition at line 231 of file bento.hxx.

Referenced by RegisterPropertyName(), and SetNextAvailObjectID().

◆ cObjects

CUtOwningList OpenStormBento::LtcBenContainer::cObjects
private

Definition at line 227 of file bento.hxx.

Referenced by GetNextObject(), GetObjects(), and RegisterPropertyName().

◆ cpStream

LwpSvStream* OpenStormBento::LtcBenContainer::cpStream
private

◆ m_ulLength

sal_uLong OpenStormBento::LtcBenContainer::m_ulLength
private

Definition at line 230 of file bento.hxx.

Referenced by GetSize(), LtcBenContainer(), and remainingSize().


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