feat: add missing KF6 framework recipes
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
SPDX-FileCopyrightText: 2019 Friedrich W. H. Kossebau <kossebau@kde.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#ifndef CODEPDFPRINTER_H
|
||||
#define CODEPDFPRINTER_H
|
||||
|
||||
#include <KSyntaxHighlighting/Repository>
|
||||
|
||||
#include <QTextDocument>
|
||||
|
||||
namespace KSyntaxHighlighting
|
||||
{
|
||||
class SyntaxHighlighter;
|
||||
}
|
||||
|
||||
class CodePdfPrinter
|
||||
{
|
||||
public:
|
||||
explicit CodePdfPrinter();
|
||||
~CodePdfPrinter();
|
||||
|
||||
public:
|
||||
bool openSourceFile(const QString &fileName);
|
||||
void printPdfFile(const QString &fileName);
|
||||
|
||||
private:
|
||||
QTextDocument m_document;
|
||||
|
||||
KSyntaxHighlighting::Repository m_repository;
|
||||
KSyntaxHighlighting::SyntaxHighlighter *m_highlighter;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user