LibreOffice Module basic (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
SbiImage Class Reference

#include <image.hxx>

Collaboration diagram for SbiImage:
[legend]

Public Member Functions

 SbiImage ()
 
 ~SbiImage ()
 
void Clear ()
 
bool Load (SvStream &, sal_uInt32 &nVer)
 
bool Save (SvStream &, sal_uInt32)
 
bool IsError () const
 
const sal_uInt8GetCode () const
 
sal_uInt32 GetCodeSize () const
 
sal_uInt16 GetBase () const
 
OUString GetString (sal_uInt32 nId, SbxDataType *eType=nullptr) const
 
const SbxObjectFindType (const OUString &aTypeName) const
 
const SbxArrayRefGetEnums () const
 
void SetFlag (SbiImageFlags n)
 
bool IsFlag (SbiImageFlags n) const
 
sal_uInt16 CalcLegacyOffset (sal_Int32 nOffset)
 
sal_uInt32 CalcNewOffset (sal_Int16 nOffset)
 
void ReleaseLegacyBuffer ()
 
bool ExceedsLegacyLimits ()
 
bool ExceedsImgVersion12Limits ()
 

Public Attributes

OUString aName
 
OUString aOUSource
 
OUString aComment
 
bool bInit
 
bool bFirstInit
 

Private Member Functions

void MakeStrings (short)
 
void AddString (const OUString &)
 
void AddCode (std::vector< sal_uInt8 > &&)
 
void AddType (SbxObject const *)
 
void AddEnum (SbxObject *)
 

Private Attributes

SbxArrayRef rTypes
 
SbxArrayRef rEnums
 
std::vector< sal_uInt32 > mvStringOffsets
 
std::unique_ptr< sal_Unicode[]> pStrings
 
std::vector< sal_uInt8aCode
 
std::vector< sal_uInt8aLegacyPCode
 
bool bError
 
SbiImageFlags nFlags
 
sal_uInt32 nStringSize
 
sal_uInt16 nDimBase
 
rtl_TextEncoding eCharSet
 
std::size_t nStringIdx
 
sal_uInt32 nStringOff
 

Friends

class SbiCodeGen
 

Detailed Description

Definition at line 45 of file image.hxx.

Constructor & Destructor Documentation

◆ SbiImage()

SbiImage::SbiImage ( )

Definition at line 34 of file image.cxx.

References NONE.

◆ ~SbiImage()

SbiImage::~SbiImage ( )

Definition at line 47 of file image.cxx.

Member Function Documentation

◆ AddCode()

void SbiImage::AddCode ( std::vector< sal_uInt8 > &&  v)
private

Definition at line 592 of file image.cxx.

References aCode, and v.

◆ AddEnum()

void SbiImage::AddEnum ( SbxObject pObject)
private

Definition at line 608 of file image.cxx.

References tools::SvRef< typename T >::is(), pObject, and rEnums.

◆ AddString()

void SbiImage::AddString ( const OUString &  r)
private

Definition at line 551 of file image.cxx.

References bError, mvStringOffsets, nStringIdx, nStringOff, nStringSize, p, and pStrings.

◆ AddType()

void SbiImage::AddType ( SbxObject const *  pObject)
private

Definition at line 598 of file image.cxx.

References tools::SvRef< typename T >::is(), pObject, and rTypes.

Referenced by Load().

◆ CalcLegacyOffset()

sal_uInt16 SbiImage::CalcLegacyOffset ( sal_Int32  nOffset)

◆ CalcNewOffset()

sal_uInt32 SbiImage::CalcNewOffset ( sal_Int16  nOffset)

Definition at line 675 of file image.cxx.

References aLegacyPCode, and SbiCodeGen::calcNewOffSet().

Referenced by SbModule::fixUpMethodStart().

◆ Clear()

void SbiImage::Clear ( )

Definition at line 51 of file image.cxx.

References aCode, aLegacyPCode, bError, eCharSet, mvStringOffsets, nDimBase, nFlags, NONE, nStringSize, and pStrings.

Referenced by Load().

◆ ExceedsImgVersion12Limits()

bool SbiImage::ExceedsImgVersion12Limits ( )

Definition at line 690 of file image.cxx.

References aCode, CalcLegacyOffset(), and nStringSize.

◆ ExceedsLegacyLimits()

bool SbiImage::ExceedsLegacyLimits ( )

Definition at line 685 of file image.cxx.

References aCode, CalcLegacyOffset(), and nStringSize.

◆ FindType()

const SbxObject * SbiImage::FindType ( const OUString &  aTypeName) const

Definition at line 665 of file image.cxx.

References tools::SvRef< typename T >::is(), Object, and rTypes.

◆ GetBase()

sal_uInt16 SbiImage::GetBase ( ) const
inline

Definition at line 87 of file image.hxx.

References nDimBase.

Referenced by SbiRuntime::GetBase().

◆ GetCode()

const sal_uInt8 * SbiImage::GetCode ( ) const
inline

◆ GetCodeSize()

sal_uInt32 SbiImage::GetCodeSize ( ) const
inline

Definition at line 86 of file image.hxx.

References aCode.

Referenced by SbiRuntime::StepGOSUB(), and SbiRuntime::StepJUMP().

◆ GetEnums()

const SbxArrayRef & SbiImage::GetEnums ( ) const
inline

Definition at line 91 of file image.hxx.

References rEnums.

◆ GetString()

OUString SbiImage::GetString ( sal_uInt32  nId,
SbxDataType eType = nullptr 
) const

◆ IsError()

bool SbiImage::IsError ( ) const
inline

Definition at line 83 of file image.hxx.

References bError.

◆ IsFlag()

bool SbiImage::IsFlag ( SbiImageFlags  n) const
inline

◆ Load()

bool SbiImage::Load ( SvStream r,
sal_uInt32 &  nVer 
)

◆ MakeStrings()

void SbiImage::MakeStrings ( short  nSize)
private

Definition at line 536 of file image.cxx.

References mvStringOffsets, nStringIdx, nStringOff, nStringSize, and pStrings.

Referenced by Load().

◆ ReleaseLegacyBuffer()

void SbiImage::ReleaseLegacyBuffer ( )

Definition at line 680 of file image.cxx.

References aLegacyPCode.

◆ Save()

bool SbiImage::Save ( SvStream r,
sal_uInt32  nVer 
)

◆ SetFlag()

void SbiImage::SetFlag ( SbiImageFlags  n)
inline

Definition at line 93 of file image.hxx.

References n, and nFlags.

Friends And Related Function Documentation

◆ SbiCodeGen

friend class SbiCodeGen
friend

Definition at line 46 of file image.hxx.

Member Data Documentation

◆ aCode

std::vector<sal_uInt8> SbiImage::aCode
private

◆ aComment

OUString SbiImage::aComment

Definition at line 72 of file image.hxx.

Referenced by Load(), Save(), and SbModule::StoreData().

◆ aLegacyPCode

std::vector<sal_uInt8> SbiImage::aLegacyPCode
private

Definition at line 53 of file image.hxx.

Referenced by CalcNewOffset(), Clear(), Load(), and ReleaseLegacyBuffer().

◆ aName

OUString SbiImage::aName

Definition at line 70 of file image.hxx.

Referenced by Load(), Save(), and SbModule::StoreData().

◆ aOUSource

OUString SbiImage::aOUSource

Definition at line 71 of file image.hxx.

Referenced by Load(), Save(), and SbModule::StoreData().

◆ bError

bool SbiImage::bError
private

Definition at line 54 of file image.hxx.

Referenced by AddString(), Clear(), IsError(), Load(), and Save().

◆ bFirstInit

bool SbiImage::bFirstInit

Definition at line 74 of file image.hxx.

◆ bInit

bool SbiImage::bInit

Definition at line 73 of file image.hxx.

◆ eCharSet

rtl_TextEncoding SbiImage::eCharSet
private

Definition at line 58 of file image.hxx.

Referenced by Clear(), Load(), and Save().

◆ mvStringOffsets

std::vector<sal_uInt32> SbiImage::mvStringOffsets
private

Definition at line 50 of file image.hxx.

Referenced by AddString(), Clear(), GetString(), Load(), MakeStrings(), and Save().

◆ nDimBase

sal_uInt16 SbiImage::nDimBase
private

Definition at line 57 of file image.hxx.

Referenced by Clear(), GetBase(), Load(), and Save().

◆ nFlags

SbiImageFlags SbiImage::nFlags
private

Definition at line 55 of file image.hxx.

Referenced by Clear(), IsFlag(), Load(), Save(), and SetFlag().

◆ nStringIdx

std::size_t SbiImage::nStringIdx
private

Definition at line 60 of file image.hxx.

Referenced by AddString(), and MakeStrings().

◆ nStringOff

sal_uInt32 SbiImage::nStringOff
private

Definition at line 61 of file image.hxx.

Referenced by AddString(), and MakeStrings().

◆ nStringSize

sal_uInt32 SbiImage::nStringSize
private

◆ pStrings

std::unique_ptr<sal_Unicode[]> SbiImage::pStrings
private

Definition at line 51 of file image.hxx.

Referenced by AddString(), Clear(), GetString(), Load(), MakeStrings(), and Save().

◆ rEnums

SbxArrayRef SbiImage::rEnums
private

Definition at line 49 of file image.hxx.

Referenced by AddEnum(), and GetEnums().

◆ rTypes

SbxArrayRef SbiImage::rTypes
private

Definition at line 48 of file image.hxx.

Referenced by AddType(), FindType(), Load(), and Save().


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