Commit Graph
59 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau 3758ebf9e5 Add flag "showRemoveButton" to AnnotationViewManager, to not show the button if wanted 2013-12-12 18:07:42 +01:00
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
Philip Peitsch 09d16af16b Provide a sourceURL for runtime.js in all programs 2013-11-21 23:41:40 +11: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 57ef0fa0c7 Add some guidelines for using custom CSS (such as fonts) in the viewer
by way of a commented reference to a local.css and a
boilerplate-ish example file
2013-08-28 16:11:19 +02:00
Aditya Bhatt f02711c8b1 Don't hide fullscreen and download buttons for small screens 2013-08-21 09:14:04 +02:00
Aditya Bhatt 374ffc2fbc * Allow annotations to be enabled/disabled via OdfCanvas
* Documentation++
* Enable annotations by default in editor and viewer.
* Detach range in highlighter after use

Also: Annotation handling is broken when annotations overlap. Add TODO for
that.
2013-08-01 16:17:08 +02:00
Aditya Bhatt a478b71e66 Disable -webkit-box and siblings to avoid horizontal scrolling 2013-07-31 19:04:16 +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 ad2d6f9cd5 Move the presentation, fullscreen, and download buttons to the top 2013-07-16 14:37:54 +02:00
Aditya Bhatt 07cb8426b0 Center align the displayed document both vertically and horizontally 2013-07-15 18:46:39 +02:00
Aditya Bhatt 3948818397 Remove annoying background image from default state of button (only
visible in mobile)
2013-07-15 18:08:45 +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 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