|
LibreOffice Module lotuswordpro (master) 1
|
#include <lwpgrfobj.hxx>
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_uInt8 > | GetRawGrafData () |
| @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) | |
| LwpAssociatedLayouts & | GetLayoutsWithMe () |
| rtl::Reference< LwpVirtualLayout > | GetLayout (LwpVirtualLayout const *pStartLayout) |
| bool | IsActive () const |
| virtual bool | IsTable () |
| OUString const & | GetClassName () const |
| LwpContent * | GetNextEnumerated () |
| bool | HasNonEmbeddedLayouts () |
| bool | IsStyleContent () |
Public Member Functions inherited from LwpDLNFVList | |
| LwpDLNFVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
| LwpAtomHolder & | GetName () |
| LwpObjectID & | GetChildHead () |
| LwpObjectID & | GetChildTail () |
| LwpObjectID & | GetParent () |
Public Member Functions inherited from LwpDLVList | |
| LwpDLVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
| LwpObjectID & | GetNext () |
| LwpObjectID & | GetPrevious () |
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) |
| LwpFoundry * | GetFoundry () |
| void | SetFoundry (LwpFoundry *pFoundry) |
| LwpObjectID & | GetObjectID () |
| 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< LwpObjectStream > | m_pObjStrm |
| LwpFoundry * | m_pFoundry |
| LwpSvStream * | m_pStrm |
| bool | m_bRegisteringStyle |
| bool | m_bParsingStyle |
| bool | m_bConvertingContent |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
| oslInterlockedCount | m_nCount |
Definition at line 90 of file lwpgrfobj.hxx.
| LwpGraphicObject::LwpGraphicObject | ( | LwpObjectHeader const & | objHdr, |
| LwpSvStream * | pStrm | ||
| ) |
Definition at line 91 of file lwpgrfobj.cxx.
|
overridevirtual |
Definition at line 99 of file lwpgrfobj.cxx.
| void LwpGraphicObject::CreateDrawObjects | ( | ) |
@descr create drawing object.
Definition at line 283 of file lwpgrfobj.cxx.
References aData, OpenStormBento::BenErr_OK, OpenStormBento::BenOpenContainer(), LwpSdwFileLoader::CreateDrawObjects(), GetBentoNamebyID(), LwpSvStream::GetCompressedStream(), LwpObject::GetObjectID(), LwpObject::m_pStrm, and m_vXFDrawObjects.
Referenced by RegisterStyle().
| void LwpGraphicObject::CreateGrafObject | ( | ) |
@descr create xf-image object and save it in the container: m_vXFDrawObjects.
Definition at line 397 of file lwpgrfobj.cxx.
References XFStyleManager::AddStyle(), LwpTools::ConvertFromUnitsToMetric(), LwpLayoutScale::CUSTOM, enumXFAnchorFrame, enumXFFrameXPosCenter, enumXFFrameXPosFromLeft, enumXFFrameXRelFrame, enumXFFrameYPosFromTop, enumXFFrameYPosMiddle, enumXFFrameYRelFrame, LwpLayoutScale::FIT_IN_FRAME, LwpMiddleLayout::GetGeometry(), LwpLayoutGeometry::GetHeight(), LwpGlobalMgr::GetInstance(), LwpMiddleLayout::GetLayoutScale(), LwpContent::GetLayoutsWithMe(), LwpVirtualLayout::GetMarginsValue(), LwpDLNFVList::GetName(), LwpLayoutScale::GetOffset(), LwpAssociatedLayouts::GetOnlyLayout(), LwpMiddleLayout::GetScaleCenter(), LwpLayoutScale::GetScaleHeight(), LwpLayoutScale::GetScaleMode(), LwpLayoutScale::GetScalePercentage(), LwpMiddleLayout::GetScaleTile(), LwpLayoutScale::GetScaleWidth(), IXFStyle::GetStyleName(), LwpLayoutGeometry::GetWidth(), LwpPoint::GetX(), LwpGlobalMgr::GetXFStyleManager(), LwpPoint::GetY(), tagAFID_CACHE::Height, LwpVirtualLayout::IsFitGraphic(), m_aIPData, m_Cache, IXFStyleRet::m_pStyle, m_sServerContextFormat, m_vXFDrawObjects, LwpLayoutScale::MAINTAIN_ASPECT_RATIO, MARGIN_BOTTOM, MARGIN_LEFT, MARGIN_RIGHT, MARGIN_TOP, ImageProcessingData::nBrightness, ImageProcessingData::nContrast, LwpObjectID::obj(), LwpLayoutScale::PERCENTAGE, LwpAtomHolder::str(), TWIPS_PER_CM, VO_FRAMELAYOUT, and tagAFID_CACHE::Width.
Referenced by RegisterStyle().
|
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().
| 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.
| pGrafData | the array to store the image data. the pointer need to be deleted outside. |
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().
|
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.
|
inline |
Definition at line 122 of file lwpgrfobj.hxx.
References tagAFID_CACHE::Height, m_Cache, and tagAFID_CACHE::Width.
Referenced by LwpSdwGroupLoaderV0102::BeginDrawObjects().
|
inline |
Definition at line 126 of file lwpgrfobj.hxx.
References m_LinkedFilePath.
Referenced by LwpMiddleLayout::GetXFBGImage().
| std::vector< sal_uInt8 > LwpGraphicObject::GetRawGrafData | ( | ) |
@descr get the image data read from bento stream according to the VO_GRAPHIC ID.
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().
|
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.
Definition at line 239 of file lwpgrfobj.cxx.
References m_sServerContextFormat.
Referenced by RegisterStyle(), and XFConvert().
|
inline |
Definition at line 125 of file lwpgrfobj.hxx.
References m_bIsLinked.
Referenced by LwpMiddleLayout::GetXFBGImage().
|
overridevirtual |
@descr: Read GraphicOleObject part
Reimplemented from LwpGraphicOleObject.
Definition at line 103 of file lwpgrfobj.cxx.
References AFID_MAX_FILE_FORMAT_SIZE, ImageProcessingData::bAutoContrast, ImageProcessingData::bInvertImage, EF_NONE, EF_ODMA, tagAFID_CACHE::Height, tagAFID_CACHE::LinkedFileSize, tagAFID_CACHE::LinkedFileTime, m_aIPData, m_bCompressed, m_bIsLinked, m_Cache, m_LinkedFilePath, m_nCachedBaseLine, LwpFileHeader::m_nFileRevision, LwpObject::m_pObjStrm, m_sDataFormat, m_sServerContextFormat, m_WatermarkName, ImageProcessingData::nBrightness, ImageProcessingData::nContrast, ImageProcessingData::nEdgeEnhancement, ImageProcessingData::nSmoothing, LwpGraphicOleObject::Read(), SAL_WARN, size, type, and tagAFID_CACHE::Width.
|
overridevirtual |
@descr create drawing object and image object.
Reimplemented from LwpObject.
Definition at line 253 of file lwpgrfobj.cxx.
References XFStyleManager::AddStyle(), CreateDrawObjects(), CreateGrafObject(), enumXFFrameXPosFromLeft, enumXFFrameXRelFrame, enumXFFrameYPosFromTop, enumXFFrameYRelPara, LwpGlobalMgr::GetInstance(), LwpContent::GetLayout(), IXFStyle::GetStyleName(), LwpGlobalMgr::GetXFStyleManager(), IsGrafFormatValid(), IXFStyleRet::m_pStyle, m_sServerContextFormat, and LwpGraphicOleObject::m_strStyleName.
|
overridevirtual |
@descr default XFConvert function pCont is the XFContentContainer for the object conversion
Reimplemented from LwpObject.
Definition at line 202 of file lwpgrfobj.cxx.
References XFContentContainer::Add(), LwpTools::convertToFileUrl(), GetRawGrafData(), IsGrafFormatValid(), m_bIsLinked, m_LinkedFilePath, m_sServerContextFormat, m_vXFDrawObjects, OUStringToOString(), XFImage::SetFileURL(), XFImage::SetImageData(), and XFConvertEquation().
|
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().
|
private |
Definition at line 105 of file lwpgrfobj.hxx.
Referenced by CreateGrafObject(), and Read().
|
private |
Definition at line 101 of file lwpgrfobj.hxx.
Referenced by Read().
|
private |
Definition at line 99 of file lwpgrfobj.hxx.
Referenced by IsLinked(), Read(), and XFConvert().
|
private |
Definition at line 100 of file lwpgrfobj.hxx.
Referenced by CreateGrafObject(), GetGrafOrgSize(), and Read().
|
private |
Definition at line 103 of file lwpgrfobj.hxx.
Referenced by GetLinkedFilePath(), Read(), and XFConvert().
|
private |
Definition at line 98 of file lwpgrfobj.hxx.
Referenced by Read().
|
private |
Definition at line 96 of file lwpgrfobj.hxx.
Referenced by Read().
|
private |
Definition at line 97 of file lwpgrfobj.hxx.
Referenced by CreateGrafObject(), IsGrafFormatValid(), Read(), RegisterStyle(), and XFConvert().
|
private |
Definition at line 110 of file lwpgrfobj.hxx.
Referenced by CreateDrawObjects(), CreateGrafObject(), and XFConvert().
|
private |
Definition at line 102 of file lwpgrfobj.hxx.
Referenced by Read().