Commit Graph
52 Commits
Author SHA1 Message Date
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
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
Aditya Bhatt d543584eea whitespace 2013-03-26 13:46:25 +05:30
Aditya Bhatt aa02bf59c6 Need to enclose the dropdownbutton text span within a span, because dojo
restructures the html upto the first descendant span
2013-03-26 13:46:25 +05:30
Aditya Bhatt eacdba133c Fix wrong alignment when strings are too long 2013-03-26 13:46:25 +05:30
Aditya Bhatt df17d620c7 Add a getFamily method to fontPicker, which retrieves the family for a
font with a given name. Use this in the font pane so that we can see
previews for fonts.
2013-03-25 15:52:57 +05:30
Tobias Hintze 7a9e7c50c7 whitespaces 2013-03-20 22:26:01 +01:00
Tobias Hintze e97953f6f1 programs/editor/widgets: make two panes work in a subdir as well 2013-03-20 20:47:03 +01:00
Aditya Bhatt 1f894d0691 Remove lots of whitespace 2013-03-06 19:51:19 +05:30
Aditya Bhatt 0fa56a7dc9 Remove forced smallish width of fontpicker 2013-03-06 19:51:19 +05:30
Aditya Bhatt 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.
2013-03-06 19:51:19 +05:30
Aditya Bhatt fd33940f2d Make underline checkbox work properly 2013-02-20 13:35:47 +05:30
Aditya Bhatt 3aa8f17ce8 Fix underline attribute naem 2013-02-20 13:35:47 +05:30
Aditya Bhatt 38b2dabe91 Use a more proper property name - textAlign instead of alignment 2013-02-18 20:12:55 +05:30
Aditya Bhatt d0a9ec117c Don't use an array for BIU, use proper key-val 2013-02-18 20:12:31 +05:30
Aditya Bhatt bb2ed71042 Remove unused var 2013-02-13 21:47:30 +05:30
Aditya Bhatt dfdbfdc86b Use Lorem Ipsum for preview text so we don't have to translate that 2013-02-13 21:39:44 +05:30
Aditya Bhatt cf2c7c1ae1 Translate all the things 2013-02-13 21:39:44 +05:30
Aditya Bhatt c6e9e90891 Set attribute value from 'justified' to 'justify' 2013-02-11 15:24:19 +05:30
Aditya Bhatt 5df98795aa We already have a form var, no need to use dijit.byId 2013-01-30 23:20:51 +05:30
Aditya Bhatt 5a4680da5c typo 2013-01-30 23:04:20 +05:30
Aditya Bhatt 891260af5f Add .value() methods to both panes 2013-01-30 22:59:37 +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 7d299b717a Remove namespace declarations from dialog panes 2013-01-30 21:08:00 +05:30
Aditya Bhatt d193d58389 Add text and background color modification 2013-01-23 04:22:45 +05:30
Aditya Bhatt 81787baa60 Add a preliminary CSS units converter and use it to convert everything
to millimetres
2013-01-22 20:42:21 +05:30
Aditya Bhatt d47161e571 Use style attributes directly from the attributes map 2013-01-22 15:31:35 +05:30
Friedrich W. H. Kossebau dbb791486e getAttributeNS can return null in some browsers, so check the result for that
https://developer.mozilla.org/en-US/docs/DOM/element.getAttributeNS#Notes
2012-12-28 12:05:07 +01:00
Aditya Bhatt e186836434 Prefix with namespaces 2012-12-28 12:05:06 +01:00
Aditya Bhatt 3e61ec968a Don't use UI-specific properties in operations. remove 'Radio' from
properties
2012-12-28 12:05:06 +01:00
Aditya Bhatt 63e3e84496 Remove log 2012-12-28 12:05:06 +01:00
Aditya Bhatt bdebe10662 Lint 2012-12-28 12:05:06 +01:00
Aditya Bhatt b18bf1226a Lint 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 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
Aditya Bhatt 8b3e632afd Use dojo form instead of HTML forms 2012-12-28 12:05:06 +01:00
Aditya Bhatt 847114c271 Some changes to get accessing of paragraph styles by the dialog working
Conflicts:

	programs/editor/CMakeLists.txt
	programs/editor/index.html
	programs/editor/widgets/dialogWidgets/alignmentPane.js
	programs/editor/widgets/paragraphStylesDialog.js
2012-12-28 12:05:06 +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 d179d72c96 Remove obsolete stuff 2012-11-19 17:03:19 +05:30
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 2ebffb18f6 color pickers for text and bg color 2012-09-12 22:12:04 +05:30
Aditya Bhatt 917cba8749 numbering pane 2012-09-11 15:47:04 +05:30