#include <node.hxx>
Inherits SmStructureNode.
Inheritance diagram for SmFontNode:
Public Member Functions | |
SmFontNode (const SmToken &rNodeToken) | |
void | SetSizeParameter (const Fraction &rValue, USHORT nType) |
const Fraction & | GetSizeParameter () const |
const USHORT & | GetSizeType () const |
virtual void | Prepare (const SmFormat &rFormat, const SmDocShell &rDocShell) |
virtual void | Arrange (const OutputDevice &rDev, const SmFormat &rFormat) |
void | CreateTextFromNode (String &rText) |
Private Attributes | |
USHORT | nSizeType |
Fraction | aFontSize |
Definition at line 775 of file node.hxx.
SmFontNode::SmFontNode | ( | const SmToken & | rNodeToken | ) | [inline] |
void SmFontNode::SetSizeParameter | ( | const Fraction & | rValue, | |
USHORT | nType | |||
) |
Definition at line 2141 of file node.cxx.
References aFontSize, and nSizeType.
Referenced by SmXMLContext_Helper::ApplyAttrs(), SmXMLStyleContext_Impl::EndElement(), and SmParser::FontSize().
const Fraction& SmFontNode::GetSizeParameter | ( | ) | const [inline] |
Definition at line 789 of file node.hxx.
References aFontSize.
Referenced by SmXMLExport::ExportFont().
const USHORT& SmFontNode::GetSizeType | ( | ) | const [inline] |
Definition at line 790 of file node.hxx.
References nSizeType.
Referenced by SmXMLExport::ExportFont().
void SmFontNode::Prepare | ( | const SmFormat & | rFormat, | |
const SmDocShell & | rDocShell | |||
) | [virtual] |
Reimplemented from SmNode.
Definition at line 2075 of file node.cxx.
References SmNode::eType, SmNode::Flags(), FLG_FONT, FNT_FIXED, FNT_SANS, FNT_SERIF, SmFormat::GetFont(), SmNode::GetFont(), SmNode::GetToken(), SmNode::Prepare(), SmNode::SetFont(), TFIXED, TSANS, and TSERIF.
void SmFontNode::Arrange | ( | const OutputDevice & | rDev, | |
const SmFormat & | rFormat | |||
) | [virtual] |
Reimplemented from SmNode.
Definition at line 2100 of file node.cxx.
References aFontSize, SmNode::Arrange(), ATTR_BOLD, ATTR_ITALIC, SmNode::ClearAttribut(), SmNode::eType, SmNode::GetFont(), SmNode::GetRect(), SmStructureNode::GetSubNode(), SmNode::GetToken(), nSizeType, SmRect::operator=(), SmNode::SetAttribut(), SmNode::SetColor(), SmNode::SetFont(), SmNode::SetFontSize(), SmNode::SetPhantom(), TBLACK, TBLUE, TBOLD, TCYAN, TFIXED, TGREEN, TITALIC, TMAGENTA, TNBOLD, TNITALIC, TPHANTOM, TRED, TSANS, TSERIF, TSIZE, TUNKNOWN, TWHITE, and TYELLOW.
void SmFontNode::CreateTextFromNode | ( | String & | rText | ) | [virtual] |
Reimplemented from SmNode.
Definition at line 1988 of file node.cxx.
References aFontSize, APPEND, SmNode::CreateTextFromNode(), SmNode::eType, FNTSIZ_ABSOLUT, FNTSIZ_DIVIDE, FNTSIZ_MINUS, FNTSIZ_MULTIPLY, FNTSIZ_PLUS, SmStructureNode::GetSubNode(), SmNode::GetToken(), nSizeType, TBLACK, TBLUE, TBOLD, TCYAN, TFIXED, TGREEN, TITALIC, TMAGENTA, TNBOLD, TNITALIC, TPHANTOM, TRED, TSANS, TSERIF, TSIZE, TWHITE, and TYELLOW.
USHORT SmFontNode::nSizeType [private] |
Definition at line 777 of file node.hxx.
Referenced by Arrange(), CreateTextFromNode(), GetSizeType(), SetSizeParameter(), and SmFontNode().
Fraction SmFontNode::aFontSize [private] |
Definition at line 778 of file node.hxx.
Referenced by Arrange(), CreateTextFromNode(), GetSizeParameter(), SetSizeParameter(), and SmFontNode().