Module
Contents
Index 🔎︎

# 区域

设置区域的属性。

要访问此命令...

选择插入 - 区域 - 区域选项卡，或者选择格式 - 区域

## 新区域

输入新区域的名称。在默认情况下，LibreOffice 将自动为新区域指定名称“区域 X”，其中 X 为连续的编号。

## 链接

在当前区域中插入其他文档的内容或其他文档中的区域。

### DDE

创建 DDE 链接。选择此复选框，然后输入要使用的 DDE 命令。只有选中链接复选框时，DDE 选项才可用。

DDE 命令的通用语法是："<Server> <Topic> <Item>"。其中，Server 是含有数据的应用程序的 DDE 名称，Topic 是指 Item（通常是文件名称）的位置，Item 表示实际的对象。

For example, to insert a section named "Section1" from a LibreOffice text document abc.odt as a DDE link, use the command: "soffice x:\abc.odt Section1". To insert the contents of the first cell from a Microsoft Excel spreadsheet file called "abc.xls", use the command: "excel x:\[abc.xls]Sheet1 z1s1". You can also copy the elements that you want to insert as a DDE link, and then Edit - Paste Special. You can then view the DDE command for the link, by selecting the contents and choosing Edit - Fields.

### 文件名 / DDE 命令

Enter the path and the filename for the file that you want to insert, or click the Browse button to locate the file. If the DDE check box is selected, enter the DDE command that you want to use.

### 浏览

Locate the file that you want to insert as a link, and then click Insert.

### 区域

Select the section in the file that you want to insert as a link.

当打开含有链接区域的文档时，系统会提示您更新链接。

## 写保护

### 保护

Prevents the selected section from being edited.

### 使用密码

Protects the selected section with a password. The password must have a minimum of 5 characters.

### Password

Opens a dialog where you can change the current password.

## 隐藏

Hides and prevents the selected section from being printed. The components of a hidden sections appear gray in the Navigator. When you rest your mouse pointer over a hidden component in the Navigator, the Help tip "hidden" is displayed.

如果区域是页面、页眉、页脚、脚注、框架或表格单元格中仅有的内容，则无法将其隐藏。

### 带条件

Enter the condition that must be met to hide the section. A condition is a logical expression, such as "SALUTATION EQ Mr.". For example, if you use the mail merge form letter feature to define a database field called "Salutation" that contains "Mr.", "Ms.", or "Sir or Madam", you can then specify that a section will only be printed if the salutation is "Mr.".

另一个示例是创建字段变量 "x" 并将其值指定为 1，然后根据此变量指定区域的隐藏条件，例如："x eq 1"。如果要显示此区域，请将变量 "x" 的值设置为 "0"。

## 属性

当文档是 XForms 文档时，可以看到对话框的这部分区域。

### 可以在只读文档中进行编辑

即使文档是以只读模式打开的，选择后也可以编辑区域的内容。

相关主题

字段命令

条件的语法