2022-04-24 12:30:31 +02:00
|
|
|
#ifndef PREVIEWGENERATORPLAINTEXT_H
|
|
|
|
#define PREVIEWGENERATORPLAINTEXT_H
|
2022-08-06 10:01:24 +02:00
|
|
|
#include <QTextStream>
|
2022-04-24 12:30:31 +02:00
|
|
|
#include "previewgenerator.h"
|
|
|
|
|
|
|
|
class PreviewGeneratorPlainText : public PreviewGenerator
|
|
|
|
{
|
2022-08-06 09:35:00 +02:00
|
|
|
protected:
|
|
|
|
const unsigned int MAX_SNIPPETS = 7;
|
|
|
|
|
2022-04-24 12:30:31 +02:00
|
|
|
public:
|
|
|
|
using PreviewGenerator::PreviewGenerator;
|
2022-07-24 11:34:52 +02:00
|
|
|
QString generatePreviewText(QString content, RenderConfig config, QString fileName);
|
2022-08-06 10:01:24 +02:00
|
|
|
QString generateLineBasedPreviewText(QTextStream &in, RenderConfig config, QString fileName);
|
2022-05-27 09:28:21 +02:00
|
|
|
QSharedPointer<PreviewResult> generate(RenderConfig config, QString documentPath, unsigned int page);
|
2022-04-24 12:30:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PREVIEWGENERATORPLAINTEXT_H
|