LibreOffice Module sw (master)
1
|
Functions | |
bool | ExtractOleFromRtf (SvStream &rRtf, SvStream &rOle, bool &bOwnFormat) |
Extracts an OLE2 container binary from an RTF fragment. More... | |
bool | WrapOleInRtf (SvStream &rOle2, SvStream &rRtf, SwOLENode &rOLENode) |
Wraps an OLE2 container binary in an RTF fragment. More... | |
bool | WrapGraphicInRtf (const Graphic &rGraphic, const Size &rLogicSize, SvStream &rRtf) |
Wraps an image in an RTF fragment. More... | |
Extracts an OLE2 container binary from an RTF fragment.
bOwnFormat | if the extracted data has an ODF class ID or not. |
Definition at line 389 of file htmlreqifreader.cxx.
References SvxMSDffManager::ExtractOwnStream(), SotStorage::GetClassName(), SvxMSDffManager::GetFilterNameFromClassID(), SvMemoryStream::GetSize(), SvStream::Seek(), SvStream::SetStreamSize(), SvStream::WriteOString(), and SvStream::WriteStream().
Referenced by SwHTMLParser::InsertEmbed().
bool SwReqIfReader::WrapGraphicInRtf | ( | const Graphic & | rGraphic, |
const Size & | rLogicSize, | ||
SvStream & | rRtf | ||
) |
Wraps an image in an RTF fragment.
rLogicSize | the size used in the document model (not pixel size) |
Definition at line 496 of file htmlreqifreader.cxx.
References GfxLink::GetData(), GfxLink::GetDataSize(), Graphic::GetGfxLink(), Graphic::GetPrefSize(), GfxLink::GetType(), Size::Height(), GfxLink::IsEMF(), OOO_STRING_SVTOOLS_RTF_EMFBLIP, OOO_STRING_SVTOOLS_RTF_JPEGBLIP, OOO_STRING_SVTOOLS_RTF_PICH, OOO_STRING_SVTOOLS_RTF_PICHGOAL, OOO_STRING_SVTOOLS_RTF_PICT, OOO_STRING_SVTOOLS_RTF_PICW, OOO_STRING_SVTOOLS_RTF_PICWGOAL, OOO_STRING_SVTOOLS_RTF_PNGBLIP, OOO_STRING_SVTOOLS_RTF_WBITMAP, OOO_STRING_SVTOOLS_RTF_WMETAFILE, SAL_NEWLINE_STRING, msfilter::rtfutil::StripMetafileHeader(), Size::Width(), SvStream::WriteCharPtr(), msfilter::rtfutil::WriteHex(), and SvStream::WriteOString().
Referenced by OutHTML_FrameFormatGrfNode().
Wraps an OLE2 container binary in an RTF fragment.
Definition at line 430 of file htmlreqifreader.cxx.
References ConvertGraphicToWMF(), SvMemoryStream::GetData(), SwOLENode::GetGraphic(), Size::getHeight(), SwOLENode::GetTwipSize(), Size::getWidth(), comphelper::makePropertyValue(), nPos, OOO_STRING_SVTOOLS_RTF_IGNORE, OOO_STRING_SVTOOLS_RTF_OBJCLASS, OOO_STRING_SVTOOLS_RTF_OBJDATA, OOO_STRING_SVTOOLS_RTF_OBJECT, OOO_STRING_SVTOOLS_RTF_OBJEMB, OOO_STRING_SVTOOLS_RTF_OBJH, OOO_STRING_SVTOOLS_RTF_OBJW, SAL_NEWLINE_STRING, SvStream::Seek(), msfilter::rtfutil::StripMetafileHeader(), SvStream::Tell(), SvMemoryStream::TellEnd(), SvStream::WriteCharPtr(), msfilter::rtfutil::WriteHex(), and SvStream::WriteOString().
Referenced by OutHTML_FrameFormatOLENodeGrf().