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, const SwFrameFormat &rFormat) |
Wraps an OLE2 container binary in an RTF fragment. More... | |
bool | WrapGraphicInRtf (const Graphic &rGraphic, const SwFrameFormat &rFormat, 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 391 of file htmlreqifreader.cxx.
References SvxMSDffManager::ExtractOwnStream(), SvxMSDffManager::GetFilterNameFromClassID(), SvMemoryStream::GetSize(), SvStream::Seek(), SvStream::SetStreamSize(), SvStream::WriteOString(), and SvStream::WriteStream().
Referenced by SwHTMLParser::InsertEmbed().
bool SwReqIfReader::WrapGraphicInRtf | ( | const Graphic & | rGraphic, |
const SwFrameFormat & | rFormat, | ||
SvStream & | rRtf | ||
) |
Wraps an image in an RTF fragment.
Definition at line 499 of file htmlreqifreader.cxx.
References COL_WHITE(), Bitmap::Convert(), ConvertGraphicToWMF(), ERRCODE_NONE, GraphicConverter::Export(), BitmapEx::GetBitmap(), Graphic::GetBitmapEx(), SvMemoryStream::GetData(), SwFormat::GetFrameSize(), Size::getHeight(), Bitmap::getPixelFormat(), Graphic::GetPrefSize(), SvMemoryStream::GetSize(), SvxSizeItem::GetSize(), Size::getWidth(), Size::Height(), comphelper::makePropertyValue(), vcl::N24_BPP, 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, 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_RESULT, OOO_STRING_SVTOOLS_RTF_WMETAFILE, SAL_NEWLINE_STRING, SAL_WARN, SvStream::Seek(), msfilter::rtfutil::StripMetafileHeader(), SvMemoryStream::TellEnd(), Size::Width(), SvStream::WriteBytes(), SvStream::WriteChar(), msfilter::rtfutil::WriteHex(), SvStream::WriteOString(), SvStream::WriteStream(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().
Referenced by OutHTML_ImageOLEStart().
bool SwReqIfReader::WrapOleInRtf | ( | SvStream & | rOle2, |
SvStream & | rRtf, | ||
SwOLENode & | rOLENode, | ||
const SwFrameFormat & | rFormat | ||
) |
Wraps an OLE2 container binary in an RTF fragment.
Definition at line 432 of file htmlreqifreader.cxx.
References ConvertGraphicToWMF(), SvMemoryStream::GetData(), SwFormat::GetFrameSize(), SwOLENode::GetGraphic(), Size::getHeight(), SvxSizeItem::GetSize(), 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(), msfilter::rtfutil::WriteHex(), and SvStream::WriteOString().
Referenced by OutHTML_FrameFormatOLENodeGrf().