LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Private Types | Private Attributes | List of all members
LwpColor Class Reference

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
 

Detailed Description

lwpcolor class (red, green, blue, extra)

Definition at line 70 of file lwpcolor.hxx.

Member Enumeration Documentation

◆ ColorOverride

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.

Constructor & Destructor Documentation

◆ LwpColor()

LwpColor::LwpColor ( )
inline

Definition at line 73 of file lwpcolor.hxx.

Member Function Documentation

◆ GetBlue()

sal_uInt16 LwpColor::GetBlue ( ) const
inline

◆ GetGreen()

sal_uInt16 LwpColor::GetGreen ( ) const
inline

◆ GetRed()

sal_uInt16 LwpColor::GetRed ( ) const
inline

◆ IsTransparent()

bool LwpColor::IsTransparent ( ) const
inline

Definition at line 118 of file lwpcolor.hxx.

References AGLRGB_TRANSPARENT, and m_nExtra.

Referenced by LwpFontNameEntry::Override().

◆ IsValidColor()

bool LwpColor::IsValidColor ( ) const
inline

◆ Read()

void LwpColor::Read ( LwpObjectStream pStrm)

◆ To24Color()

sal_uInt32 LwpColor::To24Color ( )

Member Data Documentation

◆ m_nBlue

sal_uInt16 LwpColor::m_nBlue
private

Definition at line 85 of file lwpcolor.hxx.

Referenced by GetBlue(), Read(), and To24Color().

◆ m_nExtra

sal_uInt16 LwpColor::m_nExtra
private

Definition at line 86 of file lwpcolor.hxx.

Referenced by IsTransparent(), IsValidColor(), and Read().

◆ m_nGreen

sal_uInt16 LwpColor::m_nGreen
private

Definition at line 84 of file lwpcolor.hxx.

Referenced by GetGreen(), Read(), and To24Color().

◆ m_nRed

sal_uInt16 LwpColor::m_nRed
private

Definition at line 83 of file lwpcolor.hxx.

Referenced by GetRed(), Read(), and To24Color().


The documentation for this class was generated from the following files: