LibreOffice Module oox (master) 1
Functions
oox::ole::OleHelper Namespace Reference

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...
 

Detailed Description

Static helper functions for OLE import/export.

Function Documentation

◆ decodeOleColor()

Color oox::ole::OleHelper::decodeOleColor ( const GraphicHelper rGraphicHelper,
sal_uInt32  nOleColor,
bool  bDefaultColorBgr 
)

Returns the UNO RGB color from the passed encoded OLE color.

Parameters
bDefaultColorBgrTrue = 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().

◆ encodeOleColor() [1/2]

sal_uInt32 oox::ole::OleHelper::encodeOleColor ( Color  nRgbColor)
inline

Definition at line 109 of file olehelper.hxx.

References encodeOleColor().

◆ encodeOleColor() [2/2]

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().

◆ exportGuid()

void oox::ole::OleHelper::exportGuid ( BinaryOutputStream rOutStrm,
const SvGlobalName rId 
)

◆ importGuid()

OUString oox::ole::OleHelper::importGuid ( BinaryInputStream rInStrm)

◆ importStdFont()

bool oox::ole::OleHelper::importStdFont ( StdFontInfo orFontInfo,
BinaryInputStream rInStrm,
bool  bWithGuid 
)

◆ importStdPic()

bool oox::ole::OleHelper::importStdPic ( StreamDataSequence orGraphicData,
BinaryInputStream rInStrm 
)