Commit Graph

  • e849db77bc Merge pull request #147 from kossebau/fixMissingLicenseCopy Tobias Hintze 2013-10-23 05:57:14 -07:00
  • 508570dab8 Add copy of the AGPL3 to sources (+ add to created zip files) Friedrich W. H. Kossebau 2013-10-21 17:55:16 +02:00
  • b6289d9e62 Merge pull request #143 from kossebau/fixMissingVersionAttributeInManifestFile Jos van den Oever 2013-10-18 11:26:30 -07:00
  • d6f25e8e0e Merge pull request #141 from kossebau/removeClassGuiXMLEdit Jos van den Oever 2013-10-18 11:25:32 -07:00
  • 22570d0dfe Remove outdated gui.XMLEdit and webodf/xmledit Friedrich W. H. Kossebau 2013-10-18 17:07:37 +02:00
  • 2a4c72e657 Fix missing writing of the manfest:version="1.2" attribute in META-INF/manifest.xml Friedrich W. H. Kossebau 2013-10-18 17:44:34 +02:00
  • 3bda1d23c6 Merge pull request #142 from kossebau/removeClassGuiPresenterUI Tobias Hintze 2013-10-18 11:10:41 -07:00
  • 49950b1daf Remove outdated gui.PresenterUI Friedrich W. H. Kossebau 2013-10-18 17:21:25 +02:00
  • 88a7a9086f Merge pull request #140 from kossebau/fixReadingAvailableFonts Friedrich 2013-10-18 08:08:35 -07:00
  • f9249c08b8 Fix regression: fonts listed in resources/fonts/fonts.css became ignored Friedrich W. H. Kossebau 2013-10-18 14:44:10 +02:00
  • f6885f812f Add missing include in tests.html. Jos van den Oever 2013-10-18 15:35:58 +02:00
  • 06c5307598 Unbreak build due to jslint complaining about "Insecure '.'" Friedrich W. H. Kossebau 2013-10-18 13:44:15 +02:00
  • 99b1bf7a56 Merge pull request #134 from kossebau/fixAnnotationCreatorNameDisplay Aditya Bhatt 2013-10-18 03:39:07 -07:00
  • 7a6d7df27f Change name of user in TrivialMemberModel to "Unknown Author" Friedrich W. H. Kossebau 2013-10-17 17:39:32 +02:00
  • 0d4437a855 Only strip first and last char from annotation creator name if indeed quotes were found Friedrich W. H. Kossebau 2013-10-17 17:38:19 +02:00
  • 941399b890 Restore insertion of annotation creator name (by fixing accidental dc|creator CSS rule overwriting) Friedrich W. H. Kossebau 2013-10-17 17:14:08 +02:00
  • 777c294d71 Merge pull request #138 from kevinlli/linebreakImprovement Jos van den Oever 2013-10-18 01:20:33 -07:00
  • 96cf60649a Make the text:line-break elements behave like <br> lli 2013-10-16 18:38:17 +11:00
  • ade4066468 ISSUES.txt no longer used Friedrich W. H. Kossebau 2013-10-17 19:12:30 +02:00
  • 6f94d87b0d Merge pull request #131 from peitschie/direct-styling-tweaks Friedrich 2013-10-17 05:55:29 -07:00
  • a9aa4b3652 Provide access to more direct text styling functions Philip Peitsch 2013-10-17 14:51:35 +11:00
  • 0a5091312c Merge pull request #132 from peitschie/image-select-clear Aditya Bhatt 2013-10-17 05:35:04 -07:00
  • 9b32db4471 Clear any image selection chrome when exiting edit mode Philip Peitsch 2013-10-17 16:12:51 +11:00
  • e25f1369fd Merge pull request #121 from kossebau/fixStyleId Aditya Bhatt 2013-10-16 09:46:57 -07:00
  • bf6369f63b Use new namespace "urn:webodf:names:helper" also for attribute "containsparagraphanchor" Friedrich W. H. Kossebau 2013-10-15 23:47:26 +02:00
  • bd34901235 Move attribute "styleid" into new namespace "urn:webodf:names:helper", no longer leak into saved files Friedrich W. H. Kossebau 2013-10-15 23:44:03 +02:00
  • 5036da3d52 Merge pull request #130 from kossebau/limitAnnotationButton Aditya Bhatt 2013-10-16 09:41:16 -07:00
  • 3b94a58e99 Add keyboard shortcut to create an annotation Friedrich W. H. Kossebau 2013-10-16 17:20:32 +02:00
  • 80e75c6b73 Separate annotation handling logic into a tool class AnnotationManager and UI into a editor/widgets/annotation.js Friedrich W. H. Kossebau 2013-10-16 17:20:14 +02:00
  • 4e0fc483fd Merge pull request #122 from peitschie/native-selection Aditya Bhatt 2013-10-16 03:50:10 -07:00
  • 1ff4d6f9ec Upgrade from magical empty-string to const for shadow cursor memberId Philip Peitsch 2013-10-16 14:10:45 +11:00
  • 0ef0f68407 Clean-up the selection view when removing it Philip Peitsch 2013-10-16 13:51:18 +11:00
  • ed80b875ea Only hide the browser selection once edit-mode is enabled Philip Peitsch 2013-10-16 13:13:44 +11:00
  • 1d413b5f4c Merge pull request #42 from kossebau/improveViewer Friedrich 2013-10-15 09:30:41 -07:00
  • ddf26d3a2c Move cloning of master pages into own method Friedrich W. H. Kossebau 2013-10-03 19:12:19 +02:00
  • 47e0c7ddd7 Merge pull request #25 from kossebau/properlySaveFontFaceDecls Friedrich 2013-10-15 09:21:02 -07:00
  • 5787e8a70a Add unit tests for saveLoad roundtrip for font-face declarations Friedrich W. H. Kossebau 2013-09-27 00:59:19 +02:00
  • 68c9b2c70f Properly merge the font face declarations from styles.xml and content.xml on loading Friedrich W. H. Kossebau 2013-09-27 00:58:38 +02:00
  • 9dab0fb71a Properly store the used font face declarations with styles.xml and content.xml Friedrich W. H. Kossebau 2013-09-26 15:15:41 +02:00
  • 163c84d5be Merge pull request #24 from peitschie/direct-styling-cursor Friedrich 2013-10-15 09:15:30 -07:00
  • 71d757ce4c More tightly couple direct styling support to text manipulator Philip Peitsch 2013-10-16 01:23:53 +11:00
  • a589b36d61 Refresh the style information cache to account for any direct cursor styling Philip Peitsch 2013-09-26 17:34:17 +10:00
  • 33ce56c37a Refactored StyleHelper text queries (isBold etc.) to use a applied styles object Philip Peitsch 2013-09-26 17:22:59 +10:00
  • 0e778265f8 Add support for cursor-styling Philip Peitsch 2013-09-23 11:32:16 +10:00
  • cdb9cb052f Ensure the cursor is in a walkable state after applying direct styling Philip Peitsch 2013-09-23 13:20:42 +10:00
  • 403673bb68 Merge pull request #118 from peitschie/imgselection Tobias Hintze 2013-10-15 05:07:13 -07:00
  • cb6292d7a1 Clear the last image selection when drawing a new virtual selection Philip Peitsch 2013-10-15 22:48:57 +11:00
  • a283fafc04 Cope with the window having no current selection when changing the shadow cursor Philip Peitsch 2013-10-15 21:44:21 +11:00
  • 94ceb41a03 Disable font and paragraph formating toolbar items on the editor when image is selected. lli 2013-10-14 16:00:52 +11:00
  • 87a378aee3 Only respond to the following keyboard events for image selection. esc, tab, delete, backspace, undo/redo and copy/cut. lli 2013-10-11 16:40:27 +11:00
  • 7580166fec Support image selection lli 2013-10-10 17:35:48 +11:00
  • d7a1dbc2f5 Refactoring a few classes for supporting selection type lli 2013-10-10 17:30:23 +11:00
  • 843857f757 add a few helper functions into OdfUtils.js Lu Li 2013-10-04 10:15:53 +10:00
  • f6e42f49fa Merge pull request #112 from adityab/virtual-selections Aditya Bhatt 2013-10-15 03:07:10 -07:00
  • 2a80174e69 Add documentation for the ShadowCursor class Aditya Bhatt 2013-10-14 14:43:12 +02:00
  • 05d8d6ce29 * Make hand-drawn selections have proper direction. * All cursor classes gain hasForwardSelection() methods. * maintainCursorSelection now preserves selection direction. Aditya Bhatt 2013-10-14 12:16:27 +02:00
  • 67f6442236 Hide the local caret when a shadowCursor selection is being drawn Aditya Bhatt 2013-10-14 11:53:30 +02:00
  • 50cfc40bae Smarter rerendering of selections in SessionView: * Unsubscribe from requests to rerender when destroying * Use an interval-based loop of 200ms to check if a redraw has been requested, and rerender in that case. Aditya Bhatt 2013-10-14 10:52:14 +02:00
  • aeb1604e39 Added root-filtering of nodes in SelectionView.getFillerRect. The filler rect is now calculated with extra granularity, and getFillerRect now has different code paths for various conditions. The computing is quite fast because we do not walk over every single node in the fillerRange, and only look at the start and end siblings below the common ancestor element in detail. This fixes several annoying bugs: * If you dragged a selection towards the right just over a blinking cursor, it would extend to the far right * Drawing selections over annotation markers caused them to have bad widths due to rects from nodes that were not of the same root. Aditya Bhatt 2013-10-11 14:56:46 +02:00
  • 939517a74a Workaround for a webkit/blink bug where the clientRects of a range that is collapsed at the last position of a text node are empty. This used to throw lots of errors when computing the firstRect and lastRect in a SelectionView, when the mouse moved near the ends of certain textnodes Aditya Bhatt 2013-10-10 15:54:31 +02:00
  • 958f3a0ccc Hide lastRect and fillerRect when the selection is just on one line Aditya Bhatt 2013-10-09 15:22:32 +02:00
  • dceba17489 Rerender visible SelectionViews when certain edits take place. Adds a visible() method to SelectionView and rerenderSelectionViews to SelectionViewManager. Aditya Bhatt 2013-10-09 14:47:55 +02:00
  • aae55aca50 * Add a new ShadowCursor class. This class is meant, for now, to only hold the 'selected range' fed to it, like with any other OdtCursor. It provides a minimal OdtCursor-like interface, with only the methods absolutely required to make it work. It does not modify the DOM in any way. * Make the shadowCursor object an instance of ShadowCursor, not OdtCursor. This is ideal because ShadowCursor does not modify anything in the DOM, and therefore is safer and faster to use for tracking browser selections. This makes backwards-selections work finally, because now there are no anchor nodes to interfere with the selection whilst dragging. * With the introduction of the ShadowCursor, we no longer have the selection range's endpoints coinciding the with beginning and end of the respective startContainer and endContainer. Therefore, modify getExtremeRanges to reflect this. If an endpoint of the selection range does not lie within a TextNode, we latch on to the nearest text node within. * In the SessionController, call maintainShadowSelection() if the selection might leak outside the allowed local root, so that the window selection object remains root-confined. * Clone ranges if they may be later modified. Properly detach ranges once they are used in SelectionView, less memory leaks. Aditya Bhatt 2013-10-09 13:42:05 +02:00
  • e94d3e431d Fix a little issue where partial selections of spans would select the whole span, and add an explanation Aditya Bhatt 2013-10-09 09:49:30 +02:00
  • b426aab73f Add a SelectionView class that can be initialized with a cursor, a SelectionViewManager that maintains SelectionView instances, and a shadow cursor object that is an invisible caret-less cursor, fed to both SessionController and SessionView, which follows the selection as it changes. Selections by each cursor are colored according to their memberid Aditya Bhatt 2013-09-26 13:01:43 +02:00
  • 36f502ede2 Fix shift+click selection extension for reverse selections (FF and older Chrome) Philip Peitsch 2013-10-15 18:18:53 +11:00
  • 5535c0fc8d Merge pull request #104 from peitschie/fixcursor-bothends Tobias Hintze 2013-10-15 00:00:12 -07:00
  • 7568ecfdd4 OdtDocument.fixCursorPositions will preserve the current range selection Philip Peitsch 2013-10-04 16:42:33 +10:00
  • 015a5f1b17 Cleanup OdfDocumentTests to push setup into createOdtDocument Philip Peitsch 2013-10-04 18:03:13 +10:00
  • 1e874e07c9 Remove unnecessary local member id parameter Philip Peitsch 2013-10-04 16:07:04 +10:00
  • dbefadd117 Clarify points vs. positions vs. steps concepts in SelectionMover Philip Peitsch 2013-10-04 15:39:09 +10:00
  • 290822b18d Remove loading of no longer used op classes in SelectionController Friedrich W. H. Kossebau 2013-10-12 15:39:23 +02:00
  • f4cc324fdf Ensure the tabIndex is reset when the local user's caret is re-added after undo/redo Philip Peitsch 2013-10-10 16:13:01 +11:00
  • a6dedeed4f Add additional scroll handling when canvas regains focus Philip Peitsch 2013-10-09 22:43:27 +11:00
  • 04a5bee3b4 Re-implement focus-without-scroll behaviour in Chrome Philip Peitsch 2013-10-09 20:08:44 +11:00
  • 2ff463610f Fix an image deletion issue where frame with svg:desc text is not properly deleted Lu Li 2013-10-09 15:03:50 +11:00
  • 894920b3da Remove getTextElements and getParagraphElements from OdtDocument as they can be accessed directly from OdfUtils Lu Li 2013-10-09 14:29:24 +11:00
  • 0f92792955 Fix wrong usage of NodeFilter.FILTER_ACCEPT on position filter result in OpRemoveText Friedrich W. H. Kossebau 2013-10-08 16:01:37 +02:00
  • 1164be7ee4 Remove some unneeded listing of Node & NodeFilter in jslint globals Friedrich W. H. Kossebau 2013-10-08 16:00:12 +02:00
  • 7ba4b2d1b8 Cope with CaretManager being destroyed while waiting for setTimeout to elapse Philip Peitsch 2013-10-08 01:49:43 +11:00
  • 90d67768d0 Move the cursor to the start of the annotation that has been removed Philip Peitsch 2013-10-08 01:17:00 +11:00
  • 4e7e440405 Move the cursors back into valid positions after inserting an annotation Philip Peitsch 2013-10-08 01:43:38 +11:00
  • 7b69ea2d83 SelectionMover.countStepsToPosition will always round both the cursor and target to previous accepted position Philip Peitsch 2013-10-03 17:26:39 +10:00
  • 4ba4eaf312 Ensure PositionIterator.setUnfilteredPosition has round-trip stability Philip Peitsch 2013-10-03 16:56:45 +10:00
  • 2dd0a4963f Add missing entries to the browser based test harness Philip Peitsch 2013-10-03 14:56:11 +10:00
  • a8c8b5152c update license header (real reason: test build trigger) Tobias Hintze 2013-10-07 15:41:22 +02:00
  • 3db8b4f806 Improve documentation on element types. This was a TODO in the file which has now been fulfulled. Jos van den Oever 2013-10-07 15:22:47 +02:00
  • 094151847f Improve ImageInserter: use img.onload, drop hidden image helper after usage, call onToolDone only when really done Friedrich W. H. Kossebau 2013-10-04 13:11:07 +02:00
  • 55e6322bf7 Little fixes in editor code that closure compiler did not like Friedrich W. H. Kossebau 2013-10-07 10:45:41 +02:00
  • d0fcc26578 Allow public access to the SessionController's keyboard handler Philip Peitsch 2013-10-03 13:41:56 +10:00
  • 5a04cb04e2 Prevent the backspace key from causing the browser to go back in history Philip Peitsch 2013-10-03 13:37:37 +10:00
  • 33992e86eb Update JSLint and add a patch to make future updates easier. Jos van den Oever 2013-10-05 10:45:54 +02:00
  • 8211e008de Update Closure Compiler and Node.JS. One previously undiscovered error was found and fixed. Jos van den Oever 2013-10-05 10:12:29 +02:00
  • 21f6a42d98 Fix crash in gui.EventManager.unsubscribe(), splice called on wrong object Friedrich W. H. Kossebau 2013-10-04 23:23:02 +02:00
  • a610f3007e Ensure the selection is reset again after the event trap receives focus Philip Peitsch 2013-10-02 09:56:36 +10:00
  • 5fb26a7618 Disable focus to the direct canvas as Firefox doesn't pass focus to a nested child on click Philip Peitsch 2013-10-02 09:51:19 +10:00
  • f65122d611 Redraw the current user's selection when switching focus back to the event manager Philip Peitsch 2013-10-01 16:38:54 +10:00
  • 84e221082f Allow event focus to be returned to SessionController without scrolling to the top of the ODF canvas Philip Peitsch 2013-10-01 12:12:37 +10:00
  • 7e95109b06 Update CDN versions to use dojo 1.8.3 Friedrich W. H. Kossebau 2013-10-04 19:20:32 +02:00
  • a510cb0b61 allow specification of build-version from outside (cmake) Tobias Hintze 2013-10-04 12:10:26 +02:00