Commit Graph

  • 0cda44ac26 Use FILTER_ACCEPT instead of constants in SelectionMover Aditya Bhatt 2013-08-01 17:52:50 +02:00
  • 281b9675d2 * Rename AnnotationManger to AnnotaitonViewManager, * label constants, improve jsdoc * Remove unused call this.forgetAnnotation * set the annotation.end as null if no end was found Aditya Bhatt 2013-08-01 17:07:13 +02:00
  • 1aa0e77c7b Better filter result naming in PositionFilterChain. Also add an explanation about how addFilter works. Aditya Bhatt 2013-08-01 16:50:13 +02:00
  • 374ffc2fbc * Allow annotations to be enabled/disabled via OdfCanvas * Documentation++ * Enable annotations by default in editor and viewer. * Detach range in highlighter after use Aditya Bhatt 2013-07-31 16:59:24 +02:00
  • 7d6c95d9f2 A new AnnotationManager class in gui that handles wrapping the annotation in html containers, adds connector elements, and a text highlight. Trigger OdfCanvas's anntationManager instance whenever any text modification operation occurs. Aditya Bhatt 2013-07-31 14:31:22 +02:00
  • 2c66d5aca7 Wrap annotation node into a div and set it's right offset to position it onto the sidebar using javascript, instead of hardcoded CSS Aditya Bhatt 2013-07-30 11:32:08 +02:00
  • 1ce15f31a7 * Don't let annotation highlighting override normal ODF styles * Add a highlighting and therefore a connector regardless of the presence of annotation-end. * Some :before css to render an arrowhead of the connector Aditya Bhatt 2013-07-27 06:23:43 +02:00
  • ff55958701 * Better styling for annotation metadata * A new RootFilter in OdtDocument * A new core.PositionFilterChain to concatenate filters and chains * Functions to convert steps between two filter spaces in SelectionMover * A keyboardMovementsFilter = { base filter + RootFilter } chain in SessionController, used to calculate steps to move triggered by keyboard events. These steps are then mapped to base filter's space for op initialization Aditya Bhatt 2013-07-27 02:32:44 +02:00
  • 302cc7a283 *Add an annotationsPane and position annotations onto it by styling them via CSS *Refactoring: Move common functions from TextStyleApplicator to DomUtils and OdfUtils. *Allow application of 'gui' style (with an annotation: namespace) in TextStyleApplicator and Formatting. *More CSS for annotations. *Make OdfCanvas handle annotations. Aditya Bhatt 2013-07-22 16:21:06 +02:00
  • e1dcfbdec5 Revert "Do not set an undoManager if there is a server, no server yet integrated with local undo" Friedrich W. H. Kossebau 2013-07-31 20:32:10 +02:00
  • 7c381891ba Do not set an undoManager if there is a server, no server yet integrated with local undo Friedrich W. H. Kossebau 2013-07-31 19:59:17 +02:00
  • 0ad093545b set cursor to "pointer" for the session items in the SessionListView Friedrich W. H. Kossebau 2013-07-31 19:29:23 +02:00
  • a478b71e66 Disable -webkit-box and siblings to avoid horizontal scrolling Aditya Bhatt 2013-07-31 19:03:19 +02:00
  • 6d729068d6 Reuse the formatting object of odtDocument in ops.OpUpdateParagraphStyle Friedrich W. H. Kossebau 2013-07-30 17:23:44 +02:00
  • daab12202a Fix incorrect cursor movement after range selection Philip Peitsch 2013-07-30 10:25:54 +10:00
  • 9f2d6aae46 Refactor to reduce number of places enqueing new operations Philip Peitsch 2013-07-30 10:21:16 +10:00
  • 91c50cbbdd filter out the whitespace and tab we added into <text:s> and <text:tab> when serializing content xml Lu Li 2013-07-29 16:02:09 +10:00
  • b10f41de7b Rename "OpApplyStyle" to "OpApplyDirectStyling" and its spec elemnt "info" to "setProperties" Friedrich W. H. Kossebau 2013-07-26 17:01:32 +02:00
  • ac2cb8c005 Change spec of ops.OpUpdateParagraphStyle to take real ODF properties as payload for "setProperties" Friedrich W. H. Kossebau 2013-07-25 22:51:55 +02:00
  • a0dbe10cbb Define type of callback function less restrictive, so any function signature can be passed Friedrich W. H. Kossebau 2013-07-29 13:54:06 +02:00
  • 32086644f4 Rename select() to more descriptive selectRange() in gui.SessionController Friedrich W. H. Kossebau 2013-07-29 13:46:21 +02:00
  • ab628f45fc More typing in the API of gui.SessionController Friedrich W. H. Kossebau 2013-07-29 13:28:09 +02:00
  • 419b168b9c Unify usage of object "window" Friedrich W. H. Kossebau 2013-07-22 12:56:02 +02:00
  • f6de4efdc7 line-height conversion fix Lu Li 2013-07-29 17:45:26 +10:00
  • 5903955d07 fix a cursor position issue with single click when user click somewhere within already selected text, the cursor is not moving to clicked position. Lu Li 2013-07-26 12:40:35 +10:00
  • f25d936355 Removing a cursor will now cause the associated caret to be removed Philip Peitsch 2013-07-26 21:42:55 +10:00
  • 8ef32b9bc7 Don't attempt to set the selection of a non-existent cursor Philip Peitsch 2013-07-26 21:32:34 +10:00
  • a653bb3539 Workaround a CORS bug in Cocoa's WebView on OSX10.8 Philip Peitsch 2013-07-25 13:43:05 +10:00
  • c7059ccc34 Adapt test to cope with non-deterministic key order in runtime implementations Philip Peitsch 2013-07-25 11:04:02 +10:00
  • 64d57c96cf Fix issues exposed by latest JSLint. Jos van den Oever 2013-07-24 21:40:37 +02:00
  • 45963d5219 Extend JSLint options to ignore certain options. Jos van den Oever 2013-07-24 21:40:20 +02:00
  • 84365a2480 update JSLint Jos van den Oever 2013-07-24 18:01:56 +02:00
  • 967e5c0ba0 Update closure compiler and fix ensuing problems. Jos van den Oever 2013-07-24 17:56:39 +02:00
  • 55e4aaa5f5 Allow TrivialUndoManager.saveInitialState to be safely called multiple times Philip Peitsch 2013-07-24 20:49:43 +10:00
  • b4f90174dc fixCursorPositions improvement Lu Li 2013-07-24 18:10:51 +10:00
  • 6413bc285e Don't lookup style names on non-element nodes Philip Peitsch 2013-07-24 20:20:21 +10:00
  • 654313e3ff Whitespace fixes. Jos van den Oever 2013-07-24 12:08:15 +02:00
  • 03915b2896 handle Tab key Lu Li 2013-07-24 15:55:13 +10:00
  • 257a44ee6a Add style info support for number: prefix Philip Peitsch 2013-07-24 12:47:50 +10:00
  • 5f28c0cf81 Removed incorrect list-style map entries Philip Peitsch 2013-07-24 12:15:06 +10:00
  • 736611b332 Formatting.getAppliedStyles copes more gracefully with unknown style elements Philip Peitsch 2013-07-24 12:28:16 +10:00
  • d0d3e294af Fix compilation. Jos van den Oever 2013-07-24 10:09:55 +02:00
  • c0133c249a Removed unsafe position iterator functions. Moved into only test class referencing these Philip Peitsch 2013-07-24 02:08:37 +10:00
  • 8062b01f02 Removed unused OdtDocument neighbourhood functions Philip Peitsch 2013-07-24 02:01:41 +10:00
  • c75f303cfb handle shortcuts for applying bold, italic & underline Lu Li 2013-07-15 17:11:12 +10:00
  • fe7fbefe4c Properly preserve leading space when splitting a paragraph Philip Peitsch 2013-07-18 03:22:40 +10:00
  • 278955162c Refactored out common code for fetching nodes within a given range Philip Peitsch 2013-07-24 01:17:14 +10:00
  • 6fcbe0c71c Re-implemented OpRemoveText to make better use of iterators and filters Philip Peitsch 2013-07-23 11:32:20 +10:00
  • cf3445e493 Added configurable option to suppress the caret when a range is selected Philip Peitsch 2013-07-23 18:42:58 +10:00
  • 2f645a32e7 Hide the caret when focus is lost Philip Peitsch 2013-07-23 14:37:33 +10:00
  • 3e2a04e061 Modified cursor to toggle opacity rather than border colour Philip Peitsch 2013-07-23 14:36:15 +10:00
  • e95673c1fe Reset the cursor blink after each movement Philip Peitsch 2013-07-23 13:31:32 +10:00
  • 15effae773 Prevent range boundaries from being incorrectly reset during split Philip Peitsch 2013-07-17 21:22:52 +10:00
  • 932b5a9abf Use Clipboard.setDataFromRange to ensure consistent behaviour as with cut Philip Peitsch 2013-07-23 16:54:37 +10:00
  • a790a85cad Clipboard now excludes webodf-related elements from the copied XML and text Philip Peitsch 2013-07-23 16:42:01 +10:00
  • 1be8a951fe Fixed compilation order of new StyleHelper Philip Peitsch 2013-07-23 01:08:45 +10:00
  • 0eff2c6a0a Refactor odf.Formatting class * move getTextNode from OdfUtils to StyleHelper * move some of the unit tests under FormattingTests to StyleHelperTests Lu Li 2013-07-19 16:21:12 +10:00
  • 1d7757a43d Add support for select all (ctrl+a or cmd+a) Philip Peitsch 2013-07-22 15:51:46 +10:00
  • 89aea4978f Add small comment to clarify default handler. Jos van den Oever 2013-07-22 14:45:06 +02:00
  • c419dfca8e Allow browser to receive unhandled shortcut keys Philip Peitsch 2013-07-22 11:38:54 +10:00
  • b472470524 Re-added commit 0c811f2404 Philip Peitsch 2013-07-21 14:42:05 +10:00
  • caf648def2 Add missing copyright header to gui/Clipboard.js Friedrich W. H. Kossebau 2013-07-22 14:56:15 +02:00
  • 455839d83b Add german translations for new strings Friedrich W. H. Kossebau 2013-07-22 12:15:00 +02:00
  • d95774f11e Revert "when pasting or typing, removes the selected text before inserting new text" Aditya Bhatt 2013-07-18 16:14:06 +02:00
  • 0c811f2404 when pasting or typing, removes the selected text before inserting new text Lu Li 2013-07-17 10:49:31 +10:00
  • 17717c7f8d Add touchable overlays! * Close button in presentation mode * Left and right navigation buttons in small screen fit-to-page modes that fade in when interaction happens and then fade out Aditya Bhatt 2013-07-16 20:06:09 +02:00
  • a24682eb25 Fix crash when styling a text-only selection Philip Peitsch 2013-07-15 18:50:00 +10:00
  • db4b386b00 Generated auto-styles names are now deterministic across clients Philip Peitsch 2013-07-15 20:39:35 +10:00
  • ad2d6f9cd5 Move the presentation, fullscreen, and download buttons to the top Aditya Bhatt 2013-07-16 14:37:54 +02:00
  • 07cb8426b0 Center align the displayed document both vertically and horizontally Aditya Bhatt 2013-07-15 18:46:39 +02:00
  • 3948818397 Remove annoying background image from default state of button (only visible in mobile) Aditya Bhatt 2013-07-15 18:08:45 +02:00
  • c6e81d0452 Move the non-OSX-specific keybindings out of the platform check, because they also happen to be valid on OS X Aditya Bhatt 2013-07-15 12:30:00 +02:00
  • 991a9eb83e handle shift+home/end Lu Li 2013-07-12 18:30:13 +10:00
  • fea0502aed refactor keyboard handling Lu Li 2013-07-11 20:28:10 +10:00
  • c8fea6ee12 rename and re-arrange some of the cursor operations Lu Li 2013-07-12 16:00:29 +10:00
  • 161c7d8562 refactor cursor related operations set alias for session.getOdtDocument() refactor common OpMoveCursor creation into new methods Lu Li 2013-07-12 12:11:17 +10:00
  • 917b7f8b19 Tiny fix: Call showPage before setting the zoom level in viewer, so that only the dimensions of the visible slide are taken into account for calculating scale. Fixes the bug where in firefox the slideshow can sometimes start off as very tiny. Aditya Bhatt 2013-07-15 10:51:29 +02:00
  • f7cd9fe437 Allow position iterator to complete even if root is never reached Philip Peitsch 2013-07-14 22:16:11 +10:00
  • 2fc0ab536c Editor style buttons shouldn't crash if selection has no applied styles Philip Peitsch 2013-07-14 22:15:57 +10:00
  • 2af09cc034 Refactored out common DOM utility methods Philip Peitsch 2013-07-10 23:17:52 +10:00
  • 2d5a84d85e Fix cursor positions after splitting a paragraph Philip Peitsch 2013-07-15 15:11:22 +10:00
  • 58ed969130 Provide ability to register custom operations with the OperationFactory Philip Peitsch 2013-07-11 17:50:11 +10:00
  • 875c546816 Rework the undo manager to be more modular Philip Peitsch 2013-07-11 14:39:32 +10:00
  • 77c2357ff5 * Cleaer code * Additional very simple keyboard shortcuts for navigation in presentation mode: click, right-click, space, shift+space. Aditya Bhatt 2013-07-14 01:03:24 +02:00
  • 465eb8c3e7 Add a 'presentation mode' that switches to fullscreen and hides the UI. Aditya Bhatt 2013-07-13 23:50:45 +02:00
  • 665478f7d8 Let plugins load their own styles themselves Aditya Bhatt 2013-07-12 11:54:28 +02:00
  • a12f490e2b Make ODFViewerPlugin.js load webodf.js upon initialization, instead of hard-linking it in index.html Aditya Bhatt 2013-07-12 11:50:01 +02:00
  • 221e0f59e3 * Make index.html completely agnostic of any plugins * Add a PluginLoader with knowledge of filetype -> plugin mapping Aditya Bhatt 2013-07-11 16:16:43 +02:00
  • 1dd372b23c Fix invalid css. Jos van den Oever 2013-07-10 22:49:52 +02:00
  • edcabfa249 Move addition of undo manager to before the widgets are initialized. This way, the ui actually detects that there is an undo manager. Jos van den Oever 2013-07-10 16:09:23 +02:00
  • 8e633684bc JSLint fixes. Jos van den Oever 2013-07-10 15:51:03 +02:00
  • 71058c5b5c Add ODFViewerPlugin.js to viewer build target. Jos van den Oever 2013-07-10 14:35:45 +02:00
  • aa8c2b8c19 Include FileSaver.js in the editor build. Jos van den Oever 2013-07-10 13:09:02 +02:00
  • 5ba3664284 Fix dojo paths in the editor to be relative. Jos van den Oever 2013-07-10 13:00:54 +02:00
  • 3d367b2aed Add load and save buttons to the editor. Jos van den Oever 2013-07-09 11:55:12 +02:00
  • 92102b5168 Whitespace fixes. Jos van den Oever 2013-07-10 05:28:05 +02:00
  • b61fa9933d move cursor to beginning/end of the line Lu Li 2013-07-09 16:03:37 +10:00
  • 1d6637acc8 Created undo states to revert clumps of operations Philip Peitsch 2013-07-09 15:25:47 +10:00
  • 273cad46f5 Improve documentation around the undo manager Philip Peitsch 2013-07-09 11:16:26 +10:00
  • 0630628d87 Fix tests in firefox Philip Peitsch 2013-07-09 20:13:31 +10:00