MHText Class Reference

#include <Text.h>

Inheritance diagram for MHText:

MHVisible MHPresentable MHIngredient MHRoot MHHyperText

List of all members.


Detailed Description

Definition at line 37 of file Text.h.


Public Member Functions

 MHText ()
 MHText (const MHText &ref)
 ~MHText ()
virtual const char * ClassName ()
virtual void Initialise (MHParseNode *p, MHEngine *engine)
virtual void PrintMe (FILE *, int nTabs) const
virtual void Preparation (MHEngine *engine)
virtual void ContentPreparation (MHEngine *engine)
virtual void ContentArrived (const unsigned char *data, int length, MHEngine *engine)
virtual void GetTextData (MHRoot *pDestination, MHEngine *)
virtual MHIngredientClone (MHEngine *)
virtual void SetBackgroundColour (const MHColour &colour, MHEngine *engine)
virtual void SetTextColour (const MHColour &colour, MHEngine *engine)
virtual void SetFontAttributes (const MHOctetString &fontAttrs, MHEngine *engine)
virtual void Display (MHEngine *d)
virtual QRegion GetOpaqueArea ()

Static Public Member Functions

static int GetJustification (const char *str)
static int GetLineOrientation (const char *str)
static int GetStartCorner (const char *str)

Protected Types

enum  Justification { Start = 1, End, Centre, Justified }
enum  LineOrientation { Vertical = 1, Horizontal }
enum  StartCorner { UpperLeft = 1, UpperRight, LowerLeft, LowerRight }

Protected Member Functions

void Redraw ()
void CreateContent (const unsigned char *p, int s, MHEngine *engine)

Protected Attributes

MHFontBody m_OrigFont
MHOctetString m_OriginalFontAttrs
MHColour m_OriginalTextColour
MHColour m_OriginalBgColour
int m_nCharSet
enum MHText::Justification m_HorizJ
enum MHText::Justification m_VertJ
enum MHText::LineOrientation m_LineOrientation
enum MHText::StartCorner m_StartCorner
bool m_fTextWrap
MHColour m_textColour
MHColour m_bgColour
MHOctetString m_fontAttrs
MHOctetString m_Content
MHTextDisplaym_pDisplay
bool m_NeedsRedraw

Member Enumeration Documentation

enum MHText::Justification [protected]

Enumerator:
Start 
End 
Centre 
Justified 

Definition at line 75 of file Text.h.

enum MHText::LineOrientation [protected]

Enumerator:
Vertical 
Horizontal 

Definition at line 76 of file Text.h.

enum MHText::StartCorner [protected]

Enumerator:
UpperLeft 
UpperRight 
LowerLeft 
LowerRight 

Definition at line 77 of file Text.h.


Constructor & Destructor Documentation

MHText::MHText (  ) 

Definition at line 33 of file Text.cpp.

Referenced by Clone().

MHText::MHText ( const MHText ref  ) 

Definition at line 43 of file Text.cpp.

MHText::~MHText (  ) 

Definition at line 58 of file Text.cpp.


Member Function Documentation

virtual const char* MHText::ClassName (  )  [inline, virtual]

Implements MHRoot.

Reimplemented in MHHyperText.

Definition at line 43 of file Text.h.

void MHText::Initialise ( MHParseNode p,
MHEngine engine 
) [virtual]

Reimplemented from MHVisible.

Reimplemented in MHHyperText.

Definition at line 64 of file Text.cpp.

Referenced by MHHyperText::Initialise().

void MHText::PrintMe ( FILE *  fd,
int  nTabs 
) const [virtual]

Reimplemented from MHVisible.

Reimplemented in MHHyperText.

Definition at line 146 of file Text.cpp.

Referenced by MHHyperText::PrintMe().

void MHText::Preparation ( MHEngine engine  )  [virtual]

Reimplemented from MHVisible.

Definition at line 163 of file Text.cpp.

void MHText::ContentPreparation ( MHEngine engine  )  [virtual]

Reimplemented from MHIngredient.

Definition at line 182 of file Text.cpp.

void MHText::ContentArrived ( const unsigned char *  data,
int  length,
MHEngine engine 
) [virtual]

Reimplemented from MHIngredient.

Definition at line 191 of file Text.cpp.

virtual void MHText::GetTextData ( MHRoot pDestination,
MHEngine  
) [inline, virtual]

Reimplemented from MHRoot.

Definition at line 53 of file Text.h.

virtual MHIngredient* MHText::Clone ( MHEngine  )  [inline, virtual]

Reimplemented from MHRoot.

Definition at line 54 of file Text.h.

void MHText::SetBackgroundColour ( const MHColour colour,
MHEngine engine 
) [virtual]

Reimplemented from MHRoot.

Definition at line 215 of file Text.cpp.

void MHText::SetTextColour ( const MHColour colour,
MHEngine engine 
) [virtual]

Reimplemented from MHRoot.

Definition at line 208 of file Text.cpp.

void MHText::SetFontAttributes ( const MHOctetString fontAttrs,
MHEngine engine 
) [virtual]

Reimplemented from MHRoot.

Definition at line 223 of file Text.cpp.

int MHText::GetJustification ( const char *  str  )  [static]

Definition at line 108 of file Text.cpp.

Referenced by MHParseText::NextSym().

int MHText::GetLineOrientation ( const char *  str  )  [static]

Definition at line 122 of file Text.cpp.

Referenced by MHParseText::NextSym().

int MHText::GetStartCorner ( const char *  str  )  [static]

Definition at line 138 of file Text.cpp.

Referenced by MHParseText::NextSym().

void MHText::Display ( MHEngine d  )  [virtual]

Implements MHVisible.

Definition at line 520 of file Text.cpp.

QRegion MHText::GetOpaqueArea (  )  [virtual]

Reimplemented from MHVisible.

Definition at line 535 of file Text.cpp.

void MHText::Redraw ( void   )  [protected]

Definition at line 327 of file Text.cpp.

Referenced by Display().

void MHText::CreateContent ( const unsigned char *  p,
int  s,
MHEngine engine 
) [protected]

Definition at line 200 of file Text.cpp.

Referenced by ContentArrived(), and ContentPreparation().


Member Data Documentation

Definition at line 71 of file Text.h.

Referenced by Initialise(), MHText(), and PrintMe().

Definition at line 72 of file Text.h.

Referenced by Initialise(), MHText(), Preparation(), and PrintMe().

Definition at line 73 of file Text.h.

Referenced by Initialise(), MHText(), Preparation(), and PrintMe().

Definition at line 73 of file Text.h.

Referenced by Initialise(), MHText(), Preparation(), and PrintMe().

int MHText::m_nCharSet [protected]

Definition at line 74 of file Text.h.

Referenced by Initialise(), MHText(), and PrintMe().

Referenced by Initialise(), MHText(), PrintMe(), and Redraw().

Referenced by Initialise(), MHText(), PrintMe(), and Redraw().

Referenced by Initialise(), MHText(), and PrintMe().

Referenced by Initialise(), MHText(), and PrintMe().

Definition at line 78 of file Text.h.

Referenced by Initialise(), MHText(), PrintMe(), and Redraw().

Definition at line 82 of file Text.h.

Referenced by Preparation(), Redraw(), and SetTextColour().

Definition at line 82 of file Text.h.

Referenced by Display(), GetOpaqueArea(), Preparation(), and SetBackgroundColour().

Definition at line 83 of file Text.h.

Referenced by Preparation(), Redraw(), and SetFontAttributes().

Definition at line 84 of file Text.h.

Referenced by CreateContent(), GetTextData(), and Redraw().

Definition at line 86 of file Text.h.

Referenced by Display(), Initialise(), MHText(), Preparation(), Redraw(), and ~MHText().


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

Generated on Sat Dec 18 05:16:06 2010 for MythTV by  doxygen 1.5.5