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.
* 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
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
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.
* 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