htmlBlockQuote
Indented text block class
[Previous] [Main] [Next]


Description
htmlBlockQuote encapsulates the <BLOCKQUOTE></BLOCKQUOTE> tags. It is used to indent a block of text. htmlBlockQuote elements start on a new line. Many browsers, including Netscape Navigator, add extra space before htmlBlockQuote elements.  
 
Declaration
#include <dcmicro/htmlpp/blockquo.h>  
 
Hierarchy
htmlblockquote.gif  
 
See Also
Text Formatting Classes in the User's Guide  
 
Related Constants/Definitions
None.  
 
Constructors
htmlBlockQuote()  
Constructs an empty object.  
 
htmlBlockQuote( const htmlObject& element )  
Constructs an object, inserting element into it.  
 
htmlBlockQuote( const String& text )  
Constructs an object, inserting the string text into it.  
 
Destructor  
virtual ~htmlBlockQuote()  
Destroys the object.  
 
Member Methods
Print   void Print( ostream& os ) const  
Outputs the object to os.  
 
ClonehtmlObject FAR * Clone() const  
Returns a base-class pointer to a deep copy of the object.  
 
Example Use
 
#include <stdio.h>  
#include <stdlib.h>  
#include <dcmicro/htmlpp/htmlpp.h>  
 
int main( void )  
{  
   htmlCgi   server ;  
   htmlPage  page( "html++ example application" ) ;  
 
   page << "This line is not indented."   
        << htmlBreak()  
        << htmlBlockQuote( "This text is indented." )   
        << htmlBreak() ;  
 
   server << page ;  
   return 0 ;  
}  
 
Program Output
 
Content-Type: text/html  
<HTML>  
<HEAD>  
<TITLE>html++ example application</TITLE>  
</HEAD>  
<BODY>This line is not indented.<BR>  
<BLOCKQUOTE>This text is indented.</BLOCKQUOTE>  
<BR>  
</BODY>  
</HTML>  
 
blockquote.gif  
 
 



©1998 DC Micro Development. All rights reserved.
No portion of this document may be c opied or reproduced without expressed written consent.
html++ is a trademark of DC Micro Development.