From 7e0aa0a2306ada727bce07178379f0f72dd70d20 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Wed, 14 Apr 2010 13:49:47 +0200 Subject: qdoc: Removed all attributes in favor of using css. (cherry picked from commit a3c73742d9b9b9329492f8f70d74d6701840062f) --- tools/qdoc3/htmlgenerator.cpp | 65 +++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 40 deletions(-) diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 974a104..2dafd45 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -902,17 +902,14 @@ int HtmlGenerator::generateAtom(const Atom *atom, else if (atom->string() == ATOM_LIST_VALUE) { threeColumnEnumValueTable = isThreeColumnEnumValueTable(atom); if (threeColumnEnumValueTable) { - out() << "

\n" - << "" - << "" - << "\n"; + out() << "

ConstantValueDescription
" + << "" + << "" + << "\n"; } else { - out() << "

ConstantValueDescription
\n" - << "\n"; + out() << "

ConstantValue
" + << "\n"; } } else { @@ -1087,16 +1084,13 @@ int HtmlGenerator::generateAtom(const Atom *atom, if (!atom->string().isEmpty()) { if (atom->string().contains("%")) out() << "

ConstantValue
string() << "\" " - << "align=\"center\" cellpadding=\"2\" " - << "cellspacing=\"1\" border=\"0\">\n"; + << "align=\"center\">\n"; else { - out() << "

\n"; + out() << "

\n"; } } else { - out() << "

\n"; + out() << "

\n"; } numTableRows = 0; break; @@ -1951,6 +1945,7 @@ void HtmlGenerator::generateTableOfContents(const Node *node, const Node *relative) { + return; if (!node->doc().hasTableOfContents()) return; QList toc = node->doc().tableOfContents(); @@ -2273,8 +2268,7 @@ void HtmlGenerator::generateAnnotatedList(const Node *relative, CodeMarker *marker, const NodeMap &nodeMap) { - out() << "

\n"; + out() << "

\n"; int row = 0; foreach (const QString &name, nodeMap.keys()) { @@ -2459,7 +2453,7 @@ void HtmlGenerator::generateCompactList(const Node *relative, } firstOffset[NumColumns] = classMap.count(); - out() << "

\n"; + out() << "

\n"; for (k = 0; k < numRows; k++) { out() << "\n"; for (i = 0; i < NumColumns; i++) { @@ -2798,15 +2792,12 @@ void HtmlGenerator::generateSection(const NodeList& nl, name_alignment = false; } if (name_alignment) { - out() << "
\n"; + out() << "
\n"; } else { if (twoColumn) - out() << "

\n" - << "
"; + out() << "

\n" + << "
"; out() << "
    \n"; } @@ -2863,15 +2854,12 @@ void HtmlGenerator::generateSectionList(const Section& section, name_alignment = false; } if (name_alignment) { - out() << "\n"; + out() << "
    \n"; } else { if (twoColumn) - out() << "

    \n" - << "
    "; + out() << "

    \n" + << "
    "; out() << "
      \n"; } @@ -3168,9 +3156,8 @@ void HtmlGenerator::generateSectionList(const Section& section, twoColumn = (section.members.count() >= 5); } if (twoColumn) - out() << "

      \n" - << "
      "; + out() << "

      \n" + << "
      "; out() << "
        \n"; int i = 0; @@ -4353,7 +4340,7 @@ QT_END_NAMESPACE #ifdef QDOC_QML /*! - Generates the summary for for the \a section. Only used for + Generates the summary for the \a section. Only used for sections of QML element documentation. Currently handles only the QML property group. @@ -4370,9 +4357,8 @@ void HtmlGenerator::generateQmlSummary(const Section& section, twoColumn = (count >= 5); } if (twoColumn) - out() << "

        \n" - << "
        "; + out() << "

        \n" + << "
        "; out() << "
          \n"; int row = 0; @@ -4407,7 +4393,7 @@ void HtmlGenerator::generateDetailedQmlMember(const Node *node, const QmlPropGroupNode* qpgn = static_cast(node); NodeList::ConstIterator p = qpgn->childNodes().begin(); out() << "
          "; - out() << ""; + out() << "
          "; while (p != qpgn->childNodes().end()) { if ((*p)->type() == Node::QmlProperty) { @@ -4424,8 +4410,7 @@ void HtmlGenerator::generateDetailedQmlMember(const Node *node, << "
          " << "
          " << "
          " - << ""; + << ""; } } ++p; -- cgit v0.12
          " - << "default
          default