LibreOffice Module lotuswordpro (master) 1
|
lwpcolor class (red, green, blue, extra) More...
#include <lwpcolor.hxx>
Public Member Functions | |
LwpColor () | |
void | Read (LwpObjectStream *pStrm) |
@descr read color and then resolve the RGB values More... | |
sal_uInt16 | GetRed () const |
sal_uInt16 | GetGreen () const |
sal_uInt16 | GetBlue () const |
bool | IsValidColor () const |
sal_uInt32 | To24Color () |
@descr return the BGR format More... | |
bool | IsTransparent () const |
Private Types | |
enum | ColorOverride { AGLRGB_RGB = 0 , AGLRGB_BLACK = 1 , AGLRGB_WHITE = 2 , AGLRGB_GRAY = 3 , AGLRGB_LTGRAY = 4 , AGLRGB_DKGRAY = 5 , AGLRGB_RED = 6 , AGLRGB_GREEN = 7 , AGLRGB_BLUE = 8 , AGLRGB_INDEX = 98 , AGLRGB_INVALID = 99 , AGLRGB_TRANSPARENT = 100 } |
Private Attributes | |
sal_uInt16 | m_nRed |
sal_uInt16 | m_nGreen |
sal_uInt16 | m_nBlue |
sal_uInt16 | m_nExtra |
lwpcolor class (red, green, blue, extra)
Definition at line 70 of file lwpcolor.hxx.
|
private |
Enumerator | |
---|---|
AGLRGB_RGB | |
AGLRGB_BLACK | |
AGLRGB_WHITE | |
AGLRGB_GRAY | |
AGLRGB_LTGRAY | |
AGLRGB_DKGRAY | |
AGLRGB_RED | |
AGLRGB_GREEN | |
AGLRGB_BLUE | |
AGLRGB_INDEX | |
AGLRGB_INVALID | |
AGLRGB_TRANSPARENT |
Definition at line 87 of file lwpcolor.hxx.
|
inline |
Definition at line 73 of file lwpcolor.hxx.
|
inline |
Definition at line 110 of file lwpcolor.hxx.
References m_nBlue.
Referenced by LwpNumericFormat::Convert(), LwpBackgroundStuff::GetFillPattern(), and LwpGlobalMgr::GetHighlightColor().
|
inline |
Definition at line 106 of file lwpcolor.hxx.
References m_nGreen.
Referenced by LwpNumericFormat::Convert(), LwpBackgroundStuff::GetFillPattern(), and LwpGlobalMgr::GetHighlightColor().
|
inline |
Definition at line 102 of file lwpcolor.hxx.
References m_nRed.
Referenced by LwpNumericFormat::Convert(), LwpBackgroundStuff::GetFillPattern(), and LwpGlobalMgr::GetHighlightColor().
|
inline |
Definition at line 118 of file lwpcolor.hxx.
References AGLRGB_TRANSPARENT, and m_nExtra.
Referenced by LwpFontNameEntry::Override().
|
inline |
Definition at line 114 of file lwpcolor.hxx.
References AGLRGB_INVALID, AGLRGB_TRANSPARENT, and m_nExtra.
Referenced by LwpCellLayout::ApplyBackColor(), LwpSuperTableLayout::ApplyBackColor(), LwpParaStyle::ApplySubBorder(), LwpMiddleLayout::GetBackColor(), LwpBackgroundStuff::GetFillPattern(), LwpFontNameEntry::Override(), LwpPageLayout::ParseFootNoteSeparator(), and LwpPara::RegisterStyle().
void LwpColor::Read | ( | LwpObjectStream * | pStrm | ) |
@descr read color and then resolve the RGB values
Definition at line 74 of file lwpcolor.cxx.
References AGLRGB_BLACK, AGLRGB_BLUE, AGLRGB_DKGRAY, AGLRGB_GRAY, AGLRGB_GREEN, AGLRGB_INVALID, AGLRGB_LTGRAY, AGLRGB_RED, AGLRGB_RGB, AGLRGB_TRANSPARENT, AGLRGB_WHITE, m_nBlue, m_nExtra, m_nGreen, m_nRed, and LwpObjectStream::QuickReaduInt16().
Referenced by LwpNumericFormatSubset::QuickRead(), LwpDivInfo::Read(), LwpNoteLayout::Read(), LwpSection::Read(), LwpFontNameEntry::Read(), LwpBackgroundStuff::Read(), LwpBorderStuff::Read(), LwpJoinStuff::Read(), and LwpShadow::Read().
sal_uInt32 LwpColor::To24Color | ( | ) |
@descr return the BGR format
Definition at line 66 of file lwpcolor.cxx.
References m_nBlue, m_nGreen, and m_nRed.
Referenced by LwpCellLayout::ApplyBackColor(), LwpFrame::ApplyBackColor(), LwpSuperTableLayout::ApplyBackColor(), LwpParaStyle::ApplySubBorder(), LwpLayout::GetColumnSep(), LwpFontNameEntry::Override(), LwpFooterLayout::ParseBackColor(), LwpHeaderLayout::ParseBackColor(), LwpPageLayout::ParseBackColor(), LwpPageLayout::ParseFootNoteSeparator(), and LwpPara::RegisterStyle().
|
private |
Definition at line 85 of file lwpcolor.hxx.
Referenced by GetBlue(), Read(), and To24Color().
|
private |
Definition at line 86 of file lwpcolor.hxx.
Referenced by IsTransparent(), IsValidColor(), and Read().
|
private |
Definition at line 84 of file lwpcolor.hxx.
Referenced by GetGreen(), Read(), and To24Color().
|
private |
Definition at line 83 of file lwpcolor.hxx.
Referenced by GetRed(), Read(), and To24Color().