summaryrefslogtreecommitdiff
path: root/platform/ios/Classes/MuDocumentController.m
AgeCommit message (Collapse)Author
2016-09-23Clean up annotation enum names.Tor Andersson
Put them in the PDF name space and separate words with underscores. Remove redundant namespace prefixes in java constants. Device.FLAG_MASK rather than Device.FZ_DEVFLAG_MASK. Use namespace for PDF annotation flag enum.
2016-06-09iOS: Run Xcode's "Convert to Modern ObjC" for "ObjC literals"Joseph Heenan
Uses the more modern/concise syntax that arrived in Xcode 4.4
2016-06-09iOS: Use modern instancetype instead of id for init return typeJoseph Heenan
2016-06-09iOS: Fix a bad call to super in MuDocumentController.mJoseph Heenan
We're a subclass of UIViewController, so must call one of UIViewController's designated initialisers.
2016-06-09iOS: Replace char * with NSString in ObjC APIsJoseph Heenan
What is effectively our external API on iOS would be expected to use NSString rather than char *.
2016-04-21ios: Fix memory leak of outline controller.Tor Andersson
2016-04-20Fix bug 696718 by deferring creation of the outline until it's about to be ↵fredrossperry
shown.
2016-04-12Fixes for building on XCode 7.3, and to use copies of images from the ↵fredrossperry
Android viewer project.
2016-03-31Initialize disabled document writing flags to zeroSebastian Rasmussen
Also remove redundant assignments. Fixes http://bugs.ghostscript.com/show_bug.cgi?id=695968
2015-12-18Remove fz_save_document and use pdf_save_document directly instead.Tor Andersson
In preparation of adding pdf_write_document that writes a document to a fz_output stream.
2015-04-15Fix crash in iOS app when share button is usedPaul Gardiner
popover presentations need to be told which button to emerge from
2015-02-25iOS: Fix some warnings in the 64bit buildJoseph Heenan
2015-02-25iOS: conform to recent mupdf API changes.fredrossperry
2015-02-17Rename fz_close_* and fz_free_* to fz_drop_*.Tor Andersson
Rename fz_close to fz_drop_stream. Rename fz_close_archive to fz_drop_archive. Rename fz_close_output to fz_drop_output. Rename fz_free_* to fz_drop_*. Rename pdf_free_* to pdf_drop_*. Rename xps_free_* to xps_drop_*.
2014-10-05iOS: tweak types to avoid warnings in 64 bit buildsJoseph Heenan
Still more warnings left.
2014-10-04iOS: Add missing [super viewWillAppear/Disappear] callsJoseph Heenan
Spotted by xcode6 analyser
2014-10-04iOS: Move instance variables from .h to .mJoseph Heenan
These are private details that, since changes in Xcode, no longer need to be exposed in the headers.
2014-07-17Fix odd animation when opening a document on iOS.Matt Holgate
The background colour of the MuDocumentController's root view wasn't set, so the MuLibraryController was showing through until it had been removed from the screen. Fix by setting the background colour to gray - the same colour as the window.
2014-07-16Fix page changing when rotating the device.Matt Holgate
A bug in UIKit means our 'scrollViewDidScroll' method is called during screen rotation. This ended up corrupting our current page number because the width of the screen had changed at this point, but the pages hadn't yet been resized/repositioned (I assume). The workaround is to ignore calls to scrollViewDidScroll during rotation.
2014-07-07Fix disabled state of bar buttons on iPhone/iPod Touch.Matt Holgate
Previously on iOS 7, bar buttons didn't change visually when disabled. Also improves the look and feel - the buttons are now tinted in the highlighted state rather than showing a grey background. On iOS 7, the iPhone/iPad buttons style match. Tested on iOS 6 iPad/iPod and iOS 7 iPad/iPod.
2014-07-03Disable document interaction features when reflow enabled.Matt Holgate
The features do not work in reflow mode - Android already disables them.
2014-06-26Fix various Xcode analyzer warnings.Matt Holgate
Most were pretty harmless, and were addressed by renaming functions to match the Core Foundation naming conventions, but there was one actual memory leak, and some potential uses of uninitialised data.
2014-04-24iOS: remove the annotations button for non-interactive document typesPaul Gardiner
2014-04-24iOS: add support for sharing documents with other appsPaul Gardiner
2014-04-22Fix iOS formatting.Tor Andersson
2014-04-18iOS: use bitmap based printingPaul Gardiner
allows printing of file types other than PDF
2014-04-18iOS: add AirPrint supportPaul Gardiner
2014-04-02iOS: ensure that the slider has the correct size if hidden during device ↵Paul Gardiner
rotation
2014-01-13iOS: attach the slider to the toolbar differently for iOS 7Paul Gardiner
Under iOS 7, the slider becomes inoperable when included a toolbar item in the standard way. Instead just add it as a subview, being careful to also remove it to avoid multiple copies
2014-01-10iOS: correctly handle document changes that may affect several pagesPaul Gardiner
Interaction with forms may change several pages, so all pages currently represented by view need updating.
2014-01-10iOS: on iPhone use custom buttons to accommodate shortage of spacePaul Gardiner
Otherwise, in portrait mode, there isn’t enough room for all five buttons and some are not displayed.
2014-01-09Remove comment header blurb from ios files.Tor Andersson
2014-01-09iOS: save changes on returning to the libraryPaul Gardiner
Also change the way the back button works, using an explicit action, rather than relying on the navigation controller. Doing so allowed an alert dialog to be displayed asking if document changes should be discarded or saved. It also allowed the word-based button to be replaced by an icon-based one, which saves space (important for iPod and iPhone). We may want to also save on other occasions, but this at least provides some way to do so.
2014-01-07iOS: remove search-bar-transparency hackPaul Gardiner
Doesn’t work in iOS 7.1: removes the the whole text view
2014-01-07iOS: don’t allow hiding of the navigation bar when it is other than at the ↵Paul Gardiner
root menu Seems more natural and avoids cases where tapping doesn’t bring the bar back, hence trapping the user in one of the submodes.
2013-11-27iOS: some fixes for iOS 7Paul Gardiner
2013-11-22iOS; remove use of deprecated functions and fix other warningsPaul Gardiner
2013-11-22iOS: support annotation deletionPaul Gardiner
2013-11-20iOS: support creation of Ink annotationsPaul Gardiner
2013-11-19iOS: add support for creating markup annotationsPaul Gardiner
2013-11-07iOS: fix non-appearance of buttons for files with no outlinePaul Gardiner
2013-10-16iOS: add support for selecting form choice fieldsPaul Gardiner
2013-10-16iOS: support filling in of text form fieldsPaul Gardiner
2013-10-09iOS: implement internal-link followingPaul Gardiner
Also: add hooks for the other link types remove unnecessary protocol from MuPageViewReflow turn off optimizations for the debug build
2013-09-25iOS: while adjusting reflow zoom, refresh only the visible pagePaul Gardiner
At end of gesture all pages are refreshed so that newly-becoming-visible pages appear at the correct zoom.
2013-09-24iOS: add reflow modePaul Gardiner
2013-09-24iOS: use ObjC-level ref counting to control lifetime of fz_documentPaul Gardiner
With the latest version if iOS, timing changes were causing crashes during close down of a MuDocumentController. This change isolates us from those changes.
2013-09-17iOS: split the classes into separate filesPaul Gardiner