|
htmlNoBreak
Non-wrapping text class | [Previous] [Main] [Next] |
| htmlNoBreak encapsulates the <NOBR></NOBR> tags. It is derived from the htmlText class, and is used to output text lines that will not wrap to the next line. It is useful for words or phrases that must be kept together on one line. Note that if the text is longer than the display area of the browser, the user will need to scroll to view the text.
| |
|
| |
| #include <dcmicro/htmlpp/nobreak.h>
| |
|
| |
| |
|
| |
| htmlText, htmlLiteral
| |
|
| |
| None.
| |
|
| |
| htmlNoBreak()
| |
| Constructs an empty object.
| |
|
| |
| htmlNoBreak( const String& text )
| |
| Constructs an object, inserting the string text into it.
| |
|
| |
| htmlNoBreak( const htmlNoBreak& rhs )
| |
| Copy constructor.
| |
|
| |
| virtual ~htmlNoBreak()
| |
| Destroys the object.
| |
|
| |
| Clone | htmlObject FAR * Clone() const
| |
| Returns a base-class pointer to a deep copy of the object.
| |
|
| |
|
| |
| #include <stdio.h>
| |
| #include <stdlib.h>
| |
| #include <dcmicro/htmlpp/htmlpp.h>
| |
|
| |
| int main( void )
| |
| {
| |
| htmlCgi server ;
| |
| htmlPage page( "html++ example application" ) ;
| |
|
| |
| htmlText regular_text ;
| |
| regular_text << "This is regular text. As words "
| |
| "reach the right side of the display, they "
| |
| "are automatically wrapped to the beginning "
| |
| "of the next line." ;
| |
|
| |
| htmlNoBreak nobreak_text ;
| |
| nobreak_text << "This text does not wrap to the "
| |
| "next line. As words approach the right side "
| |
| "of the display, they disappear from view "
| |
| "until the user scrolls the display." ;
| |
|
| |
| page << regular_text
| |
| << htmlParagraph()
| |
| << nobreak_text ;
| |
|
| |
| server << page ;
| |
| return 0 ;
| |
| }
| |
|
| |
|
| |
| Content-Type: text/html
| |
| <HTML>
| |
| <HEAD>
| |
| <TITLE>html++ example application</TITLE>
| |
| </HEAD>
| |
| <BODY>
| |
| This is regular text. As words reach the right side of the display, they are automatically wrapped to the beginning of the next line.<P></P>
| |
| <NOBR>This text does not wrap to the next line. As words approach the right side of the display, they disappear from view until the user scrolls the display.</NOBR>
| |
| </BODY>
| |
| </HTML>
| |
|
| |
|
| |
| |
