Aditya Bhatt
ca3cb713e7
Do not fire onChange in paragraph styles
...
dropdown when setting the value programmatically.
2013-11-26 12:23:48 +01:00
Aditya Bhatt
6a4f0e69ab
Add translations support to runtime.js,
...
and programs/editor/Translator.js which is a reference
implementations of a translator.
The programs/editor/Translator code is used entirely in
localeditor.js/collabeditor.js and the editor itself, or webodf,
and need not know anything about the translation mechanism.
Translate all strings within the editor and all
user-facing strings in webodf core itself using
runtime.tr();
2013-11-05 18:38:41 +01:00
Friedrich W. H. Kossebau
c2a795e668
Update link to repo: now https://github.com/kogmbh/WebODF/
2013-10-23 18:20:30 +02:00
Friedrich W. H. Kossebau
508570dab8
Add copy of the AGPL3 to sources (+ add to created zip files)
2013-10-21 17:55:16 +02:00
lli
94ceb41a03
Disable font and paragraph formating toolbar items on the editor when image is selected.
...
LO/AOO actually hides those options.
2013-10-15 21:42:21 +11: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
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
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
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
Jos van den Oever
eecfa4d201
Remove trailing spaces and tabs.
2013-06-19 16:47:52 +02:00
Friedrich W. H. Kossebau
dade008500
Add core.EventNotifier, as generic notification handler for both ops.Session and EditoSession
2013-04-09 13:44:49 +02:00
Aditya Bhatt
546b26d3d0
Add @constructor annotation as discussed in RR #35 .
2013-02-20 13:35:47 +05:30
Aditya Bhatt
8f78151c8c
Swap wrong label / value assignment
2013-02-18 14:41:31 +05:30
Aditya Bhatt
76e92cee18
Add onAdd and onRemove 'events' to the paragraphStyles widget
2013-02-18 14:41:31 +05:30
Aditya Bhatt
1435d44c3e
Add getValue method to paragraphStyles and use the new class in the
...
dialog
2013-02-18 14:41:31 +05:30
Aditya Bhatt
85a21624c7
Refactor paragraphStyles to be able to have custom methods, and use it
...
in currentStyle
2013-02-18 14:41:31 +05:30
Aditya Bhatt
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.
2013-02-18 14:41:31 +05:30
Aditya Bhatt
c0cb57dd0c
Restore the previously selected style after refreshing the list, in the
...
generic paragraph styles selector
2013-02-02 01:11:24 +05:30
Aditya Bhatt
8acb6c90f9
Make all paragraph style selectors auto-update when styles are changed
...
in the document
2013-02-02 00:23:01 +05:30
Aditya Bhatt
776a5d3834
Remove style sniffing and setting ability from paragraphStyles widget
2013-01-30 19:16:43 +05:30
Aditya Bhatt
01634286bc
Linted everything in editor/
2012-12-28 12:05:06 +01:00
Tobias Hintze
f2667f043f
cleanup, whitespace, and cosmetics
2012-12-03 16:56:04 +01:00
Tobias Hintze
20accd4fd2
apply AMD pattern to programs/editor
...
* allows use either in src or in build dir (cdn-index.html / index.html)
* creates dojo-amalgamation.js which includes selected languages
2012-12-03 16:24:08 +01:00
Aditya Bhatt
71656d78d4
Remove all instances and usages of session, documentObject, and memberId from all editor components. Obsolte after using EditorSession
...
(Tobias Hintze <th-git@kogmbh.com >:
manually resolved conflict in editor.js during cherry-pick)
2012-11-30 13:22:31 +01:00
Aditya Bhatt
23bda39b14
Trash all the old code that talked to webodf, and use the new EditorSession API. Code is reduced!
2012-11-30 13:06:38 +01:00
Friedrich W. H. Kossebau
549dd93381
Turn setting the style of a paragraph into an operation (dirty initial hack)
2012-11-09 12:24:35 +01:00
Friedrich W. H. Kossebau
677c436ceb
Setting attribute "usercolor" on changed paragraphs no longer needed
2012-11-09 12:23:21 +01:00
Friedrich W. H. Kossebau
9985bb5a12
Fix paragraphstyle selector to only show named styles for a paragraph
...
Also use "___" as separator because the memberId is used directly in CSS
2012-11-09 12:23:12 +01:00
Friedrich W. H. Kossebau
51570c2838
Unbreak styles combobox in programs/editor
...
Also
* emit signal for cursor move again
* turn signal names into string objects
* makes Session and Document take odfCanvas instead of just odfContainer
2012-11-09 12:21:08 +01:00
Aditya Bhatt
f39db20f7f
Remove log
2012-10-23 12:55:15 +02:00
Aditya Bhatt
7b0261ea00
True user tracking involves both cursor and focus tracking. Add avatarActivated event and use it in the paragraphStyles selector, so that when you click on another avatar, it's paragraph is selected
2012-10-23 12:32:26 +02:00
Aditya Bhatt
397ac61d78
Have awesome animated paragraph highlight for edited paragraphs
2012-10-23 12:10:05 +02:00
Aditya Bhatt
8f37417536
Use Avatar's actual positioning instead of the mouse click to determine the place / paragraph being edited. Now the paragraph style selector will keep track of the current paragraph even when the avatar moves with the cursor
2012-10-22 16:35:50 +02:00
Aditya Bhatt
2411c05683
if there is no paragraph where we clicked, return handler
2012-10-22 11:33:44 +02:00
Tobias Hintze
22b155f103
editor: move creation of "changed"-event from html to editor.js
2012-10-22 10:25:54 +02:00
Tobias Hintze
375457d233
update license and copyright headers
2012-10-21 20:46:20 +02:00
Aditya Bhatt
44f55e74ed
make avatar balloons move when document content is changed
2012-10-05 16:55:06 +05:30
Aditya Bhatt
e5236f9779
remove logging
2012-10-04 17:14:20 +05:30
Aditya Bhatt
6cbb94df74
bind paragraph selector
2012-10-03 19:46:41 +05:30
Aditya Bhatt
51e044a3c6
log selection to console, doesn't work yet
2012-08-22 13:04:19 +05:30
Aditya Bhatt
55be3b693c
We don't need to load the odf.Formatting class separately into document. The Formatting of the document is already available through OdfCanvas.getFormatting(). Refactored.
2012-08-22 10:33:40 +05:30
Aditya Bhatt
bed487f364
fix height and width of selector
2012-08-21 19:30:01 +05:30
Jos van den Oever
7c5416a66b
Fix some errors reported by JSLint.
2012-08-20 10:18:17 +02:00
Aditya Bhatt
46fc4c4c16
Create a widgets.ParagraphStyles class, and use it inside editor/widgets.js to load a Paragraph Style selector, which gives a list of all available styles.
2012-08-18 03:55:51 +05:30
Aditya Bhatt
06b5139139
add a paragraph style retriever method in lib/odf/Formatting.js and a selector menu in the editor program
2012-08-14 13:57:58 +05:30