Commit Graph

  • 087196110c Omit release zips from the default builds. Jos van den Oever 2013-07-09 10:53:01 +02:00
  • a3dd2374dd SessionController now better hides absence of an undo manager Philip Peitsch 2013-07-09 02:18:34 +10:00
  • e2b477968f Implemented trivial singler-user only undo manager Philip Peitsch 2013-07-08 22:37:46 +10:00
  • 39b83f7a8e Refactored OdtContainer.loadComponents Philip Peitsch 2013-07-08 23:36:42 +10:00
  • f1fdfb1dc0 Exposed method to reset the root element of an OdfContainer Philip Peitsch 2013-07-08 22:34:22 +10:00
  • e1a5c0425d Move remove cursor signal into OdtDocument Philip Peitsch 2013-07-08 22:13:18 +10:00
  • 76e6d463bb Fix copy support in Epiphany Philip Peitsch 2013-07-05 19:50:03 +10:00
  • ae161c66bd Fix paste support in Epiphany Philip Peitsch 2013-07-05 19:45:47 +10:00
  • 0b105d0e97 handle shift+up/down plus some refactoring Lu Li 2013-07-08 11:48:08 +10:00
  • 6a3b2075df refactor click related functionalities to ClickHandler.js Lu Li 2013-07-06 18:00:30 +10:00
  • dd9c0fec51 double click to select word and triple click to select parapraph Lu Li 2013-07-06 17:38:11 +10:00
  • 9177dc936d Hide selection highlights that overflow into office|text Aditya Bhatt 2013-07-08 11:16:43 +02:00
  • 48904fcc24 New changes to viewer deemed necessary after writing a PDF plugin: * Reduced the number of getElementById calls for some often-used elements * Added canvasContainer.onscroll handling - which will call the onScroll of the viewer plugin, if present; for example for updating page numbers or updating the rendering (if we are using lazy loading) * Added a delayedRefresh() function which starts a timeout to run the onScroll() function for lazy rendering refresh, but unloads the previous timeout if delayedRefresh() is called again, so you can resize the window rapidly as much as you want and as long as you want and the rendering redraw will only happen 300 milliseconds after you stop doing that. (In case of ODF, this will still seem butter-smooth and continuously resizing because it's just CSS scaling, and no canvas redrawing since the onScroll of ODFViewerPlugin is not defined) * Added several small fixes suggested by Jos Aditya Bhatt 2013-07-05 13:39:05 +02:00
  • 41b6655d2b Always call fixContainerSize when switching pages via the PageSwitcher, to account for slide dimensions (which may not be the same as the entire document's size) Aditya Bhatt 2013-07-02 12:30:04 +02:00
  • 290832d755 Use evt.keyCode instead of keyIdentifier, more crossplatform Aditya Bhatt 2013-07-02 12:29:37 +02:00
  • dda70df798 Remove methods that should not be directly accessible, from the viewer api. Apidox++ Aditya Bhatt 2013-07-01 16:17:43 +02:00
  • a932baac8a Make the slideshow flag into a method, and make the logic for displaying toolbars more clear Aditya Bhatt 2013-07-01 15:52:05 +02:00
  • 21d92bb0e6 Remove unneeded variables, fix zooming Aditya Bhatt 2013-07-01 13:03:52 +02:00
  • 9ed4acb905 Refactor and make API Aditya Bhatt 2013-06-25 12:14:41 +02:00
  • a9e386a7a0 Fixup API dox of EditorSession.updateParagraphStyle() Friedrich W. H. Kossebau 2013-07-05 12:44:02 +02:00
  • a471ee42da Added basic cut support for Chrome and Safari Philip Peitsch 2013-07-03 16:29:09 +10:00
  • 715d767118 Fix error triggered when calling OdtDocument.endEditing related maintainCursorSelection Philip Peitsch 2013-07-05 13:28:42 +10:00
  • 4a00052792 handle ctrl+shift+up/down & ctrl+shift+home/end handle ctrl+home/end Lu Li 2013-07-03 14:51:47 +10:00
  • 78b24d2f4a remove broken disable/enableEditHighlighting Friedrich W. H. Kossebau 2013-07-04 23:04:15 +02:00
  • f558e33231 During initial ops replay there is no own cursor yet added, so either test for the cursor or do not do cursor-using things Friedrich W. H. Kossebau 2013-07-03 14:57:28 +02:00
  • 402ae2a023 Removed PositionIterator.setPosition Philip Peitsch 2013-07-03 21:52:40 +10:00
  • 84e79a983a Fix case where setUnfilteredPosition is passed an offset to a non-visible child Philip Peitsch 2013-07-03 18:42:05 +10:00
  • 960f2bd31b Fix OdtDocument.getTextNeighborhood handling of leading text nodes Philip Peitsch 2013-07-03 11:34:15 +10:00
  • 9b72010946 Fix support for reverse selections Philip Peitsch 2013-07-03 12:25:03 +10:00
  • 203ae9ae84 Simplify getTextNeighborhood by only allowing positive lengths Philip Peitsch 2013-07-03 11:39:51 +10:00
  • fc61b5ecc6 Improve tab expansion performance by converting live HTMLCollection to fixed array Philip Peitsch 2013-07-03 15:52:44 +10:00
  • 9b9280cb32 fixed typo Saket Patel 2013-06-28 02:48:33 +05:30
  • f3912d13f5 Fix loading of documents in IE10 IE10 was throwing InvalidStateError when accessing xhr.responseBody property, and xhr.responseBody is not standard compliant and only used in IE < 9 so make code more standard compliant as per w3c Saket Patel 2013-06-28 02:35:42 +05:30
  • e32bc7c9c9 Simplify OpRemoveText by only allowing positive length Friedrich W. H. Kossebau 2013-07-02 23:11:21 +02:00
  • f6c017a7f3 in ops.OpUpdateParagraphStyle split info into setProperties & removedProperties Friedrich W. H. Kossebau 2013-07-02 22:58:43 +02:00
  • c7d1826440 un-unroll loops in OpUpdateParagraphStyle (turn explicit calls into generic structure) Friedrich W. H. Kossebau 2013-07-02 22:40:46 +02:00
  • c71bdb30bf Remove unused property "styleNameBefore" from spec of ops.OpSetParagraphStyle Friedrich W. H. Kossebau 2013-07-02 22:35:49 +02:00
  • 09b5d43f97 let's use NodeFilter.XXX constants instead of magic values Friedrich W. H. Kossebau 2013-07-02 22:31:02 +02:00
  • 64c009ae4e Allow to unset a paragraph style with OpSetParagraph Friedrich W. H. Kossebau 2013-07-01 15:33:26 +02:00
  • abf45004e8 Don't reprocess each new space element during space expansion Philip Peitsch 2013-07-02 13:36:32 +10:00
  • 4e0f4a0df4 Removed PositionIterator.offset and all references Philip Peitsch 2013-07-01 21:03:06 +10:00
  • 3c23d37967 Replaced text-only offset calculations with equivalent unfilteredDomOffset Philip Peitsch 2013-07-01 20:39:28 +10:00
  • 2c615d5880 Fixed incorrect offset coordinate usage with unfilteredDomOffset Philip Peitsch 2013-07-01 20:38:59 +10:00
  • ae3e5c4c4c support extend/decrease a text selection by press SHIFT + LEFT/RIGHT Lu Li 2013-07-01 16:46:59 +10:00
  • ec2e72a58b Editor uses direct formatting for applying font style changes Philip Peitsch 2013-06-17 10:39:57 +10:00
  • 2d8640becb Preserve the current user selection during formatting changes Philip Peitsch 2013-06-25 00:35:04 +10:00
  • c810c764cb Prevent the cursor from incorrectly collapsing during DOM mods Philip Peitsch 2013-06-25 23:34:59 +10:00
  • c3a28b3ce3 Implemented support for direct formatting of selection Philip Peitsch 2013-06-21 10:13:10 +10:00
  • 0d2b42742e Moved node comparison code to the base UnitTester class Philip Peitsch 2013-06-24 22:14:45 +10:00
  • c124a6617b Removed debug log statement Philip Peitsch 2013-06-25 11:02:50 +10:00
  • 506fa9db73 Add a few more parameter/return type declarations Friedrich W. H. Kossebau 2013-06-28 19:53:08 +02:00
  • 8df04919fc Fix warning message: in PositionIterator.setUnfilteredPosition, not setPosition Friedrich W. H. Kossebau 2013-06-27 18:36:20 +02:00
  • 6687b092a6 Allow deletion of tabs by OpRemoveText Philip Peitsch 2013-06-26 12:48:18 +10:00
  • 44309c3b6f extend OperationTests.js for style handling ops Friedrich W. H. Kossebau 2013-06-26 16:31:40 +02:00
  • ff6ef29524 Deletion fixes Philip Peitsch 2013-06-26 12:48:18 +10:00
  • 9538169faa Added assert and fixed whitespace expansion in operation tests Philip Peitsch 2013-06-26 21:43:40 +10:00
  • 11118e868a fix an issue with deleting list item Lu Li 2013-06-26 13:44:07 +10:00
  • 3401a041c7 Modified check right confirmation to match check left Philip Peitsch 2013-06-25 15:50:41 +10:00
  • 58d846c25c Re-align OdfUtils nextNode & previousNode implementations Philip Peitsch 2013-06-25 18:02:24 +10:00
  • bce75e2554 Reverted assert change. Philip Peitsch 2013-06-24 14:06:48 +10:00
  • b01fa34dbc Add comment to point out how getIteratorAtCursor works. Jos van den Oever 2013-06-21 16:56:29 +02:00
  • 7381592256 Fix compilation and make types a bit stricter. Jos van den Oever 2013-06-21 16:27:35 +02:00
  • 77b44ace14 Remove unused OdtDocument.getText function Philip Peitsch 2013-06-20 22:51:24 +10:00
  • f4352a27ec Removed duplicate behaviour Philip Peitsch 2013-06-20 22:22:09 +10:00
  • 7d92c7b297 create empty text document with all needed elements Friedrich W. H. Kossebau 2013-06-20 16:19:25 +02:00
  • d6b753c860 support omitted style:display-name in OpCloneParagraphStyle Friedrich W. H. Kossebau 2013-06-20 12:34:44 +02:00
  • 9379f946e9 Add methods to parse PositiveLength, NonNegativeLength, Percentage, fo:line-height, and fo:font-size to OdfUtils, and use them instead of the old parseLength in Style2CSS Aditya Bhatt 2013-06-20 11:44:41 +02:00
  • b54a00a869 * Rename parseFontSize to parseLength * Use that for the line height Aditya Bhatt 2013-06-19 17:46:23 +02:00
  • 06e29d3ff4 Shadow content needs the same text-align: left rule as office|presentation Aditya Bhatt 2013-06-19 17:20:31 +02:00
  • 14af210392 Handle null values of line-height Aditya Bhatt 2013-06-16 16:56:59 +02:00
  • 4e8e109d7c % line-height values in CSS are unreliable. Use a multiplier (1.x) type % of value in stead of %ages. Aditya Bhatt 2013-06-16 16:38:05 +02:00
  • 9f97589f66 add missing assert to OdfCanvas ctor (missing element) Tobias Hintze 2013-06-20 10:06:55 +02:00
  • ab71bc130d Fix loading of ODF documents where the first child of <office:body> is not an element. Jos van den Oever 2013-06-19 22:08:22 +02:00
  • f4aedc8402 Compile fixes. Jos van den Oever 2013-06-19 18:39:00 +02:00
  • 945c0fbfbf Added support for range deletion using the delete key Philip Peitsch 2013-06-20 01:36:47 +10:00
  • 17bfeef382 Added support for range deletion using the backspace key Philip Peitsch 2013-06-20 01:27:37 +10:00
  • 135c8affc9 Support range selection in edit mode Philip Peitsch 2013-06-20 00:18:11 +10:00
  • 6541e1343f Add an OdfUtils.parseFontSize function for better font size handling Aditya Bhatt 2013-06-19 15:35:29 +02:00
  • a66df8774b Implement support for % font sizes. Aditya Bhatt 2013-06-14 18:56:33 +02:00
  • 3634d63e3b Compile fix. Jos van den Oever 2013-06-19 17:08:52 +02:00
  • ea8c135546 PositionIterator.setUnfilteredPosition automatically advances to the next valid position Philip Peitsch 2013-06-20 00:35:09 +10:00
  • eecfa4d201 Remove trailing spaces and tabs. Jos van den Oever 2013-06-19 16:47:14 +02:00
  • a395556e79 Change the spec of OpMoveCursor to contain the absolute target position, not a relative one Friedrich W. H. Kossebau 2013-06-17 20:42:23 +02:00
  • fcbc668a50 Add stroke-width and border/padding mapping Aditya Bhatt 2013-06-13 21:40:57 +02:00
  • 415ec18ec3 Removed obselete SelectionManager class Philip Peitsch 2013-06-18 22:28:13 +10:00
  • 0209521db4 Removed unnecessary position adaptions Philip Peitsch 2013-06-18 22:35:38 +10:00
  • 4ab30523c0 Modified cursor movement to remove the need to adapt position iterators Philip Peitsch 2013-06-18 22:35:33 +10:00
  • 7db8ddcfd6 Each function now ensures the positionIterator is set to the cursor position Philip Peitsch 2013-06-18 19:18:54 +10:00
  • 563a0e69fb * jsdoc * handle case when bgcolor might be null Aditya Bhatt 2013-06-19 11:24:53 +02:00
  • 99895c6eee Move the acquisition of the master page to a separate function Aditya Bhatt 2013-06-19 10:13:55 +02:00
  • b4b2f08f29 There are more than one master page styles, style pages accordingly Aditya Bhatt 2013-06-17 16:25:52 +02:00
  • 558a9bbe9b Undo bad width/height hack and now decide the page style to use by checking the master style name Aditya Bhatt 2013-06-17 14:51:09 +02:00
  • c3b6ada5d1 Implement page numbers for slides Aditya Bhatt 2013-06-14 03:54:37 +02:00
  • 92dbaacc1d Respect the presentation:background-visible rule Aditya Bhatt 2013-06-14 03:19:15 +02:00
  • ca605f69de Also run setFramePosition over shadowContent frames Aditya Bhatt 2013-06-14 02:31:51 +02:00
  • 9c963f2317 Use a 'none' background if no solid/hatch fill is specified Aditya Bhatt 2013-06-14 00:14:59 +02:00
  • 8f11dc87b5 Smarter handling of background fill-color, along with alpha channel. Aditya Bhatt 2013-06-13 22:19:20 +02:00
  • ba3f8a59e6 * Let drawing-page family things also be styled like a graphic. * Frame opacity is here! (without affecting text) Aditya Bhatt 2013-06-13 20:20:07 +02:00
  • 6b309ae2a7 Hide elements like presentation|footer-decl and 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 Aditya Bhatt 2013-06-13 16:40:36 +02:00
  • df5f02ca45 Add support for using per-page master slides Aditya Bhatt 2013-06-13 16:20:29 +02:00