Commit Graph
43 Commits
Author SHA1 Message Date
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 665478f7d8 Let plugins load their own styles themselves 2013-07-12 11:54:28 +02:00
Aditya Bhatt a12f490e2b Make ODFViewerPlugin.js load webodf.js upon initialization, instead of
hard-linking it in index.html
2013-07-12 11:50:01 +02:00
Aditya Bhatt 221e0f59e3 * Make index.html completely agnostic of any plugins
* Add a PluginLoader with knowledge of filetype -> plugin mapping
2013-07-11 16:17:43 +02:00
Jos van den Oever 71058c5b5c Add ODFViewerPlugin.js to viewer build target. 2013-07-10 14:35: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
Jos van den Oever 9b83512ada Add wordpress plugin as zipped file. 2013-06-13 15:32:41 +02:00
Jos van den Oever afea6bfd74 Zip viewer, editor and wordpress in to a single zip file. 2013-06-13 15:32:41 +02:00
Aditya Bhatt c7aa8ff852 Make viewer runnable from source directory 2013-06-12 12:35:58 +02:00
Jos van den Oever e21635d074 Fix parallelization of cmake build.
There is a remark in the CMake documentation that says:
  Do not list the output in more than one independent target that may build in parallel or the two instances of the rule may conflict (instead use add_custom_target to drive the command and make the other targets depend on that one).
This patch makes sure that that advice is followed in many more places in the WebODF build.
2013-04-16 11:40:40 +02:00
Tobias Hintze 694a80e6e0 add a README-viewer.odt to programs/viewer/ and in viewer-$ver.zip 2013-03-23 14:01:20 +01:00
Jos van den Oever 4893efd999 Add webodf.js that is a wrapper to load runtime.js.
This allows using the same index.html in development and deployment. Just replace the wrapper webodf.js with the compiled webodf.js.
2012-11-01 13:54:30 +01:00
Tobias Hintze c4bfc82f0f viewer: fix issue with down-button disabled by another div 2012-10-30 10:08:55 +01:00
Tobias Hintze 994a34179d diverse cleanup in cmake files:
* reduce occurance of doing stuff in source dir (test.odt)
* create subdir with cmakelists.txt for nodetest and qtjsruntimetest
* create target for webodf.css.js and thus fix `make -j`-capability
2012-10-29 16:15:56 +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
Friedrich W. H. Kossebau de1a79c36f Update all "@source:" links to gitorious.org/webodf/webodf 2012-10-12 19:09:09 +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 e44144765c minor style changes 2012-09-20 13:45:25 +05:30
Aditya Bhatt 1cad5b64cf set window title to document filename 2012-09-20 11:36:30 +05:30
Aditya Bhatt de7a849ad9 indent 2012-09-20 11:36:08 +05:30
Aditya Bhatt e002eb1c9c make zoom buttons work, 10% zooming 2012-09-19 21:36:14 +05:30
Aditya Bhatt 834b86832e add toolbar controls for zooming 2012-09-19 21:15:56 +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 819e2dbbfe toolbar button for fullscreen, with image 2012-09-19 17:00:27 +05:30
Aditya Bhatt 9fdab7069c Viewer app. Added basic toolbar and canvas. 2012-09-19 16:00:38 +05:30