LibreOffice Module tools (master) 1
Classes | Namespaces | Enumerations | Functions
color.hxx File Reference
#include <sal/types.h>
#include <tools/toolsdllapi.h>
#include <com/sun/star/uno/Any.hxx>
#include <config_global.h>
#include <basegfx/color/bcolor.hxx>
#include <osl/endian.h>
Include dependency graph for color.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Color
 

Namespaces

namespace  color
 
namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::uno
 

Enumerations

enum  ColorTransparencyTag { ColorTransparency = 0 }
 used to deliberately select the right constructor More...
 
enum  ColorAlphaTag { ColorAlpha = 0 }
 

Functions

constexpr sal_uInt32 color::extractRGB (sal_uInt32 nColorNumber)
 
constexpr sal_uInt8 color::ColorChannelMerge (sal_uInt8 nDst, sal_uInt8 nSrc, sal_uInt8 nSrcTrans)
 
bool operator>>= (const css::uno::Any &rAny, Color &value)
 
void operator<<= (css::uno::Any &rAny, Color value)
 
constexpr ::Color COL_TRANSPARENT (ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
 
constexpr ::Color COL_AUTO (ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
 
constexpr ::Color COL_ALPHA_TRANSPARENT (0x00, 0x00, 0x00)
 
constexpr ::Color COL_ALPHA_OPAQUE (0xff, 0xff, 0xff)
 
constexpr ::Color COL_BLACK (0x00, 0x00, 0x00)
 
constexpr ::Color COL_BLUE (0x00, 0x00, 0x80)
 
constexpr ::Color COL_GREEN (0x00, 0x80, 0x00)
 
constexpr ::Color COL_CYAN (0x00, 0x80, 0x80)
 
constexpr ::Color COL_RED (0x80, 0x00, 0x00)
 
constexpr ::Color COL_MAGENTA (0x80, 0x00, 0x80)
 
constexpr ::Color COL_BROWN (0x80, 0x80, 0x00)
 
constexpr ::Color COL_GRAY (0x80, 0x80, 0x80)
 
constexpr ::Color COL_GRAY3 (0xCC, 0xCC, 0xCC)
 
constexpr ::Color COL_GRAY7 (0x66, 0x66, 0x66)
 
constexpr ::Color COL_LIGHTGRAY (0xC0, 0xC0, 0xC0)
 
constexpr ::Color COL_LIGHTBLUE (0x00, 0x00, 0xFF)
 
constexpr ::Color COL_LIGHTGREEN (0x00, 0xFF, 0x00)
 
constexpr ::Color COL_LIGHTCYAN (0x00, 0xFF, 0xFF)
 
constexpr ::Color COL_LIGHTRED (0xFF, 0x00, 0x00)
 
constexpr ::Color COL_LIGHTMAGENTA (0xFF, 0x00, 0xFF)
 
constexpr ::Color COL_LIGHTGRAYBLUE (0xE0, 0xE0, 0xFF)
 
constexpr ::Color COL_YELLOW (0xFF, 0xFF, 0x00)
 
constexpr ::Color COL_WHITE (0xFF, 0xFF, 0xFF)
 
constexpr ::Color COL_AUTHOR1_DARK (0xC6, 0x92, 0x00)
 
constexpr ::Color COL_AUTHOR1_NORMAL (0xFF, 0xFF, 0x9E)
 
constexpr ::Color COL_AUTHOR1_LIGHT (0xFF, 0xFF, 0xC3)
 
constexpr ::Color COL_AUTHOR2_DARK (0x06, 0x46, 0xA2)
 
constexpr ::Color COL_AUTHOR2_NORMAL (0xD8, 0xE8, 0xFF)
 
constexpr ::Color COL_AUTHOR2_LIGHT (0xE9, 0xF2, 0xFF)
 
constexpr ::Color COL_AUTHOR3_DARK (0x57, 0x9D, 0x1C)
 
constexpr ::Color COL_AUTHOR3_NORMAL (0xDA, 0xF8, 0xC1)
 
constexpr ::Color COL_AUTHOR3_LIGHT (0xE2, 0xFA, 0xCF)
 
constexpr ::Color COL_AUTHOR4_DARK (0x69, 0x2B, 0x9D)
 
constexpr ::Color COL_AUTHOR4_NORMAL (0xE4, 0xD2, 0xF5)
 
constexpr ::Color COL_AUTHOR4_LIGHT (0xEF, 0xE4, 0xF8)
 
constexpr ::Color COL_AUTHOR5_DARK (0xC5, 0x00, 0x0B)
 
constexpr ::Color COL_AUTHOR5_NORMAL (0xFE, 0xCD, 0xD0)
 
constexpr ::Color COL_AUTHOR5_LIGHT (0xFF, 0xE3, 0xE5)
 
constexpr ::Color COL_AUTHOR6_DARK (0x00, 0x80, 0x80)
 
constexpr ::Color COL_AUTHOR6_NORMAL (0xD2, 0xF6, 0xF6)
 
constexpr ::Color COL_AUTHOR6_LIGHT (0xE6, 0xFA, 0xFA)
 
constexpr ::Color COL_AUTHOR7_DARK (0x8C, 0x84, 0x00)
 
constexpr ::Color COL_AUTHOR7_NORMAL (0xED, 0xFC, 0xA3)
 
constexpr ::Color COL_AUTHOR7_LIGHT (0xF2, 0xFE, 0xB5)
 
constexpr ::Color COL_AUTHOR8_DARK (0x35, 0x55, 0x6B)
 
constexpr ::Color COL_AUTHOR8_NORMAL (0xD3, 0xDE, 0xE8)
 
constexpr ::Color COL_AUTHOR8_LIGHT (0xE2, 0xEA, 0xF1)
 
constexpr ::Color COL_AUTHOR9_DARK (0xD1, 0x76, 0x00)
 
constexpr ::Color COL_AUTHOR9_NORMAL (0xFF, 0xE2, 0xB9)
 
constexpr ::Color COL_AUTHOR9_LIGHT (0xFF, 0xE7, 0xC7)
 
constexpr ::Color COL_AUTHOR_TABLE_INS (0xE1, 0xF2, 0xFA)
 
constexpr ::Color COL_AUTHOR_TABLE_DEL (0xFC, 0xE6, 0xF4)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &rStream, const Color &rColor)
 

Enumeration Type Documentation

◆ ColorAlphaTag

Enumerator
ColorAlpha 

Definition at line 46 of file color.hxx.

◆ ColorTransparencyTag

used to deliberately select the right constructor

Enumerator
ColorTransparency 

Definition at line 45 of file color.hxx.

Function Documentation

◆ COL_ALPHA_OPAQUE()

constexpr ::Color COL_ALPHA_OPAQUE ( 0xff  ,
0xff  ,
0xff   
)
inline

◆ COL_ALPHA_TRANSPARENT()

constexpr ::Color COL_ALPHA_TRANSPARENT ( 0x00  ,
0x00  ,
0x00   
)
inline

◆ COL_AUTHOR1_DARK()

constexpr ::Color COL_AUTHOR1_DARK ( 0xC6  ,
0x92  ,
0x00   
)
inline

◆ COL_AUTHOR1_LIGHT()

constexpr ::Color COL_AUTHOR1_LIGHT ( 0xFF  ,
0xFF  ,
0xC3   
)
inline

◆ COL_AUTHOR1_NORMAL()

constexpr ::Color COL_AUTHOR1_NORMAL ( 0xFF  ,
0xFF  ,
0x9E   
)
inline

◆ COL_AUTHOR2_DARK()

constexpr ::Color COL_AUTHOR2_DARK ( 0x06  ,
0x46  ,
0xA2   
)
inline

◆ COL_AUTHOR2_LIGHT()

constexpr ::Color COL_AUTHOR2_LIGHT ( 0xE9  ,
0xF2  ,
0xFF   
)
inline

◆ COL_AUTHOR2_NORMAL()

constexpr ::Color COL_AUTHOR2_NORMAL ( 0xD8  ,
0xE8  ,
0xFF   
)
inline

◆ COL_AUTHOR3_DARK()

constexpr ::Color COL_AUTHOR3_DARK ( 0x57  ,
0x9D  ,
0x1C   
)
inline

◆ COL_AUTHOR3_LIGHT()

constexpr ::Color COL_AUTHOR3_LIGHT ( 0xE2  ,
0xFA  ,
0xCF   
)
inline

◆ COL_AUTHOR3_NORMAL()

constexpr ::Color COL_AUTHOR3_NORMAL ( 0xDA  ,
0xF8  ,
0xC1   
)
inline

◆ COL_AUTHOR4_DARK()

constexpr ::Color COL_AUTHOR4_DARK ( 0x69  ,
0x2B  ,
0x9D   
)
inline

◆ COL_AUTHOR4_LIGHT()

constexpr ::Color COL_AUTHOR4_LIGHT ( 0xEF  ,
0xE4  ,
0xF8   
)
inline

◆ COL_AUTHOR4_NORMAL()

constexpr ::Color COL_AUTHOR4_NORMAL ( 0xE4  ,
0xD2  ,
0xF5   
)
inline

◆ COL_AUTHOR5_DARK()

constexpr ::Color COL_AUTHOR5_DARK ( 0xC5  ,
0x00  ,
0x0B   
)
inline

◆ COL_AUTHOR5_LIGHT()

constexpr ::Color COL_AUTHOR5_LIGHT ( 0xFF  ,
0xE3  ,
0xE5   
)
inline

◆ COL_AUTHOR5_NORMAL()

constexpr ::Color COL_AUTHOR5_NORMAL ( 0xFE  ,
0xCD  ,
0xD0   
)
inline

◆ COL_AUTHOR6_DARK()

constexpr ::Color COL_AUTHOR6_DARK ( 0x00  ,
0x80  ,
0x80   
)
inline

◆ COL_AUTHOR6_LIGHT()

constexpr ::Color COL_AUTHOR6_LIGHT ( 0xE6  ,
0xFA  ,
0xFA   
)
inline

◆ COL_AUTHOR6_NORMAL()

constexpr ::Color COL_AUTHOR6_NORMAL ( 0xD2  ,
0xF6  ,
0xF6   
)
inline

◆ COL_AUTHOR7_DARK()

constexpr ::Color COL_AUTHOR7_DARK ( 0x8C  ,
0x84  ,
0x00   
)
inline

◆ COL_AUTHOR7_LIGHT()

constexpr ::Color COL_AUTHOR7_LIGHT ( 0xF2  ,
0xFE  ,
0xB5   
)
inline

◆ COL_AUTHOR7_NORMAL()

constexpr ::Color COL_AUTHOR7_NORMAL ( 0xED  ,
0xFC  ,
0xA3   
)
inline

◆ COL_AUTHOR8_DARK()

constexpr ::Color COL_AUTHOR8_DARK ( 0x35  ,
0x55  ,
0x6B   
)
inline

◆ COL_AUTHOR8_LIGHT()

constexpr ::Color COL_AUTHOR8_LIGHT ( 0xE2  ,
0xEA  ,
0xF1   
)
inline

◆ COL_AUTHOR8_NORMAL()

constexpr ::Color COL_AUTHOR8_NORMAL ( 0xD3  ,
0xDE  ,
0xE8   
)
inline

◆ COL_AUTHOR9_DARK()

constexpr ::Color COL_AUTHOR9_DARK ( 0xD1  ,
0x76  ,
0x00   
)
inline

◆ COL_AUTHOR9_LIGHT()

constexpr ::Color COL_AUTHOR9_LIGHT ( 0xFF  ,
0xE7  ,
0xC7   
)
inline

◆ COL_AUTHOR9_NORMAL()

constexpr ::Color COL_AUTHOR9_NORMAL ( 0xFF  ,
0xE2  ,
0xB9   
)
inline

◆ COL_AUTHOR_TABLE_DEL()

constexpr ::Color COL_AUTHOR_TABLE_DEL ( 0xFC  ,
0xE6  ,
0xF4   
)
inline

◆ COL_AUTHOR_TABLE_INS()

constexpr ::Color COL_AUTHOR_TABLE_INS ( 0xE1  ,
0xF2  ,
0xFA   
)
inline

◆ COL_AUTO()

constexpr ::Color COL_AUTO ( ColorTransparency  ,
0xFF  ,
0xFF  ,
0xFF  ,
0xFF   
)
inline

◆ COL_BLACK()

constexpr ::Color COL_BLACK ( 0x00  ,
0x00  ,
0x00   
)
inline

◆ COL_BLUE()

constexpr ::Color COL_BLUE ( 0x00  ,
0x00  ,
0x80   
)
inline

◆ COL_BROWN()

constexpr ::Color COL_BROWN ( 0x80  ,
0x80  ,
0x00   
)
inline

◆ COL_CYAN()

constexpr ::Color COL_CYAN ( 0x00  ,
0x80  ,
0x80   
)
inline

◆ COL_GRAY()

constexpr ::Color COL_GRAY ( 0x80  ,
0x80  ,
0x80   
)
inline

◆ COL_GRAY3()

constexpr ::Color COL_GRAY3 ( 0xCC  ,
0xCC  ,
0xCC   
)
inline

◆ COL_GRAY7()

constexpr ::Color COL_GRAY7 ( 0x66  ,
0x66  ,
0x66   
)
inline

◆ COL_GREEN()

constexpr ::Color COL_GREEN ( 0x00  ,
0x80  ,
0x00   
)
inline

◆ COL_LIGHTBLUE()

constexpr ::Color COL_LIGHTBLUE ( 0x00  ,
0x00  ,
0xFF   
)
inline

◆ COL_LIGHTCYAN()

constexpr ::Color COL_LIGHTCYAN ( 0x00  ,
0xFF  ,
0xFF   
)
inline

◆ COL_LIGHTGRAY()

constexpr ::Color COL_LIGHTGRAY ( 0xC0  ,
0xC0  ,
0xC0   
)
inline

◆ COL_LIGHTGRAYBLUE()

constexpr ::Color COL_LIGHTGRAYBLUE ( 0xE0  ,
0xE0  ,
0xFF   
)
inline

◆ COL_LIGHTGREEN()

constexpr ::Color COL_LIGHTGREEN ( 0x00  ,
0xFF  ,
0x00   
)
inline

◆ COL_LIGHTMAGENTA()

constexpr ::Color COL_LIGHTMAGENTA ( 0xFF  ,
0x00  ,
0xFF   
)
inline

◆ COL_LIGHTRED()

constexpr ::Color COL_LIGHTRED ( 0xFF  ,
0x00  ,
0x00   
)
inline

◆ COL_MAGENTA()

constexpr ::Color COL_MAGENTA ( 0x80  ,
0x00  ,
0x80   
)
inline

◆ COL_RED()

constexpr ::Color COL_RED ( 0x80  ,
0x00  ,
0x00   
)
inline

◆ COL_TRANSPARENT()

constexpr ::Color COL_TRANSPARENT ( ColorTransparency  ,
0xFF  ,
0xFF  ,
0xFF  ,
0xFF   
)
inline

◆ COL_WHITE()

constexpr ::Color COL_WHITE ( 0xFF  ,
0xFF  ,
0xFF   
)
inline

◆ COL_YELLOW()

constexpr ::Color COL_YELLOW ( 0xFF  ,
0xFF  ,
0x00   
)
inline

◆ operator<<()

template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< ( std::basic_ostream< charT, traits > &  rStream,
const Color rColor 
)
inline

Definition at line 503 of file color.hxx.

◆ operator<<=()

void operator<<= ( css::uno::Any rAny,
Color  value 
)
inline

Definition at line 434 of file color.hxx.

References value.

◆ operator>>=()

bool operator>>= ( const css::uno::Any rAny,
Color value 
)
inline

Definition at line 425 of file color.hxx.

References ColorTransparency, and value.