4D v16Using a 4D Write Pro area |
||
|
4D v16
Using a 4D Write Pro area
Using a 4D Write Pro area
In 4D applications, 4D Write Pro documents are created, imported, and exported by means of specific commands found in the 4D Write Pro theme (WP EXPORT DOCUMENT, WP EXPORT VARIABLE, WP Import document, WP New). You can also associate a 4D Write Pro area with an Object field in a database form. This way, each 4D Write Pro document is automatically saved with the record and stored in the database's data (see Storing 4D Write Pro documents in 4D Object fields). You can save and re-open 4D Write Pro documents to and from disk without any loss using the native .4wp format. The .4wp format consists of a zip folder whose name is the document title and whose contents are HTML text and images:
Since .4wp documents are based on HTML, they can be imported or opened in any external application supporting HTML. Note: The 4D Write Pro internal document format is a proprietary HTML extension, compatible with HTML5/XHTML5, but which supports its own subset of HTML/CSS attributes and tags. As a result, only HTML documents exported by 4D Write Pro can be opened by 4D Write Pro without any risk of data loss. Importing HTML documents that were created externally could produce errors. If the Context menu property is checked for a 4D Write Pro area (see Defining a 4D Write Pro area), a comprehensive context menu is available to users in the Application mode: This menu offers access to all the 4D Write Pro user features. 4D Write Pro documents can be displayed in one of three page view modes:
The page view mode can be configured by means of the area pop-up menu: Note: The page view mode is not stored with the document. For areas embedded in 4D forms, the view mode can also be set by default using the Property List. In this case, the view mode is stored as a property of the 4D Write Pro form object (for more information, please refer to the Configuring View properties paragraph). When the document is in Page view mode, the following document properties are displayed for the user:
In addition, new paragraph properties are available in the Paragraph... submenu:
You can also use the following commands found in the context menu:
Note: When a document is in Embedded or Draft view mode, page properties can be set, even if their effect is not visible. In Draft view mode, the following paragraph property effects are visible:
4D Write Pro documents support headers and footers. These headers and footers are related to sections. A section is a part of a document which is defined by a page range and can have its own paging and common attributes. A document can contain any number of sections (from just one, up to the total number of pages). Each page can only belong to one section. You can define a set of headers and footers for each section. A section is a subset of continuous pages in a 4D Write Pro document. A document can contain one or more sections. A section can contain any number of pages, from a single page to the total number of pages in the document. By default, a document contains a single section, named Section 1. The 4D Write Pro contextual menu displays this section number wherever you click in the document: You create a new section by adding a section break in the text flow: When a section break has been added, the contextual menu displays an incremented number for each section. You can, however, rename any section: The name you entered is then used as the section name everywhere in the document: Note that if you have defined a different first page or different left/right pages for a section, the page type is also displayed in the menu (see below). Sections inherit attributes from the document. However, common document attributes, including headers and footers, can be modified separately for each section. The contextual pop-up menu displays the properties and attributes available at the section level:
Each section can have specific header and footer. Headers and footers are displayed only when the document page view mode is Page. Within a section, you can define up to three different headers and footers, depending on the enabled options:
To create a header or a footer:
You can then enter any static contents, which will be repeated automatically on each page of the section (except for the first page, if enabled). You can also insert dynamic contents such as the page number or the page count using the ST INSERT EXPRESSION command (for more information, please refer to the Inserting document and page expressions paragraph). Once a header or a footer has been defined for a section, you can configure its common attributes using the contextual menu: For more information on Margins, Paddings, Borders, and Background attributes, please refer the 4D Write Pro Attributes section. You can remove the entire definition of a header or a footer (contents and attributes) by selecting the Remove header or Remove footer command in the contextual menu. 4D Write Pro handles headers and footers of documents converted from the 4D Write plug-in. The following expressions and properties are also supported and converted from the 4D Write plug-in headers and footers:
|
PROPERTIES
Product: 4D
HISTORY
ARTICLE USAGE
4D Write Pro Reference ( 4D v16) |