blob: 8f897d9720f2f87d5a3651f412c072775bc3c925 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* Copyright (c) 2021, Matthew Olsson <mattco@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "PDFViewer.h"
#include <LibGUI/Widget.h>
class PDFViewer;
class PDFViewerWidget final : public GUI::Widget {
C_OBJECT(PDFViewerWidget)
public:
~PDFViewerWidget() override;
void open_file(const String& path);
void initialize_menubar(GUI::Menubar&);
private:
PDFViewerWidget();
RefPtr<PDFViewer> m_viewer;
ByteBuffer m_buffer;
RefPtr<GUI::Action> m_open_action;
};
|