237 Commits
Author SHA1 Message Date
Jos van den Oever 8f0cd82b89 Upgrade to latest Closure Compiler 2019-02-08 03:05:25 +01:00
Jos van den Oever 9f35da24d9 Upgrade to latest Closure Compiler
A few annotation errors were uncovered and fixed.
2016-07-24 22:04:45 +02:00
Philip Peitsch 435501c966 Replace existing zip implementation with jszip v2.4.0
jszip has a much cleaner API than the existing RawDeflate version. In
addition, jszip supports creation of a compressed output stream.

As it's non-trivial to make jszip behave with closure compiler, a second
concat-only step has been added during compilation to include 3rd party
dependencies.

Fixes #21.
2015-07-15 20:38:04 +10:00
Friedrich W. H. Kossebau 5efa1a69e4 seedrandom.js is 3rd-party, so ignore for licensecheck & jslint 2015-06-07 13:16:34 +02:00
Jos van den Oever b8ad5b3889 Upgrade to Closure Compiler 20150505.
We are now using our own copy of the externs to deal with differences
of opinion on best typing of types.
2015-06-01 08:53:35 +02:00
Friedrich W. H. Kossebau 6992d58212 Remove anything "now" from tools/extern.js, no longer used 2015-04-13 13:50:15 +02:00
Friedrich W. H. Kossebau 963eabf0af Move UnitTester code into test dirs, no longer compile into webodf.js 2015-03-14 01:37:32 +01:00
Friedrich W. H. Kossebau 6fa1f56f05 Move HTML rendering of logging out of normal BrowserRuntime 2015-03-14 01:37:32 +01:00
Friedrich W. H. Kossebau 5cbf30c382 Stop adding lots of debug comments to dojobundle.js & dojo-amalgamation.js 2015-03-13 22:36:34 +01:00
Friedrich W. H. Kossebau 651004d393 Fix JSLint issues in programs/benchmark. 2015-02-23 23:18:20 +01:00
Friedrich W. H. Kossebau 153dd629dc Fix JSLint issues in docnosis 2015-02-23 17:31:37 +01:00
Friedrich W. H. Kossebau c749ca8927 Code cleanups in programs/editor for issues found with JSLint 2015-02-23 17:31:37 +01:00
Philip Peitsch 018448d792 Extract ODF field highlighting into standalone view
As per design discussed in issue #816. Extracting this into a separate
view makes it optional for consumers to use (or potentially further
customize).

Fixes #816.
2014-09-18 00:38:28 +10:00
Philip Peitsch d6ced212b0 Migrate per-node checks out of TextPositionFilter
Moving these checks into a node filter ensures it is only required
once per node, rather than once per node-position.

This results in a 60% improvement in position iteration speed.
2014-09-12 09:21:22 +10:00
Philip Peitsch 29f228a9f3 Support selection & deletion of more ODF fields
* Includes a tool to help parse the RNG to figure out text containers
* Add demonstration section to visual-tests document

Fixes #772
2014-09-11 15:32:27 +10:00
Philip Peitsch 741ea56a17 Add event subscription tracking object to simplify per-frame subscriptions
A common use-case for UI components is to only update the UI state just
before the next frame is rendered, irrespective of how many times a
signal is fired within a given batch of operations.

The event subscriptions object allows these to be easily created and
tracked, and also makes it easier to ensure all subscriptions are cleaned
up at the end.
2014-09-11 12:00:07 +10:00
Friedrich W. H. Kossebau d09322c645 Compress the CSS in css2js.js, by removing comments & indentation 2014-08-23 21:13:34 +02:00
Friedrich W. H. Kossebau b5728f962a Use single-quotes in CSS to save a few escaping bytes after css2js.js 2014-08-23 21:12:50 +02:00
Philip Peitsch de8d145313 Escape backslashes in concatenated CSS 2014-08-20 22:17:14 +10:00
Philip Peitsch 4c7ff86852 Implement support for style:text-position
style:text-position defines sub and super-script text properties.
2014-08-08 22:32:41 +10:00
Philip Peitsch 6f5abf29b4 Revert incorrect annotation scroll attempt from 9034648
Implementation would scroll to *any* annotation rather than
just annotations created by the local member.
2014-08-07 20:52:08 +10:00
Friedrich W. H. Kossebau 7faf940e0b target "webodf.js-tests" with all tests, only run tests on change 2014-08-06 12:58:15 +02:00
Philip Peitsch 9034648042 Scroll the annotation node into view after creation
Makes annotation insertion feel cleaner as the user can now see the
complete annotation on insertion.

Fixes #486
2014-08-05 21:26:28 +10: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
Philip Peitsch 08cfde88e9 Move simplified client rect typedef to a common location 2014-08-05 14:22:09 +10:00
Philip Peitsch d18d2b5b8a Migrate SelectionMover.createPositionIterator to OdtDocument
Remove the SelectionMover file entirely as it no longer contains any
functionality.
2014-08-05 10:12:17 +10:00
Philip Peitsch c08af33ea5 Remove the SelectionMover class and associated code
The removed tests have been superseded by SelectionController tests covering
the same functionality.
2014-08-02 13:14:10 +10:00
Philip Peitsch 615f592473 Re-implement navigate-by-line cursor movement 2014-07-23 02:17:20 +10:00
Philip Peitsch adc5a08759 Re-implement navigate-to-line-boundary cursor movement 2014-07-23 02:17:19 +10:00
Friedrich W. H. Kossebau 41c4737805 Add parameter to zipdir.js for setting a path prefix to zip entries 2014-06-24 15:36:24 +02:00
Friedrich W. H. Kossebau 46b4a89286 Remove currently unused RawDeflate 2014-06-20 16:22:35 +02:00
Friedrich W. H. Kossebau 6d5c5d7170 Replace inflating code in RawInflate.js with code from the pako project 2014-06-20 16:22:35 +02:00
Philip Peitsch 06ecc7d8c8 Implement OpMergeParagraph
In order to improve the OT-ability of text and paragraph removal
with other operations, the merge behaviour has been extracted.

The logic for building up the necessary remove operations has
been encapsulated in TextController for now as all uses pass
through this point still.
2014-06-17 03:13:00 +10:00
Philip Peitsch e0b97e1dd4 Split CollapsingRules out of OpRemoveText
This functionality will be shared with the soon-to-exist merge paragraph
operation.
2014-06-17 02:18:02 +10:00
Philip Peitsch 7de8ff00e7 Group up style information changes and report at the end of an op batch
Operation batches that modify a large number of paragraphs (or repeatedly
modify the same paragraph) can cause numerous unnecessary style change
events to be triggered. Rather than reporting these instantly, track them
as they occur and emit the style change summary on batch end.

Related to #610.
2014-06-14 01:28:40 +10:00
Friedrich W. H. Kossebau a4889715bb Add SessionBackend abstraction
hides away any assumptions about server class structures from the Editor class
2014-06-10 13:11:24 +02:00
Philip Peitsch a4c217ace8 Fix karma.conf.js updating on Windows
Karma.conf.js may contain \r's when checked out on Windows. Cope with
these when updating the karma configuration file content.
2014-06-07 02:09:56 +10:00
Satvik Kumar dac037b52c Fixed paths for files excluded from license check
On Windows the paths have backslashes causing any check against the array
of excluded files to fail. To solve this I used the path module to
normalize the file paths in the array of excluded paths for the license
string check.
2014-06-07 01:49:41 +10:00
Aditya Bhatt c165702542 Add a const gui.CommonConstraints, which lists
the common constraints that come with and are
respected by WebODF.

Use these constraints in all previous occurrences.
2014-06-06 15:11:32 +02:00
Aditya Bhatt a30858b8c3 Rename SessionContextCache to SessionContext.
Stops caching cursor range.
2014-06-06 15:11:32 +02:00
Aditya Bhatt c4387a83ad Turn PlainTextPasteboard into PasteController. 2014-06-06 15:11:31 +02:00
Aditya Bhatt b02e11f1cc Make image insertion respect review mode constraints. 2014-06-06 15:11:31 +02:00
Aditya Bhatt 3f09a7d3b7 Add a new gui.SessionContextCache convenience class.
It lazily computes required information and caches it
for further use -- an initial method inside it is
isLocalCursorWithinOwnAnnotation, which contains the logic
moved from DirectFormattingController. It would have been
expensive to perform this check separately everytime the
cursor moves in each controller.
2014-06-06 15:11:31 +02:00
Aditya Bhatt 51ee5624c4 Add a constraint to disallow deleting others' annotations.
This introduces SessionConstraints into SessionController
and AnnotationController. The latter comes with a new
permission, namely "edit.annotations.onlyDeleteOwn".

Code is added into AnnotationController to check
for the author name of the annotation node to be deleted,
and do nothing if it matches the name of the current
user.
2014-06-06 14:30:44 +02:00
Aditya Bhatt b6e1e7b3d6 Add a SessionConstraints class to gui.
This is intended to hold the on/off states of
various constraints, allow registering new
ones, and provide subscription to a constraint's
state.
2014-06-06 14:30:44 +02:00
Jos van den Oever 59f412dc64 Check javascript licenses during build configuration.
A check is run to make sure all licenses (with a few exceptions) are the same for the files that go into webodf.js.
2014-06-04 12:48:01 +02:00
Friedrich W. H. Kossebau 7f80e8e163 Normalize license headers of editor/benchmark/tests/firefox-addon/viewer source files
* remove @license tag, for consistency with library source files
* use copyright@kogmbh.com email address everywhere
* remove "additional permission", to be added only to released stuff
* separate license header by empty line from following content
2014-06-02 17:49:46 +02:00
Friedrich W. H. Kossebau f1e523dcb9 Remove out-dated collaborate.xml 2014-06-02 16:30:24 +02:00
Friedrich W. H. Kossebau 4aeec35cfe Add one special license header to the compiled webodf.js 2014-06-02 12:29:13 +02:00
Philip Peitsch b31501219c Extract re-usable step direction concept 2014-05-28 21:57:16 +10:00