Commit Graph

  • 8f78151c8c Swap wrong label / value assignment Aditya Bhatt 2013-02-18 13:51:46 +05:30
  • 76e92cee18 Add onAdd and onRemove 'events' to the paragraphStyles widget Aditya Bhatt 2013-02-18 13:47:45 +05:30
  • 1435d44c3e Add getValue method to paragraphStyles and use the new class in the dialog Aditya Bhatt 2013-02-18 13:16:12 +05:30
  • 85a21624c7 Refactor paragraphStyles to be able to have custom methods, and use it in currentStyle Aditya Bhatt 2013-02-18 13:08:07 +05:30
  • 46f89dbe6f Use a bit more specific signals for styleChanged and styleDeleted. Make the paragraphStyles selector dynamically add/remove styles instead of reloading everytime. Pass style name in signal argument. Aditya Bhatt 2013-02-15 20:10:39 +05:30
  • 9891007f21 Just use 'filter' Aditya Bhatt 2013-02-14 17:41:53 +05:30
  • 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. Aditya Bhatt 2013-02-14 17:36:23 +05:30
  • c61716ed49 Add support for xml mimetype in small server. Jos van den Oever 2013-02-14 15:51:01 +01:00
  • bf3f5cf799 fix broken passing of documents for programs/editor/(cdn-)index.html Friedrich W. H. Kossebau 2013-02-14 17:32:09 +01:00
  • 5e000be1d5 Sync cdn-index.html with index.html Friedrich W. H. Kossebau 2013-02-14 17:29:03 +01:00
  • c64a438000 rearrange code Aditya Bhatt 2013-02-13 22:18:03 +05:30
  • bb2ed71042 Remove unused var Aditya Bhatt 2013-02-13 21:47:30 +05:30
  • dfdbfdc86b Use Lorem Ipsum for preview text so we don't have to translate that Aditya Bhatt 2013-02-13 21:02:50 +05:30
  • cf2c7c1ae1 Translate all the things Aditya Bhatt 2013-02-13 20:58:13 +05:30
  • 698154f937 New translation mechanism document.translateContent(), look for elements with text-i18n='something' attribute and translate those. Aditya Bhatt 2013-02-13 20:57:11 +05:30
  • 020fe22a0c Prevent the own cursor to be moved to end/begin of document on mouseclicks onto avatarcaretflags or carets Friedrich W. H. Kossebau 2013-02-13 13:47:53 +01:00
  • 754b194ad5 Move workaround to separate function Aditya Bhatt 2013-02-12 19:08:29 +05:30
  • f3222ac0ee Workaround for webkit re-layouting bug during text insertion Aditya Bhatt 2013-02-12 18:29:15 +05:30
  • 6bd47178fa Small code style fixes to programs/editor/index.html Friedrich W. H. Kossebau 2013-02-12 13:03:06 +01:00
  • 9c39890cff Remove CSS for already removed toppane area in programs/editor Friedrich W. H. Kossebau 2013-02-11 18:07:12 +01:00
  • ad38127519 Rename memberid to localUserMemberId in editor.js Friedrich W. H. Kossebau 2013-02-11 18:04:22 +01:00
  • 6e80cacefc Use the canvas element to grab all input, ensure caret visibility ourselves Friedrich W. H. Kossebau 2013-02-11 17:59:59 +01:00
  • c6e9e90891 Set attribute value from 'justified' to 'justify' Aditya Bhatt 2013-02-11 15:24:19 +05:30
  • 42a80101a0 Make jsdoc types info consistent across the usage Aditya Bhatt 2013-02-11 13:49:03 +05:30
  • 3f1b552ddf Some jsdoc for EditorSession Aditya Bhatt 2013-02-11 13:33:52 +05:30
  • 547f439c59 jsdoc for Formatting Aditya Bhatt 2013-02-11 13:26:57 +05:30
  • 49d6f29957 jsdoc for StyleInfo Aditya Bhatt 2013-02-11 13:26:14 +05:30
  • 14a2e538bb More vars, shorter line Aditya Bhatt 2013-02-11 13:10:04 +05:30
  • f9a9500ab1 Add operation to cmake Aditya Bhatt 2013-02-08 19:55:53 +05:30
  • aeaf1c70f4 Refresh the dialog's selected style in the dialog every time this is opened; this way the deletability is updated Aditya Bhatt 2013-02-08 19:53:25 +05:30
  • 8a7e9ad586 Use OpDeleteStyle in editor Aditya Bhatt 2013-02-08 19:53:00 +05:30
  • 76c36b72ad Add OpDeleteStyle to webodf, in the same fashion as OpCloneStyle Aditya Bhatt 2013-02-08 19:51:25 +05:30
  • b9a61c9a31 Handle button visibility based on style deletability Aditya Bhatt 2013-02-08 19:12:41 +05:30
  • f065a7aaf0 Check for a style's usage in styles, automatic-styles, and body Aditya Bhatt 2013-02-08 18:19:37 +05:30
  • 694def8fb3 Add a method hasDerivedStyles to StyleInfo.js, and use a method isStyleUsed to Formatting.js and EditorSession, and test it in the styles dialog when a new style is picked Aditya Bhatt 2013-02-08 17:41:34 +05:30
  • b7141d8cdc Remove old redundant check from Xpath.js, now xpaths can work Aditya Bhatt 2013-02-08 17:40:59 +05:30
  • e2355f8d54 Add support for building on Windows Stuart Dickson 2013-02-08 19:23:55 +00:00
  • 555fad5ecd runtime: make path resolving more windows compatible Tobias Hintze 2013-02-07 19:17:04 +01:00
  • 067c8fdaaf core.UnitTester - fix incorrect check if test has already run Tobias Hintze 2013-02-05 00:15:08 +01:00
  • f0022cf3ca More documentation and types. Jos van den Oever 2013-02-06 18:10:18 +01:00
  • 48f37698d5 Reimplement countLineUpSteps. With the function getClientRects, it is possible to look at positions where the cursor may be, without actually moving the cursor. This method is now used to determine how many steps should be walked to move the cursor up one line. The implementation was not hooked up and still is not hooked up to any code path. Jos van den Oever 2013-02-06 18:06:45 +01:00
  • 72ebf972a3 Extend a test for reading and writing the date field in a zip file. Jos van den Oever 2013-02-06 17:56:47 +01:00
  • 0b12a44568 Fix OpSplitParagraph to also now emit the signal 'highlightEdit' instead of using the old method Friedrich W. H. Kossebau 2013-02-05 13:05:15 +01:00
  • 97a4343499 No need to call getParagraphElement again on paragraphNode in Document.setParagraphStyle Friedrich W. H. Kossebau 2013-02-05 13:02:31 +01:00
  • a9b7caaf97 insert some asserts against node===null in various places (PositionIterator, SelectionMover, Document) Tobias Hintze 2013-02-04 20:39:05 +01:00
  • b481485ad0 Revert patch that removed cursorTextNode. The cursorTextNode is essential to how the cursor works. It contains the front half of the text node in which the cursor resides. Jos van den Oever 2013-02-04 18:54:02 +01:00
  • b455820c59 Fix handling of passed args argument. args can be false, in which case it is replace by an empty array. Jos van den Oever 2013-02-01 07:06:06 +01:00
  • 0e84d6acae Fix runtime.js to properly run all tests. The way arguments are passed was wrongly changed and is now back to the state of a few months back when the code was changed to please Closure Compiler. Now an explicit cast has been added to fix compilation errors. Jos van den Oever 2013-01-29 14:30:18 +01:00
  • c0cb57dd0c Restore the previously selected style after refreshing the list, in the generic paragraph styles selector Aditya Bhatt 2013-02-02 01:11:24 +05:30
  • 1840420b3e Switch to the newly created style in the dialog after cloning Aditya Bhatt 2013-02-02 00:46:32 +05:30
  • 0da4c9e1b4 Clear and close the popup tooltip after pressing 'Create' Aditya Bhatt 2013-02-02 00:45:59 +05:30
  • 5e2f1e533b Set both the style name and display-name in the cloned style Aditya Bhatt 2013-02-02 00:23:35 +05:30
  • 8acb6c90f9 Make all paragraph style selectors auto-update when styles are changed in the document Aditya Bhatt 2013-02-02 00:23:01 +05:30
  • f6e2edcdd4 Add style change signals Aditya Bhatt 2013-02-01 23:57:31 +05:30
  • 8d26c25dde Add a new operation, OpCloneStyle.js, and use it in the editor Aditya Bhatt 2013-02-01 23:30:53 +05:30
  • fd5f717220 Add a clone dropdown button with a little form for the new style name, and a delete button. Two empty methods for cloning and deletion Aditya Bhatt 2013-02-01 21:22:48 +05:30
  • 82b07e672d Revert "Add a new widget, paragraphStylesModifiable.js, which shall be the" Aditya Bhatt 2013-02-01 19:44:01 +05:30
  • ad05e95381 Add a new widget, paragraphStylesModifiable.js, which shall be the original paragraphStyles dropdown, but with buttons to clone and delete styles. Start using this widget in the dialog. Aditya Bhatt 2013-01-31 18:48:00 +05:30
  • c693da024e Remove the text of the solved issue. Jos van den Oever 2013-01-29 11:49:56 +01:00
  • e4b8a83eac Fix the jumping cursor issue. Counting of DOM positions was done with filtering, but the cursor requires no filtering. Jos van den Oever 2013-01-29 11:48:13 +01:00
  • 5df98795aa We already have a form var, no need to use dijit.byId Aditya Bhatt 2013-01-30 23:20:51 +05:30
  • 6121075d54 Make dialog panes follow the style selected in the dialog Aditya Bhatt 2013-01-30 23:11:45 +05:30
  • 299ec3e2bf Modify the style in the document that is currently selected *in* the dialog Aditya Bhatt 2013-01-30 23:05:27 +05:30
  • 5a4680da5c typo Aditya Bhatt 2013-01-30 23:04:20 +05:30
  • 891260af5f Add .value() methods to both panes Aditya Bhatt 2013-01-30 22:59:37 +05:30
  • 9f87626968 Extend both dialog panes to allow for extra methods to be attached; the dijit widget is now accessed as pane.widget() Aditya Bhatt 2013-01-30 22:46:10 +05:30
  • 7d299b717a Remove namespace declarations from dialog panes Aditya Bhatt 2013-01-30 21:08:00 +05:30
  • 2cbc70e117 Make the dialog scrollbar go away, adjust sizes Aditya Bhatt 2013-01-30 21:00:24 +05:30
  • bd14deb810 Add an inert paragraphStyles selector widget above the tabContainer in the styles dialog Aditya Bhatt 2013-01-30 19:51:54 +05:30
  • 00e58e7d64 Use the currentStyle widget instead of paragraphStyles, in the toolbar in widgets.js Aditya Bhatt 2013-01-30 19:18:19 +05:30
  • 429f86aa2d Add a toolbarWidgets/ directory and add currentStyle.js to it, a widget that uses internally the paragraphStyles widget and also keeps track of current paragraph and allows setting the current paragraph's style Aditya Bhatt 2013-01-30 19:16:52 +05:30
  • 776a5d3834 Remove style sniffing and setting ability from paragraphStyles widget Aditya Bhatt 2013-01-30 19:16:43 +05:30
  • 1db72bf0e7 Add asserts and watchdogs Aditya Bhatt 2013-01-29 13:26:25 +05:30
  • dae7b7c93b Better type enforcement in CSSUnits Aditya Bhatt 2013-01-28 18:22:30 +05:30
  • 889119ba64 Add core.CSSUnits to cmake Aditya Bhatt 2013-01-28 18:19:51 +05:30
  • f7df426a14 Fix build error, order dependencies properties Aditya Bhatt 2013-01-28 16:05:43 +05:30
  • 9b9897967d Add @constructor Aditya Bhatt 2013-01-28 14:27:41 +05:30
  • 44af3382f4 Add new EditInfo files to CMake Aditya Bhatt 2013-01-28 14:15:01 +05:30
  • 53a14357ab Add a check for editinfo namespace in the NodeFilter's acceptNode method Aditya Bhatt 2013-01-28 13:51:30 +05:30
  • 8fd6f8117f Make marker partially transparent so that bullet points are not hidden Aditya Bhatt 2013-01-24 15:08:34 +05:30
  • c6b630e4fa Start top of marker from position 0 so the markers are aligned properly in lists Aditya Bhatt 2013-01-24 15:04:59 +05:30
  • bae145599c Move tooltip arrow to bottom left, and make tooltip handle appear above the paragraph Aditya Bhatt 2013-01-24 14:39:54 +05:30
  • 40ec535037 Styles for marker and tooltip Aditya Bhatt 2013-01-24 06:09:14 +05:30
  • ab352a95cd Don't style using js Aditya Bhatt 2013-01-24 06:09:04 +05:30
  • 0cf63ec653 Display color, Name, and last edit time of each user that has edited the element Aditya Bhatt 2013-01-24 06:07:37 +05:30
  • 2918c89e2c Add marker to the left of the edited paragraph Aditya Bhatt 2013-01-24 02:28:58 +05:30
  • e5efdbef9e Use relative positioning so we can absolutely position 100% high divs inside p and h nodes. Experimental. Aditya Bhatt 2013-01-24 02:27:56 +05:30
  • 349580d5e2 Add a function highlightEdit to SessionView Aditya Bhatt 2013-01-24 01:27:34 +05:30
  • 7d4a0ba063 Remove old highlightEdit method from ops.Document, and add signal handlers to the class and a new signal highlightEdit Aditya Bhatt 2013-01-24 01:26:26 +05:30
  • d4ffbff35e Add new files to manifest Aditya Bhatt 2013-01-24 01:26:01 +05:30
  • 6c6194cade Add parantheses Aditya Bhatt 2013-01-24 01:25:37 +05:30
  • b34f79b340 Preliminiary edit history handling code, not yet in use. Modeled off the Avatar/Caret/Cursor code. Aditya Bhatt 2013-01-23 21:30:22 +05:30
  • d193d58389 Add text and background color modification Aditya Bhatt 2013-01-23 04:22:45 +05:30
  • e5f358a435 Set default normal line-height for text elements, so that dojo cannot pollute it Aditya Bhatt 2013-01-23 00:13:52 +05:30
  • 73160ed414 Unset (arbitrary?) margins and paddings to text elements, this partially fixes the problem of text shifting slightly when you save a style without modification through the dialog. Aditya Bhatt 2013-01-23 00:11:35 +05:30
  • 6ed6aa64ca Fix typo; setting margins works correctly now Aditya Bhatt 2013-01-23 00:10:31 +05:30
  • 81787baa60 Add a preliminary CSS units converter and use it to convert everything to millimetres Aditya Bhatt 2013-01-22 20:42:21 +05:30
  • b1b8ce364f Lint Aditya Bhatt 2013-01-22 15:50:39 +05:30
  • bd78027b91 Make webodf also take into account default styles, while generating CSS. Documents look much much more accurate now. Aditya Bhatt 2013-01-22 04:48:41 +05:30
  • 1fec1ef158 Make unbloding, unitalicing, and ununderlining work Aditya Bhatt 2013-01-22 01:28:50 +05:30