2023-09-30 03:09:53 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Nico Weber <thakis@chromium.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
2023-07-23 04:35:24 +03:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-10-03 02:05:21 +03:00
|
|
|
#include "CocoaWrapper.h"
|
2023-07-23 04:35:24 +03:00
|
|
|
|
2023-09-21 22:54:02 +03:00
|
|
|
#include <AK/WeakPtr.h>
|
|
|
|
#include <LibPDF/Document.h>
|
|
|
|
|
2023-10-01 01:55:00 +03:00
|
|
|
@protocol MacPDFViewDelegate
|
2023-09-25 05:00:38 +03:00
|
|
|
- (void)pageChanged;
|
|
|
|
@end
|
|
|
|
|
2023-10-01 01:55:00 +03:00
|
|
|
@interface MacPDFView : NSView
|
2023-09-21 22:54:02 +03:00
|
|
|
|
|
|
|
- (void)setDocument:(WeakPtr<PDF::Document>)doc;
|
2023-09-25 04:42:51 +03:00
|
|
|
- (void)goToPage:(int)page;
|
2023-09-25 05:00:38 +03:00
|
|
|
- (int)page;
|
|
|
|
|
2023-10-01 01:55:00 +03:00
|
|
|
- (void)setDelegate:(id<MacPDFViewDelegate>)delegate;
|
2023-09-21 22:54:02 +03:00
|
|
|
|
2023-07-23 04:35:24 +03:00
|
|
|
@end
|