pub struct ValueFormatDateTime { /* private fields */ }
Expand description

Formatting for Boolean.

Implementations

New, empty.

👎Deprecated

New, with name.

New, with name.

New, with name.

The number:language attribute specifies a language code. The country code is used for formatting properties whose evaluation is locale-dependent. If a language code is not specified, either the system settings or the setting for the system’s language are used, depending on the property whose value should be evaluated.

The number:country attribute specifies a country code for a data style. The country code is used for formatting properties whose evaluation is locale-dependent. If a country is not specified, the system settings are used.

The number:script attribute specifies a script code. The script code is used for formatting properties whose evaluation is locale-dependent. The attribute should be used only if necessary according to the rules of §2.2.3 of RFC5646, or its successors.

Returns number:language, number:country and number:script as a locale.

The number:title attribute specifies the title of a data style.

The number:title attribute specifies the title of a data style.

The number:transliteration-language attribute specifies a language code in conformance with RFC5646. If no language/country (locale) combination is specified, the locale of the data style is used

The number:transliteration-country attribute specifies a country code in conformance with RFC5646. If no language/country (locale) combination is specified, the locale of the data style is used.

Returns number:transliteration_language and number:transliteration_country as a locale.

The number:transliteration-format attribute specifies which number characters to use.

The value of the number:transliteration-format attribute shall be a decimal “DIGIT ONE” character with numeric value 1 as listed in the Unicode Character Database file UnicodeData.txt with value ‘Nd’ (Numeric decimal digit) in the General_Category/Numeric_Type property field 6 and value ‘1’ in the Numeric_Value fields 7 and 8, respectively as listed in DerivedNumericValues.txt

If no format is specified the default ASCII representation of Latin-Indic digits is used, other transliteration attributes present in that case are ignored.

The default value for this attribute is 1

Transliteration format.

The number:transliteration-style attribute specifies the transliteration format of a number system.

The semantics of the values of the number:transliteration-style attribute are locale- and implementation-dependent.

The default value for this attribute is short.

Transliteration style.

The style:display-name attribute specifies the name of a style as it should appear in the user interface. If this attribute is not present, the display name should be the same as the style name.

The style:volatile attribute specifies whether unused style in a document are retained or discarded by consumers. The defined values for the style:volatile attribute are:

  • false: consumers should discard the unused styles.
  • true: consumers should keep unused styles.

Volatile format.

The fo:background-color attribute specifies a background color for characters, paragraphs, text sections, frames, page bodies, headers, footers, table cells, table rows and tables. This can be transparent or a color. If the value is set to transparent, it switches off any background image that is specified by a style:background-image 17.3.

If a value for a draw:fill attribute is provided in a style, any background image that is specified by a style:background-image element and any background color that is specified with the fo:background-color attribute are switched off.

See §7.17.1 of XSL. In the OpenDocument XSL-compatible namespace, the fo:color attribute does not support the inherit value.

The style:font-name attribute specifies a font that is declared by a style:font-face 16.23 element with a style:name 19.502 attribute whose name is the same as that of the style:font-name attribute value.

This attribute is evaluated for any UNICODE character whose script type is latin. 20.358

See §7.8.4 of XSL. This attribute is evaluated for any UNICODE character whose script type is latin. 20.358 The value of this attribute is either an absolute length or a percentage as described in §7.8.4 of XSL. In contrast to XSL, percentage values can be used within common styles only and are based on the font height of the parent style rather than to the font height of the attributes neighborhood. Absolute font heights and relative font heights are not supported.

Note: The style:font-size-asian attribute (20.284) is evaluated for UNICODE characters whose type is asian. The style:font-size-complex attribute (20.285) is evaluated for UNICODE characters whose type is complex.

The style:font-size-rel attribute specifies a relative font size change. This attribute is evaluated for any UNICODE character whose script type is latin. 20.358 This attribute specifies a relative font size change as a length. It cannot be used within automatic styles. This attribute changes the font size based on the font size of the parent style.

See §7.8.7 of XSL. This attribute is evaluated for any UNICODE character whose script type is latin. 20.358

Set the font-style to italic.

See §7.8.9 of XSL. This attribute is evaluated for any UNICODE character whose script type is latin. 20.358

Sets the font-weight to bold. See set_font_weight.

See §7.8.8 of XSL.

Combined font attributes.

Sets the attributes for fo:language, fo:country and fo:script to the given locale.

These attributes are evaluated for any UNICODE characters whose script type is asian.

The style:font-name attribute specifies a font that is declared by a style:font-face 16.23 element with a style:name 19.502 attribute whose name is the same as that of the style:font-name attribute value.

This attribute is evaluated for any UNICODE character whose script type is asian. 20.358

See §7.8.4 of XSL. This attribute is evaluated for any UNICODE character whose script type is asian. 20.358 The value of this attribute is either an absolute length or a percentage as described in §7.8.4 of XSL. In contrast to XSL, percentage values can be used within common styles only and are based on the font height of the parent style rather than to the font height of the attributes neighborhood. Absolute font heights and relative font heights are not supported.

Note: The style:font-size-asian attribute (20.284) is evaluated for UNICODE characters whose type is asian. The style:font-sizecomplex attribute (20.285) is evaluated for UNICODE characters whose type is complex.

The style:font-size-rel attribute specifies a relative font size change. This attribute is evaluated for any UNICODE character whose script type is asian. 20.358 This attribute specifies a relative font size change as a length. It cannot be used within automatic styles. This attribute changes the font size based on the font size of the parent style.

See §7.8.7 of XSL. This attribute is evaluated for any UNICODE character whose script type is asian. 20.358

Set the font-style to italic.

See §7.8.9 of XSL. This attribute is evaluated for any UNICODE character whose script type is asian. 20.358

Sets the font-weight to bold. See set_font_weight.

Combined font attributes.

Sets the attributes for fo:language, fo:country and fo:script to the given locale.

These attributes are evaluated for any UNICODE characters whose script type is complex.

The style:font-name attribute specifies a font that is declared by a style:font-face 16.23 element with a style:name 19.502 attribute whose name is the same as that of the style:font-name attribute value.

This attribute is evaluated for any UNICODE character whose script type is complex. 20.358

See §7.8.4 of XSL. This attribute is evaluated for any UNICODE character whose script type is complex. 20.358 The value of this attribute is either an absolute length or a percentage as described in §7.8.4 of XSL. In contrast to XSL, percentage values can be used within common styles only and are based on the font height of the parent style rather than to the font height of the attributes neighborhood. Absolute font heights and relative font heights are not supported.

Note: The style:font-size-asian attribute (20.284) is evaluated for UNICODE characters whose type is asian. The style:font-sizecomplex attribute (20.285) is evaluated for UNICODE characters whose type is complex.

The style:font-size-rel attribute specifies a relative font size change. This attribute is evaluated for any UNICODE character whose script type is complex. 20.358 This attribute specifies a relative font size change as a length. It cannot be used within automatic styles. This attribute changes the font size based on the font size of the parent style.

See §7.8.7 of XSL. This attribute is evaluated for any UNICODE character whose script type is complex. 20.358

Set the font-style to italic. This attribute is evaluated for any UNICODE character whose script type is complex. 20.358

See §7.8.9 of XSL. This attribute is evaluated for any UNICODE character whose script type is complex. 20.358

Sets the font-weight to bold. See set_font_weight.

Combined font attributes.

See §7.9.4 of XSL.

See §7.10.6 of XSL

See §7.10.7 of XSL

See §7.16.2 of XSL. Sets the letter spacing.

The fo:text-shadow attribute specifies the text shadow style to use.

See §7.16.6 of XSL. If fo:text-transform and fo:font-variant 20.192 attributes are used simultaneously and have different values than normal and none, the result is undefined. Note: In consumers, the fo:text-transform and fo:font-variant attributes are mutually exclusive

The style:font-relief attribute specifies whether a font should be embossed, engraved, or neither. The defined values for the style:font-relief attribute are:

  • embossed: characters are embossed.
  • engraved: characters are engraved.
  • none: characters are neither embossed or engraved.

The style:text-position attribute specifies whether text is positioned above or below the baseline and to specify the relative font height that is used for this text. This attribute can have one or two values. The first value shall be present and specifies the vertical text position as a percentage of the current font height or it takes one of the values sub or super. Negative percentages or the sub value place the text below the baseline. Positive percentages or the super value place the text above the baseline. If sub or super is specified, the consumer chooses an appropriate text position. The second value may be present and specifies the font height as a percentage of the current font-height. If this value is not specified, an appropriate font height is used.

The style:rotation-angle attribute specifies the rotation angle of content.

The style:text-rotation-scale attribute specifies whether for rotated text the width of the text should be scaled to fit into the current line height or the width of the text should remain fixed, therefore changing the current line height. The defined values for the style:text-rotation-scale attribute are:

  • fixed: width of text should remain fixed.
  • line-height: width of text should be scaled to fit the current line height.

The style:letter-kerning attribute specifies whether kerning between characters is enabled or disabled.

The style:text-combine attribute specifies whether to combine characters so that they are displayed within two lines.

The defined values for the style:text-combine attribute are:

  • letters: Display text in Kumimoji. Up to five (5) characters are combined within two lines and are displayed with a reduced size in a single wide-cell character. Additional characters are displayed as normal text.
  • lines: Displays text in Warichu. All characters with the style:text-combine attribute that immediately follow each other are displayed within two lines of approximately the same length. A line break may occur between any two characters to meet this constraint.
  • none: characters should not be combined.

The style:text-combine-start-char attribute specifies the start character that is displayed before a portion of text whose style:text-combine 20.367 attribute has a value of lines.

The style:text-combine-end-char attribute specifies the end character that is displayed after a portion of text whose style:text-combine 20.367 attribute has a value of lines.

The style:text-emphasize attribute specifies emphasis in a text composed of UNICODE characters whose script type is asian. 20.358 The value of this attribute consists of two white space-separated values. The first value represents the style to use for emphasis. The second value represents the position of the emphasis and it can be above or below. If the first value is none, the second value can be omitted. The defined values for the style:text-emphasize attribute are:

  • accent: calligraphic accent strokes.
  • circle: hollow circles.
  • disc: filled circles.
  • dot: calligraphic dot.
  • none: no emphasis marks.

The style:text-line-through-color attribute specifies the color that is used for linethrough text. The defined values for the style:text-line-through-color attribute are:

  • font-color: current text color is used for underlining.
  • a value of type color 18.3.9

The style:text-line-through-mode attribute specifies whether lining through is applied to words only or to portions of text. The defined values for the style:text-line-through-mode attribute are:

  • continuous: lining is applied to words and separating spaces.
  • skip-white-space: lining is not applied to spaces between words.

The style:text-line-through-style attribute specifies a style for rendering a line-through text. The defined values for the style:text-line-through-style attribute are:

  • none: text has no line through it.
  • dash: text has a dashed line through it.
  • dot-dash: text has a line whose repeating pattern is a dot followed by a dash through it.
  • dot-dot-dash: text has a line whose repeating pattern is two dots followed by a dash through it.
  • dotted: text has a dotted line through it.
  • long-dash: text has a dashed line whose dashes are longer than the ones from the dashed line for value dash through it.
  • solid: text has a solid line through it.
  • wave: text has a wavy line through it. Note: The definitions of the values of the style:text-line-through-style attribute are based on the text decoration style ‘text-line-through-style’ from CSS3Text, §9.2.

The style:text-line-through-text attribute specifies a text that is used for line-through. The attribute will be evaluated only if the value of style:text-line-through-style 20.373 attribute is different than none. If the attribute value is not empty, the attribute value string is used for line-through instead of the line style that has been specified by the style:text-line-through-style attribute. Consumers that do not support line-through with text should ignore the attribute, and should use the line style specified by the style:text-line-through-style attribute. Consumers that support line-through with single characters only, should use the first character of the value for line-through, if the style:text-line-through-text attribute value has more than one character. Consumers that support line-through with specific characters only (like ”x” or ”/” (U+002F, SOLIDUS) should use one of these characters if the attribute specifies characters that are not supported.

The style:text-line-through-text-style specifies a text style that is applied to text-linethrough characters. It is not applied to line-through lines. If the attribute appears in an automatic style, it may reference either an automatic text style or a common style. If the attribute appears in a common style, it may reference a common style only.

The style:text-line-through-type attribute specifies whether text is lined through, and if so, whether a single or double line will be used. The defined values for the style:text-line-through-type attribute are:

  • double: a double line should be used for a line-through text.
  • none: deprecated.
  • single: a single line should be used for a line-through text. Every occurrence of the style:text-line-through-type attribute should be accompanied by an occurrence of the style:text-line-through-style 20.373 attribute on the same element. There should not be an occurrence of the style:text-line-through-type attribute if the value of the style:text-line-through-sty

The style:text-line-through-width attribute specifies the width of a line-through line. The value bold specifies a line width that is calculated from the font sizes like an auto width, but is wider than an auto width. The defined values for the style:text-line-through-width attribute are:

  • auto: the width of a line-through should be calculated from the font size of the text where the line-through will appear.
  • bold: the width of a line-through should be calculated from the font size of the text where the line-through will appear but is wider than for the value of auto.
  • a value of type percent 18.3.23
  • a value of type positiveInteger 18.2
  • a value of type positiveLength 18.3.26 The line-through text styles referenced by the values dash, medium, thick and thin, are implementation-defined. Thin shall be smaller width than medium and medium shall be a smaller width than thick.

The style:text-outline attribute specifies whether to display an outline of text or the text itself.

The style:text-overline-color attribute specifies a color that is used to overline text.

The defined values for the style:text-overline-color attribute are:

  • font-color: the current text color is used for overlining.
  • a value of type color

The style:text-overline-mode attribute specifies whether overlining is applied to words only or to portions of text.

The style:text-overline-style attribute specifies a style for rendering a line over text.

The style:text-overline-type attribute specifies the type of overlining applied to a text.

The style:text-overline-width attribute specifies the width of an overline. The value bold specifies a line width that is calculated from the font sizes like an auto width, but is wider than an auto width.

The style:text-underline-color attribute specifies a color that is used to underline text. The defined values for the style:text-underline-color attribute are:

  • font-color: the current text color is used for underlining.
  • a value of type color: the color to be used for underlining.

The style:text-underline-mode attribute specifies whether underlining is applied to words only or to portions of text. If underlining is applied to text portions, the spaces between words and the words are underlined.

The style:text-underline-style attribute specifies a style for underlining text

The style:text-underline-type attribute specifies the type of underlining applied to a text

The style:text-underline-width attribute specifies the width of an underline. The value bold specifies a line width that is calculated from the font sizes like an auto width, but is wider than an auto width.

The style:use-window-font-color attribute specifies whether the window foreground color should be used as the foreground color for a light background color and white for a dark background color. The determination of light or dark color is implementation-defined.

The text:condition attribute specifies the display of text. The defined value of the text:condition attribute is none, which means text is hidden.

The text:display attribute specifies whether text is hidden. The defined values for the text:display attribute are:

  • condition: text is hidden under the condition specified in the text:condition 20.426 attribute.
  • none: text is hidden unconditionally.
  • true: text is displayed. This is the default setting

The number:automatic-order attribute specifies whether data is ordered to match the default order for the language and country of a data style. The defined values for the number:automatic-order attribute are:

  • false: data is not ordered to match the default order for the language and country of a data style.
  • true: data is ordered to match the default order for the language and country of a data style. The default value for this attribute is false.

This attribute is valid for ValueType::DateTime and ValueType::TimeDuration.

Automatic order.

The number:format-source attribute specifies the source of definitions of the short and long display formats.

The defined values for the number:format-source attribute are:

  • fixed: the values short and long of the number:style attribute are defined by this standard.
  • language: the meaning of the values long and short of the number:style attribute depend upon the number:language and number:country attributes of the date style. If neither of those attributes are specified, consumers should use their default locale for short and long date and time formats.

The default value for this attribute is fixed.

This attribute is valid for ValueType::DateTime and ValueType::TimeDuration.

The source of definitions of the short and long display formats.

Adds a format part to this format.

The number:am-pm element specifies whether AM/PM is included as part of a date or time. If a number:am-pm element is contained in a date or time style, hours are displayed using values from 1 to 12 only.

Can be used with ValueTypes:

  • DateTime
  • TimeDuration

Adds a format part to this format.

The number:day element specifies a day of a month in a date.

Can be used with ValueTypes:

  • DateTime

Adds a format part to this format.

The number:day-of-week element specifies a day of a week in a date

Can be used with ValueTypes:

  • DateTime

Adds a format part to this format.

The number:era element specifies an era in which a year is counted

Can be used with ValueTypes:

  • DateTime

Adds a format part to this format.

The number:fill-character element specifies a Unicode character that is displayed repeatedly at the position where the element occurs. The character specified is repeated as many times as possible, but the total resulting string shall not exceed the given cell content area.

Fill characters may not fill all the available space in a cell. The distribution of the remaining space is implementation-dependent.

Can be used with ValueTypes:

  • Currency
  • DateTime
  • Number
  • Percentage
  • Text
  • TimeDuration

Adds a format part to this format.

The number:hours element specifies whether hours are displayed as part of a date or time.

Can be used with ValueTypes:

  • DateTime
  • TimeDuration

Adds a format part to this format.

The number:minutes element specifies whether minutes are displayed as part of a date or time.

Can be used with ValueTypes:

  • DateTime
  • TimeDuration

Adds a format part to this format.

The number:month element specifies a month in a date.

Can be used with ValueTypes:

  • DateTime

Adds a format part to this format.

The number:quarter element specifies a quarter of the year in a date

Can be used with ValueTypes:

  • DateTime

Adds a format part to this format.

The number:seconds element specifies whether seconds are displayed as part of a date or time.

Can be used with ValueTypes:

  • DateTime
  • TimeDuration

Adds a format part to this format.

The number:text element contains any fixed text for a data style.

Can be used with ValueTypes:

  • Boolean
  • Currency
  • DateTime
  • Number
  • Percentage
  • Text
  • TimeDuration

Adds a format part to this format.

The number:week-of-year element specifies a week of a year in a date.

Can be used with ValueTypes:

  • DateTime

Adds a format part to this format.

The number:year element specifies a year in a date

Can be used with ValueTypes:

  • DateTime
👎Deprecated

Use part_am_pm instead.

👎Deprecated

Use part_day instead.

👎Deprecated

Use part_day_of_week instead.

👎Deprecated

Use part_era instead.

👎Deprecated

Use part_hours instead.

👎Deprecated

Use part_minutes instead.

👎Deprecated

Use part_month instead.

👎Deprecated

Use part_quarter instead.

👎Deprecated

Use part_seconds.

👎Deprecated

Use part_text instead.

👎Deprecated

Use part_week_of_year instead.

👎Deprecated

Use part_year instead.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Returns a reference name for this value format.

The style:name attribute specifies names that reference style mechanisms.

The style:name attribute specifies names that reference style mechanisms.

Returns the value type.

Sets the storage location for this ValueFormat. Either content.xml or styles.xml.

Returns the storage location.

How is the style used in the document.

How is the style used in the document.

All direct attributes of the number:xxx-style tag.

All direct attributes of the number:xxx-style tag.

Text style attributes.

Text style attributes.

Adds a format part.

Adds all format parts.

Returns the parts.

Returns the mutable parts.

Adds a stylemap.

Returns the stylemaps

Returns the mutable stylemap.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Converts self into T using Into<T>. Read more
Converts self into a target type. Read more
Causes self to use its Binary implementation when Debug-formatted.
Causes self to use its Display implementation when Debug-formatted. Read more
Causes self to use its LowerExp implementation when Debug-formatted. Read more
Causes self to use its LowerHex implementation when Debug-formatted. Read more
Causes self to use its Octal implementation when Debug-formatted.
Causes self to use its Pointer implementation when Debug-formatted. Read more
Causes self to use its UpperExp implementation when Debug-formatted. Read more
Causes self to use its UpperHex implementation when Debug-formatted. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Pipes by value. This is generally the method you want to use. Read more
Borrows self and passes that borrow into the pipe function. Read more
Mutably borrows self and passes that borrow into the pipe function. Read more
Borrows self, then passes self.borrow() into the pipe function. Read more
Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Borrows self, then passes self.as_ref() into the pipe function.
Mutably borrows self, then passes self.as_mut() into the pipe function. Read more
Borrows self, then passes self.deref() into the pipe function.
Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more
Pipes a value into a function that cannot ordinarily be called in suffix position. Read more
Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more
Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more
Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more
Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more
Pipes a dereference into a function that cannot normally be called in suffix position. Read more
Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more
Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more
Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more
Immutable access to a value. Read more
Mutable access to a value. Read more
Immutable access to the Borrow<B> of a value. Read more
Mutable access to the BorrowMut<B> of a value. Read more
Immutable access to the AsRef<R> view of a value. Read more
Mutable access to the AsMut<R> view of a value. Read more
Immutable access to the Deref::Target of a value. Read more
Mutable access to the Deref::Target of a value. Read more
Calls .tap() only in debug builds, and is erased in release builds.
Calls .tap_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more
Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_ref() only in debug builds, and is erased in release builds. Read more
Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_deref() only in debug builds, and is erased in release builds. Read more
Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more
Provides immutable access for inspection. Read more
Calls tap in debug builds, and does nothing in release builds.
Provides mutable access for modification. Read more
Calls tap_mut in debug builds, and does nothing in release builds.
Provides immutable access to the reference for inspection.
Calls tap_ref in debug builds, and does nothing in release builds.
Provides mutable access to the reference for modification.
Calls tap_ref_mut in debug builds, and does nothing in release builds.
Provides immutable access to the borrow for inspection. Read more
Calls tap_borrow in debug builds, and does nothing in release builds.
Provides mutable access to the borrow for modification.
Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more
Immutably dereferences self for inspection.
Calls tap_deref in debug builds, and does nothing in release builds.
Mutably dereferences self for modification.
Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Attempts to convert self into T using TryInto<T>. Read more
Attempts to convert self into a target type. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.