<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*-
  This file is part of KMail, the KDE mail client.
  Copyright (c) 1997 <NAME> <<EMAIL>>

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along
  with this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

// define this to copy all html that is written to the readerwindow to
// filehtmlwriter.out in the current working directory
//#define KMAIL_READER_HTML_DEBUG 1
#include "kmreaderwin.h"
#include "mailviewer_p.h"
#include "configurewidget.h"
#include "csshelper.h"
#include "globalsettings.h"

//KDE includes
#include <KHTMLPart>
#include <KHTMLView>

/*
#include <kpimutils/kfileio.h>
#include "kmmsgpartdlg.h"
#include "mailsourceviewer.h"
#include <QTextDocument>
#include <QByteArray>
#include <QImageReader>
#include <QCloseEvent>
#include <QEvent>
#include <QVBoxLayout>
#include <QResizeEvent>
#include <QMouseEvent>
#include <QScrollArea>
#include <QSignalMapper>
#include <QDesktopWidget>
#include <QModelIndex>

#include "kcursorsaver.h"
#include "vcardviewer.h"
#include "objecttreeparser.h"
#include "partmetadata.h"
#include "attachmentstrategy.h"
#include "headerstrategy.h"
#include "headerstyle.h"
#include "khtmlparthtmlwriter.h"
#include "htmlstatusbar.h"
#include "csshelper.h"
#include "urlhandlermanager.h"
#include "util.h"
#include "nodehelper.h"
#include "mimetreemodel.h"
#include "global.h"
#include "configurewidget.h"
#include "interfaces/bodypart.h"
#include "editorwatcher.h"

#include <kicon.h>
#include "libkdepim/broadcaststatus.h"
#include "libkdepim/attachmentpropertiesdialog.h"

#include <kmime/kmime_mdn.h>
#ifdef KMAIL_READER_HTML_DEBUG
#include "filehtmlwriter.h"
#include "teehtmlwriter.h"
#endif

//KMime headers
#include <kmime/kmime_message.h>
#include <kmime/kmime_headers.h>

//Akonadi includes
#include <akonadi/item.h>
#include <akonadi/itemmodifyjob.h>

#include "kleo/specialjob.h"
#include "kleo/cryptobackend.h"
#include "kleo/cryptobackendfactory.h"

// KABC includes
#include <kabc/addressee.h>
#include <kabc/vcardconverter.h>

// khtml headers
#include <khtml_part.h>
#include <khtmlview.h> // So that we can get rid of the frames
#include <dom/html_element.h>
#include <dom/html_block.h>
#include <dom/html_document.h>
#include <dom/dom_string.h>

#include <kde_file.h>
#include <kactionmenu.h>
// for the click on attachment stuff (dnaber):
#include <kcharsets.h>
#include <kmenu.h>
#include <kstandarddirs.h>  // Sven's : for access and getpid
#include <kdebug.h>
#include <kfiledialog.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kmimetypetrader.h>
#include <kglobalsettings.h>
#include <krun.h>
#include <ktemporaryfile.h>
#include <kdialog.h>
#include <kaction.h>
#include <kfontaction.h>
#include <kiconloader.h>
#include <kcodecs.h>
#include <kascii.h>
#include <kselectaction.h>
#include <kstandardaction.h>
#include <ktoggleaction.h>
#include <kconfiggroup.h>
#include <kactioncollection.h>
#include <KColorScheme>
#include <KApplication>
#include <kio/netaccess.h>

#include <QClipboard>
#include <QCursor>
#include <QTextCodec>
#include <QLayout>
#include <QLabel>
#include <QSplitter>
#include <QStyle>
#include <QTreeView>

// X headers...
#undef Never
#undef Always

#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>

#ifdef HAVE_PATHS_H
#include <paths.h>
#include <kvbox.h>
#include <QTextDocument>
#endif

using namespace KMime;
*/

MailViewer::MailViewer(QWidget *aParent,
                         KSharedConfigPtr config,
                         QWidget *mainWindow,
                         KActionCollection* actionCollection,
                         Qt::WindowFlags aFlags )
  : QWidget(aParent, aFlags ), d_ptr(new MailViewerPrivate(this, config, mainWindow, actionCollection) )<commit_msg>Remove unused includes.<commit_after>/* -*- mode: C++; c-file-style: "gnu" -*-
  This file is part of KMail, the KDE mail client.
  Copyright (c) 1997 <NAME> <<EMAIL>>

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along
  with this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

// define this to copy all html that is written to the readerwindow to
// filehtmlwriter.out in the current working directory
//#define KMAIL_READER_HTML_DEBUG 1
#include "kmreaderwin.h"
#include "mailviewer_p.h"
#include "configurewidget.h"
#include "csshelper.h"
#include "globalsettings.h"

//KDE includes
#include <KHTMLPart>
#include <KHTMLView>

MailViewer::MailViewer(QWidget *aParent,
                         KSharedConfigPtr config,
                         QWidget *mainWindow,
                         KActionCollection* actionCollection,
                         Qt::WindowFlags aFlags )
  : QWidget(aParent, aFlags ), d_ptr(new MailViewerPrivate(this, config, mainWindow, actionCollection) )
{'fraction_non_alphanumeric': 0.10968708388814913, 'fraction_numerical': 0.005659121171770972, 'mean_word_length': 4.4232851985559565, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4901815', 'n_tokens_mistral': 1996, 'n_tokens_neox': 1949, 'n_words': 620}