/*************************************************************************** htmlcode.cpp - description ------------------- begin : Wed Nov 28 2001 copyright : (C) 2001 by Andre Simon email : andre.simon1@gmx.de ***************************************************************************/ /* This file is part of Highlight. Highlight is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Highlight is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Highlight. If not, see . */ #include "xhtmlgenerator.h" using namespace std; namespace highlight { XHtmlGenerator::XHtmlGenerator () { fileSuffix=".xhtml"; brTag="
"; hrTag="
"; idAttr="id"; cssClassName="hl"; } string XHtmlGenerator::getHeaderStart ( const string &title ) { ostringstream header; header << "\n\n" << "\n" << "\n" << title << "\n"; return header.str(); } string XHtmlGenerator::getHeader() { ostringstream os; os << getHeaderStart ( docTitle ); if ( langInfo.highlightingEnabled() ) { if ( includeStyleDef ) { os << "\n"; } else { os << "\n"; } } os << "\n"; //if (showLineNumbers && orderedList) os << "
    "; return os.str(); } }