Commit Graph
842 Commits
Author SHA1 Message Date
Philip Peitsch daff6484cf Enabled direct text styling only if current selection is a text range
Prevents the controller advertising things such as bold and underline
are valid operations for an inline image (they are not!).
2014-09-11 12:00:06 +10:00
Friedrich W. H. Kossebau cb3ffe4f30 Revert "Expose setTemplate/isTemplate in Wodo.TextEditor API"
This reverts commit 681de3526e.
2014-09-03 13:20:12 +02:00
Friedrich W. H. Kossebau 6a9e61acd3 Revert "Make Wodo demo/testing code properly handle template documents"
This reverts commit 49803f61cb.
2014-09-03 13:20:12 +02:00
Friedrich W. H. Kossebau 00baedc2ea Small README wording improvement 2014-08-21 18:02:08 +02:00
Friedrich W. H. Kossebau e4ade02214 Remove backend parameter from pullboxeditor.js (there is only pullbox) 2014-08-21 18:02:08 +02:00
Friedrich W. H. Kossebau 72453c5784 rename server/ to backends/ 2014-08-21 16:49:46 +02:00
Friedrich W. H. Kossebau 7ab6ec8be7 In FF-Addon also display template and flat-xml variants of ODT/ODP/ODS 2014-08-15 12:15:38 +02:00
Friedrich W. H. Kossebau 49803f61cb Make Wodo demo/testing code properly handle template documents 2014-08-15 11:48:20 +02:00
Friedrich W. H. Kossebau 47d185812c Support template types in docnosis 2014-08-15 11:48:20 +02:00
Friedrich W. H. Kossebau 681de3526e Expose setTemplate/isTemplate in Wodo.TextEditor API 2014-08-15 11:48:19 +02:00
Friedrich W. H. Kossebau e9db31459a Load ODFViewerPlugin also for all template and flat variants of odt/odp/ods 2014-08-15 11:48:19 +02:00
Satvik Kumar b02b461e60 Remove style element functions from OdtDocument
Removed getStyleElement, getParagraphStyleElement and
getParagraphStyleAttributes from OdtDocument as these functions simply
redirect to their implementations in odf.Formatting.
2014-08-13 23:20:15 +10:00
Satvik Kumar a714866c52 Removed getParagraphElement from OdtDocument
This function only redirected to the OdfUtils version and many callers
already had an existing instance of OdfUtils to use. Any callers who did
not have an instance of OdfUtils now create one to continue using the
function.
2014-08-13 23:15:50 +10:00
Satvik Kumar 865541a3ed Use core.StepsDirection enum for rounding direction
The rounding direction constants in OdtStepsTranslator overlap with the
existing enum in core.StepsDirection. It makes sense to use that enum here
to specify rounding behaviour in converting DOM points to steps so the
constants have been removed and the enum has been substituted for all
usages.
2014-08-07 23:53:05 +10:00
Satvik Kumar 482e98da74 Remove rounding predicate from step conversion
This removes the option to provide a rounding predicate to decide whether
to round up or down from the convertDomPointToCursorStep method. It is replaced
with an enum that specifies whether to round up or down. The predicate was
removed as all callers supplied the same function to indicate they wanted
round up behaviour and this predicate was being duplicated.

The rounding parameter is optional and defaults to rounding down to the
previous step which is the same as before this commit.
2014-08-07 23:07:57 +10:00
Friedrich W. H. Kossebau 0e3b468ad5 Dump //@ sourceURL= variant, use just //# sourceURL=
For some versions of firefox and chromium they support //# now,
and on debugging all the deprecated warnings at least with firefox
are annoying
2014-08-07 11:19:43 +02:00
Friedrich W. H. Kossebau 2f7d3530b2 Add targets test-* and build-* for each product-* target 2014-08-06 12:58:15 +02:00
Philip Peitsch c845342406 Extract viewport management logic into standalone system
Simplifies the caret class, and allows more exotic view configurations
to be inserted without breaking core code.

As a bonus, the new Viewport class is able to scroll arbitrary
rectangles into view.
2014-08-05 21:26:27 +10:00
Friedrich W. H. Kossebau 015d3a76cd Support more API variants to enter/leave fullscreen (with input support) 2014-08-05 02:16:50 +02:00
Friedrich W. H. Kossebau 91dcf77373 Only support blankout in presentation mode
Also:
* no navigation in blankout mode
* leave blankout when presentation mode is left (e.g. by browser on ESC)
2014-08-05 02:16:50 +02:00
Michiel Leenaars 07837b15d1 Screen blanking for presentations + additional hotkeys for navigation 2014-08-05 02:16:50 +02:00
Philip Peitsch 1ba2887e4f Provide "real" selection content to aid text2speech tools
Text-to-speech and screen readers use the browser's selection to determine
what the current selected text is. Some browsers (e.g., Safari on OSX) think
the text content of the event trap is the currently selected content, and
only vocalise the letter "b".

Cope with this by serialising the currently selected text to the input
field on redraw. On a 1000 page text-only document, this can add sizeable
performance impact (400ms to execute synchronizeWindowSelection), but
as this only occurs when the cursor is updated, and only once per redraw,
the actual end user impact is reasonably minimal.
2014-08-01 01:07:04 +10:00
Asier Iturralde Sarasola afabcc617b Add Basque translation, under MIT license 2014-07-31 13:48:40 +02:00
Philip Peitsch 7fd4c040dc Split screen editing app
Creates two editor instances within a single web-page, and allows live
collaboration between them.

Key features:
* EASY TO USE (requires no additional setup to run)
* supports client disconnection
* simplistic latency simulation
2014-07-24 23:26:15 +10:00
Philip Peitsch 83adef477c Allow multiple instances of the editor to be created in a single page
Mangle HTML ids in a predictable fashion in dialog widgets to ensure they
do not clash if multiple instances are loaded.
2014-07-24 12:53:06 +10:00
Friedrich W. H. Kossebau 369601d9f7 Fix broken copying of dijit*.css 2014-07-17 23:31:15 +02:00
Friedrich W. H. Kossebau 35f1225afe Clean-up np longer needed build target viewerbuilddir-target 2014-07-17 21:08:40 +02:00
Friedrich W. H. Kossebau 97c6676f72 Enable reaching the Viewer's About dialog close button in small windows 2014-07-17 20:45:16 +02:00
Friedrich W. H. Kossebau f860459cee Be more verbose in the About dialog of ViewerJS, not on toolbar 2014-07-16 19:33:00 +02:00
Friedrich W. H. Kossebau be65b5b70d navigator.language does not exist on IE10, so check for it as well 2014-07-16 15:15:13 +02:00
Friedrich W. H. Kossebau 41f8b18ac6 Make sure all toolbar elements are disabled without a session
(and merge any require calls into one per class definition)
2014-07-10 18:19:11 +02:00
Friedrich W. H. Kossebau 494fac1f46 Do not copy the whole dijit/themes dir, only what is needed (claro) 2014-07-10 18:02:20 +02:00
Friedrich W. H. Kossebau c98a4c64ec Fix creation of some dojo dirs
Copy & paste error, before was accidently creating the source dir
of the dir copy in the next line, not the target dir

Possibly is not needed at all, given that it worked before, but then places
before also do the same, so let's be consistent, those calls do not hurt
2014-07-10 18:02:20 +02:00
Jos van den Oever dcc24c0e2c Remove the use of onload in <link/> element.
The handler onload on <link/> does not work on the default browser on android 4.0.3.
2014-07-05 02:06:55 +02:00
Friedrich W. H. Kossebau 0c0619e257 cleanup code for document.currentScript workaround 2014-07-05 00:49:53 +02:00
Friedrich W. H. Kossebau 18fe94c7b2 add fallback if document.currentScript is not available (e.g. with Webkitties) 2014-07-03 23:20:50 +02:00
Friedrich W. H. Kossebau b50e9e222c Add API dox in JsDoc style for the options to Wodo.createTextEditor 2014-06-24 23:01:41 +02:00
Friedrich W. H. Kossebau 5fbb9a13ad Use wodotexteditor.js from sources to create API dox
avoids the dox' symbol source file to have full path of build dir
2014-06-24 21:19:26 +02:00
Friedrich W. H. Kossebau f5f87f240c Do not yet add revieweditor.html to wodotexteditor zip 2014-06-24 19:59:05 +02:00
Friedrich W. H. Kossebau b22bc05584 Fix undefined id set explicitely for toolbar container element in collab editor 2014-06-24 19:58:19 +02:00
Friedrich W. H. Kossebau f779cee2f6 Use an unversioned directory to collect the files for wodotexteditor zip
(helps testing as the url to browse to in the build dir does not change all the time)
2014-06-24 15:36:24 +02:00
Friedrich W. H. Kossebau 0668abe0e2 install wodo.texteditor code files separated in zip subdir wodotexteditor/
also no longer install wodo.texteditor-only ones in programs/editor
2014-06-24 15:36:24 +02:00
Friedrich W. H. Kossebau 753c394789 Make Java a required dependency
webodf.js needs it for closure compiler, and there is not much in the repo
which really makes sense to build without also building webodf.js
2014-06-24 01:10:13 +02:00
Aditya Bhatt e22583aad2 Mark direct paragraph styling as a stable feature 2014-06-22 03:28:18 +02:00
Friedrich W. H. Kossebau 25f74a2d77 Create API dox for Wodo.TextEditor 2014-06-20 17:47:54 +02:00
Friedrich W. H. Kossebau c168a161b3 Add README.md to programs/editor 2014-06-20 17:47:54 +02:00
Friedrich W. H. Kossebau 89f344e23f Add HOWTO-wodotexteditor.md 2014-06-20 17:47:54 +02:00
Friedrich W. H. Kossebau a3bab52b67 add product wodotexteditor 2014-06-20 17:47:54 +02:00
Friedrich W. H. Kossebau e593e424b2 move fullscreen pinch-zoom into own class FullWindowZoomHelper 2014-06-20 17:47:54 +02:00
Friedrich W. H. Kossebau f57b350c55 Split Editor into Wodo.Texteditor and Wodo.CollabTexteditor 2014-06-20 17:47:54 +02:00