636 Commits
Author SHA1 Message Date
Jos van den Oever 9f35da24d9 Upgrade to latest Closure Compiler
A few annotation errors were uncovered and fixed.
2016-07-24 22:04:45 +02:00
Aditya Bhatt 2c682bb73b Update other references to be aware of getMemberIds
working for all members, and not just cursors

Adds a new OdtDocument.hasMember method
2015-07-17 13:44:40 +02:00
Aditya Bhatt 526f4c079a Make OdtDocument.getMemberIds return ALL memberIds
and not just those of cursors.
2015-07-17 13:44:40 +02:00
Friedrich W. H. Kossebau 68cc8025f6 Allow to control verifyCache behaviour of existing ops.StepsCache instances 2015-06-07 13:16:34 +02:00
Friedrich W. H. Kossebau 913f5b115c Remove AddMemberAddMember OT again 2015-06-07 13:16:33 +02:00
Philip Peitsch 97bc84d27f Enable StepsCache verification 2015-06-01 18:00:12 +02:00
Philip Peitsch 52529379e1 Add incorrect implementation for OT of AddMember ops 2015-06-01 18:00:12 +02:00
Jos van den Oever b8ad5b3889 Upgrade to Closure Compiler 20150505.
We are now using our own copy of the externs to deal with differences
of opinion on best typing of types.
2015-06-01 08:53:35 +02:00
Friedrich W. H. Kossebau 0a13b44fd3 Add transformAddAnnotationRemoveAnnotation 2015-05-06 18:39:15 +02:00
Friedrich W. H. Kossebau 19a3ffce2d Add transformRemoveAnnotationRemoveAnnotation 2015-05-06 18:39:15 +02:00
Friedrich W. H. Kossebau 2875939211 Add transformAddAnnotationAddAnnotation 2015-05-06 18:39:15 +02:00
Friedrich W. H. Kossebau 50b0213b3c Add transformRemoveAnnotationRemoveText 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau ad38426eb4 Add transformRemoveAnnotationSetParagraphStyle 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau 10a3553a9d Add transformRemoveAnnotationSplitParagraph 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau a00e838764 Add transformMoveCursorRemoveAnnotation 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau f3f495b832 Add transformMergeParagraphRemoveAnnotation 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau 1b9fdca1bf Add transformInsertTextRemoveAnnotation 2015-04-21 16:58:50 +02:00
Friedrich W. H. Kossebau 419eb54788 Add transformApplyDirectStylingRemoveAnnotation 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau a23d98a53f Add transformAddAnnotationRemoveText 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau f4b49d8993 add transformAddAnnotationMergeParagraph 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau 7d5bdf27dd fixup transformAddAnnotationInsertText 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau 63c19e91a0 Add transformAddAnnotationApplyDirectStyling 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau f156d9e27a Add transformAddAnnotationSetParagraphStyle 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau bf89109feb Add transformAddAnnotationSplitParagraph 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau f9f24a6fcc Add transformAddAnnotationMoveCursor 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau db51dfdfe8 Add transformAddAnnotationInsertText 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau 69ac4062de Add noop transformations against AddAnnotation & RemoveAnnotation 2015-04-21 16:58:49 +02:00
Friedrich W. H. Kossebau 55e856e67a Ending OpRemoveAnnotation, rerender existing annotations, not refresh all 2015-03-31 15:57:20 +02:00
Friedrich W. H. Kossebau 31598d3e63 Workaround AnnotationViewManager not fixing cursor pos after highlighting 2015-03-31 15:57:20 +02:00
Friedrich W. H. Kossebau f632956f80 In OpRemoveAnnotation just drop markup for the one annotation removed 2015-03-31 15:57:20 +02:00
Friedrich W. H. Kossebau 1d24d462c8 In OpAddAnnotation support annotated ranges with 0 length
Before 0 length was assumed to be an annotation without a range
2015-03-26 13:42:23 +01:00
Friedrich W. H. Kossebau 45726eb701 Fix OpMergeParagraph to not remove empty text:p of annotations' text 2015-03-25 11:11:29 +01:00
Friedrich W. H. Kossebau b523f784a2 Fix typing to not-nullable 2015-02-20 18:14:07 +01:00
Philip Peitsch 4afcc165ed Reduce the number of places aware that the root element can be replaced
Replacing the root element is currently a by-product of the undo impl.
Reducing the number of places aware of this impl detail helps ensure
future undo managers have less clean-up work to do when this behaviour
is finally removed.
2015-02-15 16:53:19 +11:00
Friedrich W. H. Kossebau 2ae93c5ef8 Remove hardcoded dep of OdtDocument code on op UpdateMetadata
Following initial design there should be multiple different operation sets
possible, all working on the same document classes.
So relying on a certain optype and its spec in the code of ops.OdtDocument
is conflicting with that.
2015-01-17 18:16:20 +01:00
Philip Peitsch 9fba50ac69 Fix position instability around highlighted annotations
By checking only nodes that pass the supplied node filter, the position
logic can safely ignore out-of-place cursors near highlighted annotations.

Note, this can't re-use PositionIterator.previousNode, because the logic
requires the previous sibling of the current container's previous sibling.
2014-09-30 11:29:33 +10:00
Philip Peitsch 8729952459 Remove duplicate function definition
getDOMDocument is already defined a few lines below, using the more
standard "self" reference rather than "this".
2014-09-22 17:03:52 +10:00
Friedrich W. H. Kossebau f42f6de84a Stricter typing of the setProperties data 2014-09-18 13:33:06 +02:00
Philip Peitsch d54642ae0a Optimize whitespace trimming on paragraph merge
Avoid some unnecessary work by only trimming insignificant whitespace
in the direction of the merge. This is the only place that whitespace
can inadvertently become significant whitespace.
2014-09-12 17:55:40 +10:00
Philip Peitsch bb56bc684c Convert odf.OdfUtils into a static singleton 2014-09-12 10:33:27 +10:00
Philip Peitsch 3172ad8dec Convert core.DomUtils into a static singleton 2014-09-12 10:17:09 +10:00
Philip Peitsch d6ced212b0 Migrate per-node checks out of TextPositionFilter
Moving these checks into a node filter ensures it is only required
once per node, rather than once per node-position.

This results in a 60% improvement in position iteration speed.
2014-09-12 09:21:22 +10:00
Philip Peitsch 6aa01c682e Optimize all existing uses of getElementsByTagNameNS
Transformed all read-only uses to use node.getElements*. Any loop that
immediately modifies the nodes in the list has been updated to use the
DomUtils.getElements* version.
2014-09-11 15:10:41 +10:00
Friedrich W. H. Kossebau a738a0812b Clarify the currently used OT tie-breaking rule 2014-08-20 23:27:59 +02:00
Friedrich W. H. Kossebau 046323c69e In the comments talk about a master session, not a server 2014-08-20 23:27:59 +02:00
Philip Peitsch 7809834473 Fix OT when two adjacent paragraphs are merged backwards
Transforms were not ensuring a consistent style name was applied to the
merged paragraph on all clients.
2014-08-19 01:27:06 +10:00
Philip Peitsch 1c74eb9c13 Fix broken assert in MergeParagraph op
The operation was attempting to assert that the source step was the
first step within the paragraph as well. Instead, it was only asserting
that the source paragraph was adjacent to the destination paragraph.
2014-08-19 01:27:05 +10:00
Satvik Kumar b02b461e60 Remove style element functions from OdtDocument
Removed getStyleElement, getParagraphStyleElement and
getParagraphStyleAttributes from OdtDocument as these functions simply
redirect to their implementations in odf.Formatting.
2014-08-13 23:20:15 +10:00
Satvik Kumar a714866c52 Removed getParagraphElement from OdtDocument
This function only redirected to the OdfUtils version and many callers
already had an existing instance of OdfUtils to use. Any callers who did
not have an instance of OdfUtils now create one to continue using the
function.
2014-08-13 23:15:50 +10:00
Philip Peitsch ea0723a6ea Fix preservation of foreign elements on paragraph merge
This behaviour was working prior to the merge paragraph operation being
introduced. A new edge case was introduced related to cleaning up empty
spans that caused this to regress.
2014-08-13 00:13:06 +10:00