Commit cca1eaf6 authored by Laurent Montel's avatar Laurent Montel 😁

Start to implement print preview

parent 3c80c578
......@@ -8,6 +8,17 @@ if(BUILD_TESTING)
add_subdirectory(findbar/autotests)
endif()
find_package(Poppler "0.12.1" COMPONENTS Qt5)
set_package_properties("Poppler" PROPERTIES
TYPE RECOMMENDED
PURPOSE "Support for print preview.")
if (Poppler_Qt5_FOUND)
set(libwebengineviewer_print_SRCS
print/printpreviewdialog.cpp
)
set(poppler_lib Poppler::Qt5)
endif()
set(libwebengineviewer_webengine_SRCS
networkmanager/networkaccessmanagerwebengine.cpp
......@@ -40,6 +51,7 @@ set(libwebengineviewer_SRCS
${libwebengineviewer_webengine_SRCS}
${libwebengineviewer_findbar_SRCS}
${libwebengineviewer_widgets_SRCS}
${libwebengineviewer_print_SRCS}
)
qt5_add_resources(libwebengineviewer_webengine_SRCS jquery.qrc)
......@@ -63,6 +75,7 @@ target_link_libraries(KF5WebEngineViewer
KF5::Completion
KF5::I18n
KF5::PimCommon
${poppler_lib}
)
set_target_properties(KF5WebEngineViewer PROPERTIES
......
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
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
*/
#include "printpreviewdialog.h"
using namespace WebEngineViewer;
PrintPreviewDialog::PrintPreviewDialog(QWidget *parent)
: QDialog(parent)
{
}
PrintPreviewDialog::~PrintPreviewDialog()
{
}
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
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
*/
#ifndef PRINTPREVIEWDIALOG_H
#define PRINTPREVIEWDIALOG_H
#include <QDialog>
namespace WebEngineViewer
{
class PrintPreviewDialog : public QDialog
{
Q_OBJECT
public:
explicit PrintPreviewDialog(QWidget *parent = Q_NULLPTR);
~PrintPreviewDialog();
};
}
#endif // PRINTPREVIEWDIALOG_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment