#import #undef ABS #undef MIN #undef MAX #include "mupdf/fitz.h" #import "MuHitView.h" #import "MuPageView.h" #import "MuDocRef.h" #import "MuDialogCreator.h" #import "MuTextSelectView.h" #import "MuInkView.h" #import "MuAnnotSelectView.h" #import "MuUpdater.h" @interface MuPageViewNormal : UIScrollView { MuDocRef *docRef; fz_document *doc; fz_page *page; fz_display_list *page_list; fz_display_list *annot_list; int number; UIActivityIndicatorView *loadingView; fz_pixmap *image_pix; CGDataProviderRef imageData; UIImageView *imageView; fz_pixmap *tile_pix; CGDataProviderRef tileData; UIImageView *tileView; MuHitView *hitView; MuHitView *linkView; MuTextSelectView *textSelectView; MuInkView *inkView; MuAnnotSelectView *annotSelectView; NSArray *widgetRects; NSArray *annotations; int selectedAnnotationIndex; CGSize pageSize; CGRect tileFrame; float tileScale; BOOL cancel; id dialogCreator; id updater; } - (id) initWithFrame: (CGRect)frame dialogCreator:(id)dia updater:(id)upd document: (MuDocRef *)aDoc page: (int)aNumber; - (void) displayImage: (UIImage*)image; - (void) resizeImage; - (void) loadPage; - (void) loadTile; @end