Implemented support for range selection in edit mode
Works similarly to the existing cursor. A node is
placed in for the start and end positions of a cursor.
The window selection is updated based on cursor moved events.
The selection sync logic really belongs in SessionView. However,
as only a single selection is supported in the current
implementation, this has been temporarily put into SessionController.
A new function OdtDocument.getCursorSelection has been added
to make it trivial to support range-selection operations.
Fixed lost-in-translation
Works similarly to the existing cursor. A node is
placed in for the start and end positions of a cursor.
The window selection is updated based on cursor moved events.
The selection sync logic really belongs in SessionView. However,
as only a single selection is supported in the current
implementation, this has been temporarily put into SessionController.
A new function OdtDocument.getCursorSelection has been added
to make it trivial to support range-selection operations.
* Move responsibility for setting the memberId into Cursor to
allow proper hiding of anchor node
This makes the result of next & previous always a node that will pass
the filter. Previous implementations could return entirely unexpected
nodes
* Corrected module load order for tests
presentation|date-time-decl, and use draw|page:nth-of-type instead of
nth-child to select the page to be displayed. Now the slideshow only
shows actual slides, not other objects
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.
Only remove span or space elements if the text content is empty
AND there are no character-related children within the text span
* Added more tests to ensure movement around tabs is correct
Previously, attempting to load a module with no manifest.js defined
for the directory the script is executed in would result in node throwing
an "Error: ENOENT, no such file or directory".
With these changes, node will report "Cannot load manifest for …" instead,
allowing it to then fail with the specific module being searched for. This makes
hunting down ordering problems in the compilation a little easier.