MHText Class Reference

#include <Text.h>

Inheritance diagram for MHText:
MHVisible MHPresentable MHIngredient MHRoot MHHyperText

List of all members.

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_fNeedsRedraw

Detailed Description

Definition at line 37 of file Text.h.


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 35 of file Text.cpp.

Referenced by Clone().

MHText::MHText ( const MHText ref  ) 

Definition at line 46 of file Text.cpp.

MHText::~MHText (  ) 

Definition at line 62 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 68 of file Text.cpp.

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

Reimplemented from MHVisible.

Reimplemented in MHHyperText.

Definition at line 214 of file Text.cpp.

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

Reimplemented from MHVisible.

Definition at line 292 of file Text.cpp.

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

Reimplemented from MHIngredient.

Definition at line 336 of file Text.cpp.

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

Reimplemented from MHIngredient.

Definition at line 352 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 376 of file Text.cpp.

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

Reimplemented from MHRoot.

Definition at line 369 of file Text.cpp.

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

Reimplemented from MHRoot.

Definition at line 384 of file Text.cpp.

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

Definition at line 161 of file Text.cpp.

Referenced by MHParseText::NextSym().

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

Definition at line 180 of file Text.cpp.

Referenced by MHParseText::NextSym().

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

Definition at line 201 of file Text.cpp.

Referenced by MHParseText::NextSym().

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

Implements MHVisible.

Definition at line 852 of file Text.cpp.

QRegion MHText::GetOpaqueArea (  )  [virtual]

Reimplemented from MHVisible.

Definition at line 872 of file Text.cpp.

void MHText::Redraw (  )  [protected]

Definition at line 531 of file Text.cpp.

Referenced by Display().

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

Definition at line 361 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:11 2012 for MythTV by  doxygen 1.6.3