LibreOffice Basic 词汇表

本词汇表解释在使用 LibreOffice Basic 过程中可能会遇到的一些技术术语。

AppFont Units

Map AppFont units are device and resolution independent. One Map AppFont unit is equal to one eighth of the average character (Systemfont) height and one quarter of the average character width.

Twips

A twip is a screen-independent unit which is used to define the uniform position and size of screen elements on all display systems. A twip is 1/1440th of an inch or 1/20 of a printer's point. There are 1440 twips to an inch or about 567 twips to a centimeter.

URL 表示法

URL (统一资源定位器) 用于确定资源 (例如文件) 在文件系统 (通常在网络环境中) 的位置。一个 URL 由协议指定符、主机指定符以及文件和路径指定符组成:

协议://主机.名/文/件/路/径.html

URL 最常见的用法是在 Internet 中指定 Web 页。常见的协议有「http」「ftp」或「file」。「file」协议说明符用于指定本地文件系统中的文件。

URL 表示法不允许使用某些特殊字符。如果有特殊字符,那么这些字符将被替换为其他字符,或者被转码。斜杠 (/) 会被用作路径分隔符。例如,「Windows 表达方式」下的本地主机上的文件路径「C:\Users\alice\Documents\My File.odt」将会变为 URL 表示法的「file:///C:/Users/alice/Documents/My%20File.odt」。

小数点

在转换数字时,LibreOffice Basic 使用系统的区域设置来确定小数点和千位分隔符的类型。

该行为会影响隐式转换 ( 1 + "2.3" = 3.3 ),以及函数 IsNumeric

度量单位

在 LibreOffice Basic 中,需要单位信息的「方法参数」或者「属性」可以指定为不带单位的整型或者长整型表达式,或者指定为带单位的文本字符串。如果没有给该方法传递单位,则会使用为当前活动文档类型定义的默认单位。如果传递给方法的参数是包含度量单位的文本字符串,那么默认设置将会被忽略。某个文档类型的默认度量单位可以在 - (文档类型) - 常规中设定。

颜色

在 LibreOffice Basic 中,可将颜色作为长整数值处理。颜色查询的返回值通常也是长整数值。定义属性时,可使用 RGB 代码指定颜色,该代码使用 RGB function 转换为长整数。

请支持我们!