Contents

# Section

Sets the properties of the section.

To access this command...

Choose Insert - Section - Section tab or choose Format - Sections

## New Section

Type a name for the new section. By default, LibreOfficeDev automatically assigns the name "Section X" to new sections, where X is a consecutive number.

## Link

Inserts the contents of another document or section from another document in the current section.

### DDE

Creates a DDE link. Select this check box, and then enter the DDE command that you want to use. The DDE option is only available if the Link check box is selected.

The general syntax for a DDE command is: "<Server> <Topic> <Item>", where server is the DDE name for the application that contains the data. Topic refers to the location of the Item (usually the file name), and Item represents the actual object.

For example, to insert a section named "Section1" from a LibreOfficeDev 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.

### File name / DDE command

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.

### Browse

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

### Section

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

When you open a document that contains linked sections, you are prompted to update the links.

## Write Protection

### Protect

Prevents the selected section from being edited.

### With password

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.

## Hide

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.

You cannot hide a section if it is the only content on a page, or in a header, footer, footnote, frame, or table cell.

### With condition

Enter the condition that must be met to hide the section. A condition is a logical expression and must resolve to TRUE or FALSE.

For example, you can create the field variable x and set its value to 1. Then specify a condition based on this variable for hiding a section, such as: x EQ 1 to hide the section. If you want to display the section, set the value of the variable x to 0.

When using conditions based on database fields, always fully qualify the field by specifying it as Database_name.Table_name.Field_name.

## Properties

You see this area of the dialog when the current document is an XForms document.

### Editable in read-only document

Select to allow editing of the section's contents even if the document is opened in read-only mode.

Related Topics

Syntax for conditions

Using Sections

Please support us!