LLStyle Class Reference

#include <llstyle.h>

Collaboration diagram for LLStyle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLStyle ()
 LLStyle (const LLStyle &style)
 LLStyle (BOOL is_visible, const LLColor4 &color, const LLString &font_name)
LLStyleoperator= (const LLStyle &rhs)
virtual ~LLStyle ()
virtual void init (BOOL is_visible, const LLColor4 &color, const LLString &font_name)
virtual void free ()
bool operator== (const LLStyle &rhs) const
bool operator!= (const LLStyle &rhs) const
virtual const LLColor4getColor () const
virtual void setColor (const LLColor4 &color)
virtual BOOL isVisible () const
virtual void setVisible (BOOL is_visible)
virtual const LLStringgetFontString () const
virtual void setFontName (const LLString &fontname)
virtual LLFONT_ID getFontID () const
virtual const LLStringgetLinkHREF () const
virtual void setLinkHREF (const LLString &fontname)
virtual BOOL isLink () const
virtual LLImageGLgetImage () const
virtual void setImage (const LLString &src)
virtual BOOL isImage () const
virtual void setImageSize (S32 width, S32 height)
BOOL getIsEmbeddedItem () const
void setIsEmbeddedItem (BOOL b)

Public Attributes

BOOL mItalic
BOOL mBold
BOOL mUnderline
BOOL mDropShadow
S32 mImageWidth
S32 mImageHeight

Protected Attributes

BOOL mVisible
LLColor4 mColor
LLString mFontName
LLFONT_ID mFontID
LLString mLink
LLPointer< LLImageGLmImagep
BOOL mIsEmbeddedItem

Detailed Description

Definition at line 40 of file llstyle.h.


Constructor & Destructor Documentation

LLStyle::LLStyle (  ) 

Definition at line 40 of file llstyle.cpp.

References init(), and TRUE.

LLStyle::LLStyle ( const LLStyle style  ) 

Definition at line 45 of file llstyle.cpp.

References getColor(), getFontString(), getLinkHREF(), init(), isLink(), isVisible(), mBold, mDropShadow, mImageHeight, mImagep, mImageWidth, mIsEmbeddedItem, mItalic, mUnderline, setLinkHREF(), and TRUE.

LLStyle::LLStyle ( BOOL  is_visible,
const LLColor4 color,
const LLString font_name 
)

Definition at line 69 of file llstyle.cpp.

References font_name, and init().

LLStyle::~LLStyle (  )  [virtual]

Definition at line 74 of file llstyle.cpp.

References free().


Member Function Documentation

void LLStyle::free (  )  [virtual]

Definition at line 94 of file llstyle.cpp.

Referenced by ~LLStyle().

const LLColor4 & LLStyle::getColor (  )  const [virtual]

Definition at line 153 of file llstyle.cpp.

References mColor.

Referenced by LLTextEditor::drawClippedSegment(), LLTextSegment::getColor(), LLStyle(), operator=(), and operator==().

LLFONT_ID LLStyle::getFontID (  )  const [virtual]

Definition at line 98 of file llstyle.cpp.

References mFontID.

Referenced by LLTextEditor::drawClippedSegment().

const LLString & LLStyle::getFontString (  )  const [virtual]

Definition at line 163 of file llstyle.cpp.

References mFontName.

Referenced by LLTextEditor::appendStyledText(), LLTextEditor::drawClippedSegment(), LLStyle(), operator=(), and operator==().

LLImageGL * LLStyle::getImage (  )  const [virtual]

Definition at line 220 of file llstyle.cpp.

References mImagep.

Referenced by LLTextEditor::drawText().

BOOL LLStyle::getIsEmbeddedItem (  )  const [inline]

Definition at line 76 of file llstyle.h.

References mIsEmbeddedItem.

Referenced by LLTextEditor::drawClippedSegment(), LLTextEditor::drawText(), LLViewerTextEditor::handleDoubleClick(), and LLViewerTextEditor::handleToolTip().

const LLString & LLStyle::getLinkHREF (  )  const [virtual]

Definition at line 195 of file llstyle.cpp.

References mLink.

Referenced by LLTextEditor::drawText(), LLViewerTextEditor::handleRightMouseDown(), LLStyle(), operator=(), and operator==().

void LLStyle::init ( BOOL  is_visible,
const LLColor4 color,
const LLString font_name 
) [virtual]

Definition at line 79 of file llstyle.cpp.

References FALSE, font_name, mBold, mColor, mDropShadow, mImageHeight, mImageWidth, mIsEmbeddedItem, mItalic, mUnderline, mVisible, setFontName(), and setLinkHREF().

Referenced by LLStyle().

BOOL LLStyle::isImage (  )  const [virtual]

Definition at line 237 of file llstyle.cpp.

References mImageHeight, and mImageWidth.

Referenced by LLTextEditor::drawText().

BOOL LLStyle::isLink (  )  const [virtual]

Definition at line 205 of file llstyle.cpp.

References mLink.

Referenced by LLViewerTextEditor::handleRightMouseDown(), and LLStyle().

BOOL LLStyle::isVisible (  )  const [virtual]

Definition at line 210 of file llstyle.cpp.

References mVisible.

Referenced by LLTextEditor::drawClippedSegment(), LLStyle(), operator=(), and operator==().

bool LLStyle::operator!= ( const LLStyle rhs  )  const

Definition at line 147 of file llstyle.cpp.

LLStyle & LLStyle::operator= ( const LLStyle rhs  ) 

Definition at line 104 of file llstyle.cpp.

References getColor(), getFontString(), getLinkHREF(), isVisible(), mBold, mDropShadow, mFontName, mImageHeight, mImagep, mImageWidth, mIsEmbeddedItem, mItalic, mLink, mUnderline, setColor(), and setVisible().

bool LLStyle::operator== ( const LLStyle rhs  )  const

Definition at line 126 of file llstyle.cpp.

References FALSE, getColor(), getFontString(), getLinkHREF(), isVisible(), mBold, mColor, mDropShadow, mFontName, mImageHeight, mImagep, mImageWidth, mIsEmbeddedItem, mItalic, mLink, mUnderline, mVisible, and TRUE.

void LLStyle::setColor ( const LLColor4 color  )  [virtual]

Definition at line 158 of file llstyle.cpp.

References mColor.

Referenced by LLTextEditor::appendColoredText(), LLTextEditor::appendStyledText(), operator=(), and LLTextSegment::setColor().

void LLStyle::setFontName ( const LLString fontname  )  [virtual]

Definition at line 168 of file llstyle.cpp.

References LLFONT_OCRA, LLFONT_SANSSERIF, LLFONT_SANSSERIF_BIG, LLFONT_SANSSERIF_SMALL, LLFONT_SMALL, mFontID, mFontName, and LLStringBase< char >::toLower().

Referenced by LLTextEditor::appendColoredText(), LLTextEditor::appendStyledText(), and init().

void LLStyle::setImage ( const LLString src  )  [virtual]

Definition at line 225 of file llstyle.cpp.

References LLImageProviderInterface::getUIImageByID(), mImagep, LLUI::sImageProvider, and UUID_STR_LENGTH.

void LLStyle::setImageSize ( S32  width,
S32  height 
) [virtual]

Definition at line 242 of file llstyle.cpp.

References mImageHeight, and mImageWidth.

void LLStyle::setIsEmbeddedItem ( BOOL  b  )  [inline]

Definition at line 77 of file llstyle.h.

References mIsEmbeddedItem.

Referenced by LLTextEditor::findEmbeddedItemSegments().

void LLStyle::setLinkHREF ( const LLString fontname  )  [virtual]

Definition at line 200 of file llstyle.cpp.

References mLink.

Referenced by LLTextEditor::appendStyledText(), init(), and LLStyle().

void LLStyle::setVisible ( BOOL  is_visible  )  [virtual]

Definition at line 215 of file llstyle.cpp.

References mVisible.

Referenced by LLTextEditor::appendColoredText(), LLTextEditor::appendStyledText(), and operator=().


Member Data Documentation

BOOL LLStyle::mBold

Definition at line 81 of file llstyle.h.

Referenced by LLTextEditor::drawClippedSegment(), init(), LLStyle(), operator=(), and operator==().

LLColor4 LLStyle::mColor [protected]

Definition at line 89 of file llstyle.h.

Referenced by getColor(), init(), operator==(), and setColor().

BOOL LLStyle::mDropShadow

Definition at line 83 of file llstyle.h.

Referenced by init(), LLStyle(), operator=(), and operator==().

LLFONT_ID LLStyle::mFontID [protected]

Definition at line 91 of file llstyle.h.

Referenced by getFontID(), and setFontName().

LLString LLStyle::mFontName [protected]

Definition at line 90 of file llstyle.h.

Referenced by getFontString(), operator=(), operator==(), and setFontName().

S32 LLStyle::mImageHeight

Definition at line 85 of file llstyle.h.

Referenced by LLTextEditor::drawText(), init(), isImage(), LLStyle(), operator=(), operator==(), and setImageSize().

LLPointer<LLImageGL> LLStyle::mImagep [protected]

Definition at line 93 of file llstyle.h.

Referenced by getImage(), LLStyle(), operator=(), operator==(), and setImage().

S32 LLStyle::mImageWidth

Definition at line 84 of file llstyle.h.

Referenced by LLTextEditor::drawText(), init(), isImage(), LLStyle(), operator=(), operator==(), and setImageSize().

BOOL LLStyle::mIsEmbeddedItem [protected]

Definition at line 95 of file llstyle.h.

Referenced by getIsEmbeddedItem(), init(), LLStyle(), operator=(), operator==(), and setIsEmbeddedItem().

BOOL LLStyle::mItalic

Definition at line 80 of file llstyle.h.

Referenced by LLTextEditor::drawClippedSegment(), init(), LLStyle(), operator=(), and operator==().

LLString LLStyle::mLink [protected]

Definition at line 92 of file llstyle.h.

Referenced by getLinkHREF(), isLink(), operator=(), operator==(), and setLinkHREF().

BOOL LLStyle::mUnderline

Definition at line 82 of file llstyle.h.

Referenced by LLTextEditor::appendStyledText(), LLTextEditor::drawClippedSegment(), LLTextEditor::drawText(), init(), LLStyle(), operator=(), and operator==().

BOOL LLStyle::mVisible [protected]

Definition at line 88 of file llstyle.h.

Referenced by init(), isVisible(), operator==(), and setVisible().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:49 2010 for Second Life Viewer by  doxygen 1.4.7