|
htmlUnderline
Underlined text class | [Previous] [Main] [Next] |
| htmlUnderline encapsulates the <U></U> tags. It is used to mark regions of text that should be rendered as underlined text. This feature is not widely supported by web browsers, and should not be confused with hypertext links which are also underlined.
| |
|
| |
| #include <dcmicro/htmlpp/styles.h>
| |
|
| |
| |
|
| |
| Text Formatting Classes in the User's Guide
| |
|
| |
| None.
| |
|
| |
| htmlUnderline()
| |
| Constructs an empty object.
| |
|
| |
| htmlUnderline( const htmlObject& element )
| |
| Constructs an object, inserting element into it.
| |
|
| |
| htmlUnderline( const String& text )
| |
| Constructs an object, inserting the string text into it.
| |
|
| |
| virtual ~htmlUnderline()
| |
| Destroys the object.
| |
|
| |
|
| |
| #include <stdio.h>
| |
| #include <stdlib.h>
| |
| #include <dcmicro/htmlpp/htmlpp.h>
| |
|
| |
| int main( void )
| |
| {
| |
| htmlCgi server ;
| |
| htmlPage page( "html++ example application" ) ;
| |
|
| |
| String s = "This is an example of " ;
| |
| htmlBreak b ;
| |
| htmlEmphasized emphasized( "emphasized text" ) ;
| |
| htmlBold bold( "bold text" ) ;
| |
| htmlUnderline underline( "underlined text" ) ;
| |
| htmlItalic italic( "italic text" ) ;
| |
| htmlStrong strong( "strong text" ) ;
| |
|
| |
| page << s << emphasized << b
| |
| << s << bold << b
| |
| << s << underline << b
| |
| << s << italic << b
| |
| << s << strong << b ;
| |
|
| |
| // Classes can be nested to combine effects
| |
| page << s
| |
| << htmlBold( htmlItalic( "bold italic text" ) )
| |
| << b ;
| |
|
| |
| server << page ;
| |
| return 0 ;
| |
| }
| |
|
| |
|
| |
| Content-Type: text/html
| |
| <HTML>
| |
| <HEAD>
| |
| <TITLE>html++ example application</TITLE>
| |
| </HEAD>
| |
| <BODY>This is an example of <EM>emphasized text</EM><BR>
| |
| This is an example of <B>bold text</B><BR>
| |
| This is an example of <U>underlined text</U><BR>
| |
| This is an example of <I>italic text</I><BR>
| |
| This is an example of <STRONG>strong text</STRONG><BR>
| |
| This is an example of <B><I>bold italic text</I></B><BR>
| |
| </BODY>
| |
| </HTML>
| |
|
| |
| |
