void Convert() { // Create a "beautified" version of this source file. // It will be called htmldoc/htmlex.C.html. GetHtml()->SetSourceDir("$(GRSISYS)/util"); GetHtml()->Convert("html_generator.C", "Generates HTML Documentation", "./htmldoc/", "./"); }
void Convert() { // Create a "beautified" version of this source file. // It will be called htmldoc/htmlex.C.html. GetHtml()->SetMacroPath("$(ROOTSYS)/macros/"); GetHtml()->SetSourceDir("$(GRSISYS)/util:$(GRSISYS)/scripts"); GetHtml()->Convert("html_generator.C", "Generates HTML Documentation", "./htmldoc/", "./"); GetHtml()->Convert("DroppedData.C","Calculates Dropped Events","./htmldoc/","./"); }
void MakeDocForAllClasses() { // Creates the documentation pages for all classes that have // been loaded, and that are accessible from "./". // If evenForROOT is set, we'll try to document ROOT's classes, // too - you will end up with a copy of ROOT's class reference. // The documentation will end up in the subdirectory htmldoc/. std::string inclpath = "$(GRSISYS)/grsisort/"; std::stringstream totpath; totpath << inclpath << fpath.str(); std::string incldirs = totpath.str(); GetHtml()->SetSourceDir(incldirs.c_str()); GetHtml()->SetOutputDir("$GRSISYS/htmldoc"); GetHtml()->MakeAll(); }
int main(void) { addUrl(); GetHtml(url); getImg(); curl_easy_cleanup(curl); return 0; }
void CReporter::BuildHtmlDoc( QDateTime& dtStart, QDateTime& dtEnd, CommonDataType::ReportType rType, QWebView& wvReport ) { QStringList lstData; QString strStart; QString strEnd; //QString strType = QString::number( rType ); CCommonFunction::DateTime2String( dtStart, strStart ); CCommonFunction::DateTime2String( dtEnd, strEnd ); QString strSql;// = QString( "call GenerateReport( '%1', '%2', %3 )" ).arg( strStart, strEnd, strType ); QDateTime dtTimeEnd = dtEnd; GetSQL( strSql, rType, dtStart, dtEnd ); if ( strSql.isEmpty( ) ) { return; } CLogicInterface::GetInterface( )->ExecuteSql( strSql, lstData ); //strSql= "Select @f1,@f2,@f3,@f4,@f5,@f6,@f7,@f8"; //CLogicInterface::GetInterface( )->ExecuteSql( strSql, lstData ); QDate dStart = dtStart.date( ); QDate dEnd = dtEnd.date( ); CCommonFunction::Date2String( dStart, strStart ); CCommonFunction::Date2String( dEnd, strEnd ); QString strTitle; QString strFooter; QString strTableBody; GetHtml( rType, strTitle, strFooter, strTableBody, lstData ); QString strTitleDate; GetTitle( rType, dtStart, dtTimeEnd, strTitleDate ); QString strHtml = QString( "<HTML>\ <BODY>\ <H3 ALIGN = \"CENTER\">报表日期:%1</H1>\ <br><br>\ <TABLE ALIGN = \"CENTER\" BORDER = \"1\" frame=\"box\" rules=\"all\"CELLPADDING = \"2\">\ %2\ %3\ </TABLE>\ </BODY>\ </HTML>" ).arg( strTitleDate, strTitle, strTableBody + strFooter ); wvReport.setHtml( strHtml ); }
void CReporter::HandleReportData( int nType, QStringList lstData ) { CommonDataType::ReportType rType = ( CommonDataType::ReportType ) ( nType - QEvent::User ); QString strStart; QString strEnd; CCommonFunction::DateTime2String( dtStartTime, strStart ); CCommonFunction::DateTime2String( dtEndTime, strEnd ); QDateTime dtTimeEnd = dtEndTime; QDate dStart = dtStartTime.date( ); QDate dEnd = dtEndTime.date( ); CCommonFunction::Date2String( dStart, strStart ); CCommonFunction::Date2String( dEnd, strEnd ); QString strTitle; QString strFooter; QString strTableBody; GetHtml( rType, strTitle, strFooter, strTableBody, lstData ); QString strTitleDate; GetTitle( rType, dtStartTime, dtTimeEnd, strTitleDate ); QString strHtml = QString( "<HTML>\ <BODY>\ <H3 ALIGN = \"CENTER\">报表类别:%1</H1>\ <H3 ALIGN = \"CENTER\">报表日期:%2</H1>\ <br><br>\ <TABLE ALIGN = \"CENTER\" BORDER = \"1\" frame=\"box\" rules=\"all\"CELLPADDING = \"2\">\ %3\ %4\ </TABLE>\ </BODY>\ </HTML>" ).arg( ppReportTitle[ rType ]->text( ), strTitleDate, strTitle, strTableBody ); pReportView->setHtml( strHtml ); }
void SetEtcDir(TString name) { gSystem->PrependPathName(getenv("GRSISYS"), name); GetHtml()->SetEtcDir(name); std::cout<<"ETC "<<GetHtml()->GetEtcDir()<<std::endl; }
void SetProductName(const char* name) { //Sets Program name in HTML documentation GetHtml()->SetProductName(name); }