summaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2014-01-27Android: fix to account for document handlersPaul Gardiner
2014-01-20iOS: fix the release buildPaul Gardiner
Change the library copying to use a system variable for the location that works in both builds
2014-01-17Add missing dependencies back into VS2005 project.Robin Watts
Lost as part of the accidental VS2012 change.
2014-01-16Revert change of mupdf.sln from VS2005 format to VS2012.Robin Watts
2014-01-15Remove repeated NDEBUG in release preprocessor list in WinRT projectsMichael Vrhel
2014-01-15Clearer division in WinRT vs std C++ codeMichael Vrhel
To share as much code as possible between the Windows 8 app, windows phone app and Windows desktop app, remove dependencies of Platform and Windows::Foundation in files that interface to mupdf and replace with C/C++ std methods.
2014-01-15Minor changes for windows 8 store validationMichael Vrhel
2014-01-15Fixes for Windows 8.1 store validationMichael Vrhel
We have to clean up the DirectX memory during suspension. Also define NDEBUG for the release cases so that we avoid the use of OutputDebugStringA in error.c which is not allowed in Windows store apps.
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: animate the custom buttons used for the iPhone buildPaul Gardiner
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: better structure the page update codePaul Gardiner
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-09Add tiling into the DirectX printing code.Michael Vrhel
The tiling in x and y is needed to ensure that we can print at high resolutions with devices that have smaller bit map sizes (e.g. the surface). Banding only in the y dimension like we often do is not sufficient. Also fix an open with file association bug that must of occurred with the transition to 8.1 And update WinRT solution for recent changes in mupdf code. This includes the addition of a few new files and the document type registration.
2014-01-09Remove comment header blurb from ios files.Tor Andersson
2014-01-09Update copyright date.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.
2014-01-07iOS: protect against crashing when handling accented chars in choice fieldsPaul Gardiner
Use conversion assuming ascii as a fallback to assuming utf8. The library should be converting to utf8 but doesn’t currently.
2014-01-07iOS: update the form filling dialogs to avoid the keyboard hiding the buttonsPaul Gardiner
Also bring up the keyboard automatically
2014-01-07iOS: fix for document handlersPaul Gardiner
2014-01-07Introduce 'document handlers'.Robin Watts
We define a document handler for each file type (2 in the case of PDF, one to handle files with the ability to 'run' them, and one without). We then register these handlers with the context at startup, and then call fz_open_document... as usual. This enables people to select the document types they want at will (and even to extend the library with more document types should they wish).
2014-01-06add stub files for JPEG-XR supportSimon Bünzli
See SumatraPDF's repo for a Windows-only implementation using WIC.
2014-01-06Android: for scroll steps, use postOnAnimation when availablePaul Gardiner
Using postOnAnimation in place of post noticably improves scroll smoothness. Also avoid posting multiple runnables unnecessarily.
2014-01-03Android: fix buildPaul Gardiner
2014-01-02Add rebinding for fz_streams.Robin Watts
2014-01-02Bug 694732: Android: draw single point strokes when inkingPaul Gardiner
Make single-point strokes display by special casing them as circles. Thanks for Michael Cadilhac for the suggestion.
2014-01-02Bug 694753: Android: Recompute the patch on PageView.update()Paul Gardiner
In some cases freshly-created annotations could fail to appear because the HQ patch was being left in place even when zoomed fully in, and when in that state, the patch was not updated. The bug was usually hidden by an onLayout call being triggered with an out- of-date patch, which causes the HQ patch to be removed. The bug is fixed by having addHq remove the patch when fully zoomed out. Since now addHq may sometimes add the patch and sometimes remove it, I've renamed it to updateHq. Correctness of this fix has not been checked because I was unable to trigger the bad behaviour on my test device.
2013-12-18Android: a few improvements to the view handlingPaul Gardiner
While scrolling, avoid some overheads to do with image scaling that need updating only on a zoom-level change Remove a pointless invalidate call. Avoid calls to removeViewInLayout and removeAllViewsInLayout that were being made in functions not called from onLayout
2013-12-17Bug 694831: Check width and height of bitmap, not width and widthRobin Watts
Thanks to Dale King for reporting this.
2013-12-16iOS: add javascript supportPaul Gardiner
2013-12-14Add in error trapping. Fix warnings. Remove Win8 deprecated calls. Fix ↵Michael Vrhel
issues with surface thumb rendering. Also, make updates for changes made to font names and 3rd party file structures.
2013-11-28Put thirdparty config headers in separate directories.Tor Andersson
Only -I the config header directory if building the thirdparty library, not if using the system library. Fix bug 694808.
2013-11-28Update mupdf to use latest openjpeg pulled from ghostpdl.Robin Watts
The OpenJPEG in gs is v2, with various patches for fixes. These are in the process of being passed upstream. We now automatically pull the openjpeg tree out of GhostPDL and put it in as one particular branch in the thirdparty/openjpeg.git repo. Change to track this in MuPDF. This is in keeping with what we have been doing with the jbig2dec repo for a while now.
2013-11-27iOS: some fixes for iOS 7Paul Gardiner
2013-11-26Import URW fonts version 1.10 converted to CFF by FontForge.Tor Andersson
2013-11-22iOS: fix white-space inconsistencyPaul Gardiner
2013-11-22iOS; remove use of deprecated functions and fix other warningsPaul Gardiner
2013-11-22iOS: support annotation deletionPaul Gardiner
2013-11-22iOS: hold widget rectangles using document coordinatesPaul Gardiner
2013-11-20iOS: support creation of Ink annotationsPaul Gardiner
2013-11-19iOS: add support for creating markup annotationsPaul Gardiner
2013-11-16Increase allocation to include room for string terminator.Robin Watts
Thanks to 'tom' from irc for pointing this out.
2013-11-14Update WinRT project to Windows 8.1 / VS 2013. Fix several issues with zooming.Michael Vrhel
2013-11-11DirectX printing addedMichael Vrhel
After much research it was determined that use of the DirectX 2D methods is the proper way to add printing support to a Windows 8 application. This enables the pages to be rendered as they are requested by the print thread. This occurs for both the print preview screen as well as the print to the output device.
2013-11-11Add tree structure to win32 build.Tor Andersson
2013-11-07iOS: fix non-appearance of buttons for files with no outlinePaul Gardiner
2013-11-04Fix of tab/space issues as well as changing thumbnail scale look ahead to ↵Michael Vrhel
+/- 2. Thanks to Robin for catching this.
2013-11-04Addition of printing support.Michael Vrhel
This uses the xaml printing methods. It is likely that I need to go do a DirectX approach since the xaml printing method could run into memory problems as it seems the architecture requires all the pages to be rendered prior to the print job even starting. Currently checking on this with a contact at MS. I wanted to get this code in place now since it is working and it has the needed framework for much of what we want. A change to DirectX requires a changes in the solution file that may be complicated and so it makes sense to do a split here with respect to providing printing support.