Commit Graph
18 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau db54df0a8b Create <office:meta> only on demand (and merge MetadataManager into OdfContainer) 2013-12-05 18:25:20 +01:00
Jos van den Oever 9984265c10 Make odf.OdfCanvas 100% typed. 2013-12-02 13:01:56 +01:00
Jos van den Oever eeef808426 Add lookupPrefix function and rename confusingly named function resolvePrefix()
to lookupNamespaceURI(), which is in line with the DOM functions of the same names.
2013-11-26 16:56:02 +01:00
Jos van den Oever d8af09f0fa Add more type information fo odf.OdfUtils. 2013-11-26 16:56:00 +01:00
Jos van den Oever 6dc368e4c2 Make odf namespaces better typed. 2013-11-26 16:56:00 +01:00
Jos van den Oever 6e217df8a4 Better typechecking in SessionController and Namespaces. 2013-11-26 16:55:00 +01:00
Aditya Bhatt 9a12663336 Add a new odf.MetadataManager to lib/odf.
This handles setting and getting of various metadata
 fields, by providing methods setMetadata and getMetadata
 which take and return flat mappings between strings.

 This has been limited to work with only a few
 blessed metadata fields for now.

 ops.OpUpdateMetadata can be issued by either the server
 or a client once a gui for editing things like title
 is implemented.
2013-11-25 14:37:47 +01:00
Aditya Bhatt 5d48e760f7 Add three more functions to DomUtils:
1. To map a flat map of strings onto a node,
thus creating a series of childnodes with
the key as the ns:localName, and the value
as the text content.

2. To do the reverse, generating a flat
string->string mapping from such elements.

3. To remove key elements from a node,
as specified in an array of key strings.

For this, Namespaces.js got a function to
lookup the namespace prefix from the URI
2013-11-25 14:37:47 +01: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 aa6e53a223 Remove odf.Namespaces.webodfns 2013-10-01 14:57:04 +02:00
Friedrich W. H. Kossebau d2f612b353 move more namespace strings to odf.Namespaces, more const typing of local copies 2013-09-22 19:21:17 +02:00
Aditya Bhatt f67ca033cb Extra namespaces for dc: and webodf: 2013-08-05 17:22:09 +02:00
Jos van den Oever 64d57c96cf Fix issues exposed by latest JSLint. 2013-07-24 21:41:56 +02:00
Philip Peitsch 257a44ee6a Add style info support for number: prefix 2013-07-24 10:14:24 +02:00
Lu Li 0eff2c6a0a Refactor odf.Formatting class
* move getTextNode from OdfUtils to StyleHelper
* move some of the unit tests under FormattingTests to StyleHelperTests
2013-07-22 16:47:42 +02:00
Friedrich W. H. Kossebau a3ba82f92a Turn odf.Namespace from a class into a singleton object 2013-04-18 14:26:09 +02:00
Friedrich W. H. Kossebau 7741d55f2e Create new class odf.Namespaces 2013-04-18 10:46:24 +02:00