Skip to main content

Feature

Enum Feature 

Source
#[non_exhaustive]
pub enum Feature {
Show 42 variants VmlGeometry, VmlRotation, VmlPictureColors, VmlPictureTextBox, TextFill, TextEffect, TextOutlineFill, MathStructure, DoubleStrike, TextBorder, FitText, EastAsianLayout, AutoHyphenation, TableShading, SectionTextDirection, FootnotePosition, EndnotePosition, TextAlignment, HangingPunctuation, ParagraphTextDirection, TurnedTextBox, MirrorIndents, GridRightIndent, FrameOverlap, TextBoxTightWrap, RowAlignment, RowCellSpacing, HtmlDiv, GroupTransform(GroupTransform), SymbolExtension, AlternateChoice, BidirectionalEmbedding, Ruby, PageNumberElement, DateBlock, BetweenBorder, BarBorder, MathElement, ChartLabels, PictureBullet, NoteMarkInBox, DataLabels,
}
Expand description

A feature of VML, WordprocessingML or OMML that F-Office does not draw, which Warning::FeatureNotSupported names. Each says what F-Office draws in its place. The features of DrawingML are DrawingMlFeature.

The warning names the part that sets the feature: the part of the layer of the cascade that sets the property that shows it, such as the styles part for a style or the numbering part for a list level; the main document’s for a setting that acts by default where no layer sets it, such as hanging punctuation; and the part that holds a table for the own properties of its rows and cells. The readers of the parts give the features that act where they are read, such as a rotation of a VML shape or a section’s text direction. The layout gives the features of text, paragraphs, frames and tables where it lays them out: a feature of runs once for each paragraph whose text draws it and each part that sets it, with the list label as a run of its paragraph, so that a style, a list level or a paragraph mark that draws no text gives none; and a feature of a table once for each table and part.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

VmlGeometry

A VML shape whose outline is other than a rectangle, a rounded rectangle, an ellipse or a line: a v:shape of a type (type) other than the text box, the rectangle and the straight connector, whose outline, fill and line are not drawn, or a v:shape with its own path (path), which is drawn as a rectangle. Its text box is laid out.

§

VmlRotation

A rotation of a VML shape or picture other than a whole number of quarter turns (rotation in its CSS style): the shape or the picture is drawn upright.

§

VmlPictureColors

A color change of a VML picture in its text line (gain, blacklevel, grayscale or bilevel of v:imagedata): the picture keeps its own colors.

§

VmlPictureTextBox

A text box of a VML picture in its text line (a v:textbox with w:txbxContent of a v:shape whose v:imagedata names an image): the picture is drawn without its text box. One warning for each such shape.

§

TextFill

A fill of a run’s text other than a solid opaque one (w14:textFill): an empty fill, a gradient, or a solid fill of a color that is not opaque. The text is drawn in its color (w:color). One warning for each paragraph whose text shows it, for each part that sets it.

§

TextEffect

A glow, shadow, reflection or 3-D look of a run’s text that draws something (w14:glow, w14:shadow, w14:reflection, w14:scene3d, w14:props3d), or an outline, shadow, emboss or imprint of a run’s text that is on (w:outline, w:shadow, w:emboss, w:imprint): the text is drawn without it. One warning for each paragraph whose text shows it, for each part that sets it.

§

TextOutlineFill

A fill of the line along the outline of a run’s glyphs (w14:textOutline) other than a solid opaque one: a gradient (w14:gradFill), which is not drawn, or a solid fill of a color that is not opaque, which is drawn opaque. One warning for each paragraph whose text shows it, for each part that sets it.

§

MathStructure

A structure of an equation that F-Office does not lay out as a structure: a box that acts as an operator or holds a break (m:box with m:opEmu or m:brk). Its content is laid out in a row, without the structure’s marks and places.

§

DoubleStrike

A double strike through a run’s text that is on (w:dstrike): a target whose quirk UnderlineForms is AllSingle draws it as a single strike. One warning for each paragraph whose text shows it, for each part that sets it.

§

TextBorder

A border around a run’s text of a line style other than none (w:bdr): the text is drawn without it. One warning for each paragraph whose text shows it, for each part that sets it.

§

FitText

A width that a run’s text or a cell’s text is fitted into (w:fitText above 0, w:tcFitText on): the text keeps its own spacing. One warning for each paragraph whose text shows it, and one for each table with such cells, for each part that sets it.

§

EastAsianLayout

An emphasis mark of a run’s text (w:em other than none), or two lines in one or text turned in its line (w:eastAsianLayout with w:combine or w:vert on): the text is laid out in its line without them. One warning for each paragraph whose text shows it, for each part that sets it.

§

AutoHyphenation

Automatic hyphenation of the document (w:autoHyphenation on in the settings) on a target whose configuration hyphenates no language: no word is hyphenated at the end of a line.

§

TableShading

A shading of a whole table that gives a fill or a pattern (w:shd of w:tblPr, also in a table style, or of a row’s w:tblPrEx, which takes the table’s place in the row): only the shading of the cells is drawn. One warning for each table, for each part that sets the shading of one of its rows; a table style that no table uses gives none.

§

SectionTextDirection

A section’s text direction other than upright from left to right (w:textDirection of w:sectPr other than lrTb and tb): the section’s text is laid out upright.

§

FootnotePosition

A place of a section’s footnotes other than the bottom of the page (w:pos of w:footnotePr of the section or the settings other than pageBottom), in a document that holds footnotes: they stand at the bottom of the page.

§

EndnotePosition

A place of a section’s endnotes at the end of the section (w:pos of w:endnotePr of the section or the settings sectEnd), in a document that holds endnotes: they follow the text at the end of the document.

§

TextAlignment

A paragraph’s text alignment at the top, the middle or the bottom of its lines (w:textAlignment of top, center or bottom), on a line whose pieces have two heights, such as runs of two font sizes or a picture beside text: every piece of the line stands on one baseline. One warning for each paragraph that holds such a line; a line of one height gives none.

§

HangingPunctuation

Hanging punctuation (w:overflowPunct, on by default): a punctuation mark of East Asian text, of its language’s list in [MS-OI29500] 2.1.52, that does not fit at the end of a line goes to the next line with the text before it, where Word lets it stand past the end of the line. One warning for each paragraph that holds such a line, with the part that sets w:overflowPunct, or the main document’s where no layer sets it.

§

ParagraphTextDirection

A paragraph’s text direction that turns its text (w:textDirection of w:pPr other than lrTb and tb), in a frame, where Word turns the paragraph ([MS-OI29500] 2.1.63): the paragraph is laid out upright. One warning for each such paragraph, a paragraph of a header or a footer once whatever the number of its pages. Outside frames Word lays the paragraph out upright too, and it gives none.

§

TurnedTextBox

A text box whose text is turned (vert of wps:bodyPr other than horz, layout-flow of the style of v:textbox other than horizontal, or a VML or DrawingML shape turned by whole quarter turns other than none, unless upright of wps:bodyPr keeps the text upright): its text is laid out upright. One warning for each such box.

§

MirrorIndents

Mirrored indents (w:mirrorIndents on) of a paragraph whose left and right indents differ, which make them the inside and outside indents of mirrored pages: the left indent stays on the left of every page. One warning for each such paragraph.

§

GridRightIndent

A right indent that moves to the section’s grid of characters (w:adjustRightInd, on by default, in a paragraph on the grid of a section whose w:docGrid is of the type linesAndChars): the right indent stays as set. One warning for each such paragraph, with the part that sets w:adjustRightInd, or the main document’s where no layer sets it.

§

FrameOverlap

A frame of the body that overlaps an earlier frame of its page in the layout, where one of the two must not overlap other frames (w:suppressOverlap on): Word moves it, and it stays at its own place. One warning for each such frame, with the part that sets w:suppressOverlap for it, or else for the earlier frame.

§

TextBoxTightWrap

A paragraph of a text box whose lines take part in the box’s tight wrap (w:textboxTightWrap other than none): the text around the box wraps around its rectangle. One warning for each such paragraph.

§

RowAlignment

A row’s own alignment (w:jc of w:trPr or of w:tblPrEx) other than its table’s, in a table narrower than its column: the row stands where the table’s alignment puts the table. One warning for each such row, with the part that holds the table.

§

RowCellSpacing

A row’s own cell spacing (w:tblCellSpacing of w:trPr or of w:tblPrEx) other than its table’s: the row’s cells keep the table’s spacing. One warning for each such row, with the part that holds the table.

§

HtmlDiv

A paragraph of an HTML div (w:divId) that has, or lies in a div that has, a margin other than 0 or a border line (w:div of the web settings part): the paragraph is laid out without them. One warning for each such paragraph.

§

GroupTransform(GroupTransform)

A drawing group’s own turn or flip (its group transform: rot, flipH and flipV of the a:xfrm of wpg:grpSpPr), which says what is not drawn: the group’s parts and their text are drawn upright and unflipped, at their places before the turn. One warning for each such group, an inner group too.

§

SymbolExtension

A character of Word’s symbol extension (w16se:symEx), a character in a font of its own, such as an emoji, in a choice of alternate content that F-Office takes: nothing is drawn in its place. One warning for each such character.

§

AlternateChoice

A choice of alternate content (mc:Choice) that F-Office passes over because it does not read a namespace that the choice requires, and that holds no drawing: a later choice or the fallback is drawn in its place, or nothing. One warning for each such choice.

§

BidirectionalEmbedding

Text in a bidirectional embedding or override of a paragraph (w:dir, w:bdo): its runs are left out. One warning for each such element.

§

Ruby

A phonetic guide over a run’s text (w:ruby): its guide text and its base text are left out. One warning for each such guide.

§

PageNumberElement

A page number written as an element of a run (w:pgNum), not as a field: no number is drawn in its place. One warning for each such element.

§

DateBlock

A part of the current date written as an element of a run (w:dayShort, w:dayLong, w:monthShort, w:monthLong, w:yearShort, w:yearLong): nothing is drawn in its place. One warning for each such element.

§

BetweenBorder

A border between the paragraphs of a group of the same borders (w:between of w:pBdr) with a line: it is not drawn. One warning for each paragraph or style whose own borders hold it.

§

BarBorder

A bar border beside a paragraph (w:bar of w:pBdr) with a line: it is not drawn. One warning for each paragraph or style whose own borders hold it.

§

MathElement

An element in an equation outside Office Math that F-Office does not read: not a tracked change, a hyperlink, a smart tag, custom XML, a content control or a mark that draws nothing. What it holds is left out. One warning for each such element.

§

ChartLabels

The title, the legend or labels of the axes of a chart that F-Office draws (c:title, c:legend, the labels of c:catAx and c:valAx), which F-Office does not draw: the chart is drawn without them. One warning for each chart drawn without a part of its text.

§

PictureBullet

The picture bullet of a list label (w:lvlPicBulletId), which F-Office does not draw: the label takes no room and nothing is drawn in its place. One warning for each paragraph with such a label.

§

NoteMarkInBox

The mark of a footnote or an endnote (w:footnoteRef, w:endnoteRef) in a text box of its note, or the mark of an endnote in a frame of its note, which F-Office does not number from the note: the mark shows 1. One warning for each such text box or frame.

§

DataLabels

The data labels of a chart that F-Office draws (c:dLbls, c:dLbl), which F-Office does not draw: the chart is drawn without them. One warning for each chart whose series show data labels.

Implementations§

Source§

impl Feature

Source

pub const ALL: [Feature; 42]

Every feature, in the order of their declaration, each kind once: a feature that says what is not drawn takes its first value, such as GroupTransform::Turn.

Source

pub fn kind(self) -> &'static str

The kind of the warning of the feature, as Warning::kind gives it.

Trait Implementations§

Source§

impl Clone for Feature

Source§

fn clone(&self) -> Feature

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Feature

Source§

impl Debug for Feature

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for Feature

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for Feature

Source§

impl Hash for Feature

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Feature

Source§

fn eq(&self, other: &Feature) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Feature

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.