SmTextNode Class Reference

#include <node.hxx>

Inherits SmVisibleNode.

Inherited by SmSpecialNode.

Inheritance diagram for SmTextNode:

Inheritance graph
[legend]
Collaboration diagram for SmTextNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SmTextNode (const SmToken &rNodeToken, USHORT nFontDescP)
USHORT GetFontDesc () const
void SetText (const XubString &rText)
const XubString & GetText () const
virtual void Prepare (const SmFormat &rFormat, const SmDocShell &rDocShell)
virtual void Arrange (const OutputDevice &rDev, const SmFormat &rFormat)
virtual void CreateTextFromNode (String &rText)
virtual void Draw (OutputDevice &rDev, const Point &rPosition) const
virtual void GetAccessibleText (String &rText) const

Protected Member Functions

 SmTextNode (SmNodeType eNodeType, const SmToken &rNodeToken, USHORT nFontDescP)

Private Attributes

XubString aText
USHORT nFontDesc

Detailed Description

Definition at line 310 of file node.hxx.


Constructor & Destructor Documentation

SmTextNode::SmTextNode ( SmNodeType  eNodeType,
const SmToken rNodeToken,
USHORT  nFontDescP 
) [inline, protected]

Definition at line 316 of file node.hxx.

References nFontDesc.

SmTextNode::SmTextNode ( const SmToken rNodeToken,
USHORT  nFontDescP 
) [inline]

Definition at line 323 of file node.hxx.

References nFontDesc.


Member Function Documentation

USHORT SmTextNode::GetFontDesc (  )  const [inline]

Definition at line 330 of file node.hxx.

References nFontDesc.

Referenced by Arrange(), CreateTextFromNode(), and Prepare().

void SmTextNode::SetText ( const XubString &  rText  )  [inline]

Definition at line 331 of file node.hxx.

References aText.

Referenced by SmSpecialNode::Prepare(), SmErrorNode::SmErrorNode(), and SmMathSymbolNode::SmMathSymbolNode().

const XubString& SmTextNode::GetText (  )  const [inline]

Definition at line 332 of file node.hxx.

References aText.

Referenced by SmMathSymbolNode::AdaptToX(), SmMathSymbolNode::AdaptToY(), SmErrorNode::Arrange(), SmPlaceNode::Arrange(), SmGlyphSpecialNode::Arrange(), SmSpecialNode::Arrange(), SmMathSymbolNode::Arrange(), SmXMLExport::ExportMath(), SmXMLExport::ExportOperator(), SmXMLExport::ExportText(), MathType::HandleAttributes(), MathType::HandleMath(), MathType::HandleNodes(), and MathType::HandleText().

void SmTextNode::Prepare ( const SmFormat rFormat,
const SmDocShell rDocShell 
) [virtual]

Reimplemented from SmNode.

Reimplemented in SmSpecialNode, SmMathSymbolNode, SmPlaceNode, and SmErrorNode.

Definition at line 2386 of file node.cxx.

References SmToken::aText, aText, ATTR_BOLD, ATTR_ITALIC, SmNode::Attributes(), SmNode::eType, SmFormat::GetFont(), SmNode::GetFont(), GetFontDesc(), SmNode::GetToken(), IsBold(), IsItalic(), SmNode::Prepare(), RHA_LEFT, SmNode::SetRectHorAlign(), and TTEXT.

void SmTextNode::Arrange ( const OutputDevice &  rDev,
const SmFormat rFormat 
) [virtual]

Reimplemented from SmNode.

Reimplemented in SmSpecialNode, SmGlyphSpecialNode, SmMathSymbolNode, SmPlaceNode, and SmErrorNode.

Definition at line 2407 of file node.cxx.

References aText, FNT_FUNCTION, SmRect::GetBorderWidth(), SmNode::GetFont(), GetFontDesc(), SmFormat::GetRelSize(), SmRect::operator=(), SmNode::PrepareAttributes(), SIZ_FUNCTION, SIZ_TEXT, and SmRect::SmRect().

void SmTextNode::CreateTextFromNode ( String &  rText  )  [virtual]

Reimplemented from SmNode.

Reimplemented in SmMathSymbolNode.

Definition at line 2421 of file node.cxx.

References APPEND, aText, SmNode::eType, FNT_FUNCTION, GetFontDesc(), SmNode::GetNumSubNodes(), SmNode::GetSubNode(), SmNode::GetToken(), SmNode::GetType(), NEXPRESSION, NLINE, NTABLE, NTEXT, SmParser::Parse(), TIDENT, and TTEXT.

void SmTextNode::Draw ( OutputDevice &  rDev,
const Point &  rPosition 
) const [virtual]

Reimplemented from SmNode.

Reimplemented in SmSpecialNode, and SmRootSymbolNode.

Definition at line 2472 of file node.cxx.

References aText, SmRect::Draw(), SmRect::GetBaselineOffset(), SmNode::GetFont(), SmRect::GetWidth(), SmNode::IsDebug(), SmNode::IsPhantom(), SmTmpDevice::SetFont(), SM_RECT_CORE, SM_RECT_ITALIC, SM_RECT_LINES, and SM_RECT_MID.

Referenced by SmSpecialNode::Draw().

void SmTextNode::GetAccessibleText ( String &  rText  )  const [virtual]

Reimplemented from SmNode.

Definition at line 2496 of file node.cxx.

References aText.


Member Data Documentation

XubString SmTextNode::aText [private]

Definition at line 312 of file node.hxx.

Referenced by Arrange(), CreateTextFromNode(), Draw(), GetAccessibleText(), GetText(), SmSpecialNode::Prepare(), Prepare(), and SetText().

USHORT SmTextNode::nFontDesc [private]

Definition at line 313 of file node.hxx.

Referenced by GetFontDesc(), and SmTextNode().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 17:23:40 2008 for maths by  doxygen 1.5.1