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

#include <lwpgrfobj.hxx>

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

Public Member Functions

 LwpGraphicObject (LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
 
virtual ~LwpGraphicObject () override
 
void Read () override
 @descr: Read GraphicOleObject part More...
 
virtual void XFConvert (XFContentContainer *pCont) override
 @descr default XFConvert function pCont is the XFContentContainer for the object conversion More...
 
void RegisterStyle () override
 @descr create drawing object and image object. More...
 
void CreateDrawObjects ()
 @descr create drawing object. More...
 
void CreateGrafObject ()
 @descr create xf-image object and save it in the container: m_vXFDrawObjects. More...
 
std::vector< sal_uInt8GetRawGrafData ()
 @descr get the image data read from bento stream according to the VO_GRAPHIC ID. More...
 
sal_uInt32 GetGrafData (std::unique_ptr< sal_uInt8[]> &pGrafData)
 @descr get the image data (only -D data) read from bento stream according to the VO_GRAPHIC ID. More...
 
void GetGrafOrgSize (tools::Long &rWidth, tools::Long &rHeight)
 
void GetGrafOrgSize (double &rWidth, double &rHeight) override
 
sal_Int16 IsLinked () const
 
const OUString & GetLinkedFilePath () const
 
- Public Member Functions inherited from LwpGraphicOleObject
 LwpGraphicOleObject (LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
 @descr: construction function More...
 
virtual void Read () override
 @descr: Read GraphicOleObject part More...
 
void GetGrafScaledSize (double &fWidth, double &fHeight)
 
virtual void GetGrafOrgSize (double &rWidth, double &rHeight)
 
- Public Member Functions inherited from LwpContent
 LwpContent (LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
 
LwpAssociatedLayoutsGetLayoutsWithMe ()
 
rtl::Reference< LwpVirtualLayoutGetLayout (LwpVirtualLayout const *pStartLayout)
 
bool IsActive () const
 
virtual bool IsTable ()
 
OUString const & GetClassName () const
 
LwpContentGetNextEnumerated ()
 
bool HasNonEmbeddedLayouts ()
 
bool IsStyleContent ()
 
- Public Member Functions inherited from LwpDLNFVList
 LwpDLNFVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
 
LwpAtomHolderGetName ()
 
LwpObjectIDGetChildHead ()
 
LwpObjectIDGetChildTail ()
 
LwpObjectIDGetParent ()
 
- Public Member Functions inherited from LwpDLVList
 LwpDLVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
 
LwpObjectIDGetNext ()
 
LwpObjectIDGetPrevious ()
 
- Public Member Functions inherited from LwpObject
 LwpObject (LwpObjectHeader objHdr, LwpSvStream *pStrm)
 @descr construct lwpobject from stream More...
 
void QuickRead ()
 @descr QuickRead template More...
 
void DoRegisterStyle ()
 
void DoParse (IXFStream *pOutputStream)
 
void DoXFConvert (XFContentContainer *pCont)
 
LwpFoundryGetFoundry ()
 
void SetFoundry (LwpFoundry *pFoundry)
 
LwpObjectIDGetObjectID ()
 
sal_uInt32 GetTag () const
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Static Public Member Functions

static void GetBentoNamebyID (LwpObjectID const &rMyID, std::string &rName)
 @descr create drawing object. More...
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 

Private Member Functions

void XFConvertEquation (XFContentContainer *pCont)
 @descr Reserve the equation text in a note in the context. More...
 
bool IsGrafFormatValid () const
 @descr judge if the graphic format is what we can support: bmp, jpg, wmf, gif, tgf(tif). More...
 

Private Attributes

unsigned char m_sDataFormat [AFID_MAX_FILE_FORMAT_SIZE] = {}
 
unsigned char m_sServerContextFormat [AFID_MAX_CONTEXT_FORMAT_SIZE] = {}
 
sal_Int32 m_nCachedBaseLine
 
sal_Int16 m_bIsLinked
 
AFID_CACHE m_Cache
 
sal_Int16 m_bCompressed
 
OUString m_WatermarkName
 
OUString m_LinkedFilePath
 
ImageProcessingData m_aIPData
 
std::vector< rtl::Reference< XFFrame > > m_vXFDrawObjects
 

Additional Inherited Members

void Read () override
 @descr default read function More...
 
- Protected Member Functions inherited from LwpDLNFVList
virtual ~LwpDLNFVList () override
 
void Read () override
 @descr Read LwpDLNFVList data from object stream More...
 
void ReadName (LwpObjectStream *pObjStrm)
 @descr Read name of LwpDLNFVList from object stream More...
 
- Protected Member Functions inherited from LwpDLVList
virtual ~LwpDLVList () override
 
void Read () override
 @descr Read LwpDLVList data from object stream More...
 
- Protected Member Functions inherited from LwpObject
virtual ~LwpObject () override
 @descr dtor() More...
 
virtual void Read ()
 @descr default read function More...
 
virtual void RegisterStyle ()
 @descr default register style function More...
 
virtual void Parse (IXFStream *pOutputStream)
 @descr default parse function More...
 
virtual void XFConvert (XFContentContainer *pCont)
 @descr default XFConvert function pCont is the XFContentContainer for the object conversion More...
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from LwpGraphicOleObject
LwpObjectID m_pPrevObj
 
LwpObjectID m_pNextObj
 
OUString m_strStyleName
 
- Protected Attributes inherited from LwpDLNFVList
LwpObjectID m_ChildHead
 
LwpObjectID m_ChildTail
 
LwpObjectID m_Parent
 
LwpAtomHolder m_Name
 
- Protected Attributes inherited from LwpObject
LwpObjectHeader m_ObjHdr
 
std::unique_ptr< LwpObjectStreamm_pObjStrm
 
LwpFoundrym_pFoundry
 
LwpSvStreamm_pStrm
 
bool m_bRegisteringStyle
 
bool m_bParsingStyle
 
bool m_bConvertingContent
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 90 of file lwpgrfobj.hxx.

Constructor & Destructor Documentation

◆ LwpGraphicObject()

LwpGraphicObject::LwpGraphicObject ( LwpObjectHeader const &  objHdr,
LwpSvStream pStrm 
)

Definition at line 91 of file lwpgrfobj.cxx.

◆ ~LwpGraphicObject()

LwpGraphicObject::~LwpGraphicObject ( )
overridevirtual

Definition at line 99 of file lwpgrfobj.cxx.

Member Function Documentation

◆ CreateDrawObjects()

void LwpGraphicObject::CreateDrawObjects ( )

◆ CreateGrafObject()

void LwpGraphicObject::CreateGrafObject ( )

◆ GetBentoNamebyID()

void LwpGraphicObject::GetBentoNamebyID ( LwpObjectID const &  rMyID,
std::string &  rName 
)
static

@descr create drawing object.

Definition at line 312 of file lwpgrfobj.cxx.

References LwpObjectID::GetHigh(), LwpObjectID::GetLow(), and o3tl::sprintf().

Referenced by CreateDrawObjects(), GetGrafData(), and GetRawGrafData().

◆ GetGrafData()

sal_uInt32 LwpGraphicObject::GetGrafData ( std::unique_ptr< sal_uInt8[]> &  pGrafData)

@descr get the image data (only -D data) read from bento stream according to the VO_GRAPHIC ID.

Parameters
pGrafDatathe array to store the image data. the pointer need to be deleted outside.
Returns
the length of the image data.

Definition at line 355 of file lwpgrfobj.cxx.

References OpenStormBento::BenErr_OK, OpenStormBento::BenOpenContainer(), GetBentoNamebyID(), LwpSvStream::GetCompressedStream(), LwpObject::GetObjectID(), LwpObject::m_pStrm, and SvStream::TellEnd().

Referenced by XFConvertEquation().

◆ GetGrafOrgSize() [1/2]

void LwpGraphicObject::GetGrafOrgSize ( double &  rWidth,
double &  rHeight 
)
overridevirtual

Reimplemented from LwpGraphicOleObject.

Definition at line 686 of file lwpgrfobj.cxx.

References tagAFID_CACHE::Height, m_Cache, TWIPS_PER_CM, and tagAFID_CACHE::Width.

◆ GetGrafOrgSize() [2/2]

void LwpGraphicObject::GetGrafOrgSize ( tools::Long rWidth,
tools::Long rHeight 
)
inline

◆ GetLinkedFilePath()

const OUString & LwpGraphicObject::GetLinkedFilePath ( ) const
inline

Definition at line 126 of file lwpgrfobj.hxx.

References m_LinkedFilePath.

Referenced by LwpMiddleLayout::GetXFBGImage().

◆ GetRawGrafData()

std::vector< sal_uInt8 > LwpGraphicObject::GetRawGrafData ( )

@descr get the image data read from bento stream according to the VO_GRAPHIC ID.

Returns
the image data.

Definition at line 326 of file lwpgrfobj.cxx.

References OpenStormBento::BenErr_OK, OpenStormBento::BenOpenContainer(), GetBentoNamebyID(), LwpSvStream::GetCompressedStream(), LwpObject::GetObjectID(), and LwpObject::m_pStrm.

Referenced by LwpMiddleLayout::GetXFBGImage(), and XFConvert().

◆ IsGrafFormatValid()

bool LwpGraphicObject::IsGrafFormatValid ( ) const
private

@descr judge if the graphic format is what we can support: bmp, jpg, wmf, gif, tgf(tif).

other format will be filtered to these formats by Word Pro.

Returns
sal_True if yes sal_False if not.

Definition at line 239 of file lwpgrfobj.cxx.

References m_sServerContextFormat.

Referenced by RegisterStyle(), and XFConvert().

◆ IsLinked()

sal_Int16 LwpGraphicObject::IsLinked ( ) const
inline

Definition at line 125 of file lwpgrfobj.hxx.

References m_bIsLinked.

Referenced by LwpMiddleLayout::GetXFBGImage().

◆ Read()

void LwpGraphicObject::Read ( )
overridevirtual

◆ RegisterStyle()

void LwpGraphicObject::RegisterStyle ( )
overridevirtual

◆ XFConvert()

void LwpGraphicObject::XFConvert ( XFContentContainer pCont)
overridevirtual

◆ XFConvertEquation()

void LwpGraphicObject::XFConvertEquation ( XFContentContainer pCont)
private

@descr Reserve the equation text in a note in the context.

Definition at line 637 of file lwpgrfobj.cxx.

References XFContentContainer::Add(), GetGrafData(), and nIndex.

Referenced by XFConvert().

Member Data Documentation

◆ m_aIPData

ImageProcessingData LwpGraphicObject::m_aIPData
private

Definition at line 105 of file lwpgrfobj.hxx.

Referenced by CreateGrafObject(), and Read().

◆ m_bCompressed

sal_Int16 LwpGraphicObject::m_bCompressed
private

Definition at line 101 of file lwpgrfobj.hxx.

Referenced by Read().

◆ m_bIsLinked

sal_Int16 LwpGraphicObject::m_bIsLinked
private

Definition at line 99 of file lwpgrfobj.hxx.

Referenced by IsLinked(), Read(), and XFConvert().

◆ m_Cache

AFID_CACHE LwpGraphicObject::m_Cache
private

Definition at line 100 of file lwpgrfobj.hxx.

Referenced by CreateGrafObject(), GetGrafOrgSize(), and Read().

◆ m_LinkedFilePath

OUString LwpGraphicObject::m_LinkedFilePath
private

Definition at line 103 of file lwpgrfobj.hxx.

Referenced by GetLinkedFilePath(), Read(), and XFConvert().

◆ m_nCachedBaseLine

sal_Int32 LwpGraphicObject::m_nCachedBaseLine
private

Definition at line 98 of file lwpgrfobj.hxx.

Referenced by Read().

◆ m_sDataFormat

unsigned char LwpGraphicObject::m_sDataFormat[AFID_MAX_FILE_FORMAT_SIZE] = {}
private

Definition at line 96 of file lwpgrfobj.hxx.

Referenced by Read().

◆ m_sServerContextFormat

unsigned char LwpGraphicObject::m_sServerContextFormat[AFID_MAX_CONTEXT_FORMAT_SIZE] = {}
private

Definition at line 97 of file lwpgrfobj.hxx.

Referenced by CreateGrafObject(), IsGrafFormatValid(), Read(), RegisterStyle(), and XFConvert().

◆ m_vXFDrawObjects

std::vector< rtl::Reference<XFFrame> > LwpGraphicObject::m_vXFDrawObjects
private

Definition at line 110 of file lwpgrfobj.hxx.

Referenced by CreateDrawObjects(), CreateGrafObject(), and XFConvert().

◆ m_WatermarkName

OUString LwpGraphicObject::m_WatermarkName
private

Definition at line 102 of file lwpgrfobj.hxx.

Referenced by Read().


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