Philip Peitsch
d18d2b5b8a
Migrate SelectionMover.createPositionIterator to OdtDocument
...
Remove the SelectionMover file entirely as it no longer contains any
functionality.
2014-08-05 10:12:17 +10:00
Friedrich W. H. Kossebau
1e2a4a8323
Normalize license headers of the webodf.js source files
...
* remove @license tag (to prevent Closure compiler keeping the comment)
* use copyright@kogmbh.com email address everywhere
* remove "additional permission", to be added only to released webodf.js
* separate license header by empty line from following content
2014-06-02 12:19:05 +02:00
Jos van den Oever
16220f4507
Move signalMemberUpdated, signalMemberRemoved and signalMemberAdded from ops.OdtDocument to ops.Document.
2014-02-24 15:19:05 +01:00
Jos van den Oever
b3c77bf307
Move signals CursorAdded, CursorRemoved and CursorMoved to ops.Document.
...
This makes SvgSelectionView independent from ops.OdtDocument.
2014-02-24 15:13:13 +01:00
Jos van den Oever
e632ed2ae6
Make a large number of controllers 100% typed.
2014-02-08 13:37:50 +01:00
Jos van den Oever
265b7d3768
Rename ops.Document.getCursors to ops.Document.getMemberIds.
2014-02-05 14:24:25 +01:00
Jos van den Oever
a9e64e645f
Remove circular dependency between OdtDocument and OdtCursor.
...
OdtCursor does not depend on OdtDocument any more. In fact, it is not specific
to ODF any more so at some point it could be renamed.
2014-02-05 14:24:25 +01:00
Jos van den Oever
9e0059236d
Add a general document interface for use in operations.
...
The UndoManager and TrivialUndoManager classes are adapted to the generalized interface.
2014-02-04 10:01:08 +01:00
Friedrich W. H. Kossebau
6a568a8f58
Split ops.OdtCursor from core.Cursor & rename ops.Document to ops.OdtDocument
...
Also:
* rename gui.CaretTests to ops.OdtCursorTests (as it is testing ops.OdtCursor)
* remove test-less CaretTests.js, had broken setup now
2013-03-06 15:44:28 +01:00
Aditya Bhatt
1d4eb0fd67
jsdoc
2013-03-06 19:51:20 +05:30
Aditya Bhatt
1f894d0691
Remove lots of whitespace
2013-03-06 19:51:19 +05:30
Aditya Bhatt
df7dd999cb
Some documentation. Also, rename isFontUsed to isFontDeclared for better
...
meaning
2013-03-06 19:51:19 +05:30
Aditya Bhatt
02cc3d1722
Declare a font if it is not already used in the document
2013-03-06 19:51:19 +05:30
Aditya Bhatt
5d058cdedc
A function in ops.Document to check if a font is used in the document
2013-03-06 19:51:19 +05:30
Aditya Bhatt
d3b0678328
Change namespace from fons to stylens and font-family to font-name in
...
updateParagraphStyle in Document
2013-03-06 19:51:19 +05:30
Aditya Bhatt
3c1ce46dac
Add strikethrough support to the style modifier and restore the button
...
in simpleStyles.
Also add special CSS handling for it in Style2CSS
2013-02-20 13:35:47 +05:30
Aditya Bhatt
ede48f84bb
Add even more granular checking for modification info
2013-02-20 13:35:47 +05:30
Aditya Bhatt
f86b9a80a0
* A new function setRealAttributeNS, which sets the attribute for a node only if the value is not undefined.
...
* Use setRealAttributeNS everywhere in place of the old calls in updateParagraphStyle.
* Update updateParagraphStyle to use the new info.textProperties attributes for BIU
2013-02-18 21:09:01 +05:30
Aditya Bhatt
9891007f21
Just use 'filter'
2013-02-18 14:41:31 +05:30
Aditya Bhatt
3307555380
Make cursor move to the beginning of the first text node upon addition.
...
Also, track a cursor in the editor upone addition, so that we know it's
paragraph style and various such info.
2013-02-18 14:41:31 +05:30
Aditya Bhatt
754b194ad5
Move workaround to separate function
2013-02-12 20:19:24 +05:30
Aditya Bhatt
f3222ac0ee
Workaround for webkit re-layouting bug during text insertion
2013-02-12 20:19:24 +05:30
Friedrich W. H. Kossebau
6e80cacefc
Use the canvas element to grab all input, ensure caret visibility ourselves
2013-02-11 17:59:59 +01:00
Aditya Bhatt
42a80101a0
Make jsdoc types info consistent across the usage
2013-02-11 14:29:30 +05:30
Aditya Bhatt
76c36b72ad
Add OpDeleteStyle to webodf, in the same fashion as OpCloneStyle
2013-02-11 14:29:30 +05:30
Friedrich W. H. Kossebau
97a4343499
No need to call getParagraphElement again on paragraphNode in Document.setParagraphStyle
2013-02-05 13:02:31 +01:00
Tobias Hintze
a9b7caaf97
insert some asserts against node===null in various places
...
(PositionIterator, SelectionMover, Document)
2013-02-04 20:39:05 +01:00
Aditya Bhatt
5e2f1e533b
Set both the style name and display-name in the cloned style
2013-02-02 00:23:35 +05:30
Aditya Bhatt
8d26c25dde
Add a new operation, OpCloneStyle.js, and use it in the editor
2013-02-01 23:30:53 +05:30
Aditya Bhatt
7d4a0ba063
Remove old highlightEdit method from ops.Document, and add signal
...
handlers to the class and a new signal highlightEdit
2013-01-24 01:26:26 +05:30
Aditya Bhatt
d193d58389
Add text and background color modification
2013-01-23 04:22:45 +05:30
Aditya Bhatt
6ed6aa64ca
Fix typo; setting margins works correctly now
2013-01-23 00:10:31 +05:30
Aditya Bhatt
1fec1ef158
Make unbloding, unitalicing, and ununderlining work
...
Conflicts:
webodf/lib/ops/Document.js
2013-01-22 15:34:52 +05:30
Aditya Bhatt
78ed2fb4fa
Use millimetres instead of inches
2013-01-22 15:32:27 +05:30
Aditya Bhatt
d32a3b02aa
Add method getParagraphStyleAttributes to Document
2013-01-22 15:31:06 +05:30
Friedrich W. H. Kossebau
94e5408106
improve OpSplitParagraph to also handle any text:spans
...
also moves implementation from Document to the op class
unsolved: own cursor loses focus if moved into split paragraph
2012-12-28 13:21:40 +01:00
Aditya Bhatt
180ffdda00
Add a refreshCSS method to OdfCanvas, and use it when style changes are
...
made in Document.js. This updates the Document CSS when a style is modified
in the dialog
2012-12-28 12:05:07 +01:00
Friedrich W. H. Kossebau
70d27741d3
Use prefix with setAttributeNS also for text:style-name
2012-12-28 12:05:07 +01:00
Aditya Bhatt
e186836434
Prefix with namespaces
2012-12-28 12:05:06 +01:00
Aditya Bhatt
f15395bf82
Use saner naming and lint updateParagraphStyle in Document.js
2012-12-28 12:05:06 +01:00
Aditya Bhatt
3e61ec968a
Don't use UI-specific properties in operations. remove 'Radio' from
...
properties
2012-12-28 12:05:06 +01:00
Aditya Bhatt
160e89f27b
Lint
2012-12-28 12:05:06 +01:00
Aditya Bhatt
146bb8d58d
Add a new operation for Updating a paragraph style element
2012-12-28 12:05:06 +01:00
Aditya Bhatt
847114c271
Some changes to get accessing of paragraph styles by the dialog working
...
Conflicts:
programs/editor/CMakeLists.txt
programs/editor/index.html
programs/editor/widgets/dialogWidgets/alignmentPane.js
programs/editor/widgets/paragraphStylesDialog.js
2012-12-28 12:05:06 +01:00
Jos van den Oever
a165319f42
Fix compilation.
2012-11-19 12:06:34 +01:00
Jos van den Oever
ca06f6e64e
Copy attributes so new paragraph has the right style.
2012-11-16 18:59:13 +01:00
Jos van den Oever
2d11ccdd65
Add very buggy implementation of SplitParagraph.
...
There is more work ahead.
2012-11-16 18:55:19 +01:00
Jos van den Oever
9f1658a806
Add boilerplate for the operation to split a paragraph.
2012-11-16 17:51:49 +01:00
Tobias Hintze
8f4a8553dd
Document: add comment about incorrect cursor-handling in insertText
2012-11-13 01:43:28 +01:00
Tobias Hintze
6c027c33ac
OpRemoveText: change semantic (negative length); workaround delete
...
the semantic of a negative length for a delete operation is
to encode the "direction" of the delete or put in other words
the cursor position before the remove operation.
a length of -1 means backwards delete of 1 character;
length of 1 means forward-delete of 1 character
delete did not work because the to-be-deleted text was always
out of the avatar's textnode (because it is RIGHT AFTER it, in
the next textnode sibling)
also removed "text" property of OpRemoveText, as it is incorrect
after the second operation when not playing operations locally
(before receiving them back from the server)
2012-11-13 00:54:02 +01:00