LibreOffice Module oox (master)
1
|
#include <sal/config.h>
#include <cstring>
#include <limits>
#include <o3tl/safeint.hxx>
#include <osl/endian.h>
#include <rtl/math.hxx>
#include <sal/macros.h>
#include <sal/types.h>
#include <tools/color.hxx>
Go to the source code of this file.
Classes | |
class | oox::OptValue< Type > |
Optional value, similar to ::std::optional<>, with convenience accessors. More... | |
class | oox::ByteOrderConverter |
Provides platform independent functions to convert from or to little-endian byte order, e.g. More... | |
Namespaces | |
oox | |
oox::detail | |
Macros | |
#define | STATIC_ARRAY_SELECT(array, index, def) ((detail::make_unsigned(index) < SAL_N_ELEMENTS(array)) ? ((array)[static_cast<size_t>(index)]) : (def)) |
Expands to the 'index'-th element of a STATIC data array, or to 'def', if 'index' is out of the array limits. More... | |
Functions | |
template<typename T > | |
constexpr std::make_unsigned_t< T > | oox::detail::make_unsigned (T value) |
template<typename ReturnType , typename Type > | |
ReturnType | oox::getLimitedValue (Type nValue, Type nMin, Type nMax) |
template<typename ReturnType , typename Type > | |
ReturnType | oox::getIntervalValue (Type nValue, Type nBegin, Type nEnd) |
template<typename ReturnType > | |
ReturnType | oox::getDoubleIntervalValue (double fValue, double fBegin, double fEnd) |
template<typename Type > | |
bool | oox::getFlag (Type nBitField, Type nMask) |
Returns true, if at least one of the bits set in nMask is set in nBitField. More... | |
template<typename ReturnType , typename Type > | |
ReturnType | oox::getFlagValue (Type nBitField, Type nMask, ReturnType nSet, ReturnType nUnset) |
Returns nSet, if at least one bit of nMask is set in nBitField, otherwise nUnset. More... | |
template<typename ReturnType , typename Type > | |
ReturnType | oox::extractValue (Type nBitField, sal_uInt8 nStartBit, sal_uInt8 nBitCount) |
Extracts a value from a bit field. More... | |
template<typename Type > | |
void | oox::setFlag (Type &ornBitField, Type nMask, bool bSet=true) |
Sets or clears (according to bSet) all set bits of nMask in ornBitField. More... | |
#define STATIC_ARRAY_SELECT | ( | array, | |
index, | |||
def | |||
) | ((detail::make_unsigned(index) < SAL_N_ELEMENTS(array)) ? ((array)[static_cast<size_t>(index)]) : (def)) |
Expands to the 'index'-th element of a STATIC data array, or to 'def', if 'index' is out of the array limits.
Definition at line 55 of file helper.hxx.
Referenced by oox::ole::OleHelper::decodeOleColor().