these dimensions from the page style.
A new API call has been added to know the type of document
(text/presentation/spreadsheet), and this is used to decide what sort of
CSS rule to generate for page layouts.
As a little temporary hack, for slideshows, the last page style where the
height is lesser than the width is used for layouting, because for the
vast majority of presentations this holds true. This will change once we
adequately implement support for master styles.
* Removing dead code and cleaning up unused variables
* Corrected extern definitions for createTreeWalker and createNodeIterator
* Clarified variable names and function header for mergeRecursive
* Made getInheritedStyleAttributes able to cope with a document that lacks default style definitions for various classes
(Theoretically all should have this, but it makes testing easier to write)
* Added missing module dependency to odf.Formatting
Expose this map to EditorSession, and add a getUsedFonts method to
EditorSession that removes number-suffixed duplicate font-names like
Arial1, Arial2, etc and returns a reduced font name-to-family map.
"Each name can optionally be followed by a colon and either true or false,
true indicating that the variable may be assigned to by this file,
and false indicating that assignment is not allowed (which is the default)."
(from http://www.jslint.com/lint.html)
Patch by Stuart Dickson
"
Here's the latest patch for the bullets functionality.
This includes the testdoc subfolder and there are two documents for testing the nested docs, one in LO and the other in Calligra.
The LO authored doc runs fine in Chrome, but on Firefox, the continued numbering has issues. It resets with each list, I believe the id-based selector may not be getting applied correclty, I'll add some additional decoration to the bullet block to confirm whether this is the case.
The Calligra document does not render correctly, which I was lookoing at before hitting build environment issues, which have taken my time the last couple of days (although look to be at an end now).
The things I wasn't too sure/happy with were:
Having to copy code from Style2CSS into OdfCanvas (would prefer to have exposed the function and reused.
I needed to get hold of the document in order to read the already added styles - and used window.document there (this works with jslint, but I'm not convinced it is the right approach)
"