From 375457d23348b47996efdb1f800c17264f43c27d Mon Sep 17 00:00:00 2001 From: Tobias Hintze Date: Sun, 21 Oct 2012 20:46:20 +0200 Subject: [PATCH] update license and copyright headers --- LICENSE | 33 +++++++++ programs/android/assets/www/nativezip.js | 33 +++++++++ programs/docnosis/docnosis.js | 33 +++++++++ programs/editor/avatars.js | 35 +++++++++- programs/editor/editor.js | 33 +++++++++ programs/editor/widgets.js | 33 +++++++++ .../editor/widgets/characterStylesDialog.js | 33 +++++++++ .../widgets/dialogWidgets/alignmentPane.js | 33 +++++++++ .../widgets/dialogWidgets/fontEffectsPane.js | 33 +++++++++ .../widgets/dialogWidgets/numberingPane.js | 33 +++++++++ .../widgets/dialogWidgets/textFlowPane.js | 33 +++++++++ programs/editor/widgets/loadWidgets.js | 33 +++++++++ programs/editor/widgets/paragraphStyles.js | 33 +++++++++ .../editor/widgets/paragraphStylesDialog.js | 33 +++++++++ .../editor/widgets/paragraphStylesList.js | 33 +++++++++ programs/editor/widgets/simpleStyles.js | 33 +++++++++ programs/editor/widgets/zoomSlider.js | 33 +++++++++ programs/firefoxextension/bootstrap.js | 33 +++++++++ .../components/OdfStreamConverter.js | 33 +++++++++ programs/firefoxextension/makeViewerHtml.js | 1 + programs/firefoxextension/packextension.js | 3 +- programs/ios/www/nativezip.js | 33 +++++++++ programs/nativeQtClient/scripts.js | 33 +++++++++ .../js/common/custom_filereader_dispatcher.js | 67 ++++++++++++++----- .../js/common/custom_filereader_ns.js | 49 +++++++++++--- programs/playbook/scripts.js | 33 +++++++++ programs/touchui/app/app.js | 33 +++++++++ programs/touchui/app/controller/Files.js | 33 +++++++++ programs/touchui/app/model/FileSystem.js | 33 +++++++++ programs/touchui/app/store/FileStore.js | 33 +++++++++ programs/touchui/app/views/FileDetail.js | 33 +++++++++ programs/touchui/app/views/FilesList.js | 33 +++++++++ programs/touchui/app/views/OdfView.js | 33 +++++++++ programs/touchui/app/views/Viewport.js | 33 +++++++++ programs/touchui/scripts.js | 33 +++++++++ programs/viewer/viewer.js | 33 +++++++++ programs/viewer/webodf.js | 64 +++++++++--------- webodf/collabtest/test.js | 33 +++++++++ webodf/compare.js | 33 +++++++++ webodf/filelister.js | 3 +- webodf/gui.js | 3 +- webodf/httpserver.js | 3 +- webodf/lib/core/Async.js | 2 +- webodf/lib/core/Base64.js | 2 +- webodf/lib/core/ByteArray.js | 2 +- webodf/lib/core/ByteArrayWriter.js | 2 +- webodf/lib/core/Cursor.js | 2 +- webodf/lib/core/RawDeflate.js | 2 +- webodf/lib/core/RawInflate.js | 2 +- webodf/lib/core/UnitTester.js | 2 +- webodf/lib/core/Zip.js | 2 +- webodf/lib/export.js | 2 +- webodf/lib/gui/Caret.js | 2 +- webodf/lib/gui/PresenterUI.js | 2 +- webodf/lib/gui/SelectionMover.js | 2 +- webodf/lib/gui/XMLEdit.js | 2 +- webodf/lib/manifest.js | 33 +++++++++ webodf/lib/odf/FontLoader.js | 2 +- webodf/lib/odf/Formatting.js | 2 +- webodf/lib/odf/OdfCanvas.js | 2 +- webodf/lib/odf/OdfContainer.js | 2 +- webodf/lib/odf/Style2CSS.js | 2 +- webodf/lib/odf/StyleInfo.js | 2 +- webodf/lib/packages.js | 3 + webodf/lib/runtime.js | 2 +- webodf/lib/xmldom/LSSerializer.js | 2 +- webodf/lib/xmldom/LSSerializerFilter.js | 2 +- webodf/lib/xmldom/OperationalTransformDOM.js | 2 +- .../xmldom/OperationalTransformInterface.js | 2 +- webodf/lib/xmldom/RelaxNG.js | 2 +- webodf/lib/xmldom/RelaxNG2.js | 2 +- webodf/lib/xmldom/RelaxNGParser.js | 2 +- webodf/lib/xmldom/XPath.js | 2 +- webodf/misctests/testzip.js | 2 +- webodf/odfedit.js | 3 +- webodf/relaxngToCPP.js | 3 +- webodf/roundtripodf.js | 3 +- webodf/roundtripzip.js | 3 +- webodf/testrelaxng.js | 3 +- webodf/tests/core/Base64Tests.js | 2 +- webodf/tests/core/CursorTests.js | 2 +- webodf/tests/core/RuntimeTests.js | 2 +- webodf/tests/core/ZipTests.js | 2 +- webodf/tests/gui/CaretTests.js | 2 +- webodf/tests/gui/SelectionMoverTests.js | 2 +- webodf/tests/gui/XMLEditTests.js | 2 +- webodf/tests/manifest.js | 33 +++++++++ webodf/tests/tests.js | 2 +- .../xmldom/OperationalTransformDOMTests.js | 2 +- webodf/tests/xmldom/XPathTests.js | 2 +- webodf/tools/externs.js | 2 +- webodf/tools/extjsexterns.js | 2 +- webodf/tools/fixLicenses.py | 32 +++++++-- webodf/tools/manifest.js | 33 +++++++++ webodf/tools/runjslint.js | 2 +- webodf/webodfcmd.js | 1 + webodf/xmledit/gui.js | 2 +- 97 files changed, 1437 insertions(+), 118 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..2547a454 --- /dev/null +++ b/LICENSE @@ -0,0 +1,33 @@ +/** + * Copyright (C) 2012 KO GmbH + * + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ diff --git a/programs/android/assets/www/nativezip.js b/programs/android/assets/www/nativezip.js index 612cfe3a..36f516d3 100644 --- a/programs/android/assets/www/nativezip.js +++ b/programs/android/assets/www/nativezip.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global runtime, core, DOMParser*/ core.Zip = function (url, entriesReadCallback) { diff --git a/programs/docnosis/docnosis.js b/programs/docnosis/docnosis.js index 4bddc12c..4009d519 100644 --- a/programs/docnosis/docnosis.js +++ b/programs/docnosis/docnosis.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global runtime, Node, window, DOMParser, core, xmldom, NodeFilter, alert, FileReader*/ runtime.loadClass("core.Zip"); diff --git a/programs/editor/avatars.js b/programs/editor/avatars.js index b705a02c..2760474d 100644 --- a/programs/editor/avatars.js +++ b/programs/editor/avatars.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + * + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ runtime.loadClass("ops.SessionImplementation"); runtime.loadClass("gui.Avatar"); @@ -61,4 +94,4 @@ function TestSession(odfcanvas, avatarlistdiv) { function loadAvatars(documentObject, avatarList) { "use strict"; var testsession = new TestSession(documentObject.odfCanvas, avatarList); -} \ No newline at end of file +} diff --git a/programs/editor/editor.js b/programs/editor/editor.js index 583649e0..41bd16e3 100644 --- a/programs/editor/editor.js +++ b/programs/editor/editor.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + * + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ runtime.currentDirectory = function () { return "../../webodf/lib"; }; diff --git a/programs/editor/widgets.js b/programs/editor/widgets.js index c68d4e2a..829fdf94 100644 --- a/programs/editor/widgets.js +++ b/programs/editor/widgets.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + * + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ function loadWidgets(documentObject) { var dojoWin, toolbar, ToolbarSeparator; diff --git a/programs/editor/widgets/characterStylesDialog.js b/programs/editor/widgets/characterStylesDialog.js index b8a438b8..01777178 100644 --- a/programs/editor/widgets/characterStylesDialog.js +++ b/programs/editor/widgets/characterStylesDialog.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ widgets.CharacterStylesDialog = (function () { function makeWidget(documentObject, callback) { diff --git a/programs/editor/widgets/dialogWidgets/alignmentPane.js b/programs/editor/widgets/dialogWidgets/alignmentPane.js index 9843d2ad..72c45a12 100644 --- a/programs/editor/widgets/dialogWidgets/alignmentPane.js +++ b/programs/editor/widgets/dialogWidgets/alignmentPane.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ widgets.AlignmentPane = (function () { function makeWidget(documentObject, callback) { diff --git a/programs/editor/widgets/dialogWidgets/fontEffectsPane.js b/programs/editor/widgets/dialogWidgets/fontEffectsPane.js index e9f0555e..e9c178f4 100644 --- a/programs/editor/widgets/dialogWidgets/fontEffectsPane.js +++ b/programs/editor/widgets/dialogWidgets/fontEffectsPane.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ widgets.FontEffectsPane = (function () { function makeWidget(documentObject, callback) { diff --git a/programs/editor/widgets/dialogWidgets/numberingPane.js b/programs/editor/widgets/dialogWidgets/numberingPane.js index 95e2c01b..431fc54d 100644 --- a/programs/editor/widgets/dialogWidgets/numberingPane.js +++ b/programs/editor/widgets/dialogWidgets/numberingPane.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ widgets.NumberingPane = (function () { function makeWidget(documentObject, callback) { diff --git a/programs/editor/widgets/dialogWidgets/textFlowPane.js b/programs/editor/widgets/dialogWidgets/textFlowPane.js index 3e2ed0a3..75a06624 100644 --- a/programs/editor/widgets/dialogWidgets/textFlowPane.js +++ b/programs/editor/widgets/dialogWidgets/textFlowPane.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ widgets.TextFlowPane = (function () { function makeWidget(documentObject, callback) { diff --git a/programs/editor/widgets/loadWidgets.js b/programs/editor/widgets/loadWidgets.js index 0d411246..95218598 100644 --- a/programs/editor/widgets/loadWidgets.js +++ b/programs/editor/widgets/loadWidgets.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ var loadWidgets = function(callback) { require([ "SimpleStyles", diff --git a/programs/editor/widgets/paragraphStyles.js b/programs/editor/widgets/paragraphStyles.js index 507c56fa..b83fa941 100644 --- a/programs/editor/widgets/paragraphStyles.js +++ b/programs/editor/widgets/paragraphStyles.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ widgets.ParagraphStyles = (function () { var textns = "urn:oasis:names:tc:opendocument:xmlns:text:1.0"; diff --git a/programs/editor/widgets/paragraphStylesDialog.js b/programs/editor/widgets/paragraphStylesDialog.js index 196a457b..23bb23e3 100644 --- a/programs/editor/widgets/paragraphStylesDialog.js +++ b/programs/editor/widgets/paragraphStylesDialog.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ widgets.ParagraphStylesDialog = (function () { function makeWidget(documentObject, callback) { diff --git a/programs/editor/widgets/paragraphStylesList.js b/programs/editor/widgets/paragraphStylesList.js index a47ccc3f..cc74407c 100644 --- a/programs/editor/widgets/paragraphStylesList.js +++ b/programs/editor/widgets/paragraphStylesList.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ widgets.ParagraphStylesList = (function () { function makeWidget(documentObject, callback) { diff --git a/programs/editor/widgets/simpleStyles.js b/programs/editor/widgets/simpleStyles.js index 97b9aa5a..a6c985c0 100644 --- a/programs/editor/widgets/simpleStyles.js +++ b/programs/editor/widgets/simpleStyles.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ widgets.SimpleStyles = (function () { function makeWidget(documentObject, callback) { diff --git a/programs/editor/widgets/zoomSlider.js b/programs/editor/widgets/zoomSlider.js index f2a5bd1f..86683909 100644 --- a/programs/editor/widgets/zoomSlider.js +++ b/programs/editor/widgets/zoomSlider.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ widgets.ZoomSlider = (function () { function makeWidget(documentObject, callback) { diff --git a/programs/firefoxextension/bootstrap.js b/programs/firefoxextension/bootstrap.js index 16c954fe..2d5fff17 100644 --- a/programs/firefoxextension/bootstrap.js +++ b/programs/firefoxextension/bootstrap.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + * + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global Components, Services, dump, XPCOMUtils, APP_SHUTDOWN, OdtStreamConverter, OdsStreamConverter, OdpStreamConverter*/ function bootstrap() { diff --git a/programs/firefoxextension/components/OdfStreamConverter.js b/programs/firefoxextension/components/OdfStreamConverter.js index fc3e9005..50139355 100644 --- a/programs/firefoxextension/components/OdfStreamConverter.js +++ b/programs/firefoxextension/components/OdfStreamConverter.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global Components, XPCOMUtils, Services, NetUtil, dump*/ function makeODFStreamConverters() { diff --git a/programs/firefoxextension/makeViewerHtml.js b/programs/firefoxextension/makeViewerHtml.js index 92f8882d..3f21cf3d 100644 --- a/programs/firefoxextension/makeViewerHtml.js +++ b/programs/firefoxextension/makeViewerHtml.js @@ -1,5 +1,6 @@ /** * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/programs/firefoxextension/packextension.js b/programs/firefoxextension/packextension.js index 7f5e2cd2..c4ee25b5 100644 --- a/programs/firefoxextension/packextension.js +++ b/programs/firefoxextension/packextension.js @@ -1,5 +1,6 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/programs/ios/www/nativezip.js b/programs/ios/www/nativezip.js index d81f565c..8a94a4e7 100644 --- a/programs/ios/www/nativezip.js +++ b/programs/ios/www/nativezip.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global runtime, core, XMLHttpRequest*/ core.Zip = function (url, entriesReadCallback) { diff --git a/programs/nativeQtClient/scripts.js b/programs/nativeQtClient/scripts.js index ce2086bc..88c7453d 100644 --- a/programs/nativeQtClient/scripts.js +++ b/programs/nativeQtClient/scripts.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global alert, app, window, runtime*/ var LocalFileSystem = { PERSISTENT: 0, diff --git a/programs/playbook/ext/blackberry.custom.filereader/js/common/custom_filereader_dispatcher.js b/programs/playbook/ext/blackberry.custom.filereader/js/common/custom_filereader_dispatcher.js index 8c4d91c4..5cc20aba 100644 --- a/programs/playbook/ext/blackberry.custom.filereader/js/common/custom_filereader_dispatcher.js +++ b/programs/playbook/ext/blackberry.custom.filereader/js/common/custom_filereader_dispatcher.js @@ -1,17 +1,50 @@ -(function () { - var CUSTOM_FILEREADER_API_URL = "blackberry/custom/filereader"; - - var ARGS_PATH = "path"; - var ARGS_DATA = "data"; - - function CustomFileReader() { - }; - - CustomFileReader.prototype.readAsDataURL = function(path) { - var remoteCall = new blackberry.transport.RemoteFunctionCall(CUSTOM_FILEREADER_API_URL + "/readAsDataURL"); - remoteCall.addParam(ARGS_PATH, path); - return remoteCall.makeSyncCall(); - }; - - blackberry.Loader.javascriptLoaded("blackberry.custom.filereader", CustomFileReader); -})(); +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ +(function () { + var CUSTOM_FILEREADER_API_URL = "blackberry/custom/filereader"; + + var ARGS_PATH = "path"; + var ARGS_DATA = "data"; + + function CustomFileReader() { + }; + + CustomFileReader.prototype.readAsDataURL = function(path) { + var remoteCall = new blackberry.transport.RemoteFunctionCall(CUSTOM_FILEREADER_API_URL + "/readAsDataURL"); + remoteCall.addParam(ARGS_PATH, path); + return remoteCall.makeSyncCall(); + }; + + blackberry.Loader.javascriptLoaded("blackberry.custom.filereader", CustomFileReader); +})(); diff --git a/programs/playbook/ext/blackberry.custom.filereader/js/common/custom_filereader_ns.js b/programs/playbook/ext/blackberry.custom.filereader/js/common/custom_filereader_ns.js index 2ae1ede1..75447d69 100644 --- a/programs/playbook/ext/blackberry.custom.filereader/js/common/custom_filereader_ns.js +++ b/programs/playbook/ext/blackberry.custom.filereader/js/common/custom_filereader_ns.js @@ -1,8 +1,41 @@ -(function () { - - function CustomFileReader(disp) { - this.constructor.prototype.readAsDataURL = function(path) { return disp.readAsDataURL(path); }; - }; - - blackberry.Loader.javascriptLoaded("blackberry.custom.filereader", CustomFileReader); -})(); +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ +(function () { + + function CustomFileReader(disp) { + this.constructor.prototype.readAsDataURL = function(path) { return disp.readAsDataURL(path); }; + }; + + blackberry.Loader.javascriptLoaded("blackberry.custom.filereader", CustomFileReader); +})(); diff --git a/programs/playbook/scripts.js b/programs/playbook/scripts.js index e7913527..da3f53a2 100644 --- a/programs/playbook/scripts.js +++ b/programs/playbook/scripts.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global blackberry, alert, document, window, app*/ var LocalFileSystem = { PERSISTENT: 0, diff --git a/programs/touchui/app/app.js b/programs/touchui/app/app.js index 60da480a..5af1b080 100644 --- a/programs/touchui/app/app.js +++ b/programs/touchui/app/app.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global Ext, invokeString, document*/ /** * When the application has been initialized, this function is called, if diff --git a/programs/touchui/app/controller/Files.js b/programs/touchui/app/controller/Files.js index 22e06f85..546fc426 100644 --- a/programs/touchui/app/controller/Files.js +++ b/programs/touchui/app/controller/Files.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global Ext, runtime*/ Ext.define('WebODFApp.controller.Files', { extend: 'Ext.app.Controller', diff --git a/programs/touchui/app/model/FileSystem.js b/programs/touchui/app/model/FileSystem.js index 3346008f..4479019a 100644 --- a/programs/touchui/app/model/FileSystem.js +++ b/programs/touchui/app/model/FileSystem.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global Ext, console, app, window, LocalFileSystem, JSON, FileReader, runtime*/ Ext.define("WebODFApp.model.FileSystemProxy", (function () { "use strict"; diff --git a/programs/touchui/app/store/FileStore.js b/programs/touchui/app/store/FileStore.js index d2932c89..852bedaa 100644 --- a/programs/touchui/app/store/FileStore.js +++ b/programs/touchui/app/store/FileStore.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global Ext*/ Ext.define('WebODFApp.store.FileStore', { extend: 'Ext.data.Store', diff --git a/programs/touchui/app/views/FileDetail.js b/programs/touchui/app/views/FileDetail.js index b79876c6..91e9fc7a 100644 --- a/programs/touchui/app/views/FileDetail.js +++ b/programs/touchui/app/views/FileDetail.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global Ext, app, runtime, xmldom, odf*/ runtime.loadClass("xmldom.XPath"); runtime.loadClass("odf.Style2CSS"); diff --git a/programs/touchui/app/views/FilesList.js b/programs/touchui/app/views/FilesList.js index 1a82a2e8..98f45f8a 100644 --- a/programs/touchui/app/views/FilesList.js +++ b/programs/touchui/app/views/FilesList.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global Ext, app, filestore */ Ext.define("WebODFApp.view.FilesList", { extend: "Ext.Panel", diff --git a/programs/touchui/app/views/OdfView.js b/programs/touchui/app/views/OdfView.js index f06eb1ff..fdd6764a 100644 --- a/programs/touchui/app/views/OdfView.js +++ b/programs/touchui/app/views/OdfView.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global Ext, runtime, core, odf, window, FileReader, PhoneGap, gui*/ runtime.loadClass('odf.OdfCanvas'); diff --git a/programs/touchui/app/views/Viewport.js b/programs/touchui/app/views/Viewport.js index 3023ddc0..9480bdb5 100644 --- a/programs/touchui/app/views/Viewport.js +++ b/programs/touchui/app/views/Viewport.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global Ext, app*/ Ext.define("WebODFApp.view.Viewport", { extend: "Ext.navigation.View", diff --git a/programs/touchui/scripts.js b/programs/touchui/scripts.js index 2683bc83..f495ff77 100644 --- a/programs/touchui/scripts.js +++ b/programs/touchui/scripts.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global alert, app, window, runtime*/ var LocalFileSystem = { PERSISTENT: 0, diff --git a/programs/viewer/viewer.js b/programs/viewer/viewer.js index 7f639807..f53c4d53 100644 --- a/programs/viewer/viewer.js +++ b/programs/viewer/viewer.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + * + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ function isFullScreen() { // Note that the browser fullscreen (triggered by short keys) might // be considered different from content fullscreen when expecting a boolean diff --git a/programs/viewer/webodf.js b/programs/viewer/webodf.js index 38fed220..9170a0d8 100644 --- a/programs/viewer/webodf.js +++ b/programs/viewer/webodf.js @@ -1,36 +1,36 @@ -// Input 0 -/* +/** + * Copyright (C) 2012 KO GmbH - @licstart - The JavaScript code in this page is free software: you can redistribute it - and/or modify it under the terms of the GNU Affero General Public License - (GNU AGPL) as published by the Free Software Foundation, either version 3 of - the License, or (at your option) any later version. The code is distributed - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. - - As additional permission under GNU AGPL version 3 section 7, you - may distribute non-source (e.g., minimized or compacted) forms of - that code without the copy of the GNU GPL normally required by - section 4, provided you include this license notice and a URL - through which recipients can access the Corresponding Source. - - As a special exception to the AGPL, any HTML file which merely makes function - calls to this code, and for that purpose includes it by reference shall be - deemed a separate work for copyright law purposes. In addition, the copyright - holders of this code give you permission to combine this code with free - software libraries that are released under the GNU LGPL. You may copy and - distribute such a system following the terms of the GNU AGPL for this code - and the LGPL for the libraries. If you modify this code, you may extend this - exception to your version of the code, but you are not obligated to do so. - If you do not wish to do so, delete this exception statement from your - version. - - This license applies to this entire compilation. - @licend - @source: http://www.webodf.org/ - @source: http://gitorious.org/webodf/webodf/ -*/ + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ var core={},gui={},xmldom={},odf={}; // Input 1 function Runtime(){}Runtime.ByteArray=function(){};Runtime.ByteArray.prototype.slice=function(){};Runtime.prototype.byteArrayFromArray=function(){};Runtime.prototype.byteArrayFromString=function(){};Runtime.prototype.byteArrayToString=function(){};Runtime.prototype.concatByteArrays=function(){};Runtime.prototype.read=function(){};Runtime.prototype.readFile=function(){};Runtime.prototype.readFileSync=function(){};Runtime.prototype.loadXML=function(){};Runtime.prototype.writeFile=function(){}; diff --git a/webodf/collabtest/test.js b/webodf/collabtest/test.js index a7625aac..63866112 100644 --- a/webodf/collabtest/test.js +++ b/webodf/collabtest/test.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global document, runtime, odf, ops, gui*/ runtime.currentDirectory = function () { diff --git a/webodf/compare.js b/webodf/compare.js index 16bf5e33..6dcd374f 100644 --- a/webodf/compare.js +++ b/webodf/compare.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ /*global runtime: true, odf: true*/ /*jslint white: false*/ function getURIParameters(window) { diff --git a/webodf/filelister.js b/webodf/filelister.js index 7dcd8692..55c1e559 100644 --- a/webodf/filelister.js +++ b/webodf/filelister.js @@ -1,5 +1,6 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/gui.js b/webodf/gui.js index eda0ccb8..59c45580 100644 --- a/webodf/gui.js +++ b/webodf/gui.js @@ -1,5 +1,6 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/httpserver.js b/webodf/httpserver.js index 12d1b5be..936761c1 100644 --- a/webodf/httpserver.js +++ b/webodf/httpserver.js @@ -1,5 +1,6 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/core/Async.js b/webodf/lib/core/Async.js index 8d714202..d389cf11 100644 --- a/webodf/lib/core/Async.js +++ b/webodf/lib/core/Async.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/core/Base64.js b/webodf/lib/core/Base64.js index 24a32c13..e7d7706d 100644 --- a/webodf/lib/core/Base64.js +++ b/webodf/lib/core/Base64.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/core/ByteArray.js b/webodf/lib/core/ByteArray.js index 28f39386..de30bc5a 100644 --- a/webodf/lib/core/ByteArray.js +++ b/webodf/lib/core/ByteArray.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/core/ByteArrayWriter.js b/webodf/lib/core/ByteArrayWriter.js index ddd26126..6d45dabe 100644 --- a/webodf/lib/core/ByteArrayWriter.js +++ b/webodf/lib/core/ByteArrayWriter.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/core/Cursor.js b/webodf/lib/core/Cursor.js index 8dbc6f57..789fa19d 100644 --- a/webodf/lib/core/Cursor.js +++ b/webodf/lib/core/Cursor.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/core/RawDeflate.js b/webodf/lib/core/RawDeflate.js index 7b061c58..63755cfc 100644 --- a/webodf/lib/core/RawDeflate.js +++ b/webodf/lib/core/RawDeflate.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/core/RawInflate.js b/webodf/lib/core/RawInflate.js index 6fb21d1f..cb6c290b 100644 --- a/webodf/lib/core/RawInflate.js +++ b/webodf/lib/core/RawInflate.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/core/UnitTester.js b/webodf/lib/core/UnitTester.js index 408ea241..bd92cadb 100644 --- a/webodf/lib/core/UnitTester.js +++ b/webodf/lib/core/UnitTester.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/core/Zip.js b/webodf/lib/core/Zip.js index e2933d2a..af714346 100644 --- a/webodf/lib/core/Zip.js +++ b/webodf/lib/core/Zip.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/export.js b/webodf/lib/export.js index ee1c85ca..df30b647 100644 --- a/webodf/lib/export.js +++ b/webodf/lib/export.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/gui/Caret.js b/webodf/lib/gui/Caret.js index 21941f9d..9025b4b3 100644 --- a/webodf/lib/gui/Caret.js +++ b/webodf/lib/gui/Caret.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/gui/PresenterUI.js b/webodf/lib/gui/PresenterUI.js index 469df5b4..0373c93f 100644 --- a/webodf/lib/gui/PresenterUI.js +++ b/webodf/lib/gui/PresenterUI.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH - Tobias Hintze + * Copyright (C) 2012 KO GmbH - Tobias Hintze * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/gui/SelectionMover.js b/webodf/lib/gui/SelectionMover.js index 75e68099..87f214d7 100644 --- a/webodf/lib/gui/SelectionMover.js +++ b/webodf/lib/gui/SelectionMover.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/gui/XMLEdit.js b/webodf/lib/gui/XMLEdit.js index 4c714999..41ff1444 100644 --- a/webodf/lib/gui/XMLEdit.js +++ b/webodf/lib/gui/XMLEdit.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/manifest.js b/webodf/lib/manifest.js index 78720fac..3fa28376 100644 --- a/webodf/lib/manifest.js +++ b/webodf/lib/manifest.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ (function () { "use strict"; return [ diff --git a/webodf/lib/odf/FontLoader.js b/webodf/lib/odf/FontLoader.js index 79850980..2de77f2d 100644 --- a/webodf/lib/odf/FontLoader.js +++ b/webodf/lib/odf/FontLoader.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/odf/Formatting.js b/webodf/lib/odf/Formatting.js index 800c1c77..79d2963f 100644 --- a/webodf/lib/odf/Formatting.js +++ b/webodf/lib/odf/Formatting.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/odf/OdfCanvas.js b/webodf/lib/odf/OdfCanvas.js index 52b1de04..f585827b 100644 --- a/webodf/lib/odf/OdfCanvas.js +++ b/webodf/lib/odf/OdfCanvas.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/odf/OdfContainer.js b/webodf/lib/odf/OdfContainer.js index 36e514e8..3bb88577 100644 --- a/webodf/lib/odf/OdfContainer.js +++ b/webodf/lib/odf/OdfContainer.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/odf/Style2CSS.js b/webodf/lib/odf/Style2CSS.js index f490a5c1..9b08c40a 100644 --- a/webodf/lib/odf/Style2CSS.js +++ b/webodf/lib/odf/Style2CSS.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/odf/StyleInfo.js b/webodf/lib/odf/StyleInfo.js index 0abd6619..8a40a31f 100644 --- a/webodf/lib/odf/StyleInfo.js +++ b/webodf/lib/odf/StyleInfo.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/packages.js b/webodf/lib/packages.js index 8907c2ce..f27df4f2 100644 --- a/webodf/lib/packages.js +++ b/webodf/lib/packages.js @@ -1,5 +1,8 @@ /** * @license + * + * Copyright (C) 2012 KO GmbH + * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/runtime.js b/webodf/lib/runtime.js index f5a9045e..75acc13d 100644 --- a/webodf/lib/runtime.js +++ b/webodf/lib/runtime.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/xmldom/LSSerializer.js b/webodf/lib/xmldom/LSSerializer.js index 58e43e97..4c339898 100644 --- a/webodf/lib/xmldom/LSSerializer.js +++ b/webodf/lib/xmldom/LSSerializer.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/xmldom/LSSerializerFilter.js b/webodf/lib/xmldom/LSSerializerFilter.js index a86e85e7..2bd6b777 100644 --- a/webodf/lib/xmldom/LSSerializerFilter.js +++ b/webodf/lib/xmldom/LSSerializerFilter.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/xmldom/OperationalTransformDOM.js b/webodf/lib/xmldom/OperationalTransformDOM.js index 63510aae..49cf112c 100644 --- a/webodf/lib/xmldom/OperationalTransformDOM.js +++ b/webodf/lib/xmldom/OperationalTransformDOM.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/xmldom/OperationalTransformInterface.js b/webodf/lib/xmldom/OperationalTransformInterface.js index 5e37bfca..bb509c41 100644 --- a/webodf/lib/xmldom/OperationalTransformInterface.js +++ b/webodf/lib/xmldom/OperationalTransformInterface.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/xmldom/RelaxNG.js b/webodf/lib/xmldom/RelaxNG.js index 8b678ee4..c327d6a8 100644 --- a/webodf/lib/xmldom/RelaxNG.js +++ b/webodf/lib/xmldom/RelaxNG.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/xmldom/RelaxNG2.js b/webodf/lib/xmldom/RelaxNG2.js index 7b30f1f2..e58c7c26 100644 --- a/webodf/lib/xmldom/RelaxNG2.js +++ b/webodf/lib/xmldom/RelaxNG2.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/xmldom/RelaxNGParser.js b/webodf/lib/xmldom/RelaxNGParser.js index 186757ee..0b8e4b93 100644 --- a/webodf/lib/xmldom/RelaxNGParser.js +++ b/webodf/lib/xmldom/RelaxNGParser.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/lib/xmldom/XPath.js b/webodf/lib/xmldom/XPath.js index 33f9f730..cd416ba4 100644 --- a/webodf/lib/xmldom/XPath.js +++ b/webodf/lib/xmldom/XPath.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/misctests/testzip.js b/webodf/misctests/testzip.js index 4e624632..d70b57c4 100644 --- a/webodf/misctests/testzip.js +++ b/webodf/misctests/testzip.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/odfedit.js b/webodf/odfedit.js index 670f7549..bd538066 100644 --- a/webodf/odfedit.js +++ b/webodf/odfedit.js @@ -1,5 +1,6 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/relaxngToCPP.js b/webodf/relaxngToCPP.js index ed71b327..b5829352 100644 --- a/webodf/relaxngToCPP.js +++ b/webodf/relaxngToCPP.js @@ -1,5 +1,6 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/roundtripodf.js b/webodf/roundtripodf.js index 10ba2c07..cfda309e 100644 --- a/webodf/roundtripodf.js +++ b/webodf/roundtripodf.js @@ -1,5 +1,6 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/roundtripzip.js b/webodf/roundtripzip.js index a2a4ddc3..83313825 100644 --- a/webodf/roundtripzip.js +++ b/webodf/roundtripzip.js @@ -1,5 +1,6 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/testrelaxng.js b/webodf/testrelaxng.js index 18ba2a16..0e328caf 100644 --- a/webodf/testrelaxng.js +++ b/webodf/testrelaxng.js @@ -1,5 +1,6 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tests/core/Base64Tests.js b/webodf/tests/core/Base64Tests.js index 9d471fca..d9f56067 100644 --- a/webodf/tests/core/Base64Tests.js +++ b/webodf/tests/core/Base64Tests.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tests/core/CursorTests.js b/webodf/tests/core/CursorTests.js index 7810f929..1cbca2b3 100644 --- a/webodf/tests/core/CursorTests.js +++ b/webodf/tests/core/CursorTests.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tests/core/RuntimeTests.js b/webodf/tests/core/RuntimeTests.js index 75033756..aaa3224d 100644 --- a/webodf/tests/core/RuntimeTests.js +++ b/webodf/tests/core/RuntimeTests.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tests/core/ZipTests.js b/webodf/tests/core/ZipTests.js index 66382fee..dd13b850 100644 --- a/webodf/tests/core/ZipTests.js +++ b/webodf/tests/core/ZipTests.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tests/gui/CaretTests.js b/webodf/tests/gui/CaretTests.js index 17d5cb38..3f57147f 100644 --- a/webodf/tests/gui/CaretTests.js +++ b/webodf/tests/gui/CaretTests.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tests/gui/SelectionMoverTests.js b/webodf/tests/gui/SelectionMoverTests.js index bcc41b40..af115de0 100644 --- a/webodf/tests/gui/SelectionMoverTests.js +++ b/webodf/tests/gui/SelectionMoverTests.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tests/gui/XMLEditTests.js b/webodf/tests/gui/XMLEditTests.js index b18dfabb..0980ac28 100644 --- a/webodf/tests/gui/XMLEditTests.js +++ b/webodf/tests/gui/XMLEditTests.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tests/manifest.js b/webodf/tests/manifest.js index 70971db6..88b3f999 100644 --- a/webodf/tests/manifest.js +++ b/webodf/tests/manifest.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ (function () { "use strict"; return [ diff --git a/webodf/tests/tests.js b/webodf/tests/tests.js index 5086e745..1fac2e27 100644 --- a/webodf/tests/tests.js +++ b/webodf/tests/tests.js @@ -1,7 +1,7 @@ /*global window: true, runtime: true, Runtime: true, core: true, gui: true, xmldom: true, RuntimeTests: true*/ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tests/xmldom/OperationalTransformDOMTests.js b/webodf/tests/xmldom/OperationalTransformDOMTests.js index 273672cf..e51382a6 100644 --- a/webodf/tests/xmldom/OperationalTransformDOMTests.js +++ b/webodf/tests/xmldom/OperationalTransformDOMTests.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tests/xmldom/XPathTests.js b/webodf/tests/xmldom/XPathTests.js index 1c79ff03..f836408b 100644 --- a/webodf/tests/xmldom/XPathTests.js +++ b/webodf/tests/xmldom/XPathTests.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tools/externs.js b/webodf/tools/externs.js index 70543ac1..a163f764 100644 --- a/webodf/tools/externs.js +++ b/webodf/tools/externs.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tools/extjsexterns.js b/webodf/tools/extjsexterns.js index 5787883d..b57eb9fc 100644 --- a/webodf/tools/extjsexterns.js +++ b/webodf/tools/extjsexterns.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/tools/fixLicenses.py b/webodf/tools/fixLicenses.py index a81c9b55..75769d6c 100755 --- a/webodf/tools/fixLicenses.py +++ b/webodf/tools/fixLicenses.py @@ -3,7 +3,7 @@ # # This script checks if all files have licenses and fixes them if needed. # The script should be run from the root directory of the webodf project. -import os, os.path +import os, os.path, re # read the license text from the source file # the license starts at the line ' * @licstart' and ends at ' */' @@ -64,18 +64,36 @@ def fixLicense(path, license, defaultcopyright): # get list of *.js files jsfiles = [] for root, directories, files in os.walk("."): - while "extjs" in directories: - directories.remove("extjs") for f in files: if f[-3:] == ".js": jsfiles.append(os.path.abspath(os.path.join(root, f))) -# remove webodf/lib/packackages.js since it is the source for the licenses -sourcefilepath = os.path.join(os.getcwd(), "webodf/lib/packages.js") -jsfiles.remove(sourcefilepath) +lic_ignores = [] +# don't touch .git +lic_ignores.append("\\.git/") + +# third party +lic_ignores.append("node_modules/xmldom/") +lic_ignores.append("programs/.*/cordova-[0-9.]*\\.js$") +lic_ignores.append(".*/sencha-touch\\.js$") +lic_ignores.append(".*/JSLint\\.js$") + +common_base = os.getcwd()+"/" +removees = [] +for lignore in lic_ignores: + r = re.compile(lignore) + for jsfile in jsfiles: + if r.match(jsfile[len(common_base):]): + removees.append(jsfile) + print "skipping:",jsfile + +for removee in removees: + jsfiles.remove(removee) + +sourcefilepath = os.path.join(os.getcwd(), "LICENSE") licensetext = readLicense(sourcefilepath) -defaultcopyright = " * Copyright (C) 2011 KO GmbH \n" +defaultcopyright = " * Copyright (C) 2012 KO GmbH \n\n" for f in jsfiles: fixLicense(f, licensetext, defaultcopyright) diff --git a/webodf/tools/manifest.js b/webodf/tools/manifest.js index 979657ac..ee6fa3e5 100644 --- a/webodf/tools/manifest.js +++ b/webodf/tools/manifest.js @@ -1,3 +1,36 @@ +/** + * Copyright (C) 2012 KO GmbH + + * @licstart + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * (GNU AGPL) as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. The code is distributed + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU AGPL for more details. + * + * As additional permission under GNU AGPL version 3 section 7, you + * may distribute non-source (e.g., minimized or compacted) forms of + * that code without the copy of the GNU GPL normally required by + * section 4, provided you include this license notice and a URL + * through which recipients can access the Corresponding Source. + * + * As a special exception to the AGPL, any HTML file which merely makes function + * calls to this code, and for that purpose includes it by reference shall be + * deemed a separate work for copyright law purposes. In addition, the copyright + * holders of this code give you permission to combine this code with free + * software libraries that are released under the GNU LGPL. You may copy and + * distribute such a system following the terms of the GNU AGPL for this code + * and the LGPL for the libraries. If you modify this code, you may extend this + * exception to your version of the code, but you are not obligated to do so. + * If you do not wish to do so, delete this exception statement from your + * version. + * + * This license applies to this entire compilation. + * @licend + * @source: http://www.webodf.org/ + * @source: http://gitorious.org/webodf/webodf/ + */ (function () { "use strict"; return [ diff --git a/webodf/tools/runjslint.js b/webodf/tools/runjslint.js index d3cb74fd..1fbc7596 100644 --- a/webodf/tools/runjslint.js +++ b/webodf/tools/runjslint.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/webodfcmd.js b/webodf/webodfcmd.js index f24420d1..7473d883 100644 --- a/webodf/webodfcmd.js +++ b/webodf/webodfcmd.js @@ -1,5 +1,6 @@ /** * Copyright (C) 2012 KO GmbH + * * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License diff --git a/webodf/xmledit/gui.js b/webodf/xmledit/gui.js index 783e3c07..c3ccc4a7 100644 --- a/webodf/xmledit/gui.js +++ b/webodf/xmledit/gui.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2011 KO GmbH + * Copyright (C) 2012 KO GmbH * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License