Commit Graph
35 Commits
Author SHA1 Message Date
Aditya Bhatt c99e4d354e Add NLNet and KO logos to viewer's about dialog. 2013-12-09 18:55:40 +01:00
Aditya Bhatt 1416a8bb7f Let viewer be loaded without a plugin as well. 2013-11-27 19:52:57 +01:00
Aditya Bhatt 5108ee6585 Add "about" information to the viewer,
including an attribution line in the title bar
and plugin information in an about dialog.
2013-11-27 19:52:54 +01:00
Friedrich W. H. Kossebau c2a795e668 Update link to repo: now https://github.com/kogmbh/WebODF/ 2013-10-23 18:20:30 +02:00
Friedrich W. H. Kossebau 508570dab8 Add copy of the AGPL3 to sources (+ add to created zip files) 2013-10-21 17:55:16 +02:00
Friedrich W. H. Kossebau 11d94bb98e Support PageDown/PageUp buttons in viewer 2013-08-30 18:55:09 +02:00
Aditya Bhatt 17717c7f8d Add touchable overlays!
* Close button in presentation mode
* Left and right navigation buttons in small screen fit-to-page modes
that fade in when interaction happens and then fade out
2013-07-16 20:06:09 +02:00
Aditya Bhatt 917b7f8b19 Tiny fix: Call showPage before setting the zoom level in viewer, so that
only the dimensions of the visible slide are taken into account for
calculating scale. Fixes the bug where in firefox the slideshow can
sometimes start off as very tiny.
2013-07-15 10:52:44 +02:00
Aditya Bhatt 77c2357ff5 * Cleaer code
* Additional very simple keyboard shortcuts for navigation in
presentation mode: click, right-click, space, shift+space.
2013-07-14 01:03:24 +02:00
Aditya Bhatt 465eb8c3e7 Add a 'presentation mode' that switches to fullscreen and hides the UI. 2013-07-13 23:50:45 +02:00
Aditya Bhatt 48904fcc24 New changes to viewer deemed necessary after writing a PDF plugin:
* Reduced the number of getElementById calls for some often-used elements
* Added canvasContainer.onscroll handling - which will call the onScroll
of the viewer plugin, if present; for example for updating page numbers
or updating the rendering (if we are using lazy loading)
* Added a delayedRefresh() function which starts a timeout to run the
onScroll() function for lazy rendering refresh, but unloads the previous
timeout if delayedRefresh() is called again, so you can resize the
window rapidly as much as you want and as long as you want and the
rendering redraw will only happen 300 milliseconds after you stop doing
that. (In case of ODF, this will still seem butter-smooth and
continuously resizing because it's just CSS scaling, and no canvas
redrawing since the onScroll of ODFViewerPlugin is not defined)
* Added several small fixes suggested by Jos
2013-07-05 13:47:23 +02:00
Aditya Bhatt 41b6655d2b Always call fixContainerSize when switching pages via the PageSwitcher,
to account for slide dimensions (which may not be the same as the entire
document's size)
2013-07-05 13:47:22 +02:00
Aditya Bhatt 290832d755 Use evt.keyCode instead of keyIdentifier, more crossplatform 2013-07-05 13:47:22 +02:00
Aditya Bhatt dda70df798 Remove methods that should not be directly accessible, from the viewer
api.
Apidox++
2013-07-05 13:47:22 +02:00
Aditya Bhatt a932baac8a Make the slideshow flag into a method, and make the logic for displaying
toolbars more clear
2013-07-05 13:47:22 +02:00
Aditya Bhatt 21d92bb0e6 Remove unneeded variables, fix zooming 2013-07-05 13:47:22 +02:00
Aditya Bhatt 9ed4acb905 Refactor and make API
Rename viewer.js to ODFViewerPlugin.js
Add a viewer.js and pull non-odf specific methods into this API from
the ODF plugin

Initialize Viewer with ODFViewerPlugin during window.onload
2013-07-05 13:47:22 +02:00
Jos van den Oever eecfa4d201 Remove trailing spaces and tabs. 2013-06-19 16:47:52 +02:00
Aditya Bhatt c7aa8ff852 Make viewer runnable from source directory 2013-06-12 12:35:58 +02:00
Tobias Hintze c4bfc82f0f viewer: fix issue with down-button disabled by another div 2012-10-30 10:08:55 +01:00
Tobias Hintze 89ad7ecd4e include programs/viewer in the build and create zip
* creates a viewer-$ver.zip
* compiles viewer.js
* removes the compiled webodf.js from programs/viewer/ in source
2012-10-27 23:08:13 +02:00
Tobias Hintze 375457d233 update license and copyright headers 2012-10-21 20:46:20 +02:00
Aditya Bhatt 5a9e57929c page navigation controls 2012-09-22 07:14:03 +05:30
Aditya Bhatt 48ef2e69ff add titlebar 2012-09-22 05:44:54 +05:30
Aditya Bhatt d1705b92ac prelimanary ODP viewing 2012-09-22 03:44:14 +05:30
Aditya Bhatt f55454ad69 Un-Yoda-fy if statement - if 'custom', value is 2012-09-21 02:26:51 +05:30
Aditya Bhatt feafce137e page view styles menu works 2012-09-21 00:40:31 +05:30
Aditya Bhatt ff98c97f39 update viewer 2012-09-20 21:31:54 +05:30
Aditya Bhatt 1cad5b64cf set window title to document filename 2012-09-20 11:36:30 +05:30
Aditya Bhatt e002eb1c9c make zoom buttons work, 10% zooming 2012-09-19 21:36:14 +05:30
Aditya Bhatt 6794d95417 set visibility as hidden instead of deleting button, avoid breaking event handling 2012-09-19 19:01:54 +05:30
Aditya Bhatt bf7b0c1899 check for Fullscreen API support, if it does not exist, delete the button 2012-09-19 18:59:37 +05:30
Aditya Bhatt 193ea38132 Fullscreen mode, particularly useful when the viewer is embedded as an iframe, and you want to see the full thing. Uses the new HTML5 Fullscreen API 2012-09-19 18:22:21 +05:30
Aditya Bhatt 2d229c2a7c download button, working 2012-09-19 17:34:05 +05:30
Aditya Bhatt 9fdab7069c Viewer app. Added basic toolbar and canvas. 2012-09-19 16:00:38 +05:30