OOFILE  1.9
Public Types | Public Member Functions | Protected Attributes | List of all members

Variant on simple one-table HTML report using table for layout. More...

#include <oofhtml.h>

Inheritance diagram for dbRepHTMLTable:
Inheritance graph
[legend]
Collaboration diagram for dbRepHTMLTable:
Collaboration graph
[legend]

Public Types

enum  ReportStyles { pageWise, columnar }
 

Public Member Functions

char * copyStr (const char *theString)
 
 dbRepHTMLTable (const dbRepSizer &sizer, const dbView &fields, const ReportStyles style=columnar)
 
 dbRepHTMLTable (const dbRepSizer &sizer, const dbRepColWidths colWidths, const dbView &fields, const ReportStyles style=columnar)
 
virtual void describe (std::ostream &) const
 Provide human-readable information about object. More...
 
void draw (std::ostream &)
 
void drawColumnar (std::ostream &)
 
void drawHeader (std::ostream &)
 
void drawPageWise (std::ostream &)
 
void extract (std::ostream &)
 
void formatForCharStream ()
 
bool hidden () const
 
void hide (bool hideIt=true)
 
virtual oofString name () const
 
const OOF_StringreportTitle ()
 
void setStyle (const ReportStyles)
 

Protected Attributes

bool mBuilt
 
dbRepColWidths mColWidths
 
dbView mFields
 
bool mHidden
 
ReportStyles mReportStyle
 
dbRepSizer mSizer
 

Detailed Description

Variant on simple one-table HTML report using table for layout.

Definition at line 80 of file oofhtml.h.

Constructor & Destructor Documentation

dbRepHTMLTable::dbRepHTMLTable ( const dbRepSizer sizer,
const dbView fields,
const ReportStyles  style = columnar 
)
inline

Definition at line 83 of file oofhtml.h.

dbRepHTMLTable::dbRepHTMLTable ( const dbRepSizer sizer,
const dbRepColWidths  colWidths,
const dbView fields,
const ReportStyles  style = columnar 
)
inline

Definition at line 87 of file oofhtml.h.

Member Function Documentation

char * dbRep::copyStr ( const char *  theString)
inherited

Definition at line 197 of file oofrw.cpp.

Referenced by dbRepChar::drawPageWise().

void OOF_PublicBase::describe ( std::ostream &  ) const
virtualinherited

Provide human-readable information about object.

Overriden to provide much more detail particularly for dbTable::describe() which provides full schema.

Reimplemented in dbConnect, dbTable, dbFixedBinary, dbChar, dbField, and dbRelRefBase.

Definition at line 342 of file oof1.cpp.

References OOF_PublicBase::name().

Referenced by OOF_Dictionary::describeVisible().

void dbRepHTMLTable::draw ( std::ostream &  )
virtual

Implements dbRep.

Definition at line 514 of file oofhtml.cpp.

void dbRepHTMLTable::drawColumnar ( std::ostream &  )

Definition at line 443 of file oofhtml.cpp.

References dbField::copyString().

void dbRepHTMLTable::drawHeader ( std::ostream &  )

Definition at line 414 of file oofhtml.cpp.

References dbField::fieldName().

void dbRepHTMLTable::drawPageWise ( std::ostream &  )

Definition at line 470 of file oofhtml.cpp.

References dbField::copyString(), and dbField::fieldName().

void dbRep::extract ( std::ostream &  )
inherited
void dbRepHTMLTable::formatForCharStream ( )
virtual

Implements dbRep.

Definition at line 380 of file oofhtml.cpp.

bool OOF_PublicBase::hidden ( ) const
inlineinherited

Definition at line 51 of file oof1.h.

Referenced by OOF_Dictionary::EntryMatchesVisibility().

void OOF_PublicBase::hide ( bool  hideIt = true)
inlineinherited

Definition at line 52 of file oof1.h.

oofString OOF_PublicBase::name ( ) const
virtualinherited

Reimplemented in dbConnect, dbTable, OOF_adornerHolder, and dbField.

Definition at line 349 of file oof1.cpp.

Referenced by OOF_PublicBase::describe().

const OOF_String & dbRep::reportTitle ( )
inlineinherited

Definition at line 307 of file oofrw.h.

References dbRepSizer::mReportTitle, and dbRep::mSizer.

void dbRep::setStyle ( const ReportStyles  style)
inherited

Definition at line 210 of file oofrw.cpp.

References dbRep::mReportStyle.

Member Data Documentation

bool dbRep::mBuilt
protectedinherited

Definition at line 265 of file oofrw.h.

Referenced by dbRepChar::draw(), and dbRepChar::formatForCharStream().

dbRepColWidths dbRep::mColWidths
protectedinherited
dbView dbRep::mFields
protectedinherited
bool OOF_PublicBase::mHidden
protectedinherited

Definition at line 61 of file oof1.h.

ReportStyles dbRep::mReportStyle
protectedinherited
dbRepSizer dbRep::mSizer
protectedinherited

The documentation for this class was generated from the following files: