LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
LwpObjectID Class Reference

object id class More...

#include <lwpobjid.hxx>

Public Member Functions

 LwpObjectID ()
 
void Read (LwpSvStream *pStrm)
 @descr Read object id with format: low(4bytes)+high(2bytes) from stream for LWP7 record More...
 
sal_uInt32 Read (LwpObjectStream *pStrm)
 @descr Read object id with format: low(4bytes)+high(2bytes) from object stream More...
 
void ReadIndexed (LwpSvStream *pStrm)
 @descr Read object id with indexed format from stream if index>0, lowid is get from time table per the index else index+lowid+highid More...
 
sal_uInt32 ReadIndexed (LwpObjectStream *pStrm)
 @descr Read object id with indexed format from object stream if index>0, lowid is get from time table per the index else index+lowid+highid More...
 
void ReadCompressed (LwpObjectStream *pObj, LwpObjectID const &prev)
 @descr Read object id with compressed format from object stream if diff == 255: 255+lowid+highid else lowid equals to the lowid of previous low id and high id = the high id of previous id + diff +1 More...
 
sal_uInt32 DiskSizeIndexed () const
 @descr return the size of indexed object id More...
 
bool IsNull () const
 
sal_uInt32 GetLow () const
 
sal_uInt16 GetHigh () const
 
bool operator== (const LwpObjectID &Other) const
 
bool operator!= (const LwpObjectID &Other) const
 
rtl::Reference< LwpObjectobj (VO_TYPE tag=VO_INVALID) const
 @descr get object from object factory per the object id More...
 
size_t HashCode () const
 

Static Public Member Functions

static sal_uInt32 DiskSize ()
 @descr return the size of object id with format: low(4bytes)+high(2bytes) More...
 

Private Attributes

sal_uInt32 m_nLow
 
sal_uInt16 m_nHigh
 
sal_uInt8 m_nIndex
 
bool m_bIsCompressed
 

Detailed Description

object id class

Definition at line 78 of file lwpobjid.hxx.

Constructor & Destructor Documentation

◆ LwpObjectID()

LwpObjectID::LwpObjectID ( )

Definition at line 66 of file lwpobjid.cxx.

Member Function Documentation

◆ DiskSize()

static sal_uInt32 LwpObjectID::DiskSize ( )
inlinestatic

@descr return the size of object id with format: low(4bytes)+high(2bytes)

Definition at line 97 of file lwpobjid.hxx.

Referenced by Read(), and LwpObjectHeader::Read().

◆ DiskSizeIndexed()

sal_uInt32 LwpObjectID::DiskSizeIndexed ( ) const

@descr return the size of indexed object id

Definition at line 176 of file lwpobjid.cxx.

References m_nHigh, m_nIndex, and m_nLow.

Referenced by LwpObjectHeader::Read(), and ReadIndexed().

◆ GetHigh()

sal_uInt16 LwpObjectID::GetHigh ( ) const
inline

◆ GetLow()

sal_uInt32 LwpObjectID::GetLow ( ) const
inline

◆ HashCode()

size_t LwpObjectID::HashCode ( ) const
inline

◆ IsNull()

bool LwpObjectID::IsNull ( ) const
inline

◆ obj()

rtl::Reference< LwpObject > LwpObjectID::obj ( VO_TYPE  tag = VO_INVALID) const

@descr get object from object factory per the object id

Definition at line 183 of file lwpobjid.cxx.

References LwpGlobalMgr::GetInstance(), LwpGlobalMgr::GetLwpObjFactory(), IsNull(), LwpObjectFactory::QueryObject(), and VO_INVALID.

Referenced by LwpParaStyle::Apply(), LwpCellLayout::ApplyFmtStyle(), LwpFrameLayout::ApplyGraphicSize(), LwpCellLayout::ApplyProtect(), LwpParaStyle::ApplySpacing(), LwpParaStyle::ApplyTab(), LwpRowLayout::CollectMergeInfo(), LwpFribPtr::ComparePagePosition(), LwpCellList::Convert(), LwpCellLayout::ConvertCell(), LwpHiddenCellLayout::ConvertCell(), LwpTableLayout::ConvertColumn(), LwpRowLayout::ConvertCommonRow(), LwpPageLayout::ConvertFillerPageText(), LwpGraphicObject::CreateGrafObject(), LwpContentManager::EnumContents(), LwpOrderedObjectManager::Enumerate(), LwpMiddleLayout::ExtMarginsValue(), LwpVirtualLayout::FindChildByType(), LwpFootnote::FindFootnoteContent(), LwpFoundry::FindParaStyleByName(), LwpParaStyle::GetAlignment(), LwpNoteLayout::GetAuthor(), LwpMiddleLayout::GetBackgroundStuff(), LwpMiddleLayout::GetBasedOnStyle(), LwpFoundry::GetBookMark(), LwpMiddleLayout::GetBorderStuff(), LwpParaStyle::GetBreaks(), LwpSilverBullet::GetBulletPara(), LwpFootnote::GetCellLayout(), LwpLayout::GetColGap(), LwpLayout::GetColumnSep(), LwpLayout::GetContainerLayout(), LwpMiddleLayout::GetContentOrientation(), LwpRubyLayout::GetContentStory(), LwpStory::GetContentText(), LwpFoundry::GetDefaultTextStyle(), LwpSilverBullet::GetDivisionName(), LwpDocument::GetEndnoteType(), LwpDocument::GetEnSuperTableLayout(), LwpPropList::GetFirst(), LwpDocument::GetFirstDivision(), LwpFribFootnote::GetFootnote(), LwpMiddleLayout::GetGeometry(), LwpParaStyle::GetIndent(), LwpDocument::GetLastDivision(), LwpDocument::GetLastDivisionWithContents(), LwpDocument::GetLastInGroupWithContents(), LwpCellLayout::GetLastParaOfPreviousStory(), LwpFribRubyFrame::GetLayout(), LwpFribFrame::GetLayout(), LwpAssociatedLayouts::GetLayout(), LwpMiddleLayout::GetLayoutScale(), LwpEnSuperTableLayout::GetMainTableLayout(), LwpFnSuperTableLayout::GetMainTableLayout(), LwpRubyLayout::GetMarker(), LwpFribField::GetMarker(), LwpDivInfo::GetMaxNumberOfPages(), LwpPropListElement::GetNext(), LwpTabRack::GetNext(), LwpTableRange::GetNext(), LwpOrderedObjectManager::GetNextActiveListList(), LwpDocument::GetNextDivision(), LwpContent::GetNextEnumerated(), LwpDocument::GetNextInGroup(), LwpFrameLayout::GetNextLinkName(), LwpTocSuperLayout::GetNextSearchLevelPtr(), LwpParaStyle::GetNumberingOverride(), LwpDocument::GetNumberOfPages(), LwpLayout::GetNumCols(), LwpSection::GetPageLayout(), LwpPageLayout::GetPageNumber(), LwpPageLayout::GetPagePosition(), LwpParaStyle::GetParaBorder(), LwpPara::GetParaStyle(), LwpPara::GetParent(), LwpDocument::GetParentDivision(), LwpRowLayout::GetParentTableLayout(), LwpDocument::GetPreviousDivision(), LwpDocument::GetPreviousInGroup(), LwpCHBlkMarker::GetPromptText(), LwpPlacableLayout::GetRelativityPiece(), LwpTableLayout::GetRowLayout(), LwpMiddleLayout::GetScaleCenter(), LwpMiddleLayout::GetScaleMode(), LwpMiddleLayout::GetScaleTile(), LwpTocSuperLayout::GetSearchLevelPtr(), LwpFribSection::GetSection(), LwpSilverBullet::GetSectionName(), LwpLayout::GetShadow(), LwpParaStyle::GetSpacing(), LwpPara::GetStory(), LwpFribTable::GetSuperTable(), LwpTable::GetSuperTableLayout(), LwpTableLayout::GetSuperTableLayout(), LwpTableLayout::GetTable(), LwpSuperTableLayout::GetTableHeadingLayout(), LwpCellLayout::GetTableLayout(), LwpSuperTableLayout::GetTableLayout(), LwpSuperTableLayout::GetTableWidth(), LwpMiddleLayout::GetTabOverride(), LwpParaStyle::GetTabOverride(), LwpMiddleLayout::GetXFBGImage(), LwpMiddleLayout::HasContent(), LwpDocument::ImplGetFirstDivisionWithContentsThatIsNotOLE(), LwpFrameLayout::IsForWaterMark(), LwpMasterPage::IsNeedSection(), LwpDocument::IsSkippedDivision(), LwpParaAlignProperty::LwpParaAlignProperty(), LwpParaBackGroundProperty::LwpParaBackGroundProperty(), LwpParaBorderProperty::LwpParaBorderProperty(), LwpParaBreaksProperty::LwpParaBreaksProperty(), LwpParaIndentProperty::LwpParaIndentProperty(), LwpParaNumberingProperty::LwpParaNumberingProperty(), LwpParaSpacingProperty::LwpParaSpacingProperty(), LwpParaTabRackProperty::LwpParaTabRackProperty(), LwpMiddleLayout::MarginsValue(), LwpPara::OverrideParaBullet(), LwpDocument::Parse(), LwpDocSock::Parse(), LwpDropcapLayout::Parse(), LwpPageLayout::Parse(), LwpFrame::Parse(), LwpDocument::ParseDocContent(), Lwp9Reader::ParseDocument(), LwpPageLayout::ParseFootNoteSeparator(), LwpFooterLayout::ParseMargins(), LwpHeaderLayout::ParseMargins(), LwpFribSection::ParseSection(), LwpMasterPage::ParseSection(), LwpFribPtr::ProcessDropcap(), LwpTableLayout::PutCellVals(), LwpFormulaInfo::Read(), LwpFoundry::RegisterAllLayouts(), LwpFribPageBreak::RegisterBreakStyle(), LwpFribColumnBreak::RegisterBreakStyle(), LwpDocument::RegisterBulletStyles(), LwpTableLayout::RegisterColumns(), LwpDocument::RegisterDefaultParaStyles(), LwpStory::RegisterFirstFribStyle(), LwpDocument::RegisterFootnoteStyles(), LwpDocument::RegisterLayoutStyles(), LwpMasterPage::RegisterMasterPage(), LwpPara::RegisterMasterPage(), LwpFribNote::RegisterNewStyle(), LwpTableLayout::RegisterRows(), LwpCellLayout::RegisterStyle(), LwpDocument::RegisterStyle(), LwpDocSock::RegisterStyle(), LwpFnRowLayout::RegisterStyle(), LwpFnCellLayout::RegisterStyle(), LwpEndnoteLayout::RegisterStyle(), LwpFrameLayout::RegisterStyle(), LwpNoteTextLayout::RegisterStyle(), LwpPara::RegisterStyle(), LwpRowLayout::RegisterStyle(), LwpTableLayout::RegisterStyle(), LwpVersionedPointer::RegisterStyle(), LwpDropcapLayout::RegisterStyle(), LwpFribFrame::RegisterStyle(), LwpFribBookMark::RegisterStyle(), LwpHeaderLayout::RegisterStyle(), LwpFooterLayout::RegisterStyle(), LwpPara::RegisterTabStyle(), LwpDocument::RegisterTextStyles(), LwpFribSection::SetDefaultAlphaIndex(), LwpFribFrame::SetParaDropcap(), LwpRowLayout::SetRowMap(), LwpFribSection::SetSectionName(), LwpTableLayout::TraverseTable(), LwpFribPtr::XFConvert(), LwpFribNote::XFConvert(), LwpDropcapLayout::XFConvert(), LwpNoteTextLayout::XFConvert(), LwpPara::XFConvert(), LwpFribRubyMarker::XFConvert(), LwpFribCHBlock::XFConvert(), LwpFrameLayout::XFConvertFrame(), LwpGroupLayout::XFConvertFrame(), and LwpDocument::XFConvertFrameInPage().

◆ operator!=()

bool LwpObjectID::operator!= ( const LwpObjectID Other) const
inline

Definition at line 120 of file lwpobjid.hxx.

References m_nHigh, m_nLow, and Other.

◆ operator==()

bool LwpObjectID::operator== ( const LwpObjectID Other) const
inline

Definition at line 115 of file lwpobjid.hxx.

References m_nHigh, m_nLow, and Other.

◆ Read() [1/2]

sal_uInt32 LwpObjectID::Read ( LwpObjectStream pStrm)

@descr Read object id with format: low(4bytes)+high(2bytes) from object stream

Definition at line 85 of file lwpobjid.cxx.

References DiskSize(), m_nHigh, m_nLow, LwpObjectStream::QuickReaduInt16(), and LwpObjectStream::QuickReaduInt32().

◆ Read() [2/2]

void LwpObjectID::Read ( LwpSvStream pStrm)

◆ ReadCompressed()

void LwpObjectID::ReadCompressed ( LwpObjectStream pObj,
LwpObjectID const &  prev 
)

@descr Read object id with compressed format from object stream if diff == 255: 255+lowid+highid else lowid equals to the lowid of previous low id and high id = the high id of previous id + diff +1

Definition at line 159 of file lwpobjid.cxx.

References GetHigh(), GetLow(), m_nHigh, m_nLow, LwpObjectStream::QuickReaduInt8(), and Read().

Referenced by LwpIndexManager::ReadLeafData(), LwpIndexManager::ReadObjIndexData(), and LwpIndexManager::ReadRootData().

◆ ReadIndexed() [1/2]

sal_uInt32 LwpObjectID::ReadIndexed ( LwpObjectStream pStrm)

◆ ReadIndexed() [2/2]

void LwpObjectID::ReadIndexed ( LwpSvStream pStrm)

@descr Read object id with indexed format from stream if index>0, lowid is get from time table per the index else index+lowid+highid

Definition at line 96 of file lwpobjid.cxx.

References DiskSizeIndexed(), LwpObjectFactory::GetIndexManager(), LwpGlobalMgr::GetInstance(), LwpGlobalMgr::GetLwpObjFactory(), LwpIndexManager::GetObjTime(), m_bIsCompressed, LwpFileHeader::m_nFileRevision, m_nHigh, m_nIndex, m_nLow, Read(), LwpSvStream::ReadUInt16(), LwpSvStream::ReadUInt32(), and LwpSvStream::ReadUInt8().

Referenced by LwpParaAlignProperty::LwpParaAlignProperty(), LwpParaBackGroundProperty::LwpParaBackGroundProperty(), LwpParaBorderProperty::LwpParaBorderProperty(), LwpParaBreaksProperty::LwpParaBreaksProperty(), LwpParaIndentProperty::LwpParaIndentProperty(), LwpParaNumberingProperty::LwpParaNumberingProperty(), LwpParaSpacingProperty::LwpParaSpacingProperty(), LwpParaTabRackProperty::LwpParaTabRackProperty(), LwpDocData::Read(), LwpCellLayout::Read(), LwpHiddenCellLayout::Read(), LwpContent::Read(), LwpDivInfo::Read(), LwpDLVList::Read(), LwpDLNFVList::Read(), LwpDocument::Read(), LwpDocSock::Read(), LwpFootnote::Read(), LwpRubyLayout::Read(), LwpDLVListHeadHolder::Read(), LwpObjectHolder::Read(), LwpVirtualLayout::Read(), LwpMiddleLayout::Read(), LwpLayout::Read(), LwpPlacableLayout::Read(), LwpMarker::Read(), LwpCHBlkMarker::Read(), LwpBookMark::Read(), LwpFieldMark::Read(), LwpRubyMarker::Read(), LwpGraphicOleObject::Read(), LwpPageHint::Read(), LwpPara::Read(), LwpParaStyle::Read(), LwpRowHeadingLayout::Read(), LwpOrderedObject::Read(), LwpSection::Read(), LwpSilverBullet::Read(), LwpStory::Read(), LwpTable::Read(), LwpParallelColumns::Read(), LwpTableLayout::Read(), LwpTabRack::Read(), LwpCellList::Read(), LwpRowList::Read(), LwpTableRange::Read(), LwpCellRange::Read(), LwpFolder::Read(), LwpDependent::Read(), LwpVersionedPointer::Read(), LwpDLVListHeadTail::Read(), LwpDLVListHead::Read(), LwpFribRange::Read(), LwpSLVListHead::Read(), LwpNotifyListPersistent::Read(), LwpFribFootnote::Read(), LwpFribPageBreak::Read(), LwpFribFrame::Read(), LwpFribRubyFrame::Read(), LwpFribCHBlock::Read(), LwpFribBookMark::Read(), LwpFribField::Read(), LwpFribRubyMarker::Read(), LwpFribSection::Read(), LwpFribTable::Read(), LwpFribNote::Read(), LwpObjectManager::Read(), LwpNumberManager::Read(), LwpBulletManager::Read(), LwpContentManager::Read(), LwpPieceManager::Read(), LwpOrderedObjectManager::Read(), LwpFoundry::Read(), LwpFrameLink::Read(), LwpAssociatedLayouts::Read(), LwpBulletOverride::Read(), LwpTabOverride::Read(), LwpObjectHeader::Read(), LwpTextStyle::ReadCommon(), LwpFrib::ReadModifiers(), LwpDocument::ReadPlug(), LwpFoundry::ReadStyles(), and LwpDivInfo::SkipFront().

Member Data Documentation

◆ m_bIsCompressed

bool LwpObjectID::m_bIsCompressed
private

Definition at line 86 of file lwpobjid.hxx.

Referenced by ReadIndexed().

◆ m_nHigh

sal_uInt16 LwpObjectID::m_nHigh
private

◆ m_nIndex

sal_uInt8 LwpObjectID::m_nIndex
private

Definition at line 85 of file lwpobjid.hxx.

Referenced by DiskSizeIndexed(), HashCode(), and ReadIndexed().

◆ m_nLow

sal_uInt32 LwpObjectID::m_nLow
private

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