summaryrefslogtreecommitdiff
path: root/src/libs/utils/htmldocextractor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/utils/htmldocextractor.h')
-rw-r--r--src/libs/utils/htmldocextractor.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libs/utils/htmldocextractor.h b/src/libs/utils/htmldocextractor.h
index a9acf79a5f..8efa69b25e 100644
--- a/src/libs/utils/htmldocextractor.h
+++ b/src/libs/utils/htmldocextractor.h
@@ -41,9 +41,12 @@ class QTCREATOR_UTILS_EXPORT HtmlDocExtractor
public:
HtmlDocExtractor();
- void extractFirstParagraphOnly();
- void extractExtendedContents(const int lengthReference, const bool truncateAtParagraph);
+ enum Mode {
+ FirstParagraph,
+ Extended
+ };
+ void setMode(Mode mode);
void applyFormatting(const bool format);
QString getClassOrNamespaceBrief(const QString &html, const QString &mark) const;
@@ -80,10 +83,8 @@ private:
static void replaceTablesForSimpleLines(QString *html);
static void replaceListsForSimpleLines(QString *html);
- int m_lengthReference;
- bool m_truncateAtParagraph;
bool m_formatContents;
- bool m_extendedExtraction;
+ Mode m_mode;
};
} // namespace Utils