Commit Graph
47 Commits
Author SHA1 Message Date
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
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
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 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 ba10c691e0 Make UI strings for style cloning/deleting translatable 2013-08-28 17:38:59 +02:00
Friedrich W. H. Kossebau ac2cb8c005 Change spec of ops.OpUpdateParagraphStyle to take real ODF properties as payload for "setProperties" 2013-07-29 16:10:52 +02:00
Jos van den Oever eecfa4d201 Remove trailing spaces and tabs. 2013-06-19 16:47:52 +02:00
Friedrich W. H. Kossebau 51af6f6140 Ensure that style name (id, not the display name) is properly encoded and unique 2013-03-19 10:35:41 +01:00
Aditya Bhatt 0b0f9160aa Avoid a little race condition by moving the onchange handler for
stylePicker inside the creation of ParagraphStyles
2013-03-06 19:51:19 +05:30
Aditya Bhatt 1f894d0691 Remove lots of whitespace 2013-03-06 19:51:19 +05:30
Aditya Bhatt 5f4f38be35 Move onAdd and onRemove to inside the stylePicker initialization so we
don't get race exceptions
2013-03-06 19:51:19 +05:30
Aditya Bhatt bc984d41ec add explanatory comment to dialog.onShow 2013-02-22 13:12:10 +05:30
Aditya Bhatt be776e62b7 Open current paragraph's style when the dialog is opened. 2013-02-22 12:01:16 +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 aeaf1c70f4 Refresh the dialog's selected style in the dialog every time this is
opened; this way the deletability is updated
2013-02-11 14:29:30 +05:30
Aditya Bhatt b9a61c9a31 Handle button visibility based on style deletability 2013-02-11 14:29:30 +05:30
Aditya Bhatt f065a7aaf0 Check for a style's usage in styles, automatic-styles, and body 2013-02-11 14:29:30 +05:30
Aditya Bhatt 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
2013-02-11 14:29:30 +05:30
Aditya Bhatt 1840420b3e Switch to the newly created style in the dialog after cloning 2013-02-02 00:46:32 +05:30
Aditya Bhatt 0da4c9e1b4 Clear and close the popup tooltip after pressing 'Create' 2013-02-02 00:45:59 +05:30
Aditya Bhatt 8d26c25dde Add a new operation, OpCloneStyle.js, and use it in the editor 2013-02-01 23:30:53 +05:30
Aditya Bhatt 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
2013-02-01 21:22:48 +05:30
Aditya Bhatt 82b07e672d Revert "Add a new widget, paragraphStylesModifiable.js, which shall be the"
This reverts commit ad05e95381.
2013-02-01 19:44:01 +05:30
Aditya Bhatt 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.
2013-01-31 18:48:00 +05:30
Aditya Bhatt 6121075d54 Make dialog panes follow the style selected in the dialog 2013-01-30 23:11:45 +05:30
Aditya Bhatt 299ec3e2bf Modify the style in the document that is currently selected *in* the
dialog
2013-01-30 23:05:27 +05:30
Aditya Bhatt 9f87626968 Extend both dialog panes to allow for extra methods to be attached; the
dijit widget is now accessed as pane.widget()
2013-01-30 22:46:10 +05:30
Aditya Bhatt 2cbc70e117 Make the dialog scrollbar go away, adjust sizes 2013-01-30 21:00:24 +05:30
Aditya Bhatt bd14deb810 Add an inert paragraphStyles selector widget above the tabContainer in
the styles dialog
2013-01-30 19:51:54 +05:30
Aditya Bhatt 01634286bc Linted everything in editor/ 2012-12-28 12:05:06 +01:00
Aditya Bhatt 2453386448 Use de-globalized editorSession throughout editor 2012-12-28 12:05:06 +01:00
Aditya Bhatt 2b5bfbc891 Bind accept() and cancel() to onClick for OK and Cancel buttons of dialog 2012-12-28 12:05:06 +01:00
Aditya Bhatt 5333f98f99 Bind dialog to paragraph style, updates on changes to the style
Conflicts:

	programs/editor/widgets/paragraphStylesDialog.js
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 eba10f9ec3 Make dialog previews work.
(Tobias Hintze <th-git@kogmbh.com>:
 manually resolved cherry-pick conflict in fontEffectsPane.js)
2012-11-30 13:29:32 +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
Tobias Hintze 1e0e95a7f4 hotfix: translator should be gracefull for missing translation
(this changes the "API" to translator("foo") instead of translator.foo)
2012-11-23 19:42:25 +01:00
Aditya Bhatt 50403ed51c font styles dialog tab 2012-11-02 16:13:29 +05:30
Aditya Bhatt 358a7a3bbc New paragraph styles dialog 2012-10-23 17:35:05 +02:00
Friedrich W. H. Kossebau 517d2af424 Add german translations (and prepare russian one) 2012-10-23 16:32:10 +02:00
Tobias Hintze 375457d233 update license and copyright headers 2012-10-21 20:46:20 +02:00
Aditya Bhatt 917cba8749 numbering pane 2012-09-11 15:47:04 +05:30
Aditya Bhatt 310cd76e11 paragraph styles dialog uses contentpanes as tabs 2012-09-07 18:07:00 +05:30
Aditya Bhatt ad52db8a6f dialog and menubar, etc 2012-09-03 13:51:35 +05:30