LibreOffice Module oox (master) 1
|
Static helper functions for OLE import/export. More...
Functions | |
OOX_DLLPUBLIC::Color | decodeOleColor (const GraphicHelper &rGraphicHelper, sal_uInt32 nOleColor, bool bDefaultColorBgr) |
Returns the UNO RGB color from the passed encoded OLE color. More... | |
OOX_DLLPUBLIC sal_uInt32 | encodeOleColor (sal_Int32 nRgbColor) |
Returns the OLE color from the passed UNO RGB color. More... | |
sal_uInt32 | encodeOleColor (Color nRgbColor) |
OOX_DLLPUBLIC OUString | importGuid (BinaryInputStream &rInStrm) |
Imports a GUID from the passed binary stream and returns its string representation (in uppercase characters). More... | |
OOX_DLLPUBLIC void | exportGuid (BinaryOutputStream &rOutStrm, const SvGlobalName &rId) |
OOX_DLLPUBLIC bool | importStdFont (StdFontInfo &orFontInfo, BinaryInputStream &rInStrm, bool bWithGuid) |
Imports an OLE StdFont font structure from the current position of the passed binary stream. More... | |
OOX_DLLPUBLIC bool | importStdPic (StreamDataSequence &orGraphicData, BinaryInputStream &rInStrm) |
Imports an OLE StdPic picture from the current position of the passed binary stream. More... | |
Static helper functions for OLE import/export.
Color oox::ole::OleHelper::decodeOleColor | ( | const GraphicHelper & | rGraphicHelper, |
sal_uInt32 | nOleColor, | ||
bool | bDefaultColorBgr | ||
) |
Returns the UNO RGB color from the passed encoded OLE color.
bDefaultColorBgr | True = OLE default color type is treated as BGR color. False = OLE default color type is treated as palette color. |
Definition at line 216 of file olehelper.cxx.
References oox::API_RGB_BLACK, oox::API_RGB_WHITE, oox::GraphicHelper::getPaletteColor(), oox::GraphicHelper::getSystemColor(), STATIC_ARRAY_SELECT, and XML_TOKEN_INVALID.
Referenced by oox::ole::ControlConverter::convertColor().
|
inline |
Definition at line 109 of file olehelper.hxx.
References encodeOleColor().
sal_uInt32 oox::ole::OleHelper::encodeOleColor | ( | sal_Int32 | nRgbColor | ) |
Returns the OLE color from the passed UNO RGB color.
Definition at line 248 of file olehelper.cxx.
Referenced by oox::ole::ControlConverter::convertToMSColor(), and encodeOleColor().
void oox::ole::OleHelper::exportGuid | ( | BinaryOutputStream & | rOutStrm, |
const SvGlobalName & | rId | ||
) |
Definition at line 253 of file olehelper.cxx.
References SvGUID::Data1, SvGUID::Data2, SvGUID::Data3, SvGUID::Data4, SvGlobalName::GetCLSID(), oox::BinaryOutputStream::writeArray(), oox::BinaryOutputStream::WriteUInt16(), and oox::BinaryOutputStream::WriteUInt32().
Referenced by oox::ole::MSConvertOCXControls::WriteOCXExcelKludgeStream().
OUString oox::ole::OleHelper::importGuid | ( | BinaryInputStream & | rInStrm | ) |
Imports a GUID from the passed binary stream and returns its string representation (in uppercase characters).
Definition at line 261 of file olehelper.cxx.
References aBuffer, nIndex, oox::BinaryInputStream::readuInt16(), oox::BinaryInputStream::readuInt32(), and oox::BinaryInputStream::readuInt8().
Referenced by oox::ole::AxFontData::importGuidAndFont(), importStdFont(), importStdPic(), oox::ole::AxControlFragment::onCreateContext(), oox::ole::MSConvertOCXControls::ReadOCXCtlsStream(), oox::ole::MSConvertOCXControls::ReadOCXStorage(), and oox::ole::AxBinaryPropertyReader::GuidProperty::readProperty().
bool oox::ole::OleHelper::importStdFont | ( | StdFontInfo & | orFontInfo, |
BinaryInputStream & | rInStrm, | ||
bool | bWithGuid | ||
) |
Imports an OLE StdFont font structure from the current position of the passed binary stream.
Definition at line 280 of file olehelper.cxx.
References importGuid(), oox::BinaryStreamBase::isEof(), oox::ole::StdFontInfo::maName, oox::ole::StdFontInfo::mnCharSet, oox::ole::StdFontInfo::mnFlags, oox::ole::StdFontInfo::mnHeight, oox::ole::StdFontInfo::mnWeight, nVersion, OLE_GUID_STDFONT, oox::BinaryInputStream::readCharArrayUC(), oox::BinaryInputStream::readuChar(), oox::BinaryInputStream::readuInt16(), and oox::BinaryInputStream::readuInt32().
Referenced by oox::ole::ComCtlModelBase::importComplexPart(), and oox::ole::AxFontData::importStdFont().
bool oox::ole::OleHelper::importStdPic | ( | StreamDataSequence & | orGraphicData, |
BinaryInputStream & | rInStrm | ||
) |
Imports an OLE StdPic picture from the current position of the passed binary stream.
Definition at line 303 of file olehelper.cxx.
References importGuid(), oox::BinaryStreamBase::isEof(), OLE_GUID_STDPIC, oox::BinaryInputStream::readData(), oox::BinaryInputStream::readInt32(), and oox::BinaryInputStream::readuInt32().
Referenced by oox::ole::ComCtlModelBase::importComplexPart(), oox::ole::AxCommandButtonModel::importPictureData(), oox::ole::AxImageModel::importPictureData(), oox::ole::AxMorphDataModelBase::importPictureData(), and oox::ole::AxBinaryPropertyReader::PictureProperty::readProperty().