Statistics
| Branch: | Revision:

root / webodf / lib @ 6af4a406

# Date Author Comment
6af4a406 04/04/2011 12:49 am Jos van den Oever

Fix loading for large rng file and add a few more needed functions.

f0d58e52 04/03/2011 11:33 pm Jos van den Oever

Fix latest unit test.

8e519e52 04/03/2011 10:42 pm Jos van den Oever

Make circular dependencies possible.

e0d15469 04/03/2011 07:52 pm Jos van den Oever

snapshot after more tests work with new validator

d4ace996 04/03/2011 07:30 pm Jos van den Oever

snapshot after a fourth and fifth test work with new validator

bf6b67f4 04/03/2011 07:21 pm Jos van den Oever

snapshot after a second and third test work with new validator

4335f3af 04/03/2011 06:51 pm Jos van den Oever

snapshot after one test works with new validator

a0d6e35e 04/03/2011 11:20 am Jos van den Oever

snapshot

7c50d5e1 04/03/2011 11:18 am Jos van den Oever

snapshot

137ea7b0 04/03/2011 10:05 am Jos van den Oever

snapshot

ae3bd192 04/02/2011 11:02 pm Jos van den Oever

follow simplication specification more closely

4e89ba03 04/02/2011 09:46 pm Jos van den Oever

snapshot

1307a814 03/31/2011 05:39 pm Jos van den Oever

Fix name resultion for attribute names.
Milestone: we can now validate the ODF 1.2 in the flat XML form. This XML file is nearly 10 megabytes and the specification rng is about 440 kilobytes.

9c4c846c 03/31/2011 10:21 am Jos van den Oever

Add an extra check to make sure an attribute is really not defined.
If an element is not present, getAttributeNS will return an empty string, but an empty string is possible attribute value, so an extra check is needed.

2204858e 03/31/2011 09:39 am Jos van den Oever

Fix bug in interleave that was exposed by test16.xml

d2c20f2f 03/31/2011 08:50 am Jos van den Oever

If an interleave element has a oneOrMore child, try it every round where the current node has moved.

bcd1b2fe 03/31/2011 08:28 am Jos van den Oever

When in an interleave element, only report an error if there was an error.

53ae3b82 03/30/2011 11:35 am Jos van den Oever

Change the way <interleave/> is handled.
Now all interleave elements that have interleave children, merge their children.
That way it is easier to handle the complicated interleave scenarios.
This also fixed a bug that prevented test13.xml from passing validation.

b498bdd6 03/30/2011 12:21 am Jos van den Oever

Fix a touch problem with efficiently traversing possibilities for attributes.

8e718229 03/29/2011 08:19 pm Jos van den Oever

Only try an interleaved pattern twice if it involves subelements and not attributes. This avoid expensive re-iterations.

c186e977 03/29/2011 06:03 pm Jos van den Oever

If first entry in interleave element does not advance the walker, try it again at the end.

a00c131b 03/29/2011 03:50 pm Jos van den Oever

Move on after parsing a text node.

ef61d5da 03/29/2011 02:57 pm Jos van den Oever

Yet another fix to Relax NG parsing. Do not report an error if an element which can have text, does not.

6160782e 03/29/2011 12:10 pm Jos van den Oever

Add class documentation.

34ead2f3 03/29/2011 11:47 am Jos van den Oever

Add fix for attribute value handling and a test for it.

aa7a3366 03/29/2011 10:15 am Jos van den Oever

Fix parsing of choice and text elements.

03558478 03/29/2011 12:14 am Jos van den Oever

Fix bug in parsing of Relax NG: property "names" was lost when simplifying certain elements.

eb3bcb17 03/24/2011 05:31 pm Jos van den Oever

Check for attribute value.

990157a4 03/24/2011 05:01 pm Jos van den Oever

Check if an attribute is present on an element.

e27565fe 03/24/2011 04:29 pm Jos van den Oever

Add active element to the function parameters in the Relax NG validator.

f0064c81 03/24/2011 09:50 am Jos van den Oever

Work on Relax NG validator.

b57d35e1 03/23/2011 11:07 pm Jos van den Oever

Refactor RelaxNG validator to match more closely the grammar for the Relax NG simple syntax.

c2b4880c 03/23/2011 12:48 pm Jos van den Oever

Do not serialize any dom node from the http://www.w3.org/2000/xmlns/ and http://www.w3.org/1999/xhtml namespaces.
xhtml is more specific and handled by the filter. xmlns should never be serialized and is hence excluded in the serializer itself.

e640f79f 03/23/2011 12:03 pm Jos van den Oever

Do not serialize a namespace declaration for "xmlns".

00b0d891 03/23/2011 11:54 am Jos van den Oever

Add a save function.

8f0b6f56 03/23/2011 11:54 am Jos van den Oever

Fix conversion to utf8 array. The last part was left out of the converted array, because the native array did not autoexpand when access with an index outside of the range.
Now required length is calculated first.

0624bcc3 03/22/2011 11:07 pm Jos van den Oever

Make the cursor appear on first click in Firefox.

160f3693 03/22/2011 10:27 pm Jos van den Oever

Make a paragraph editable when it is clicked. In firefox (4) activating a paragraph for editing requires two clicks.

9fd8c6ba 03/22/2011 07:26 pm Jos van den Oever

Fix Runtime so it can use native arrays in Firefox 4 and still send binary data.

a0c0937e 03/22/2011 05:33 pm Jos van den Oever

Remove erroneous "new".

4855ef6e 03/22/2011 11:45 am Jos van den Oever

Do not store font face declarations in content.xml at all.

bf4a6de7 03/22/2011 11:30 am Jos van den Oever

When writing content.xml or styles.xml only write the automatic styles that are relevant to that particular file.

dd737d75 03/22/2011 11:27 am Jos van den Oever

Filter out child nodes that are meant to be filtered out.

fc3de133 03/21/2011 08:14 pm Jos van den Oever

Load and save font-face-decls and make serializing of namespaces prettier.

25e6fdf6 03/21/2011 08:13 pm Jos van den Oever

Fix retrieving the of styles that are used.

0b9526a7 03/21/2011 11:56 am Jos van den Oever

Fix bug in transformation and comment out functions that are not needed in validating the simple Relax NG grammar.

50a2cfa3 03/21/2011 12:24 am Jos van den Oever

Rewrite using the Relax NG simplification transformations. Still work in progress.

711b5536 03/20/2011 01:35 pm Jos van den Oever

Work on Relax NG validation. Can now partially validate simple documents.

4fc84e45 03/20/2011 01:35 pm Jos van den Oever

Add class for determining to which style key group a style reference belongs. This will be used for splitting up the element automatic-styles over styles.xml and content.xml.

c7b163d7 03/17/2011 10:40 am Jos van den Oever

Add snapshot of class for Relax NG validation. Work in progress.

1d99d3b1 03/17/2011 08:33 am Jos van den Oever

Fix errors reported by closure compiler.

8ade9637 03/16/2011 11:34 pm Jos van den Oever

Fix implementation to signature for loadXML.

1e7aeebe 03/16/2011 11:17 pm Jos van den Oever

Some work on splitting office:automatic-styles when saving.

4331dff7 03/01/2011 12:28 am Jos van den Oever

Send binary data via an ArrayBuffer if that is available.
ArrayBuffer is part of http://www.khronos.org/registry/typedarray/specs/latest/ and http://dev.w3.org/2006/webapi/XMLHttpRequest-2/ .
This works in Chromium 10.

41989109 02/28/2011 10:00 pm Jos van den Oever

Fix writeFile unit test in Firefox.

f7e162b7 02/28/2011 03:03 pm Jos van den Oever

Fix concatByteArrays so it works with native byte arrays.

0a4e9c1e 02/28/2011 02:43 pm Jos van den Oever

Rewrite convertUTF8ArrayToBase64 such that the source array is unmodified.

f15261c9 02/28/2011 12:11 pm Jos van den Oever

A few small JSDoc improvments.

b40dc50e 02/28/2011 09:46 am Jos van den Oever

Fix unit tests on Rhino runtime.
Also fix closure compiler error.

2e99596c 02/27/2011 10:56 pm Jos van den Oever

Remove debug output.

b621beaf 02/27/2011 10:47 pm Jos van den Oever

Use typed arrays for the buffers
if they are available in the browser.

b978a0fb 02/27/2011 09:46 pm Jos van den Oever

Refactor use of byte arrays

Previously, byte arrays were implemented as string with values from 0 to 255 inclusive. Some runtimes such as Node and modern browsers have native array implementations. These should be faster.

This commit changes changes WebODF to use the native arrays. Since byte arrays differ across runtimes, they are now abstracted by the Runtime.

e5ade816 02/26/2011 02:02 pm Jos van den Oever

Add code to serialize the DOM to the ODF file. This is not complete yet.

c30eceac 02/25/2011 06:30 pm Jos van den Oever

More type checking.

79260b80 02/25/2011 06:15 pm Jos van den Oever

Slight refactor with more type checking.

3df24b52 02/25/2011 01:41 pm Jos van den Oever

Fix compilation and unit tests.

3193d31b 02/25/2011 12:07 pm Jos van den Oever

Fix roundtripping of Zip files and ODF files.
An open issue is that, if the ODF file has been modified, the changes have to be reflected in the Zip entries. In other words, DOM serialization is not part of the saving process yet.

1bdf5e8b 02/25/2011 11:57 am Jos van den Oever

Make sure the data for allzip entries has been loaded before starting to write the zip file.

eda596de 02/25/2011 11:42 am Jos van den Oever

If there is no data in a zip file entry, save it as an empty entry.

259869f7 02/24/2011 12:06 pm Jos van den Oever

Add mimetype to data url for png images.

75f92093 02/24/2011 09:50 am Jos van den Oever

Reduce the size of the chunks that are base-encoded.
In redmine this fixes #8.

8e2ffea1 02/23/2011 11:59 pm Jos van den Oever

Share namespace definitions.

fad1e3cf 02/23/2011 10:46 pm Jos van den Oever

Fix type in presentation namespace.
also fix some whitespace and add better type checking.

7082c753 02/23/2011 06:44 pm Jos van den Oever

Dynamically create the required stylesheet elements (<style/>).

2f88757d 02/23/2011 11:08 am Jos van den Oever

Add a canvas for ODF. work in progress.

a06c4a14 02/20/2011 11:06 pm Jos van den Oever

Fix bug when loading file without styles element.

44602376 02/20/2011 10:27 pm Jos van den Oever

Fix loading of ODF documents where the position of the cursor is given with a processing instruction.
Importing a DOM node with processing instructions is not supported. The processing instructions must be removed before importing.

7acd136e 02/20/2011 10:05 pm Jos van den Oever

Report error in zip file via a state change.

72d2007b 02/18/2011 05:10 pm Jos van den Oever

If there is an error importing content.xml or styles.xml, set the document to INVALID.

1e04a251 02/18/2011 04:31 pm Jos van den Oever

Fix runtime.js so that it can be used in qtjsruntime.

175a8c4f 02/14/2011 09:40 am Jos van den Oever

Add compile step to check JavaScript with JSLint and fixed errors in some files.

229288c0 02/12/2011 09:56 pm Jos van den Oever

Switch from Makefile to CMake and from NodeJS 0.2 to 0.4.
Now CMake will retrieve and compile Node and other requirements.

d01cc6ef 02/09/2011 09:12 am Jos van den Oever

If no "settings.xml" is present, simply continue.

5d6ccf70 02/07/2011 07:37 am Jos van den Oever

Some work on a possible cursor implementation.

22c6c9c3 01/31/2011 06:03 pm Jos van den Oever

Fix parsing when no styles or automatic-styles element is present.

40512975 01/30/2011 10:30 pm Jos van den Oever

Change initialization order so the container also works in situations where data loading is instantaneous.

fbfbc561 01/30/2011 10:28 pm Jos van den Oever

Fix for Android browser which does not have a good XPath implementation. We replace the code with a simple traversal.

4262f45f 01/14/2011 09:48 am Jos van den Oever

remove hideCaretInTextNode parameter from constructor

743453a6 01/03/2011 11:23 am Jos van den Oever

small changes towards a better cursor

8546836f 12/02/2010 10:10 am Jos van den Oever

Small refactoring.

ac19c724 12/01/2010 04:12 pm Jos van den Oever

Clear cache when using nativeio.

7bd8f79d 12/01/2010 12:09 pm Jos van den Oever

Add exit and deleteFile functions to nativeio.

c1adc63d 12/01/2010 11:14 am Jos van den Oever

use nativeio for io if it is available

501d35f3 11/30/2010 01:41 pm Jos van den Oever

Cache reading of files to speed up loading of zip files.

10c877df 11/27/2010 11:55 pm Jos van den Oever

Shorten name for XMLHttpRequest variable from xmlHttp to xhr.

067a64dc 11/27/2010 12:29 pm Jos van den Oever

Add test for writing of data and fix it for firefox. for other browsers this will be really hard.

41840e27 11/25/2010 08:49 am Jos van den Oever

A bit more api documentation.

4fc715f7 11/25/2010 08:48 am Jos van den Oever

If not element to log into is available, write to the console.

19c51a9b 11/24/2010 07:45 am Jos van den Oever

Add parameter documentation.

3bf1b87f 11/23/2010 03:01 pm Jos van den Oever

Fix warnings in the closure compiler.