summaryrefslogtreecommitdiff
path: root/platform/ios/Classes/MuPageView.h
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2013-09-24 16:58:27 +0100
committerPaul Gardiner <paul.gardiner@artifex.com>2013-09-24 16:58:27 +0100
commitd4a69b3f24c3697cb0e77b7685468423c0949a71 (patch)
tree6677063014ee56fcdb45e8307805c87405d4b3b0 /platform/ios/Classes/MuPageView.h
parentaa8bf97eb104986fae3245bc675bd50dded01804 (diff)
downloadmupdf-d4a69b3f24c3697cb0e77b7685468423c0949a71.tar.xz
iOS: add reflow mode
Diffstat (limited to 'platform/ios/Classes/MuPageView.h')
-rw-r--r--platform/ios/Classes/MuPageView.h46
1 files changed, 9 insertions, 37 deletions
diff --git a/platform/ios/Classes/MuPageView.h b/platform/ios/Classes/MuPageView.h
index 58d1c8a7..963a4aa0 100644
--- a/platform/ios/Classes/MuPageView.h
+++ b/platform/ios/Classes/MuPageView.h
@@ -7,41 +7,13 @@
#import <UIKit/UIKit.h>
-#undef ABS
-#undef MIN
-#undef MAX
-
-#include "mupdf/fitz.h"
-
-#import "MuDocRef.h"
-#include "MuHitView.h"
-
-@interface MuPageView : UIScrollView <UIScrollViewDelegate>
-{
- MuDocRef *docRef;
- fz_document *doc;
- fz_page *page;
- int number;
- UIActivityIndicatorView *loadingView;
- UIImageView *imageView;
- UIImageView *tileView;
- MuHitView *hitView;
- MuHitView *linkView;
- CGSize pageSize;
- CGRect tileFrame;
- float tileScale;
- BOOL cancel;
-}
-- (id) initWithFrame: (CGRect)frame document: (MuDocRef*)aDoc page: (int)aNumber;
-- (void) displayImage: (UIImage*)image;
-- (void) resizeImage;
-- (void) loadPage;
-- (void) loadTile;
-- (void) willRotate;
-- (void) resetZoomAnimated: (BOOL)animated;
-- (void) showSearchResults: (int)count;
-- (void) clearSearchResults;
-- (void) showLinks;
-- (void) hideLinks;
-- (int) number;
+@protocol MuPageView
+-(int) number;
+-(void) willRotate;
+-(void) showLinks;
+-(void) hideLinks;
+-(void) showSearchResults: (int)count;
+-(void) clearSearchResults;
+-(void) resetZoomAnimated: (BOOL)animated;
+-(void) setScale:(float)scale;
@end