odfkit:webodf.git
10 years agouse /usr/bin/env instead of /bin/env
Tobias Hintze [Fri, 18 Nov 2011 22:40:09 +0000 (23:40 +0100)]
use /usr/bin/env instead of /bin/env

10 years agorequire at least qt-4.7.0
Tobias Hintze [Fri, 18 Nov 2011 22:39:56 +0000 (23:39 +0100)]
require at least qt-4.7.0

10 years agoFix crash when there is no fontface declaration.
Jos van den Oever [Fri, 18 Nov 2011 11:24:10 +0000 (12:24 +0100)]
Fix crash when there is no fontface declaration.

10 years agoRead mimetypes from the manifest files.
Jos van den Oever [Fri, 18 Nov 2011 10:04:23 +0000 (11:04 +0100)]
Read mimetypes from the manifest files.
This magically adds support for rendering svg files.

10 years agoCompile fix
Jos van den Oever [Thu, 17 Nov 2011 09:16:26 +0000 (10:16 +0100)]
Compile fix

10 years agoAdd initial support for showing embedded fonts in webodf.
Jos van den Oever [Thu, 17 Nov 2011 08:33:29 +0000 (09:33 +0100)]
Add initial support for showing embedded fonts in webodf.
Caveats:
- probably only works with truetype fonts in non-IE browsers
- small hack that retrieves the stylesheet to add the rule to: should ideally be make available as a set of rules in the odf container or loaded from OdfCanvas instead of from the OdfContainer.

10 years agoCheck that a document is actually loaded before using it.
Jos van den Oever [Wed, 16 Nov 2011 15:37:19 +0000 (16:37 +0100)]
Check that a document is actually loaded before using it.
Some parts of ODF are not obligatory.

10 years agoEnable validation of ODF 1.0 and 1.1: it is good enough and flags the same files...
Jos van den Oever [Tue, 15 Nov 2011 18:31:49 +0000 (19:31 +0100)]
Enable validation of ODF 1.0 and 1.1: it is good enough and flags the same files invalid as jing does.

10 years agoFix JSLint errors.
Jos van den Oever [Tue, 15 Nov 2011 17:32:17 +0000 (18:32 +0100)]
Fix JSLint errors.

10 years agoCompile fixes and additional type annotations.
Jos van den Oever [Tue, 15 Nov 2011 16:44:59 +0000 (17:44 +0100)]
Compile fixes and additional type annotations.

10 years agoMake support for the Relax NG "combine" attribute more elegant.
Jos van den Oever [Tue, 15 Nov 2011 16:14:47 +0000 (17:14 +0100)]
Make support for the Relax NG "combine" attribute more elegant.

10 years agoAdd support for the Relax NG "combine" attribute.
Jos van den Oever [Tue, 15 Nov 2011 15:34:17 +0000 (16:34 +0100)]
Add support for the Relax NG "combine" attribute.

10 years agoPropery report non-zero exit code when a javascript error occurs in a script.
Jos van den Oever [Tue, 15 Nov 2011 13:05:32 +0000 (14:05 +0100)]
Propery report non-zero exit code when a javascript error occurs in a script.

10 years agoSet the current paths so that javascript files can be found in runtime.js.
Jos van den Oever [Tue, 15 Nov 2011 12:26:57 +0000 (13:26 +0100)]
Set the current paths so that javascript files can be found in runtime.js.

10 years agoSpecify that mobile Firefox is supported.
Jos van den Oever [Fri, 21 Oct 2011 10:32:08 +0000 (12:32 +0200)]
Specify that mobile Firefox is supported.

10 years agoAdd icon to firefox extension.
Jos van den Oever [Fri, 21 Oct 2011 10:21:21 +0000 (12:21 +0200)]
Add icon to firefox extension.

10 years agoUpdate version number of firefox extension.
Jos van den Oever [Fri, 21 Oct 2011 09:37:49 +0000 (11:37 +0200)]
Update version number of firefox extension.

10 years agoAdd workarounds for Firefox extension submission.
Jos van den Oever [Fri, 21 Oct 2011 09:21:56 +0000 (11:21 +0200)]
Add workarounds for Firefox extension submission.

Firefox extensions are submitted to static code analysis. In this analysis, some features are flagged and some are fixed by this commit:
 - eval() is not allowed. it is replaced by evil(). Only dead code refers to it.
 - the variable 'windows' is renamed to 'mywindow'.
 - setTimeout calls a literal function instead of a function variable.

10 years agoFix some warnings.
Jos van den Oever [Wed, 19 Oct 2011 19:00:43 +0000 (21:00 +0200)]
Fix some warnings.

10 years agoWorkaround for error reported by the closure compiler.
Jos van den Oever [Wed, 19 Oct 2011 08:28:19 +0000 (10:28 +0200)]
Workaround for error reported by the closure compiler.

10 years agoUse Java_JAVA_EXECUTABLE instead of CMAKE_Java_RUNTIME.
Jos van den Oever [Wed, 19 Oct 2011 08:27:54 +0000 (10:27 +0200)]
Use Java_JAVA_EXECUTABLE instead of CMAKE_Java_RUNTIME.
Both point to the java runtime executable.

10 years agoUse JavaScript to zip the xpi file.
Jos van den Oever [Wed, 19 Oct 2011 07:58:18 +0000 (09:58 +0200)]
Use JavaScript to zip the xpi file.

Not all parts of this solution were committed previously.

10 years agoRemove check for Java compiler: it is not needed anymore.
Jos van den Oever [Wed, 19 Oct 2011 07:20:26 +0000 (09:20 +0200)]
Remove check for Java compiler: it is not needed anymore.

10 years agoUse node and javascript for zipping the Firefox extension.
Jos van den Oever [Tue, 18 Oct 2011 20:06:00 +0000 (22:06 +0200)]
Use node and javascript for zipping the Firefox extension.
Using cmake to do zipping was too hard. Luckily, ODF is also often a zip file and hence the zip code from webodf can be used to zip the xpi file.

10 years agoCheck that cmake is not run from this directory.
Jos van den Oever [Tue, 18 Oct 2011 20:05:06 +0000 (22:05 +0200)]
Check that cmake is not run from this directory.

10 years agoUpdate Closure Compiler.
Jos van den Oever [Sun, 16 Oct 2011 19:40:18 +0000 (21:40 +0200)]
Update Closure Compiler.

10 years agoAdd WebODF Firefox extension.
Jos van den Oever [Sun, 16 Oct 2011 19:35:34 +0000 (21:35 +0200)]
Add WebODF Firefox extension.

10 years agoBetter uri encoding and support for ODF mimetypes.
Jos van den Oever [Sat, 15 Oct 2011 17:12:30 +0000 (19:12 +0200)]
Better uri encoding and support for ODF mimetypes.

10 years agoAdd support for images in flat xml.
Jos van den Oever [Fri, 14 Oct 2011 10:46:13 +0000 (12:46 +0200)]
Add support for images in flat xml.

10 years agoAdd support for loading flat xml ODF files.
Jos van den Oever [Fri, 14 Oct 2011 10:06:28 +0000 (12:06 +0200)]
Add support for loading flat xml ODF files.

11 years agoHide the change tracking elements.
Jos van den Oever [Thu, 6 Oct 2011 12:29:44 +0000 (14:29 +0200)]
Hide the change tracking elements.

11 years agoOpen files relative to the html or js file.
Jos van den Oever [Thu, 6 Oct 2011 12:13:44 +0000 (14:13 +0200)]
Open files relative to the html or js file.

11 years agoUpdate to newer node version.
Jos van den Oever [Wed, 5 Oct 2011 08:06:19 +0000 (10:06 +0200)]
Update to newer node version.

11 years agoAdd more dependencies to fix bugs in parallel make calls
Jos van den Oever [Wed, 5 Oct 2011 07:57:10 +0000 (09:57 +0200)]
Add more dependencies to fix bugs in parallel make calls
make -j4 should work without error now.

11 years agoFix compilation.
Jos van den Oever [Mon, 3 Oct 2011 17:31:23 +0000 (19:31 +0200)]
Fix compilation.

11 years agoSimplify dynamic creation of package objects.
Jos van den Oever [Mon, 3 Oct 2011 09:19:33 +0000 (11:19 +0200)]
Simplify dynamic creation of package objects.

11 years agoFix editability in latest chromium.
Jos van den Oever [Fri, 30 Sep 2011 20:29:57 +0000 (22:29 +0200)]
Fix editability in latest chromium.

11 years agoDetect GIF files and use proper mimetype in data url.
Jos van den Oever [Fri, 30 Sep 2011 19:12:07 +0000 (21:12 +0200)]
Detect GIF files and use proper mimetype in data url.

11 years agoJSLint fixes.
Jos van den Oever [Fri, 30 Sep 2011 18:59:46 +0000 (20:59 +0200)]
JSLint fixes.

11 years agoAdd simple tool to compare webodf rendering to a prerendered png.
Jos van den Oever [Fri, 30 Sep 2011 18:42:24 +0000 (20:42 +0200)]
Add simple tool to compare webodf rendering to a prerendered png.

11 years agoRemove svg:title and svgdesc from the layout flow.
Jos van den Oever [Fri, 30 Sep 2011 18:35:15 +0000 (20:35 +0200)]
Remove svg:title and svgdesc from the layout flow.

11 years agoFix positioning for page anchors.
Jos van den Oever [Fri, 30 Sep 2011 18:31:23 +0000 (20:31 +0200)]
Fix positioning for page anchors.

11 years agoUse manifest.js files to speed up loading.
Jos van den Oever [Fri, 30 Sep 2011 14:23:35 +0000 (16:23 +0200)]
Use manifest.js files to speed up loading.
The manifest.js file lists for each directory in the path, the available js files. This avoids looking for files in places where they are not.

11 years agoFix warning in Firefox 6.
Jos van den Oever [Fri, 30 Sep 2011 14:00:30 +0000 (16:00 +0200)]
Fix warning in Firefox 6.

11 years agoUse "use strict" to have more sanity checks.
Jos van den Oever [Fri, 30 Sep 2011 10:23:09 +0000 (12:23 +0200)]
Use "use strict" to have more sanity checks.

11 years agoAllow embedding of fonts in generated pdf.
Jos van den Oever [Fri, 30 Sep 2011 07:30:52 +0000 (09:30 +0200)]
Allow embedding of fonts in generated pdf.

11 years agoFix conditional statement: missing negation.
Jos van den Oever [Thu, 29 Sep 2011 14:06:16 +0000 (16:06 +0200)]
Fix conditional statement: missing negation.

11 years agoAvoid warning, by detecting jpeg files
Jos van den Oever [Thu, 29 Sep 2011 13:12:04 +0000 (15:12 +0200)]
Avoid warning, by detecting jpeg files
and encoding the mimetype in the data URI.

11 years agoAdd all JSLint configuration options.
Jos van den Oever [Thu, 29 Sep 2011 12:37:02 +0000 (14:37 +0200)]
Add all JSLint configuration options.
This makes it easier to know what has been defined.

11 years agoUpdate to a new JSLint
Jos van den Oever [Thu, 29 Sep 2011 11:57:04 +0000 (13:57 +0200)]
Update to a new JSLint
and fix all the new errors it finds.

11 years agoBetter positioning of frames that are anchored to paragraphs.
Jos van den Oever [Thu, 29 Sep 2011 09:29:51 +0000 (11:29 +0200)]
Better positioning of frames that are anchored to paragraphs.

11 years agoCompile fixes.
Jos van den Oever [Thu, 22 Sep 2011 16:49:17 +0000 (18:49 +0200)]
Compile fixes.

11 years agoShow error message if the browser cannot open the files.
Jos van den Oever [Thu, 22 Sep 2011 11:49:04 +0000 (13:49 +0200)]
Show error message if the browser cannot open the files.
This happens in e.g. Internet Explorer 9.

11 years agoFix httpserver ip number.
Jos van den Oever [Thu, 22 Sep 2011 11:39:13 +0000 (13:39 +0200)]
Fix httpserver ip number.

11 years agoAdd fix for Opera.
Jos van den Oever [Thu, 22 Sep 2011 11:33:37 +0000 (13:33 +0200)]
Add fix for Opera.

11 years agoAdd relax ng validation.
Jos van den Oever [Thu, 22 Sep 2011 09:58:28 +0000 (11:58 +0200)]
Add relax ng validation.
The error message are not helpful, they only indicate if there is a problem.
Also, the schemas for 1.0 and 1.1 are not supported yet.

11 years agoCleanup of older diagnosis code.
Jos van den Oever [Wed, 21 Sep 2011 14:52:39 +0000 (16:52 +0200)]
Cleanup of older diagnosis code.

11 years agoAdd first version of docnosis.
Jos van den Oever [Wed, 21 Sep 2011 14:31:14 +0000 (16:31 +0200)]
Add first version of docnosis.
docnosis is a javascript file that analyses ODF files and reports errors.

11 years agoFix bug where saving fails when nothing is currently being edited.
Jos van den Oever [Tue, 30 Aug 2011 13:38:48 +0000 (15:38 +0200)]
Fix bug where saving fails when nothing is currently being edited.

11 years agoBuild fix for Mac OS X 10.7.
Jos van den Oever [Mon, 29 Aug 2011 13:20:07 +0000 (15:20 +0200)]
Build fix for Mac OS X 10.7.

11 years agoAdd functions to turn editability on and off.
Jos van den Oever [Fri, 26 Aug 2011 20:33:28 +0000 (22:33 +0200)]
Add functions to turn editability on and off.
Patch contributed by Robert Plummer.

11 years agoAdd image to test clipping.
Jos van den Oever [Fri, 26 Aug 2011 10:38:28 +0000 (12:38 +0200)]
Add image to test clipping.
The HTML file is committed since it was used to algorithmically generate the image from a <canvas/> element.

11 years agoDisable editing for now.
Jos van den Oever [Thu, 25 Aug 2011 18:41:18 +0000 (20:41 +0200)]
Disable editing for now.

11 years agoDisable editing for now.
Jos van den Oever [Thu, 25 Aug 2011 18:33:42 +0000 (20:33 +0200)]
Disable editing for now.

11 years agoUpdate dependencies.
Jos van den Oever [Thu, 25 Aug 2011 11:38:45 +0000 (13:38 +0200)]
Update dependencies.

11 years agoUpdate Node.JS to latest stable version.
Jos van den Oever [Thu, 4 Aug 2011 10:27:32 +0000 (12:27 +0200)]
Update Node.JS to latest stable version.

11 years agoSimplify Qt based executables.
Jos van den Oever [Tue, 26 Jul 2011 11:22:33 +0000 (13:22 +0200)]
Simplify Qt based executables.
Zip implementation is no longer in C++ but in JavaScript. Runtime customization is now shared between the two Qt executables.

11 years agoChange mechanism for initializing.
Jos van den Oever [Tue, 26 Jul 2011 10:18:47 +0000 (12:18 +0200)]
Change mechanism for initializing.
Use setTimeout instead of onload="init()" to give the runtime a chance to insert custom function in the Runtime instance.

11 years agoPrint summary at the end of the tests.
Jos van den Oever [Tue, 26 Jul 2011 10:17:23 +0000 (12:17 +0200)]
Print summary at the end of the tests.

11 years agoRemove temporary file after running test.
Jos van den Oever [Tue, 26 Jul 2011 10:16:43 +0000 (12:16 +0200)]
Remove temporary file after running test.

11 years agoFix bug where data url was too long.
Jos van den Oever [Tue, 26 Jul 2011 10:15:39 +0000 (12:15 +0200)]
Fix bug where data url was too long.

11 years agoFix bug where data was read past the end of the file.
Jos van den Oever [Tue, 26 Jul 2011 10:14:06 +0000 (12:14 +0200)]
Fix bug where data was read past the end of the file.

11 years agoAdd command-line unit test with qtjsruntime.
Jos van den Oever [Wed, 20 Jul 2011 13:21:26 +0000 (15:21 +0200)]
Add command-line unit test with qtjsruntime.
This has the advantage that all unit tests are run. The Rhino and Node.JS unit tests, while valuable, cover only part of the tests.

11 years agoTest that each test is a function and exit if this is not the case.
Jos van den Oever [Wed, 20 Jul 2011 07:59:22 +0000 (09:59 +0200)]
Test that each test is a function and exit if this is not the case.

11 years agoReturn with exit code 1 if a JavaScript exception occurs while running the tests.
Jos van den Oever [Wed, 20 Jul 2011 07:38:09 +0000 (09:38 +0200)]
Return with exit code 1 if a JavaScript exception occurs while running the tests.

11 years agoAdd empty interface, class and test class for operational transformation.
Jos van den Oever [Wed, 20 Jul 2011 06:28:31 +0000 (08:28 +0200)]
Add empty interface, class and test class for operational transformation.

11 years agoFix rendering of pdf and png from a webpage or javascript.
Jos van den Oever [Tue, 19 Jul 2011 16:32:13 +0000 (18:32 +0200)]
Fix rendering of pdf and png from a webpage or javascript.

11 years agoUpgrade to new version of JSLint.
Jos van den Oever [Wed, 13 Jul 2011 08:00:16 +0000 (10:00 +0200)]
Upgrade to new version of JSLint.
And update code to meet better checks.

11 years agoAdd event handler mechanism to OdfCanvas.
Jos van den Oever [Wed, 13 Jul 2011 07:27:57 +0000 (09:27 +0200)]
Add event handler mechanism to OdfCanvas.

11 years agoDisallow compiling in the source directory.
Jos van den Oever [Fri, 8 Jul 2011 14:08:56 +0000 (16:08 +0200)]
Disallow compiling in the source directory.

11 years agoRequire CMake 2.8.2
Jos van den Oever [Fri, 8 Jul 2011 09:15:35 +0000 (11:15 +0200)]
Require CMake 2.8.2
CMake version 2.8.2 is needed to have support for zip files in external projects.

11 years agoAdd missing dependencies.
Jos van den Oever [Tue, 28 Jun 2011 14:33:25 +0000 (16:33 +0200)]
Add missing dependencies.

11 years agoAdd convience target for make: webodf.js.
Jos van den Oever [Tue, 28 Jun 2011 14:29:30 +0000 (16:29 +0200)]
Add convience target for make: webodf.js.

11 years agoAdd support to return the index.html file when requesting a directory.
Jos van den Oever [Tue, 28 Jun 2011 12:41:08 +0000 (14:41 +0200)]
Add support to return the index.html file when requesting a directory.

11 years agoUnescape path so filenames with special characters are supported.
Jos van den Oever [Mon, 27 Jun 2011 12:59:55 +0000 (14:59 +0200)]
Unescape path so filenames with special characters are supported.

11 years agoUpdate to newer NodeJS, Closure Compiler and Rhino.
Jos van den Oever [Mon, 27 Jun 2011 11:09:25 +0000 (13:09 +0200)]
Update to newer NodeJS, Closure Compiler and Rhino.
And fixes to code and html pages.

11 years agoAdd export.js needed to build webodf.js.
Jos van den Oever [Wed, 15 Jun 2011 20:01:24 +0000 (22:01 +0200)]
Add export.js needed to build webodf.js.

11 years agoAutomatically set fixed attributes withonly one possible value
Jos van den Oever [Sat, 11 Jun 2011 22:19:30 +0000 (00:19 +0200)]
Automatically set fixed attributes withonly one possible value
and also put required attributes in the constructor.

11 years agoAdd type support to mapping.
Jos van den Oever [Sat, 11 Jun 2011 16:47:49 +0000 (18:47 +0200)]
Add type support to mapping.

11 years agoWrite in the comment if an attribute is required or not.
Jos van den Oever [Sat, 11 Jun 2011 15:22:44 +0000 (17:22 +0200)]
Write in the comment if an attribute is required or not.

11 years agoFind all attributes by looping.
Jos van den Oever [Sat, 11 Jun 2011 14:31:05 +0000 (16:31 +0200)]
Find all attributes by looping.

11 years agoHandle cases where an attribute can have multiple names properly.
Jos van den Oever [Sat, 11 Jun 2011 14:23:06 +0000 (16:23 +0200)]
Handle cases where an attribute can have multiple names properly.

11 years agoHandle cases where an element can have multiple names properly.
Jos van den Oever [Sat, 11 Jun 2011 13:57:44 +0000 (15:57 +0200)]
Handle cases where an element can have multiple names properly.
And also handle the case where elements with the same name but different definitions occur.

11 years agoSlight refactor.
Jos van den Oever [Sat, 11 Jun 2011 13:54:32 +0000 (15:54 +0200)]
Slight refactor.

11 years agoSort classes in generated C++ header.
Jos van den Oever [Sat, 11 Jun 2011 11:57:17 +0000 (13:57 +0200)]
Sort classes in generated C++ header.

11 years agoSplit RelaxNG validator in two.
Jos van den Oever [Sat, 11 Jun 2011 10:40:11 +0000 (12:40 +0200)]
Split RelaxNG validator in two.
The validator was really two different implementations. These are now split.

11 years agoFinish splitting up the RelaxNG code in a parser and a validator.
Jos van den Oever [Sat, 11 Jun 2011 09:01:16 +0000 (11:01 +0200)]
Finish splitting up the RelaxNG code in a parser and a validator.

11 years agoAdd the parser used in relaxngToCPP.js and update it.
Jos van den Oever [Fri, 10 Jun 2011 18:52:01 +0000 (20:52 +0200)]
Add the parser used in relaxngToCPP.js and update it.

11 years agoAdd compiled version of webodf.js
Jos van den Oever [Fri, 10 Jun 2011 16:51:13 +0000 (18:51 +0200)]
Add compiled version of webodf.js

11 years agoWork for Calligra to make an ODF serializer.
Jos van den Oever [Fri, 10 Jun 2011 13:30:31 +0000 (15:30 +0200)]
Work for Calligra to make an ODF serializer.