#include <node.hxx>
Inherits SmVisibleNode.
Inherited by SmSpecialNode.
Inheritance diagram for SmTextNode:


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 |
Definition at line 310 of file node.hxx.
| SmTextNode::SmTextNode | ( | SmNodeType | eNodeType, | |
| const SmToken & | rNodeToken, | |||
| USHORT | nFontDescP | |||
| ) | [inline, protected] |
| SmTextNode::SmTextNode | ( | const SmToken & | rNodeToken, | |
| USHORT | nFontDescP | |||
| ) | [inline] |
| USHORT SmTextNode::GetFontDesc | ( | ) | const [inline] |
| 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] |
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] |
1.5.1