summaryrefslogtreecommitdiff
path: root/platform/ios/Classes/MuPageView.h
diff options
context:
space:
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