From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- helpcontent2/source/text/swriter/01/04090007.xhp | 143 +++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 helpcontent2/source/text/swriter/01/04090007.xhp (limited to 'helpcontent2/source/text/swriter/01/04090007.xhp') diff --git a/helpcontent2/source/text/swriter/01/04090007.xhp b/helpcontent2/source/text/swriter/01/04090007.xhp new file mode 100644 index 000000000..829009a6b --- /dev/null +++ b/helpcontent2/source/text/swriter/01/04090007.xhp @@ -0,0 +1,143 @@ + + + + + + + + +Special Tags +/text/swriter/01/04090007.xhp + + +Sun Microsystems, Inc. + + + +tags; in $[officename] Writer +$[officename] Writer; special HTML tags +HTML;special tags for fields +fields;HTML import and export +time fields;HTML +date fields;HTML +DocInformation fields +MW changed "$[officename] Writer;tags" to "$[officename];special HTML tags" +Special Tags +When you save a document that contains fields as an HTML document, $[officename] automatically converts date, time, and DocInformation fields to special HTML tags. The field contents are inserted between the opening and closing HTML tags of the converted fields. These special HTML tags do not correspond to standard HTML tags. +$[officename] Writer fields are identified by the <SDFIELD> tag in an HTML document. The field type, the format, and the name of the special field are included in the opening HTML tag. The format of a field tag that is recognized by an HTML filter depends on the field type. +
+Date and Time Fields +For "Date" and "Time" fields, the TYPE parameter equals DATETIME. The format of the date or the time is specified by the SDNUM parameter, for example, DD:MM:YY for dates, or HH:MM:SS for time. +For fixed date and time fields, the date or the time is specified by the SDVAL parameter. +Examples of date and time special HTML tags that are recognized by $[officename] as fields are shown in the following table: + + + +Fields + + +$[officename] Tag + + + + +Date is fixed + + +<SDFIELD TYPE=DATETIME SDVAL="35843,4239988426" SDNUM="1031;1031;DD/MM/YY">17/02/98</SDFIELD> + + + + +Date is variable + + +<SDFIELD TYPE=DATETIME SDNUM="1031;1031;DD/MM/YY">17/02/98</SDFIELD> + + + + +Time is fixed + + +<SDFIELD TYPE=DATETIME SDVAL="35843,4240335648" SDNUM="1031;1031;HH:MM:SS">10:10:36</SDFIELD> + + + + +Time is variable + + +<SDFIELD TYPE=DATETIME SDNUM="1031;1031;HH:MM:SS">10:10:36</SDFIELD> + + +
+ +
+
+DocInformation Fields +For DocInformation fields, the TYPE parameter equals DOCINFO. The SUBTYPE parameter displays the specific field type, for example, for the "Created" DocInformation field, SUBTYPE=CREATE. For date and time DocInformation fields, the FORMAT parameter equals DATE or TIME, and the SDNUM parameter indicates the number format that is used. The SDFIXED parameter indicates if the content of the DocInformation field is fixed or not. +The contents of a fixed date or time field are equal to the SDVAL parameter, otherwise the contents are equal to the text found between the SDFIELD HTML tags. +Examples of DocInformation special HTML tags that are recognized by $[officename] as fields are shown in the following table: + + + +Fields + + +$[officename] Tag + + + + +Description (fixed content) + + +<SDFIELD TYPE=DOCINFO SUBTYPE=COMMENT SDFIXED>Description</SDFIELD> + + + + +Creation date + + +<SDFIELD TYPE=DOCINFO SUBTYPE=CREATE FORMAT=DATE SDNUM="1031;1031;QQ YY">1. Quarter 98</SDFIELD> + + + + +Creation time (fixed content) + + +<SDFIELD TYPE=DOCINFO SUBTYPE=CREATE FORMAT=TIME SDVAL="0" SDNUM="1031;1031;HH:MM:SS AM/PM" SDFIXED>03:58:35 PM</SDFIELD> + + + + +Modification date + + +<SDFIELD TYPE=DOCINFO SUBTYPE=CHANGE FORMAT=DATE SDNUM="1031;1031;NN DD MMM, YY">Mo 23 Feb, 98</SDFIELD> + + +
+ +
+ +
-- cgit v1.2.3