Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

const wxString wxPdfDocument::GetFontStyle (  ) [virtual]

Gets the style of the current font.

Returns:
The style of the current font
See also:
SetFont()

Definition at line 827 of file pdfdoc.cpp.

References m_decoration, and m_fontStyle.

Referenced by PrepareXmlCell(), and WriteXmlCell().

{
  wxString style = m_fontStyle;
  if (m_decoration & wxPDF_FONT_UNDERLINE)
  {
    style += wxString(_T("U"));
  }
  if (m_decoration & wxPDF_FONT_OVERLINE)
  {
    style += wxString(_T("O"));
  }
  if (m_decoration & wxPDF_FONT_STRIKEOUT)
  {
    style += wxString(_T("S"));
  }
  return style;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index