2021-05-24 07:25:56 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2013 Azat Khuzhin <a3at.mail@gmail.com>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2013-02-18 23:22:16 +00:00
|
|
|
|
2018-08-31 09:23:45 +00:00
|
|
|
#ifndef _TXT_DOCUMENT_H_
|
|
|
|
#define _TXT_DOCUMENT_H_
|
2013-02-18 23:22:16 +00:00
|
|
|
|
2018-08-31 09:23:45 +00:00
|
|
|
#include <QTextDocument>
|
2013-02-18 23:22:16 +00:00
|
|
|
|
|
|
|
namespace Txt
|
|
|
|
{
|
|
|
|
class Document : public QTextDocument
|
|
|
|
{
|
2016-10-29 14:32:24 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2013-02-18 23:22:16 +00:00
|
|
|
public:
|
2018-09-01 08:25:57 +00:00
|
|
|
explicit Document(const QString &fileName);
|
2019-12-18 11:51:13 +00:00
|
|
|
~Document() override;
|
2013-02-18 23:22:16 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QString toUnicode(const QByteArray &array);
|
|
|
|
};
|
2013-02-18 23:26:09 +00:00
|
|
|
}
|
2018-08-31 09:23:45 +00:00
|
|
|
|
|
|
|
#endif
|