From a3c73742d9b9b9329492f8f70d74d6701840062f 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. --- 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 e7f6d56..8beedb0 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; @@ -1953,6 +1947,7 @@ void HtmlGenerator::generateTableOfContents(const Node *node, const Node *relative) { + return; if (!node->doc().hasTableOfContents()) return; QList toc = node->doc().tableOfContents(); @@ -2286,8 +2281,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()) { @@ -2472,7 +2466,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++) { @@ -2811,15 +2805,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"; } @@ -2876,15 +2867,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"; } @@ -3181,9 +3169,8 @@ void HtmlGenerator::generateSectionList(const Section& section, twoColumn = (section.members.count() >= 5); } if (twoColumn) - out() << "

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

      \n" + << "
      "; out() << "
        \n"; int i = 0; @@ -4366,7 +4353,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. @@ -4383,9 +4370,8 @@ void HtmlGenerator::generateQmlSummary(const Section& section, twoColumn = (count >= 5); } if (twoColumn) - out() << "

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

        \n" + << "
        "; out() << "
          \n"; int row = 0; @@ -4420,7 +4406,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) { @@ -4437,8 +4423,7 @@ void HtmlGenerator::generateDetailedQmlMember(const Node *node, << "
          " << "
          " << "
          " - << ""; + << ""; } } ++p; -- cgit v0.12
          " - << "default
          default