SlideShare uma empresa Scribd logo
1 de 51
Components of WordprocessingML
• Main Document
• Paragraphs & Rich Formatting
– Runs
– Run Content
• Tables
• Custom Markup
• Sections
• Styles
– Paragraph
– Character
– Numbering
– Table
– Document Defaults
• Fonts
• Numbering
• Headers/Footers
• Footnotes/Endnotes
• Glossary Document
• Annotations
– Comments
– Revisions
– Bookmarks
• Mail Merge
• Document Settings
– Web Settings
– Compatibility Settings
• Fields & Hyperlinks
• Odds & Ends (Textboxes, Subdocuments, Extensibility)
Ecma/TC45/2006/038 (Rev.)
WordprocessingML – Fields &
Hyperlinks
Fields
• Represent non-static text in a word processing
document
– Most text is static; only changes based on user
interaction
– This is not suitable for some content (e.g. page
numbers)
– Fields specify text which should be calculated
based on a specific formula
Fields Example
• Consider a field which should always render
today's date
• Entering the date as static text wouldn't be
sufficient, as today's date is dynamic
• Therefore, a field must be inserted which
specifies that it should always display the
current date.
Field Components
• Fields are comprised of two primary
components:
– Field codes
• the instructions that describe to the consumer how to
calculate the field
– Field results
• the results of the last calculation of the field codes
(when appropriate)
• For example, WordprocessingML does not store the
results of the page number field, because it doesn't
store the concept of pages
Field Components Example
• Consider the AUTHOR field, which shows the
document's author property:
• Field results show:
• Field codes show:
Fields in WordprocessingML
• These two components can be represented in
two distinct ways in WordprocessingML:
– Simple fields
– Complex fields
• Either syntax can be used, depending on the
requirements in context
Simple Fields
• Specified by the fldSimple element
• Used when the field instructions hold no
formatting
Simple Fields
Field codes
Field results
Note that Word places a run property on the field results that prevents it from being
spell or grammar checked
Complex Fields
• Specified by three delimiter elements
– Field start
– Field separator
– Field end
• Used when there is formatting on the fields
codes themselves
– Therefore, they need to be persisted as
WordprocessingML
Complex Fields Example
• Let's create an IF field and format the field
codes:
• Now, we need to persist that formatting
– Therefore, this can't be a simple field
Complex Fields Example
• Field start character
Complex Fields Example
• Field codes
• Note that field codes do not use the <t>
element
– So that you can easily exclude field code text
Complex Fields Example
• Field separator character
– This delimits the end of the field codes, and start
of the field results
Complex Fields Example
• Field results
Complex Fields Example
• Field end character
Complex Fields
• Other reasons why fields must be complex:
– Revision marking
– Fields can span multiple paragraphs (i.e. they're
not well-formed)
Locked Fields
• A field can be locked, in which case, its result
cannot be updated
• Set via a fldLock attribute on the field's
fldSimple or field start elements
Updating Fields
• Some fields should be automatically updated
with each edit (e.g. the PAGENUM field), while
others should not update unless explicitly
asked to do so (e.g. the AUTHOR field)
• Therefore, fields are of three types:
– Hot (always update)
– Warm (update on open save, or print)
– Cold (never automatically update)
Caching Field Results
• Producers may wish to save a document with
fields and deliberately mark some cold fields
as 'stale':
– For example, when the producer knowingly
invalidated the field's result, but was not
sophisticated enough to recalculate the field
Caching Field Results
• A 'dirty' bit on any field specifies that a
producer should treat the results of that field
as stale, and potentially offer UI to update the
field
– This is done via the dirty attribute
• This can also be done on the document level
using the document's settings
Field Types
• Fields can be divided into eight categories:
– Date and Time
– Document Automation
– Document Properties
– Equations and Formulas
– Links and References
– Mail Merge
– Numbering
– User Information
Date and Time
• Field types:
– CREATEDATE (creation date)
– DATE (current date)
– EDITTIME (time edited)
– PRINTDATE (last printed date)
– SAVEDATE (last saved date)
– TIME (current time)
Document Automation
• Field types:
– COMPARE (logical comparison)
– DOCVARIABLE (display document variable)
– GOTOBUTTON (link button)
– IF (logical IF statement)
– MACROBUTTON (run application-specific code)
– PRINT (print the document)
Document Properties
• Field types:
– AUTHOR (document author property)
– COMMENTS (document comments property)
– DOCPROPERTY (show OLE document property)
– FILENAME (file name)
– FILE SIZE (file size)
– INFO (document information)
Document Properties
• Field types (cont'd):
– KEYWORDS (document keywords property)
– LASTSAVEDBY (last saved by property)
– NUMCHARS (number of characters)
– NUMPAGES (number of pages)
– NUMWORDS (number of words)
– SUBJECT (subject document property)
– TEMPLATE (document template file name)
– TITLE (title document property)
Equations and Formulas
• Field types
– =.. (formulas)
– ADVANCE
– EQ (equation)
– SYMBOL (show symbol)
Index and Tables
• Field types:
– INDEX (document index)
– RD (referenced document)
– TA (table of authorities entry)
– TC (table of contents entry)
– TOA (table of authorities)
– TOC (table of contents)
– XE (cross reference)
Links and References
• Field types:
– AUTOTEXT (show AutoText entry)
– AUTOTEXTLIST (user choice of AutoText entry)
– HYPERLINK
– INCLUDEPICTURE (import external image)
– INCLUDETEXT (import external text)
– LINK (link to text)
Links and References
• Field types (cont'd):
– NOTEREF (footnote/endnote reference)
– PAGEREF (page reference)
– QUOTE (show text)
– REF (reference to bookmark or paragraph)
– STYLEREF (reference to styled text)
Mail Merge
• Field types (covered later):
– ADDRESSBLOCK
– ASK
– BARCODE
– COMPARE
– DATABASE
– FILLIN
– GREETINGLINE
– IF
Mail Merge
• Field types (covered later):
– MERGEFIELD
– MERGEREC
– MERGESEQ
– NEXT
– NEXTIF
– SET
– SKIPIF
Numbering
• Field types:
– AUTONUM (legacy numbering)
– AUTONUMLGL (legacy legal numbering)
– AUTONUMOUT (legacy outline numbering
– LISTNUM (legacy list numbering)
– PAGE (number of pages)
– REVNUM (revision number property)
– SECTION (section number)
Numbering
• Field types (cont'd):
– SECTIONPAGES (pages in section)
– SEQ (sequence)
User Information
• Field types:
– USERADDRESS (user address)
– USERINITIALS (user intials)
– USERNAME (user name)
Field Formulas
• A field code can involve a operation via a
formula, which consists of:
– Constants
– Bookmark references
– Numbers
– Logical operators
– Functions
Field Formulas
• Constants
– Formulas can use any constant value (e.g. an
integer)
• Bookmarks
– Can supply a constant for another field (e.g. Result
* 10 will look for the value of a bookmark called
'Result')
• Numbers
Operators
Operators
Operator Description Precedence
- Unary minus highest
^ Powers and roots
* Multiplication
/ Division
% Percentage
+ Addition
- Subtraction
= Equal to
<> Not equal to
< Less than lowest
<= Less than or equal to
> Greater than
>= Greater than or equal to
Functions
Functions
Function Description
ABS(x) Returns the absolute value of x.
AND(x,y) Returns 1 if the logical expressions x and y are both true;
otherwise, it returns 0.
AVERAGE(list) Returns the average value of the items in list.
COUNT(list) Returns the number of items in list.
DEFINED(x) Returns 1 if the expression x is well formed; otherwise, it
returns 0.
FALSE Returns 0.
INT(x) Returns the value of the integer part of x.
(list) Returns the largest value in list.
MIN(list) Returns the smallest value in list.
Functions (cont'd)
MOD(x,y) Returns the value x - ny, for some integer n such that, if y is
nonzero, the result has the same sign as x and magnitude less than
the magnitude of y. If y is zero, a diagnostic SHALL be
issued. (y need not be a whole number.)
NOT(x) Returns 0 if the logical expression x is true, or 1 if the expression is
false.
OR(x,y) Returns 1 if either or both logical expressions x and y are true;
otherwise, it returns 0.
PRODUCT(list) Returns the result of multiplying together all members in list.
ROUND(x,y) Returns the value of x rounded to the specified number of decimal
places indicated by floor(y), where floor has the mathematical
meaning. If y is negative, any fractional part is discarded and the
integer part of the value is rounded to the corresponding power
of 10.
SIGN(x) Returns 1 if x is positive; returns 0 if x is zero; and returns –1 if x is
negative.
SUM(list) Returns the sum of the items in list.
TRUE Returns 1.
Common Field Formatting
• Field results can be of three formats:
– Dates
– Numbers
– Text
• Each result type can be formatted within the
field codes
Date Field Formatting
DATE @ "M/d/yyyy"
DATE @ "dddd, MMMM dd, yyyy" Tuesday,
DATE @ "MMMM d, yyyy"
DATE @ "M/d/yy"
DATE @ "yyyy-MM-dd" 2006-01-03
DATE @ "d-MMM-yy" 3-Jan-06
DATE @ "M.d.yyyy" 1.3.2006
DATE @ "MMM. d, yy"
DATE @ "d MMMM yyyy" 3 January 2006
DATE @ "MMMM yy" January 06
DATE @ "MMM-yy" Jan-06
DATE @ "M/d/yyyy h:mm am/pm"
DATE @ "M/d/yyyy h:mm:ss am/pm" 5:28:34 PM
DATE @ "h:mm am/pm"
DATE @ "h:mm:ss am/pm" 5:28:34 PM
DATE @ "HH:mm" 17:28
DATE @ "HH:mm:ss" 17:28:34
Number Field Formatting
Numeric Formatting Picture Items
Picture Item Description
0 Specifies the requisite numeric positions to display in the result. If the result
does not include a digit in that position, 0 is displayed. [Example: In a US-
English context, =4+5 # 00.00 displays "09.00". end example]
# Specifies the requisite numeric positions to display in the result. If the result
does not include a digit in that position, a space is displayed. Extra fractional
digits are rounded off. [Example: =9+6 # $### displays "$ 15". end
example]
x Drops digits to the left of the x placeholder. If the placeholder is to the right
of the decimal point, the result is rounded to that place. [Example: In a US-
English context, =111053+111439 # x## displays "492",
=1/8 # 0.00x displays "0.125", and =3/4 # .x displays ".8". end
example]
. Indicates the radix-point position. [Example: In a US-English context,
=95.4 # $###.00 displays "$ 95.40. end example] The radix-point
character used is locale-specific.
, Separates groups of three digits. [Example: In a US-English context,
=2456800 # $#,###,### displays "2,456,800". end example] The
separator character used is locale-specific.
- Prepends a minus sign to a negative result, or prepends a space if the result is
positive or 0. [Example: =80-90 # -## displays "-10", while =90-
80 # -## displays " 80". end example]
Number Field Formatting (cont'd)
+ Prepends a plus sign to a positive result, a minus sign to a negative result, or a
space if the result is 0. [Example: =90-80 # +## displays "+10", and =80-
90 # +## displays "-10". end example]
Other character Includes the specified character in the result at that position. [Example:
=33 # ##% displays "33%". end example]
'text' Includes text in the result. [Example: In a US-English context, if is a
bookmark for 26.5, =*15% # "##0.00 'is the sales tax'" displays
"$ 3.98 is the sales tax". end example]
`numbered-item` Includes, in Arabic numerals, the number of the preceding item numbered as a
caption or resulting from a SEQ field (§8.58). numbered-item shall be the same
name as identifier in that SEQ field. [Example: =SUM(A1:D4) # "##0.00
'is the total of Table' `table`" displays "456.34 is the total
of Table 2". end example]
positive-result ;
negative-result
Specifies different sets of picture items for positive and negative results. A
zero value uses the positive picture. [Example: =Sales95 # $#,##0.00;-
$#,##0.00 displays that bookmark's positive values using $#,##0.00, and it's
negative values using -$#,##0.00. end example]
positive-result ;
negative-result ;
zero-result
Specifies different sets of picture items for positive, negative, and zero results.
[Example: =Sales95 # $#,##0.00;-$#,##0.00;$0 displays that
bookmark's positive values using $#,##0.00, it's negative values using -
$#,##0.00, and its zero values using $0. end example]
Text Field Formatting
General Formatting Switch Arguments
Switch Argument Description
ALPHABETIC Formats a numeric result as one or more uppercase alphabetic Latin characters. Value 1 results in
the letter A, value 2 results in the letter B, and so on up to value 26, which results in the letter Z.
26 is subtracted from the value and if the result is non-zero, the whole process is repeated until
the value is zero. [Example: =54 * ALPHABETIC results in "BBB". end example]
alphabetic Formats a numeric result as one or more lowercase alphabetic Latin characters. Value 1 results in
the letter a, value 2 results in the letter b, and so on up to value 26, which results in the letter z.
26 is subtracted from the value and if the result is non-zero, the whole process is repeated until
the value is zero. [Example: =54 * alphabetic results in "bbb". end example]
Arabic Formats a result using Arabic cardinal numerals. [Example: For page 123, PAGE * Arabic
results in "123". end example]
ArabicDash Formats a result using Arabic cardinal numerals, with a prefix of "- " and a suffix of " -".
[Example: For page 123, PAGE * ArabicDash results in "- 123 -". end example]
Caps Capitalizes the first letter of each word. [Example: USERNAME " smith" * Caps results in
"", whereas USERNAME "marysmith" * Caps results in "Marysmith". end example]
CardText Formats a result as cardinal text. By default, the result is in lowercase; however, a capitalization
switch can be used to change that. [Example: For page 123, PAGE * CardText results in
"one hundred twenty-three", while PAGE * CardText * Caps results in "One
Hundred Twenty-Three". end example]
Text Field Formatting (cont'd)
DollarText Formats a result in the following form:
integer-part-as-cardinal-text and nn/100
The fractional part is rounded to two decimal places, nn, and is formatted using Arabic
cardinal numerals. [Example: =1234.567 * DollarText results in "one thousand
two hundred thirty-four and 57/100". end example]
FirstCap Capitalizes the first letter of the first word. [Example: USERNAME " smith" *
FirstCap results in " smith". end example]
Hex Formats the result using hexadecimal digits. By default, the result is in uppercase; however,
a capitalization switch can be used to change that. [Example: For page 355,
PAGE * Hex * Lower results in "ff". end example]
Lower All letters are lowercase. [Example: USERNAME " smith" * Lower results in
" smith". end example]
OrdText Formats a result as ordinal text. By default, the result is formatted in lowercase; however, a
capitalization switch can be used to change that. Apart from being used to round off the
whole number part, the fractional part is not used. [Example: =1234.567 * OrdText
results in "one thousand two hundred thirty-fifth". end example]
Text Field Formatting (cont'd)
Ordinal Formats a result using ordinal Arabic numerals. By default,
the suffixes are formatted in lowercase; however, a
capitalization switch can be used to change that. [Example:
=32 * Ordinal results in "32nd", while
=33 * Ordinal * Upper results in "33RD". end
example]
Formats a result using uppercase numerals. [Example: For
page 123, PAGE * results in "CXXIII". end example]
roman Formats a result using lowercase numerals. [Example: For
page 123, PAGE * roman results in "cxxiii". end
example]
Upper All letters are uppercase. [Example: USERNAME " smith"
* Upper results in "MARY SMITH". end example]
Hyperlinks
• Hyperlinks are simply another type of field
– As we saw in the field types list, they are
represented using the HYPERLINK field
• However, WordprocessingML provides a
specific syntax for writing out hyperlinks
– This is defined using the hyperlink element
Hyperlinks
• Whenever the hyperlink can be saved as a
simple field, it uses the hyperlink element
– This element specifies the hyperlink target as an
explicit relationship on the hyperlink
Hyperlinks
• Whenever the hyperlink requires complex
field syntax (e.g. the field codes are
formatted), it's just another complex field
with the HYPERLINK field code and no
relationship
Disclaimer
This presentation is for informational purposes only, and should
not be relied upon as a substitute or replacement for Microsoft
formal file format documentation, which is available at the
following website: https://msdn.microsoft.com/en-
us/library/cc313118(v=office.12).aspx. Any views or opinions
presented in this material are solely those of the author and do
not necessarily represent those of Microsoft. Microsoft
disclaims all liability for mistakes or inaccuracies in this
presentation.

Mais conteúdo relacionado

Mais procurados (20)

Db2 sql tuning and bmc catalog manager
Db2 sql tuning and bmc catalog manager Db2 sql tuning and bmc catalog manager
Db2 sql tuning and bmc catalog manager
 
Advance database system(part 5)
Advance database system(part 5)Advance database system(part 5)
Advance database system(part 5)
 
Sql server select queries ppt 18
Sql server select queries ppt 18Sql server select queries ppt 18
Sql server select queries ppt 18
 
7.relational model
7.relational model7.relational model
7.relational model
 
Sas short course_presentation_11-4-09
Sas short course_presentation_11-4-09Sas short course_presentation_11-4-09
Sas short course_presentation_11-4-09
 
LaTeX Part 1
LaTeX Part 1LaTeX Part 1
LaTeX Part 1
 
Latex workshop
Latex workshopLatex workshop
Latex workshop
 
Chapter.07
Chapter.07Chapter.07
Chapter.07
 
Research 101 - Paper Writing with LaTeX
Research 101 - Paper Writing with LaTeXResearch 101 - Paper Writing with LaTeX
Research 101 - Paper Writing with LaTeX
 
Searching in AtoM
Searching in AtoMSearching in AtoM
Searching in AtoM
 
Latex for beginner
Latex for beginnerLatex for beginner
Latex for beginner
 
demo2.ppt
demo2.pptdemo2.ppt
demo2.ppt
 
Mapping Benefits
Mapping BenefitsMapping Benefits
Mapping Benefits
 
Latex
LatexLatex
Latex
 
Sas cheat
Sas cheatSas cheat
Sas cheat
 
Introduction to the Relational Model and SQL
Introduction to the Relational Model and SQLIntroduction to the Relational Model and SQL
Introduction to the Relational Model and SQL
 
Sap abap material
Sap abap materialSap abap material
Sap abap material
 
8 wordprocessing ml subject - numbering
8   wordprocessing ml subject - numbering8   wordprocessing ml subject - numbering
8 wordprocessing ml subject - numbering
 
Introduction to Latex
Introduction to LatexIntroduction to Latex
Introduction to Latex
 
MARC21
MARC21MARC21
MARC21
 

Destaque

12 wordprocessing ml subject - annotations
12   wordprocessing ml subject - annotations12   wordprocessing ml subject - annotations
12 wordprocessing ml subject - annotationsShawn Villaron
 
2 wordprocessing ml subject - paragraphs and rich formatting
2   wordprocessing ml subject - paragraphs and rich formatting2   wordprocessing ml subject - paragraphs and rich formatting
2 wordprocessing ml subject - paragraphs and rich formattingShawn Villaron
 
Spreadsheet ml subject styles
Spreadsheet ml subject   stylesSpreadsheet ml subject   styles
Spreadsheet ml subject stylesShawn Villaron
 
Spreadsheet ml subject volatile dependencies
Spreadsheet ml subject   volatile dependenciesSpreadsheet ml subject   volatile dependencies
Spreadsheet ml subject volatile dependenciesShawn Villaron
 
DrawingML Subject: Transforms
DrawingML Subject: TransformsDrawingML Subject: Transforms
DrawingML Subject: TransformsShawn Villaron
 

Destaque (7)

12 wordprocessing ml subject - annotations
12   wordprocessing ml subject - annotations12   wordprocessing ml subject - annotations
12 wordprocessing ml subject - annotations
 
2 wordprocessing ml subject - paragraphs and rich formatting
2   wordprocessing ml subject - paragraphs and rich formatting2   wordprocessing ml subject - paragraphs and rich formatting
2 wordprocessing ml subject - paragraphs and rich formatting
 
H61 m dgs
H61 m dgsH61 m dgs
H61 m dgs
 
Spreadsheet ml subject styles
Spreadsheet ml subject   stylesSpreadsheet ml subject   styles
Spreadsheet ml subject styles
 
Ten Hiring Mistakes
Ten Hiring MistakesTen Hiring Mistakes
Ten Hiring Mistakes
 
Spreadsheet ml subject volatile dependencies
Spreadsheet ml subject   volatile dependenciesSpreadsheet ml subject   volatile dependencies
Spreadsheet ml subject volatile dependencies
 
DrawingML Subject: Transforms
DrawingML Subject: TransformsDrawingML Subject: Transforms
DrawingML Subject: Transforms
 

Semelhante a 15 wordprocessing ml subject - fields and hyperlinks

ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overviewsapdocs. info
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02wingsrai
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01tabish
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01tabish
 
Chapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewChapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewAshish Kumar
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02tabish
 
Tableau PPT.ppt
Tableau PPT.pptTableau PPT.ppt
Tableau PPT.ppteMMAY3
 
169318090 0104abapdictionary-100831073625-phpapp02
169318090 0104abapdictionary-100831073625-phpapp02169318090 0104abapdictionary-100831073625-phpapp02
169318090 0104abapdictionary-100831073625-phpapp02Phani Patibandla
 
Sterling Integrator Map Editor
Sterling Integrator Map EditorSterling Integrator Map Editor
Sterling Integrator Map EditorJeyhind M
 
MS SQL Server.ppt
MS SQL Server.pptMS SQL Server.ppt
MS SQL Server.pptQuyVo27
 
Unit 3 - Transparent tables in the ABAP Dictionary
Unit 3 - Transparent tables in the ABAP DictionaryUnit 3 - Transparent tables in the ABAP Dictionary
Unit 3 - Transparent tables in the ABAP Dictionarydubon07
 

Semelhante a 15 wordprocessing ml subject - fields and hyperlinks (20)

SAP ABAP data dictionary
SAP ABAP data dictionarySAP ABAP data dictionary
SAP ABAP data dictionary
 
04 pig data operations
04 pig data operations04 pig data operations
04 pig data operations
 
07 sap scripts
07 sap scripts07 sap scripts
07 sap scripts
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overview
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01
 
Chapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewChapter 1 Abap Programming Overview
Chapter 1 Abap Programming Overview
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02
 
Tableau PPT.ppt
Tableau PPT.pptTableau PPT.ppt
Tableau PPT.ppt
 
302 sargent word2007-ssp2008
302 sargent word2007-ssp2008302 sargent word2007-ssp2008
302 sargent word2007-ssp2008
 
169318090 0104abapdictionary-100831073625-phpapp02
169318090 0104abapdictionary-100831073625-phpapp02169318090 0104abapdictionary-100831073625-phpapp02
169318090 0104abapdictionary-100831073625-phpapp02
 
Sterling Integrator Map Editor
Sterling Integrator Map EditorSterling Integrator Map Editor
Sterling Integrator Map Editor
 
MS SQL Server.ppt
MS SQL Server.pptMS SQL Server.ppt
MS SQL Server.ppt
 
Unit 3 - Transparent tables in the ABAP Dictionary
Unit 3 - Transparent tables in the ABAP DictionaryUnit 3 - Transparent tables in the ABAP Dictionary
Unit 3 - Transparent tables in the ABAP Dictionary
 
Uses of MS Access in Business
Uses of MS Access in BusinessUses of MS Access in Business
Uses of MS Access in Business
 
Less08 Schema
Less08 SchemaLess08 Schema
Less08 Schema
 
Sql server introduction to sql server
Sql server introduction to sql server Sql server introduction to sql server
Sql server introduction to sql server
 
Etl2
Etl2Etl2
Etl2
 
Lect11
Lect11Lect11
Lect11
 

Mais de Shawn Villaron

Spreadsheet ml subject shared workbooks
Spreadsheet ml subject   shared workbooksSpreadsheet ml subject   shared workbooks
Spreadsheet ml subject shared workbooksShawn Villaron
 
Spreadsheet ml subject query table
Spreadsheet ml subject   query tableSpreadsheet ml subject   query table
Spreadsheet ml subject query tableShawn Villaron
 
Spreadsheet ml subject pivottable
Spreadsheet ml subject   pivottableSpreadsheet ml subject   pivottable
Spreadsheet ml subject pivottableShawn Villaron
 
Spreadsheet ml subject metadata
Spreadsheet ml subject   metadataSpreadsheet ml subject   metadata
Spreadsheet ml subject metadataShawn Villaron
 
Spreadsheet ml subject external links
Spreadsheet ml subject   external linksSpreadsheet ml subject   external links
Spreadsheet ml subject external linksShawn Villaron
 
Spreadsheet ml subject comments
Spreadsheet ml subject   commentsSpreadsheet ml subject   comments
Spreadsheet ml subject commentsShawn Villaron
 
Spreadsheet ml subject calc chain
Spreadsheet ml subject   calc chainSpreadsheet ml subject   calc chain
Spreadsheet ml subject calc chainShawn Villaron
 
Spreadsheet ml overview
Spreadsheet ml overviewSpreadsheet ml overview
Spreadsheet ml overviewShawn Villaron
 
Spreadsheet ml subject xml-mapping
Spreadsheet ml subject   xml-mappingSpreadsheet ml subject   xml-mapping
Spreadsheet ml subject xml-mappingShawn Villaron
 
Spreadsheet ml subject workbook
Spreadsheet ml subject   workbookSpreadsheet ml subject   workbook
Spreadsheet ml subject workbookShawn Villaron
 
Spreadsheet ml subject workbook connections
Spreadsheet ml subject   workbook connectionsSpreadsheet ml subject   workbook connections
Spreadsheet ml subject workbook connectionsShawn Villaron
 
Spreadsheet ml subject tables
Spreadsheet ml subject   tablesSpreadsheet ml subject   tables
Spreadsheet ml subject tablesShawn Villaron
 
Spreadsheet ml subject strings
Spreadsheet ml subject   stringsSpreadsheet ml subject   strings
Spreadsheet ml subject stringsShawn Villaron
 
Spreadsheet ml subject sheet
Spreadsheet ml subject   sheetSpreadsheet ml subject   sheet
Spreadsheet ml subject sheetShawn Villaron
 
4 wordprocessing ml subject - custom markup
4   wordprocessing ml subject - custom markup4   wordprocessing ml subject - custom markup
4 wordprocessing ml subject - custom markupShawn Villaron
 
3 wordprocessing ml subject - tables
3   wordprocessing ml subject - tables3   wordprocessing ml subject - tables
3 wordprocessing ml subject - tablesShawn Villaron
 
1 wordprocessing ml subject - main document
1   wordprocessing ml subject - main document1   wordprocessing ml subject - main document
1 wordprocessing ml subject - main documentShawn Villaron
 
0 wordprocessing ml overview
0   wordprocessing ml overview0   wordprocessing ml overview
0 wordprocessing ml overviewShawn Villaron
 
16 wordprocessing ml subject - odds and ends
16   wordprocessing ml subject - odds and ends16   wordprocessing ml subject - odds and ends
16 wordprocessing ml subject - odds and endsShawn Villaron
 
14 wordprocessing ml subject - settings
14   wordprocessing ml subject - settings14   wordprocessing ml subject - settings
14 wordprocessing ml subject - settingsShawn Villaron
 

Mais de Shawn Villaron (20)

Spreadsheet ml subject shared workbooks
Spreadsheet ml subject   shared workbooksSpreadsheet ml subject   shared workbooks
Spreadsheet ml subject shared workbooks
 
Spreadsheet ml subject query table
Spreadsheet ml subject   query tableSpreadsheet ml subject   query table
Spreadsheet ml subject query table
 
Spreadsheet ml subject pivottable
Spreadsheet ml subject   pivottableSpreadsheet ml subject   pivottable
Spreadsheet ml subject pivottable
 
Spreadsheet ml subject metadata
Spreadsheet ml subject   metadataSpreadsheet ml subject   metadata
Spreadsheet ml subject metadata
 
Spreadsheet ml subject external links
Spreadsheet ml subject   external linksSpreadsheet ml subject   external links
Spreadsheet ml subject external links
 
Spreadsheet ml subject comments
Spreadsheet ml subject   commentsSpreadsheet ml subject   comments
Spreadsheet ml subject comments
 
Spreadsheet ml subject calc chain
Spreadsheet ml subject   calc chainSpreadsheet ml subject   calc chain
Spreadsheet ml subject calc chain
 
Spreadsheet ml overview
Spreadsheet ml overviewSpreadsheet ml overview
Spreadsheet ml overview
 
Spreadsheet ml subject xml-mapping
Spreadsheet ml subject   xml-mappingSpreadsheet ml subject   xml-mapping
Spreadsheet ml subject xml-mapping
 
Spreadsheet ml subject workbook
Spreadsheet ml subject   workbookSpreadsheet ml subject   workbook
Spreadsheet ml subject workbook
 
Spreadsheet ml subject workbook connections
Spreadsheet ml subject   workbook connectionsSpreadsheet ml subject   workbook connections
Spreadsheet ml subject workbook connections
 
Spreadsheet ml subject tables
Spreadsheet ml subject   tablesSpreadsheet ml subject   tables
Spreadsheet ml subject tables
 
Spreadsheet ml subject strings
Spreadsheet ml subject   stringsSpreadsheet ml subject   strings
Spreadsheet ml subject strings
 
Spreadsheet ml subject sheet
Spreadsheet ml subject   sheetSpreadsheet ml subject   sheet
Spreadsheet ml subject sheet
 
4 wordprocessing ml subject - custom markup
4   wordprocessing ml subject - custom markup4   wordprocessing ml subject - custom markup
4 wordprocessing ml subject - custom markup
 
3 wordprocessing ml subject - tables
3   wordprocessing ml subject - tables3   wordprocessing ml subject - tables
3 wordprocessing ml subject - tables
 
1 wordprocessing ml subject - main document
1   wordprocessing ml subject - main document1   wordprocessing ml subject - main document
1 wordprocessing ml subject - main document
 
0 wordprocessing ml overview
0   wordprocessing ml overview0   wordprocessing ml overview
0 wordprocessing ml overview
 
16 wordprocessing ml subject - odds and ends
16   wordprocessing ml subject - odds and ends16   wordprocessing ml subject - odds and ends
16 wordprocessing ml subject - odds and ends
 
14 wordprocessing ml subject - settings
14   wordprocessing ml subject - settings14   wordprocessing ml subject - settings
14 wordprocessing ml subject - settings
 

Último

Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 

Último (20)

Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 

15 wordprocessing ml subject - fields and hyperlinks

  • 1. Components of WordprocessingML • Main Document • Paragraphs & Rich Formatting – Runs – Run Content • Tables • Custom Markup • Sections • Styles – Paragraph – Character – Numbering – Table – Document Defaults • Fonts • Numbering • Headers/Footers • Footnotes/Endnotes • Glossary Document • Annotations – Comments – Revisions – Bookmarks • Mail Merge • Document Settings – Web Settings – Compatibility Settings • Fields & Hyperlinks • Odds & Ends (Textboxes, Subdocuments, Extensibility) Ecma/TC45/2006/038 (Rev.)
  • 3. Fields • Represent non-static text in a word processing document – Most text is static; only changes based on user interaction – This is not suitable for some content (e.g. page numbers) – Fields specify text which should be calculated based on a specific formula
  • 4. Fields Example • Consider a field which should always render today's date • Entering the date as static text wouldn't be sufficient, as today's date is dynamic • Therefore, a field must be inserted which specifies that it should always display the current date.
  • 5. Field Components • Fields are comprised of two primary components: – Field codes • the instructions that describe to the consumer how to calculate the field – Field results • the results of the last calculation of the field codes (when appropriate) • For example, WordprocessingML does not store the results of the page number field, because it doesn't store the concept of pages
  • 6. Field Components Example • Consider the AUTHOR field, which shows the document's author property: • Field results show: • Field codes show:
  • 7. Fields in WordprocessingML • These two components can be represented in two distinct ways in WordprocessingML: – Simple fields – Complex fields • Either syntax can be used, depending on the requirements in context
  • 8. Simple Fields • Specified by the fldSimple element • Used when the field instructions hold no formatting
  • 9. Simple Fields Field codes Field results Note that Word places a run property on the field results that prevents it from being spell or grammar checked
  • 10. Complex Fields • Specified by three delimiter elements – Field start – Field separator – Field end • Used when there is formatting on the fields codes themselves – Therefore, they need to be persisted as WordprocessingML
  • 11. Complex Fields Example • Let's create an IF field and format the field codes: • Now, we need to persist that formatting – Therefore, this can't be a simple field
  • 12. Complex Fields Example • Field start character
  • 13. Complex Fields Example • Field codes • Note that field codes do not use the <t> element – So that you can easily exclude field code text
  • 14. Complex Fields Example • Field separator character – This delimits the end of the field codes, and start of the field results
  • 15. Complex Fields Example • Field results
  • 16. Complex Fields Example • Field end character
  • 17. Complex Fields • Other reasons why fields must be complex: – Revision marking – Fields can span multiple paragraphs (i.e. they're not well-formed)
  • 18. Locked Fields • A field can be locked, in which case, its result cannot be updated • Set via a fldLock attribute on the field's fldSimple or field start elements
  • 19. Updating Fields • Some fields should be automatically updated with each edit (e.g. the PAGENUM field), while others should not update unless explicitly asked to do so (e.g. the AUTHOR field) • Therefore, fields are of three types: – Hot (always update) – Warm (update on open save, or print) – Cold (never automatically update)
  • 20. Caching Field Results • Producers may wish to save a document with fields and deliberately mark some cold fields as 'stale': – For example, when the producer knowingly invalidated the field's result, but was not sophisticated enough to recalculate the field
  • 21. Caching Field Results • A 'dirty' bit on any field specifies that a producer should treat the results of that field as stale, and potentially offer UI to update the field – This is done via the dirty attribute • This can also be done on the document level using the document's settings
  • 22. Field Types • Fields can be divided into eight categories: – Date and Time – Document Automation – Document Properties – Equations and Formulas – Links and References – Mail Merge – Numbering – User Information
  • 23. Date and Time • Field types: – CREATEDATE (creation date) – DATE (current date) – EDITTIME (time edited) – PRINTDATE (last printed date) – SAVEDATE (last saved date) – TIME (current time)
  • 24. Document Automation • Field types: – COMPARE (logical comparison) – DOCVARIABLE (display document variable) – GOTOBUTTON (link button) – IF (logical IF statement) – MACROBUTTON (run application-specific code) – PRINT (print the document)
  • 25. Document Properties • Field types: – AUTHOR (document author property) – COMMENTS (document comments property) – DOCPROPERTY (show OLE document property) – FILENAME (file name) – FILE SIZE (file size) – INFO (document information)
  • 26. Document Properties • Field types (cont'd): – KEYWORDS (document keywords property) – LASTSAVEDBY (last saved by property) – NUMCHARS (number of characters) – NUMPAGES (number of pages) – NUMWORDS (number of words) – SUBJECT (subject document property) – TEMPLATE (document template file name) – TITLE (title document property)
  • 27. Equations and Formulas • Field types – =.. (formulas) – ADVANCE – EQ (equation) – SYMBOL (show symbol)
  • 28. Index and Tables • Field types: – INDEX (document index) – RD (referenced document) – TA (table of authorities entry) – TC (table of contents entry) – TOA (table of authorities) – TOC (table of contents) – XE (cross reference)
  • 29. Links and References • Field types: – AUTOTEXT (show AutoText entry) – AUTOTEXTLIST (user choice of AutoText entry) – HYPERLINK – INCLUDEPICTURE (import external image) – INCLUDETEXT (import external text) – LINK (link to text)
  • 30. Links and References • Field types (cont'd): – NOTEREF (footnote/endnote reference) – PAGEREF (page reference) – QUOTE (show text) – REF (reference to bookmark or paragraph) – STYLEREF (reference to styled text)
  • 31. Mail Merge • Field types (covered later): – ADDRESSBLOCK – ASK – BARCODE – COMPARE – DATABASE – FILLIN – GREETINGLINE – IF
  • 32. Mail Merge • Field types (covered later): – MERGEFIELD – MERGEREC – MERGESEQ – NEXT – NEXTIF – SET – SKIPIF
  • 33. Numbering • Field types: – AUTONUM (legacy numbering) – AUTONUMLGL (legacy legal numbering) – AUTONUMOUT (legacy outline numbering – LISTNUM (legacy list numbering) – PAGE (number of pages) – REVNUM (revision number property) – SECTION (section number)
  • 34. Numbering • Field types (cont'd): – SECTIONPAGES (pages in section) – SEQ (sequence)
  • 35. User Information • Field types: – USERADDRESS (user address) – USERINITIALS (user intials) – USERNAME (user name)
  • 36. Field Formulas • A field code can involve a operation via a formula, which consists of: – Constants – Bookmark references – Numbers – Logical operators – Functions
  • 37. Field Formulas • Constants – Formulas can use any constant value (e.g. an integer) • Bookmarks – Can supply a constant for another field (e.g. Result * 10 will look for the value of a bookmark called 'Result') • Numbers
  • 38. Operators Operators Operator Description Precedence - Unary minus highest ^ Powers and roots * Multiplication / Division % Percentage + Addition - Subtraction = Equal to <> Not equal to < Less than lowest <= Less than or equal to > Greater than >= Greater than or equal to
  • 39. Functions Functions Function Description ABS(x) Returns the absolute value of x. AND(x,y) Returns 1 if the logical expressions x and y are both true; otherwise, it returns 0. AVERAGE(list) Returns the average value of the items in list. COUNT(list) Returns the number of items in list. DEFINED(x) Returns 1 if the expression x is well formed; otherwise, it returns 0. FALSE Returns 0. INT(x) Returns the value of the integer part of x. (list) Returns the largest value in list. MIN(list) Returns the smallest value in list.
  • 40. Functions (cont'd) MOD(x,y) Returns the value x - ny, for some integer n such that, if y is nonzero, the result has the same sign as x and magnitude less than the magnitude of y. If y is zero, a diagnostic SHALL be issued. (y need not be a whole number.) NOT(x) Returns 0 if the logical expression x is true, or 1 if the expression is false. OR(x,y) Returns 1 if either or both logical expressions x and y are true; otherwise, it returns 0. PRODUCT(list) Returns the result of multiplying together all members in list. ROUND(x,y) Returns the value of x rounded to the specified number of decimal places indicated by floor(y), where floor has the mathematical meaning. If y is negative, any fractional part is discarded and the integer part of the value is rounded to the corresponding power of 10. SIGN(x) Returns 1 if x is positive; returns 0 if x is zero; and returns –1 if x is negative. SUM(list) Returns the sum of the items in list. TRUE Returns 1.
  • 41. Common Field Formatting • Field results can be of three formats: – Dates – Numbers – Text • Each result type can be formatted within the field codes
  • 42. Date Field Formatting DATE @ "M/d/yyyy" DATE @ "dddd, MMMM dd, yyyy" Tuesday, DATE @ "MMMM d, yyyy" DATE @ "M/d/yy" DATE @ "yyyy-MM-dd" 2006-01-03 DATE @ "d-MMM-yy" 3-Jan-06 DATE @ "M.d.yyyy" 1.3.2006 DATE @ "MMM. d, yy" DATE @ "d MMMM yyyy" 3 January 2006 DATE @ "MMMM yy" January 06 DATE @ "MMM-yy" Jan-06 DATE @ "M/d/yyyy h:mm am/pm" DATE @ "M/d/yyyy h:mm:ss am/pm" 5:28:34 PM DATE @ "h:mm am/pm" DATE @ "h:mm:ss am/pm" 5:28:34 PM DATE @ "HH:mm" 17:28 DATE @ "HH:mm:ss" 17:28:34
  • 43. Number Field Formatting Numeric Formatting Picture Items Picture Item Description 0 Specifies the requisite numeric positions to display in the result. If the result does not include a digit in that position, 0 is displayed. [Example: In a US- English context, =4+5 # 00.00 displays "09.00". end example] # Specifies the requisite numeric positions to display in the result. If the result does not include a digit in that position, a space is displayed. Extra fractional digits are rounded off. [Example: =9+6 # $### displays "$ 15". end example] x Drops digits to the left of the x placeholder. If the placeholder is to the right of the decimal point, the result is rounded to that place. [Example: In a US- English context, =111053+111439 # x## displays "492", =1/8 # 0.00x displays "0.125", and =3/4 # .x displays ".8". end example] . Indicates the radix-point position. [Example: In a US-English context, =95.4 # $###.00 displays "$ 95.40. end example] The radix-point character used is locale-specific. , Separates groups of three digits. [Example: In a US-English context, =2456800 # $#,###,### displays "2,456,800". end example] The separator character used is locale-specific. - Prepends a minus sign to a negative result, or prepends a space if the result is positive or 0. [Example: =80-90 # -## displays "-10", while =90- 80 # -## displays " 80". end example]
  • 44. Number Field Formatting (cont'd) + Prepends a plus sign to a positive result, a minus sign to a negative result, or a space if the result is 0. [Example: =90-80 # +## displays "+10", and =80- 90 # +## displays "-10". end example] Other character Includes the specified character in the result at that position. [Example: =33 # ##% displays "33%". end example] 'text' Includes text in the result. [Example: In a US-English context, if is a bookmark for 26.5, =*15% # "##0.00 'is the sales tax'" displays "$ 3.98 is the sales tax". end example] `numbered-item` Includes, in Arabic numerals, the number of the preceding item numbered as a caption or resulting from a SEQ field (§8.58). numbered-item shall be the same name as identifier in that SEQ field. [Example: =SUM(A1:D4) # "##0.00 'is the total of Table' `table`" displays "456.34 is the total of Table 2". end example] positive-result ; negative-result Specifies different sets of picture items for positive and negative results. A zero value uses the positive picture. [Example: =Sales95 # $#,##0.00;- $#,##0.00 displays that bookmark's positive values using $#,##0.00, and it's negative values using -$#,##0.00. end example] positive-result ; negative-result ; zero-result Specifies different sets of picture items for positive, negative, and zero results. [Example: =Sales95 # $#,##0.00;-$#,##0.00;$0 displays that bookmark's positive values using $#,##0.00, it's negative values using - $#,##0.00, and its zero values using $0. end example]
  • 45. Text Field Formatting General Formatting Switch Arguments Switch Argument Description ALPHABETIC Formats a numeric result as one or more uppercase alphabetic Latin characters. Value 1 results in the letter A, value 2 results in the letter B, and so on up to value 26, which results in the letter Z. 26 is subtracted from the value and if the result is non-zero, the whole process is repeated until the value is zero. [Example: =54 * ALPHABETIC results in "BBB". end example] alphabetic Formats a numeric result as one or more lowercase alphabetic Latin characters. Value 1 results in the letter a, value 2 results in the letter b, and so on up to value 26, which results in the letter z. 26 is subtracted from the value and if the result is non-zero, the whole process is repeated until the value is zero. [Example: =54 * alphabetic results in "bbb". end example] Arabic Formats a result using Arabic cardinal numerals. [Example: For page 123, PAGE * Arabic results in "123". end example] ArabicDash Formats a result using Arabic cardinal numerals, with a prefix of "- " and a suffix of " -". [Example: For page 123, PAGE * ArabicDash results in "- 123 -". end example] Caps Capitalizes the first letter of each word. [Example: USERNAME " smith" * Caps results in "", whereas USERNAME "marysmith" * Caps results in "Marysmith". end example] CardText Formats a result as cardinal text. By default, the result is in lowercase; however, a capitalization switch can be used to change that. [Example: For page 123, PAGE * CardText results in "one hundred twenty-three", while PAGE * CardText * Caps results in "One Hundred Twenty-Three". end example]
  • 46. Text Field Formatting (cont'd) DollarText Formats a result in the following form: integer-part-as-cardinal-text and nn/100 The fractional part is rounded to two decimal places, nn, and is formatted using Arabic cardinal numerals. [Example: =1234.567 * DollarText results in "one thousand two hundred thirty-four and 57/100". end example] FirstCap Capitalizes the first letter of the first word. [Example: USERNAME " smith" * FirstCap results in " smith". end example] Hex Formats the result using hexadecimal digits. By default, the result is in uppercase; however, a capitalization switch can be used to change that. [Example: For page 355, PAGE * Hex * Lower results in "ff". end example] Lower All letters are lowercase. [Example: USERNAME " smith" * Lower results in " smith". end example] OrdText Formats a result as ordinal text. By default, the result is formatted in lowercase; however, a capitalization switch can be used to change that. Apart from being used to round off the whole number part, the fractional part is not used. [Example: =1234.567 * OrdText results in "one thousand two hundred thirty-fifth". end example]
  • 47. Text Field Formatting (cont'd) Ordinal Formats a result using ordinal Arabic numerals. By default, the suffixes are formatted in lowercase; however, a capitalization switch can be used to change that. [Example: =32 * Ordinal results in "32nd", while =33 * Ordinal * Upper results in "33RD". end example] Formats a result using uppercase numerals. [Example: For page 123, PAGE * results in "CXXIII". end example] roman Formats a result using lowercase numerals. [Example: For page 123, PAGE * roman results in "cxxiii". end example] Upper All letters are uppercase. [Example: USERNAME " smith" * Upper results in "MARY SMITH". end example]
  • 48. Hyperlinks • Hyperlinks are simply another type of field – As we saw in the field types list, they are represented using the HYPERLINK field • However, WordprocessingML provides a specific syntax for writing out hyperlinks – This is defined using the hyperlink element
  • 49. Hyperlinks • Whenever the hyperlink can be saved as a simple field, it uses the hyperlink element – This element specifies the hyperlink target as an explicit relationship on the hyperlink
  • 50. Hyperlinks • Whenever the hyperlink requires complex field syntax (e.g. the field codes are formatted), it's just another complex field with the HYPERLINK field code and no relationship
  • 51. Disclaimer This presentation is for informational purposes only, and should not be relied upon as a substitute or replacement for Microsoft formal file format documentation, which is available at the following website: https://msdn.microsoft.com/en- us/library/cc313118(v=office.12).aspx. Any views or opinions presented in this material are solely those of the author and do not necessarily represent those of Microsoft. Microsoft disclaims all liability for mistakes or inaccuracies in this presentation.