Commit Graph

  • 3e09df6b16 Little code improvements for getStyleMap in odf.Style2CSS Friedrich W. H. Kossebau 2013-03-20 14:11:08 +01:00
  • 6a7a8043c2 programs/editor: better detection of collab/non-collab mode Tobias Hintze 2013-03-20 12:35:29 +01:00
  • fb11ddd99a Merge remote-tracking branch 'abheap/master' Tobias Hintze 2013-03-20 12:18:17 +01:00
  • 56fe73d424 split programs/editor/index.html into index.html and collab-index.html only collab-index.html should engage nowjs and play the collaborative game. Tobias Hintze 2013-03-20 12:03:01 +01:00
  • 1a1c0c8de7 update programs/editor/welcome.odt: * change background color from blueish to white * minimal text:span cleanup Tobias Hintze 2013-03-20 11:50:48 +01:00
  • 1b4cbfd4d6 Style2CSS will skip insignificant white-space only nodes when constructing the document stylemap Philip Peitsch 2013-03-13 12:37:55 +11:00
  • b25ec1d952 Let's also call init() after declaring. :/ Aditya Bhatt 2013-03-20 14:45:08 +05:30
  • 3a44cb0ac8 Append font css as a text node Aditya Bhatt 2013-03-20 14:27:06 +05:30
  • 2fa9df09f7 Move style loading of fonts from editor.css to js Aditya Bhatt 2013-03-20 02:23:58 +05:30
  • 2c2082240e Add resources to cmake Aditya Bhatt 2013-03-20 00:50:42 +05:30
  • a1c0c28866 Move fonts/fonts.css to a resources/ dir, and update the paths dojoConfig paths accordingly to resolve pathes starting with 'resources/'. Aditya Bhatt 2013-03-20 00:40:32 +05:30
  • bedb9a2c94 improve AMD pattern usage; remove explicit require() calls Tobias Hintze 2013-03-19 21:44:48 +01:00
  • d3605a8e82 Remove workaround to get node "automatic-styles", is reachable by property 'automaticStyles' Friedrich W. H. Kossebau 2013-03-19 20:19:20 +01:00
  • fa0cd59683 trivial fix for german translation Tobias Hintze 2013-03-19 15:33:57 +01:00
  • 51af6f6140 Ensure that style name (id, not the display name) is properly encoded and unique Friedrich W. H. Kossebau 2013-03-19 10:35:41 +01:00
  • 132eecce41 dojo translations: only allow supported languages (default to "C") Tobias Hintze 2013-03-18 23:02:50 +01:00
  • 8f219d2c18 fix editor/index.html to bootstrap dojo paths Tobias Hintze 2013-03-18 20:35:13 +01:00
  • 8b439d7e33 Fix wrong API dox for setAvatarInfoStyle() in SessionView.js Friedrich W. H. Kossebau 2013-03-18 20:23:37 +01:00
  • 8b8839ee81 Add html restructuring to index.html too Aditya Bhatt 2013-03-18 18:35:15 +05:30
  • 163a442bbb Some styling changes - check for the availability of window.inviteProxy to show the invite button, and use a custom button instead of a dojo button because we need a bit more flexibility Aditya Bhatt 2013-03-18 18:12:35 +05:30
  • dcef6bf1a5 Partially refactor the avatar button updating code so that there is only one code path for updating. + some styling Aditya Bhatt 2013-03-16 08:03:31 +05:30
  • 252d6da87f Remove the chat sidebar and the ExpandoPane, and have a clean sidebar of avatar buttons to the right. Also some aesthetics styling. Aditya Bhatt 2013-03-16 07:43:19 +05:30
  • 2f4bc52bbe Avoid calculating a negative timeout value in decay Aditya Bhatt 2013-03-16 02:36:29 +05:30
  • 6eb6762ce9 Make the container + canvas layout in programs/editor similar to the one in programs/viewer, so now we don't have to deal with a hackish hidden horizontal scrollbar, and both scrollbars follow the zoom level perfectly. Aditya Bhatt 2013-03-16 01:44:16 +05:30
  • 5efce9ea74 Change decay step to 10 seconds from 5 Aditya Bhatt 2013-03-16 00:51:29 +05:30
  • ddcbd5cf23 Use proper return type in jsdoc Aditya Bhatt 2013-03-16 00:41:22 +05:30
  • 5d0454f396 Apply a graduated opacity decay mechanism for the EditInfo marker, that takes the age of the edit into account. Aditya Bhatt 2013-03-16 00:38:56 +05:30
  • 27857f6cf4 We don't want these animations anymore Aditya Bhatt 2013-03-16 00:38:46 +05:30
  • 674bbba4e1 Use proper heights and line-heights for editInfo content, so everything looks centered and also avoid wrong line alignment Aditya Bhatt 2013-03-15 18:40:21 +05:30
  • 054b6b496c A little workround - comment out the unsubscription of user details from onCursorRemoved in SessionView, so we actually get user data over the wire Aditya Bhatt 2013-03-14 18:11:13 +05:30
  • 19d04bfb9d Don't ask for user info on every edit, only ask during cursor addition. Also, get user details using both subscription- and non-subscription-based techniques, because otherwise a user that has joined the document and had the UserList populated will not release data in the 'subscription way' Aditya Bhatt 2013-03-14 17:19:04 +05:30
  • 9591d0443f Trivially handle the subscriber as a callback in TrivialUserModel Aditya Bhatt 2013-03-14 16:34:45 +05:30
  • aa7b0521d4 Don't set cursor and avatar info style twice, only do it in omMemberDataChanged Aditya Bhatt 2013-03-14 14:51:50 +05:30
  • 4615700af6 Make the highlightEdit method request user details for every edit if the info is already not available Aditya Bhatt 2013-03-14 14:45:25 +05:30
  • 4c441ea646 Some style fixes to have all the editInfo elements in the tooltip appear properly aligned Aditya Bhatt 2013-03-14 14:45:02 +05:30
  • 8af2f0c25e Avoid duplication of user in edit history, by checking the userid against the previous memberids Aditya Bhatt 2013-03-13 18:11:02 +05:30
  • 3f81834fa6 Insert a timestamp epoch value in the opspec in TrivialOperationRouter, so we can have edit date in non-collaborative mode too Aditya Bhatt 2013-03-13 16:37:09 +05:30
  • 1a0bd8f927 Fire paragraphEdited signal with timestamp, and use that timestamp for the EditInfo Aditya Bhatt 2013-03-13 16:36:30 +05:30
  • 9d8bd8e063 Add timestamp fields to operation specs Aditya Bhatt 2013-03-13 16:35:35 +05:30
  • 1c404863df Match the avatar info css to editinfo:memberid 'starting with' userId instead of memberId, so the same user gets the same editinfo styling even when that user gets a new avatar Aditya Bhatt 2013-03-13 13:49:02 +05:30
  • 76d2d78bc2 Remove editinfo:memberid attribute from marker when edits history is cleared Aditya Bhatt 2013-03-13 13:48:43 +05:30
  • d11a0d837a Rewrite sections of SessionView to maintain an avatar-specific css style for nodes that specify an editinfo:memberid. Use this style for rendering the fullname and color. Rewrite EditInfoMarker accordingly. Aditya Bhatt 2013-03-13 11:56:21 +05:30
  • 0891f15517 Sort edit history by 'time' key Aditya Bhatt 2013-03-13 11:56:02 +05:30
  • 329f4e0d17 EditInfoHandle should have an editinfo:memberid attribute to let memberid-specific css identify it by member Aditya Bhatt 2013-03-12 19:53:34 +05:30
  • 251d441337 Use proper namespace name, and set tooltip content width to 100% Aditya Bhatt 2013-03-12 19:52:45 +05:30
  • cee534e713 Let EditInfo only know memberid and timestamp Aditya Bhatt 2013-03-12 14:31:35 +05:30
  • f7c6d4a680 Exclude "urn:webodf:*" nodes on writing the ODF content Friedrich W. H. Kossebau 2013-03-11 18:44:43 +01:00
  • 534960315c Add core.Zip.createByteArray and odf.OdfContainer.createByteArray Friedrich W. H. Kossebau 2013-03-11 18:41:38 +01:00
  • 4b20ad5c1f Add a button to the toolbar for saving Friedrich W. H. Kossebau 2013-03-11 18:30:47 +01:00
  • 145fb492a0 Also copy programs/editor/fonts into build directory Friedrich W. H. Kossebau 2013-03-14 11:35:56 +01:00
  • 44db72f74a Stop passing odfCanvas via document.odfCanvas to the zoomSlider, use new EditorSession.getOdfCanvas Friedrich W. H. Kossebau 2013-03-12 12:00:26 +01:00
  • 78ae8f19af Remove unused EditorSession.getDocument Friedrich W. H. Kossebau 2013-03-12 11:57:59 +01:00
  • 70a21685a0 Sync scope of vars sessionId & userId in getin.js Friedrich W. H. Kossebau 2013-03-11 18:25:38 +01:00
  • 4942a201bf rename opfDocument to odtDocument in EditorSession Friedrich W. H. Kossebau 2013-03-06 20:44:40 +01:00
  • 6a568a8f58 Split ops.OdtCursor from core.Cursor & rename ops.Document to ops.OdtDocument Friedrich W. H. Kossebau 2013-03-04 09:56:38 +01:00
  • 36346106d3 Add a README to the tests Friedrich W. H. Kossebau 2013-02-26 17:03:51 +01:00
  • b7c6a25935 Cleanup tests.js a little Friedrich W. H. Kossebau 2013-02-26 17:03:37 +01:00
  • d182077eda Add core.UnitTest.provideTestAreaDiv/cleanupTestAreaDiv to consolidate testarea div usage Friedrich W. H. Kossebau 2013-02-26 17:02:29 +01:00
  • 1d4eb0fd67 jsdoc Aditya Bhatt 2013-03-06 19:39:18 +05:30
  • 261a530a0a Use better regex matching Aditya Bhatt 2013-03-06 19:38:59 +05:30
  • 91849f78b1 Return empty array, avoid fontpicker exception Aditya Bhatt 2013-03-05 16:19:22 +05:30
  • 48fa116ff8 Use dojo's AMD loader for fonts css, avoid manual XHRing and race problems Aditya Bhatt 2013-03-05 16:06:14 +05:30
  • 0b0f9160aa Avoid a little race condition by moving the onchange handler for stylePicker inside the creation of ParagraphStyles Aditya Bhatt 2013-03-05 13:59:12 +05:30
  • 29df7b772a * Move XHR from editor.js to EditorSession, stop making fonts global, and make this synchronous * Some explanatory comments about the simple css parsing * Use a better technique for deduplicating font family declarations, pick the alphabetically first font name Aditya Bhatt 2013-03-05 13:57:27 +05:30
  • b03066b7e5 Remove whitespace Aditya Bhatt 2013-03-01 14:33:47 +05:30
  • 1f894d0691 Remove lots of whitespace Aditya Bhatt 2013-03-01 14:31:00 +05:30
  • fc3f08c1da How did this file get deleted???? Adding back Aditya Bhatt 2013-03-01 14:21:25 +05:30
  • 3d74878cd1 * getUsedFonts -> getDeclaredFonts renaming. * documentation Aditya Bhatt 2013-03-01 13:40:08 +05:30
  • df7dd999cb Some documentation. Also, rename isFontUsed to isFontDeclared for better meaning Aditya Bhatt 2013-03-01 13:30:12 +05:30
  • cf583fc8ea Explanatory Comments Aditya Bhatt 2013-03-01 13:23:32 +05:30
  • 7e30f26cc9 add a little check for availability of font declarations in the editor Aditya Bhatt 2013-03-01 13:21:19 +05:30
  • 0af89d2d2a Add an empty fonts/fonts.css file, to be filled with @font-face declarations in a real-world implementation Aditya Bhatt 2013-03-01 13:10:02 +05:30
  • 0fa56a7dc9 Remove forced smallish width of fontpicker Aditya Bhatt 2013-03-01 03:10:43 +05:30
  • 02cc3d1722 Declare a font if it is not already used in the document Aditya Bhatt 2013-03-01 02:52:26 +05:30
  • 5d058cdedc A function in ops.Document to check if a font is used in the document Aditya Bhatt 2013-03-01 02:26:00 +05:30
  • 5f4f38be35 Move onAdd and onRemove to inside the stylePicker initialization so we don't get race exceptions Aditya Bhatt 2013-03-01 02:20:05 +05:30
  • d3b0678328 Change namespace from fons to stylens and font-family to font-name in updateParagraphStyle in Document Aditya Bhatt 2013-03-01 02:03:22 +05:30
  • 3c062a76cd * A new widget, fontPicker.js, made in a similar way to paragraphStyles.js. * Remove old declarative 'placeholder' font selector from fontEffectsPane.html, and attach programmatically the new fontPicker in it's place. Rename fontFamily to fontName, since we are actually dealing with font-names here when we work with styles. Aditya Bhatt 2013-03-01 02:00:50 +05:30
  • 7ef88fc872 Retrieve the font face declarations map from Style2CSS in Formatting.js. Expose this map to EditorSession, and add a getUsedFonts method to EditorSession that removes number-suffixed duplicate font-names like Arial1, Arial2, etc and returns a reduced font name-to-family map. Aditya Bhatt 2013-03-01 01:57:01 +05:30
  • 3cc733a887 * Import fonts/fonts.css into editor.css * XHR fonts/fonts.css in editor.js, and parse it using some regexes to get an array of font families. Aditya Bhatt 2013-03-01 01:54:32 +05:30
  • e1a4c6d02b Add German translation for new strings Friedrich W. H. Kossebau 2013-03-05 22:34:32 +01:00
  • 0a5f9f6dab Do not mark mistakenly global vars as assignable in jslint /*global*/ directives Friedrich W. H. Kossebau 2013-02-26 18:00:25 +01:00
  • bc984d41ec add explanatory comment to dialog.onShow Aditya Bhatt 2013-02-22 13:12:10 +05:30
  • be776e62b7 Open current paragraph's style when the dialog is opened. Aditya Bhatt 2013-02-22 12:01:16 +05:30
  • 2a46022a5c unbreak paragraph splitting Friedrich W. H. Kossebau 2013-02-20 12:44:29 +01:00
  • 546b26d3d0 Add @constructor annotation as discussed in RR #35. Aditya Bhatt 2013-02-20 13:18:13 +05:30
  • b761e267ee Only hide focus outline inside editor Aditya Bhatt 2013-02-20 13:04:25 +05:30
  • 6c00d77835 Remove the menubar, make dialog accessible through a little dropdown button in the toolbar. Also simplify the CSS to make everything look more consistent, and let dojo draw the backgrounds of some widgets Aditya Bhatt 2013-02-19 13:59:41 +05:30
  • 0b4169a6b7 Remove annoying focus outline Aditya Bhatt 2013-02-19 12:33:36 +05:30
  • 8f526248f3 Add a signalParagraphStyleModified, and make the BIUS buttons listen to it so that they are updated when a dialog changes the current style's properties Aditya Bhatt 2013-02-19 00:46:18 +05:30
  • fd33940f2d Make underline checkbox work properly Aditya Bhatt 2013-02-19 00:27:57 +05:30
  • cbfc8690cd Check if textDecoration is populated Aditya Bhatt 2013-02-18 23:58:55 +05:30
  • 3c1ce46dac Add strikethrough support to the style modifier and restore the button in simpleStyles. Also add special CSS handling for it in Style2CSS Aditya Bhatt 2013-02-18 23:53:07 +05:30
  • ede48f84bb Add even more granular checking for modification info Aditya Bhatt 2013-02-18 23:27:58 +05:30
  • e15e8ef80d Make B I U buttons work, and remove the strikethrough button for now Aditya Bhatt 2013-02-18 23:27:20 +05:30
  • 3aa8f17ce8 Fix underline attribute naem Aditya Bhatt 2013-02-18 23:26:58 +05:30
  • 80a9567ee1 Add a few more mimetypes. Jos van den Oever 2013-02-20 08:04:55 +01:00
  • 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 Aditya Bhatt 2013-02-18 21:09:01 +05:30
  • 38b2dabe91 Use a more proper property name - textAlign instead of alignment Aditya Bhatt 2013-02-18 20:12:55 +05:30
  • d0a9ec117c Don't use an array for BIU, use proper key-val Aditya Bhatt 2013-02-18 20:12:31 +05:30