Writer:超链接的应用

出自OOo 中文指南手册翻译

跳转到: 导航, 搜索

当您输入可以用来作为超链接的文本(如网站的地址或URL),然后键入一个空格,OOo自动格式化输入的URL,创建超链接,并对文本应用一种颜色和下划线。如果没有象这样自动格式化,你可以使用工具 > 自动更正 > 选项,选择网址识别复选框,启用此功能。 When you type text (such as a website addresses or URL) that can be used as a hyperlink, and then type a space, OOo formats the URL automatically, creating the hyperlink and applying to the text a color and underlining. If this does not happen, you can enable this feature using Tools > AutoCorrect > Options and selecting the URL Recognition checkbox. (1)

Image:Tip.png如果你不想OOo将一个特定的URL转换成超链接,在应用格式化后,立即从菜单栏选择编辑 > 撤消插入、或按Control+Z

要改变超链接的颜色,选择工具 > 选项 > OpenOffice.org > 外观,滚动到未访问的链接和/或访问过的链接,选择复选框,选择新的颜色,然后点击确定。注意:这将改变在OpenOffice.org所有组成部分中的所有超链接的颜色,这可能并不是你想要的。

在Writer和Calc(但不包括Draw或Impress)中,您也可以更改Internet连接字符样式,或对选定的链接定义、并应用新的样式。


 If you do not want OOo to convert a specific URL to a hyperlink, select Edit > Undo Insert from the menu bar or press Control+Z immediately after the formatting has been applied. (2)

To change the color of hyperlinks, go to Tools > Options > OpenOffice.org > Appearance, scroll to Unvisited links and/or Visited links, select the checkboxes, pick the new colors and click OK. Caution: this will change the color for all hyperlinks in all components of OpenOffice.org—this may not be what you want. (3)

In Writer and Calc (but not Draw or Impress), you can also change the Internet link character style or define and apply new styles to selected links.


[编辑] 插入超链接 Inserting hyperlinks (5)

您也可以使用超链接对话框,插入和修改链接。要显示此对话框中,点击常用工具栏上的超链接图标Image:HyperlinkIcon.png ,或者从菜单栏选择插入 > 超链接。要将现有的文本变成超链接,在打开超链接对话框之前突出显示之。 You can also insert and modify links using the Hyperlink dialog. To display the dialog, click the Hyperlink icon Image:HyperlinkIcon.png on the Standard toolbar or select Insert > Hyperlink from the menu bar. To turn existing text into a link, highlight it before opening the Hyperlink dialog. (6)

超链接对话框中显示的互联网链接的详情。 Hyperlink dialog showing details for Internet links. (7)

在左边,选择四种超链接类型之一: On the left hand side, select one of the four types of hyperlink: (8)

  • 互联网:一个网址,通常以http:// 开始 Internet: a web address, normally starting with http:// (9)
  • 邮件和新闻:例如一个电子邮件地址。 Mail & News: for example an email address. (10)
  • 文件:超链接指向另一个文档或演示文稿(?)中的另一个地方。 Document: the hyperlink points to another document or to another place in the presentation. (11)
  • 新文档:超链接创建一个新文档。 New document: the hyperlink creates a new document. (12)

在对话框的右上部分根据超链接类型的选择而变化。关于所有选项的完整说明,及其相互作用,超出了本章的范围。下面是在演示文稿(?)中最常使用的选择的概述。 The top right part of the dialog changes according to the choice made for the hyperlink type. A full description of all the choices, and their interactions, is beyond the scope of this chapter. Here is a summary of the most common choices used in presentations. (13)

对于互联网类型的超链接,选择链接类型(在Web、FTP或Telnet之间选择),并输入所需的网址(URL)。 For an Internet type hyperlink, choose the type of hyperlink (choose between Web, FTP or Telnet), and enter the required web address (URL). (14)

对于邮件和新闻类型的超链接,指明是邮件还是新闻链接,电子邮件的接收人地址,以及主题。 For a Mail and News type hyperlink, specify whether it is a mail or news link, the receiver address and for email, also the subject. (15)

对于文档类型的超链接,指定文档路径(打开文档按钮打开一个文档浏览器);如果你想链接到同一演示文稿中的一个目标,此处保持空白。作为选项,指定文档中的目标(例如某一幻灯片)。点击目标图标,打开导航,从此您可以选择目标,或者如果您知道目标的名称,您可以将其键入到框中。 (这一部分原文针对演示文稿,此处应做必要的修改)For a Document type hyperlink, specify the document path (the Open File button opens a file browser); leave this blank if you want to link to a target in the same presentation. Optionally specify the target in the document (for example a specific slide). Click on the Target icon to open the Navigator where you can select the target, or if you know the name of the target, you can type it into the box. (16)

对于新建文档类型的超链接,选择是否立即编辑新创建的文档或者仅仅创建它(以后编辑)和创建文档的类型(文本、电子表格等)。对于演示文稿,现在编辑是更可能的选择。 在选择路径按钮,打开一个目录选择器。 For a New Document type hyperlink, specify whether to edit the newly created document immediately or just create it (Edit later) and the type of document to create (text, spreadsheet, etc.). For a presentation, Edit now is the more likely choice. The Select path button opens a directory picker. (17)

在对话框右下角部分的其他设置部分,为所有超链接类型所共有,但有些选择与某些类型的链接更为相关。 The Further settings section in the bottom right part of the dialog is common to all the hyperlink types, although some choices are more relevant to some types of links. (18)

  • 设置框架的值,以确定链接将如何打开。这适用于在Web浏览器中打开的文档。 Set the value of Frame to determine how the hyperlink will open. This applies to documents that open in a Web browser. (19)
  • 方式规定该链接是作为文本或按钮呈现。 Form specifies if the link is to be presented as text or as a button. (20)
  • 提示文字指定将显示给用户的文本。 Text specifies the text that will be visible to the user. (21)
  • 名称适用于HTML文档。它给出在超链接背后的HTML代码中添加到NAME属性中的文本。 Name is applicable to HTML documents. It specifies text that will be added as a NAME attribute in the HTML code behind the hyperlink. (22)
  • 事件按钮:如果用户写了一些代码(宏),此按钮将被激活,允许OOo对相应的事件有所反应。此本书未涉及此功能。 Event button: this button will be activated to allow OOo to react to events for which the user has written some code (macro). This function is not covered in this book. (23)

[编辑] 编辑超链接 Editing hyperlinks (24)

要编辑超链接,您可以点击链接文本,或使用箭头键将光标定位在任何链接文本中,然后在常用工具栏按一下超链接图标,或从菜单栏中选择编辑 >超链接,打开超链接对话框。 (要激活超链接,现在需要按住Ctrl键,同时点击链接。) To edit a hyperlink, you can either click anywhere in the link text, or position the cursor in the link text using the arrow keys, and then open the Hyperlink dialog by clicking the Hyperlink icon on the Standard toolbar or selecting Edit > Hyperlink from the menu bar. (To activate a hyperlink, it is now necessary to hold down the Ctrl key while clicking on the link.) (25)

要激活超链接,即在默认的浏览器中打开相应的网址,需要按住Control键,同时点击链接。当鼠标指针悬停于超链接文本时,工具提示显示提醒您按下Control键。 To activate a hyperlink, that is, to open the URL in your default browser, it is necessary to hold down the Control key while clicking on the link. A tooltip is displayed reminding you to press the Control key when the mouse pointer hovers over the hyperlink text. (26)

Image:Tip.png如果你需要编辑一些超链接,可以让超链接对话框打开着,直到您已经完成编辑所有的链接。请确认在编辑每一个之后点击应用。当您完成后,点击关闭.
 If you need to edit several hyperlinks, you can leave the Hyperlink dialog open until you have edited all of them. Be sure to click Apply after each one. When you are finished, click Close.


[编辑] 相关链接

本文原文

个人工具