Download StarOffice™ Programmer`s Tutorial

Transcript
4.3.7.3
Field name
Meaning
PageNumber
The current page number
PageCount
Total number of pages
FileName
Name of the document
DateTime
A date, possibly automatically changed to
the current date whenever the document is
opened.
SetExpression
Definition of a formula or variable
GetExpression
Value of a formula or variable
Author
The author of the document, possibly
updated whenever the document is
modified.
Chapter
Name and/or number of the current chapter.
GetReference
Crossreference entry
ConditionalText
Text inserted depending on a condition.
Input
An entry field
HiddenParagraph
A paragraph that is only visible when a
condition yields true
DocumentInfo
The information available for this document
TemplateName
Name of the template file used for this
document
Database
Complete name of a field in a database.
DatabaseName
Name of a database and a table.
ParagraphCount
Total number of paragraphs
WordCount
Total number of words
CharacterCount
Total number of characters
TableCount
Total number of tables
GraphicObjectCount
Total number of graphic objects
EmbeddedObjectCount
Total number of embedded objects
Inserting graphics
You can insert graphic objects as well as frames, tables and text fields. Since this
requires another StarOffice API module besides Text( ), the process is a bit more
complicated. Note that the function createRect( ) is defined later in Section 4.5.2
“Making things easier” on page 90
62
StarOffice Programmer’s Tutorial ♦ May 2000