#[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
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
impl Feature
Sourcepub const ALL: [Feature; 42]
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.
Sourcepub fn kind(self) -> &'static str
pub fn kind(self) -> &'static str
The kind of the warning of the feature, as Warning::kind gives it.
Trait Implementations§
impl Copy for Feature
impl Eq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Forget for Feature
impl Freeze for Feature
impl Move for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.