summaryrefslogtreecommitdiffstats
path: root/scripting/examples/javascript
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-07-06 17:28:37 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-07-06 20:29:14 +0100
commit3f281b6f0ad73eae72b77fa4dcab9008b7e14187 (patch)
tree38c452a20a70c65a7c7ee1ed413aa573dad4c3e1 /scripting/examples/javascript
parentos141: add missing component (diff)
downloadcore-3f281b6f0ad73eae72b77fa4dcab9008b7e14187.tar.gz
core-3f281b6f0ad73eae72b77fa4dcab9008b7e14187.zip
re-base on ALv2 code. Includes:
remove onlineregistration with dependencies Patch contributed by Juergen Schmidt http://svn.apache.org/viewvc?view=revision&revision=1249245
Diffstat (limited to 'scripting/examples/javascript')
-rwxr-xr-xscripting/examples/javascript/ExportSheetsToHTML/exportsheetstohtml.js23
-rw-r--r--scripting/examples/javascript/ExportSheetsToHTML/parcel-descriptor.xml18
-rwxr-xr-xscripting/examples/javascript/HelloWorld/helloworld.js17
-rw-r--r--scripting/examples/javascript/HelloWorld/parcel-descriptor.xml18
-rwxr-xr-xscripting/examples/javascript/Highlight/ButtonPressHandler.js17
-rwxr-xr-xscripting/examples/javascript/Highlight/ShowDialog.js17
-rw-r--r--scripting/examples/javascript/Highlight/parcel-descriptor.xml18
7 files changed, 122 insertions, 6 deletions
diff --git a/scripting/examples/javascript/ExportSheetsToHTML/exportsheetstohtml.js b/scripting/examples/javascript/ExportSheetsToHTML/exportsheetstohtml.js
index a66d08a185c6..cc7a4cdf5c9b 100755
--- a/scripting/examples/javascript/ExportSheetsToHTML/exportsheetstohtml.js
+++ b/scripting/examples/javascript/ExportSheetsToHTML/exportsheetstohtml.js
@@ -1,7 +1,24 @@
-// When this script is run on an existing, saved, spreadsheet,
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+// When this script is run on an existing, saved, spreadsheet,
// eg. /home/testuser/myspreadsheet.sxc, the script will export
-// each sheet to a separate html file,
-// eg. /home/testuser/myspreadsheet_sheet1.html,
+// each sheet to a separate html file,
+// eg. /home/testuser/myspreadsheet_sheet1.html,
// /home/testuser/myspreadsheet_sheet2.html etc
importClass(Packages.com.sun.star.uno.UnoRuntime);
importClass(Packages.com.sun.star.sheet.XSpreadsheetDocument);
diff --git a/scripting/examples/javascript/ExportSheetsToHTML/parcel-descriptor.xml b/scripting/examples/javascript/ExportSheetsToHTML/parcel-descriptor.xml
index d6c3b51f0dda..be8880ab0ad6 100644
--- a/scripting/examples/javascript/ExportSheetsToHTML/parcel-descriptor.xml
+++ b/scripting/examples/javascript/ExportSheetsToHTML/parcel-descriptor.xml
@@ -1,5 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
-
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+-->
<parcel language="JavaScript" xmlns:parcel="scripting.dtd">
<script language="JavaScript">
diff --git a/scripting/examples/javascript/HelloWorld/helloworld.js b/scripting/examples/javascript/HelloWorld/helloworld.js
index aa170def23a5..f04fdfd8a166 100755
--- a/scripting/examples/javascript/HelloWorld/helloworld.js
+++ b/scripting/examples/javascript/HelloWorld/helloworld.js
@@ -1,3 +1,20 @@
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
// Hello World in JavaScript
importClass(Packages.com.sun.star.uno.UnoRuntime);
importClass(Packages.com.sun.star.text.XTextDocument);
diff --git a/scripting/examples/javascript/HelloWorld/parcel-descriptor.xml b/scripting/examples/javascript/HelloWorld/parcel-descriptor.xml
index d583ec2e62ad..5f9d9f0ee045 100644
--- a/scripting/examples/javascript/HelloWorld/parcel-descriptor.xml
+++ b/scripting/examples/javascript/HelloWorld/parcel-descriptor.xml
@@ -1,5 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
-
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+-->
<parcel language="JavaScript" xmlns:parcel="scripting.dtd">
<script language="JavaScript">
diff --git a/scripting/examples/javascript/Highlight/ButtonPressHandler.js b/scripting/examples/javascript/Highlight/ButtonPressHandler.js
index 306b99916000..292993784689 100755
--- a/scripting/examples/javascript/Highlight/ButtonPressHandler.js
+++ b/scripting/examples/javascript/Highlight/ButtonPressHandler.js
@@ -1,3 +1,20 @@
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
//this script acts as a handler for the buttons in the Highlight dialog
importClass(Packages.com.sun.star.uno.UnoRuntime);
importClass(Packages.com.sun.star.uno.Type);
diff --git a/scripting/examples/javascript/Highlight/ShowDialog.js b/scripting/examples/javascript/Highlight/ShowDialog.js
index fa6838c14053..7b2012870c15 100755
--- a/scripting/examples/javascript/Highlight/ShowDialog.js
+++ b/scripting/examples/javascript/Highlight/ShowDialog.js
@@ -1,3 +1,20 @@
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
importClass(Packages.com.sun.star.uno.UnoRuntime);
importClass(Packages.com.sun.star.lang.XMultiComponentFactory);
importClass(Packages.com.sun.star.awt.XDialogProvider);
diff --git a/scripting/examples/javascript/Highlight/parcel-descriptor.xml b/scripting/examples/javascript/Highlight/parcel-descriptor.xml
index a6e6396fbe70..9c42a72b48e7 100644
--- a/scripting/examples/javascript/Highlight/parcel-descriptor.xml
+++ b/scripting/examples/javascript/Highlight/parcel-descriptor.xml
@@ -1,5 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
-
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
<parcel language="JavaScript" xmlns:parcel="scripting.dtd">
<script language="JavaScript">
<locale lang="en">