1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?>
2*b1cdbd2cSJim Jagielski<helpdocument version="1.0">
3*b1cdbd2cSJim Jagielski
4*b1cdbd2cSJim Jagielski<!--***********************************************************
5*b1cdbd2cSJim Jagielski *
6*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
7*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
8*b1cdbd2cSJim Jagielski * distributed with this work for additional information
9*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
10*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
11*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
12*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
13*b1cdbd2cSJim Jagielski *
14*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
15*b1cdbd2cSJim Jagielski *
16*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
17*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
18*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
20*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
21*b1cdbd2cSJim Jagielski * under the License.
22*b1cdbd2cSJim Jagielski *
23*b1cdbd2cSJim Jagielski ***********************************************************-->
24*b1cdbd2cSJim Jagielski
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski<meta>
29*b1cdbd2cSJim Jagielski      <topic id="textswriter0104200000xml" indexer="include">
30*b1cdbd2cSJim Jagielski         <title xml-lang="en-US" id="tit">Insert Script</title>
31*b1cdbd2cSJim Jagielski         <filename>/text/swriter/01/04200000.xhp</filename>
32*b1cdbd2cSJim Jagielski      </topic>
33*b1cdbd2cSJim Jagielski   </meta>
34*b1cdbd2cSJim Jagielski   <body>
35*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:ModalDialog:DLG_JAVAEDIT" id="bm_id3083451" localize="false"/>
36*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/.uno:InsertScript" id="bm_id106266" localize="false"/>
37*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/.uno:InsertScript" id="bm_id3146320" localize="false"/>
38*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3147402" role="heading" level="1" l10n="U" oldref="1">Insert Script</paragraph>
39*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3155620" role="paragraph" l10n="U" oldref="2"><variable id="scripttext"><ahelp hid=".uno:InsertScript">Inserts a script at the current cursor position in an HTML or text document.</ahelp>
40*b1cdbd2cSJim Jagielski</variable></paragraph>
41*b1cdbd2cSJim Jagielski      <section id="howtoget">
42*b1cdbd2cSJim Jagielski         <embed href="text/swriter/00/00000404.xhp#einfscript"/>
43*b1cdbd2cSJim Jagielski      </section>
44*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3149880" role="paragraph" l10n="CHG" oldref="4">An inserted script is indicated by a small green rectangle. If you do not see the rectangle, choose <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - %PRODUCTNAME Writer/Web - <link href="text/shared/optionen/01040200.xhp" name="View">View</link></emph>, and select the <emph>Comments</emph> check box. To edit a script, double-click the green rectangle.</paragraph>
45*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3150572" role="paragraph" l10n="U" oldref="5">If your document contains more than one script, the <emph>Edit Script</emph> dialog contains previous and next buttons to jump from script to script.</paragraph>
46*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:ImageButton:DLG_JAVAEDIT:BTN_PREV" id="bm_id3149710" localize="false"/>
47*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="par_id0903200802541668" role="paragraph" l10n="NEW"><ahelp hid="." visibility="hidden">Jump to Previous Script.</ahelp></paragraph>
48*b1cdbd2cSJim Jagielski      <embed href="text/swriter/00/00000004.xhp#nopfli"/>
49*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:ImageButton:DLG_JAVAEDIT:BTN_NEXT" id="bm_id3150761" localize="false"/>
50*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="par_id0903200802541770" role="paragraph" l10n="NEW"><ahelp hid="." visibility="hidden">Jump to Next Script.</ahelp></paragraph>
51*b1cdbd2cSJim Jagielski      <embed href="text/swriter/00/00000004.xhp#nopfre"/>
52*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="hd_id3154644" role="heading" level="2" l10n="U" oldref="7">Contents</paragraph>
53*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:Edit:DLG_JAVAEDIT:ED_TYPE" id="bm_id3151177" localize="false"/>
54*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3149294" role="heading" level="2" l10n="U" oldref="9">Script Type</paragraph>
55*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3145413" role="paragraph" l10n="U" oldref="10"><ahelp hid="SW:EDIT:DLG_JAVAEDIT:ED_TYPE">Enter the type of script that you want to insert.</ahelp> The script is identified in the HTML source code by the tag &lt;SCRIPT LANGUAGE="JavaScript"&gt;.</paragraph>
56*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:RadioButton:DLG_JAVAEDIT:RB_URL" id="bm_id3149800" localize="false"/>
57*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:Edit:DLG_JAVAEDIT:ED_URL" id="bm_id3149803" localize="false"/>
58*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3154097" role="heading" level="2" l10n="U"
59*b1cdbd2cSJim Jagielski                 oldref="13">URL</paragraph>
60*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3149810" role="paragraph" l10n="CHG" oldref="14"><ahelp hid="SW:EDIT:DLG_JAVAEDIT:ED_URL">Adds a link to a script file. Click the <emph>URL </emph>radio button, and then enter the link in the box. You can also click the browse button (<emph>...</emph>), locate the file, and then click <emph>Insert</emph>.</ahelp> The linked script file is identified in the HTML source code by the following tags:</paragraph>
61*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3152963" role="paragraph" l10n="U" oldref="15">&lt;SCRIPT LANGUAGE="JavaScript" SRC="url"&gt;</paragraph>
62*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3153678" role="paragraph" l10n="U" oldref="16">/* ignore all text here */</paragraph>
63*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3154574" role="paragraph" l10n="U" oldref="17">&lt;/SCRIPT&gt;</paragraph>
64*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:PushButton:DLG_JAVAEDIT:PB_URL" id="bm_id3149692" localize="false"/>
65*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3155903" role="heading" level="2" l10n="U"
66*b1cdbd2cSJim Jagielski                 oldref="19">...</paragraph>
67*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3154188" role="paragraph" l10n="U" oldref="20"><ahelp hid="SW:PUSHBUTTON:DLG_JAVAEDIT:PB_URL">Locate the script file that you want to link to, and then click <emph>Insert</emph>.</ahelp></paragraph>
68*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:MultiLineEdit:DLG_JAVAEDIT:ED_EDIT" id="bm_id3149489" localize="false"/>
69*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:RadioButton:DLG_JAVAEDIT:RB_EDIT" id="bm_id3149493" localize="false"/>
70*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3155184" role="heading" level="2" l10n="U"
71*b1cdbd2cSJim Jagielski                 oldref="11">Text</paragraph>
72*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3143272" role="paragraph" l10n="U" oldref="12"><ahelp hid="SW:RADIOBUTTON:DLG_JAVAEDIT:RB_EDIT">Enter the script code that you want to insert.</ahelp></paragraph>
73*b1cdbd2cSJim Jagielski   </body>
74*b1cdbd2cSJim Jagielski</helpdocument>