Commit Graph
371 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau 297562afb3 Consistency: "named" style -> "common" style 2013-09-20 18:50:29 +02:00
Lu Li bbb5ecef8a Refactoring: changed Op(Add|Remove)ParagraphStyle to Op(Add|Remove)Style, so they can handle all style families NOT just paragraph 2013-09-20 17:36:41 +02:00
Aditya Bhatt 5b3d1b2fcd Make onToolDone an overrideable member function that is called whenever
a tool is done. Now we don't pass onToolDone as a callback argument.
Make styles dialog, zoom slider, and other widgets restore focus to the
document once they are done.
2013-09-19 18:54:37 +02:00
Friedrich W. H. Kossebau 5cbca527dc In localeditor demo app fix unpossible loading of the same file directly again 2013-09-19 18:25:08 +02:00
Friedrich W. H. Kossebau 43caf1f333 In collabeditor demo app set the current sessionid as fragment to the location 2013-09-19 14:31:06 +02:00
Friedrich W. H. Kossebau 9d2a79c6f9 Fix localeditor demo for files loaded by file selector, properly end editing of old document 2013-09-19 13:19:37 +02:00
Friedrich W. H. Kossebau eb142f81a7 In collabeditor demo app set focus to login field on start 2013-09-18 23:36:22 +02:00
Friedrich W. H. Kossebau e60785b46a In collabeditor demo app after login directly go to session if id passed as fragment in the url 2013-09-18 23:36:01 +02:00
Aditya Bhatt 57c8e6c462 Handle default styles properly in the editor.
* EditorSession gets a bit of abstraction which allows smoothly
using the same functions to handle paragraph styles, where an empty
styleName means the default style.
* The paragraphStyles widget now names the default style as ":default"
internally, because dojo could not handle "" properly as an entry value.
* OpUpdateParagraphStyle now knows to treat "" as default style.
* Translations for defaultStyle
2013-09-17 16:27:29 +02:00
Friedrich W. H. Kossebau fa42907b82 Less harsh shadow color in MemberListView 2013-09-16 18:46:52 +02:00
Friedrich W. H. Kossebau a5fd9a76a8 Darker color for Editor container background for better focus on document 2013-09-16 18:46:52 +02:00
Friedrich W. H. Kossebau 55d5ac8ac8 Add callback to set focus to canvas once done to most tools in the toolbar 2013-09-16 18:45:19 +02:00
Friedrich W. H. Kossebau 6031e31cb8 Remove no longer needed preset bogus data call in MemberListView, now done by all MemberLists for consistent data
Fixup for 0187905b3d
2013-09-11 14:14:50 +02:00
Friedrich W. H. Kossebau de1103fcfe Add gui.DirectParagraphStyler, a UI-less tool specialized on direct styling of paragraphs 2013-09-10 15:52:39 +02:00
Friedrich W. H. Kossebau eb57ef2def Add gui.DirectTextStyler, a UI-less tool specialized on direct styling of text 2013-09-10 13:02:28 +02:00
Philip Peitsch 15f4bba862 Clarified document signals (common style created/deleted)
Creating an automatic style was firing signalStyleCreated/Deleted events
unexpectedly. Renamed these to signalCommonParagraphStyle* instead to
clarify that this signal only fires when "common" styles are created.

Terminology was taken from ODF specs:
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415058_253892949
2013-09-09 19:58:44 +10:00
Philip Peitsch d1cdcfb2cb Add direct font family and size styling support to Editor
* tweak fontPicker wrapper to be a little easier to use within other
  widgets
* keep annotation button stays in same position
2013-09-09 09:16:04 +02:00
Friedrich W. H. Kossebau e58eb93ffb Allow download of last saved session state in SessionListView 2013-09-08 18:16:14 +02:00
Friedrich W. H. Kossebau 0187905b3d Have MemberModel define the temporary data for members, not the UI 2013-09-07 17:00:58 +02:00
Friedrich W. H. Kossebau ed86ae77de Only enable direct styling of paragraph if args.directStylingEnabled is set
(still need to check OT)
2013-09-07 17:00:58 +02:00
Friedrich W. H. Kossebau 0a87345d71 German translation for UI strings of buttons for modifying paragraph alignment and indentation 2013-09-06 18:30:53 +02:00
Philip Peitsch 0d7aa91424 Forward on paragraph change events for all paragraphs within the user's selection 2013-09-06 18:30:53 +02:00
Philip Peitsch c7eac5bd5e Added buttons to editor for modifying paragraph alignment and indentation 2013-09-06 18:30:53 +02:00
Friedrich W. H. Kossebau 679eccd2f9 fix wrong memberId -> memberid in opspecs created in EditorSession (too aggressive CamelCasing...) 2013-09-03 13:40:21 +02:00
Friedrich W. H. Kossebau 1f7469884f redo class Editor (for proper re-usage and also destruction)
* Editor can have three states: without a document/session, with a document/session, destroyed
* Editor is created without any document/session initially
* document/session has to be closed before loading another one
* EditorSession/Session are bound to a document/session, recreated for another one
* all other objects are reused with another document/session
* destroy() cleans up the Editor from the webpage it is embedded (at least good enough for now)
* startEditing/endEditing have to be done by the user of Editor
2013-09-03 01:02:48 +02:00
Friedrich W. H. Kossebau d12da85554 Add an optional Close button to the toolbar 2013-09-03 01:02:48 +02:00
Friedrich W. H. Kossebau a41f1138ed Split boot_editor.js/*index.html into separate files for local editor and collaboration editor 2013-09-03 01:02:47 +02:00
Friedrich W. H. Kossebau 870aba86ab Add argument unstableFeaturesEnabled to Editor, disable direct styling & annotations for collab sessions 2013-09-03 01:02:47 +02:00
Friedrich W. H. Kossebau 479ecd79f8 Turn widgets.js into Tools.js, make tools work without a editorSession object set 2013-09-03 01:02:47 +02:00
Friedrich W. H. Kossebau 626e919fca enable stopping the sessionlist updates, e.g. when a session is selected 2013-09-02 16:38:34 +02:00
Friedrich W. H. Kossebau ba10c691e0 Make UI strings for style cloning/deleting translatable 2013-08-28 17:38:59 +02:00
Friedrich W. H. Kossebau 279241f3f2 Clean up left-over traces of the chat area 2013-08-28 16:50:59 +02:00
Friedrich W. H. Kossebau c3545d7d4f Clean up left-over traces of the menubar 2013-08-28 16:49:30 +02:00
Friedrich W. H. Kossebau f2b56083e6 add a ops.Server interface + a ServerFactory interface, move Nowjs-based server stuff into programs/editor/server/nowjs
MemberModel, SessionList, and OperationRouter are proxy classes which use
the server object to communicate with the server, while the server does
not always need to know about them
e.g. some server could not provide a SessionList, while another could have
that and more, while sharing the same basic server protocol.
Thus the serverfactory instance is separated from the server instance.
2013-08-28 16:33:49 +02:00
Friedrich W. H. Kossebau b01f70441e Remove unused namespace-prefix "text" in editor.css 2013-08-26 16:19:29 +02:00
Friedrich W. H. Kossebau 6c1864c574 Rename MemberList to MemberListView 2013-08-18 20:13:29 +02:00
Friedrich W. H. Kossebau a6b3edfbde Transform usage of SessionListView to AMD 2013-08-18 20:12:54 +02:00
Tobias Hintze 1c0f899211 reindent and add a missing closing </div> 2013-08-17 11:17:58 +02:00
Friedrich W. H. Kossebau f4d293645d Rename OpDeleteParagraphStyle to OpRemoveParagraphStyle 2013-08-08 16:26:03 +02:00
Friedrich W. H. Kossebau 4322b22858 Rename everything with "[Uu]ser|[Ppeople]" to "[Mm]ember"
consolidates the terms used a little
2013-08-07 18:03:19 +02:00
Friedrich W. H. Kossebau de12e14614 Remove unset var userid and legacy code for ensuring a memberid in Editor constructor 2013-08-07 15:38:57 +02:00
Aditya Bhatt 825a44affc * OpAddAnnotation that lets you create annotations. This only creates an
annotation-end node if the length of the selection > 0.
* Adds a button to the editor to add an annotation at the given cursor position
or selection
* A bad hack in AnnotationViewManager: The dc:creator of
a created annotation is initially empty because the operation has no
way to access the user model even if it knows the memberid. The
SessionView has a new rule for editinfo:memberid attributes that sets
the CSS content: attribute to the user name. AnnotationViewManager,
for now, will read this CSS property and set the text of dc:creator to
that; at least till we have a better way to access the usermodel in
the future
* Rerenders annotations when an annotation is added for tracking (like upon creation)
* SessionView gets a way to concretely specify the CSS pseudo-class for a rule (:before, :after, etc)
* enableAnnotations only allows handles annotations if the allow value
changes
* Add translation strings for annotate
2013-08-05 19:16:32 +02:00
Friedrich W. H. Kossebau cce094b2c1 turn OpCloneParagraphStyle into OpAddParagraphStyle
having all the data in the spec not only helps/enables OT, but also
makes it possible to create styles in documents without any prior existing
2013-08-01 20:00:44 +02:00
Aditya Bhatt d618dd44f0 Add another note to welcome.odt to demonstrate the angular connectors 2013-08-01 19:05:23 +02:00
Aditya Bhatt 374ffc2fbc * Allow annotations to be enabled/disabled via OdfCanvas
* Documentation++
* Enable annotations by default in editor and viewer.
* Detach range in highlighter after use

Also: Annotation handling is broken when annotations overlap. Add TODO for
that.
2013-08-01 16:17:08 +02:00
Aditya Bhatt 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.

Add an annotation:connector element to the highlight span for a dotted
line
2013-08-01 16:14:58 +02:00
Friedrich W. H. Kossebau e1dcfbdec5 Revert "Do not set an undoManager if there is a server, no server yet integrated with local undo"
This reverts commit 7c381891ba.
2013-07-31 20:32:10 +02:00
Friedrich W. H. Kossebau 7c381891ba Do not set an undoManager if there is a server, no server yet integrated with local undo 2013-07-31 19:59:17 +02:00
Friedrich W. H. Kossebau 0ad093545b set cursor to "pointer" for the session items in the SessionListView 2013-07-31 19:29:23 +02:00
Friedrich W. H. Kossebau b10f41de7b Rename "OpApplyStyle" to "OpApplyDirectStyling" and its spec elemnt "info" to "setProperties" 2013-07-30 12:05:09 +02:00