Struct Settings

Source
pub struct Settings<'a> {
Show 95 fields pub write_protection: Option<WriteProtection>, pub view: Option<View>, pub zoom: Option<Zoom>, pub remove_personal_information: Option<RemovePersonalInformation>, pub remove_date_and_time: Option<RemoveDateAndTime>, pub do_not_display_page_boundaries: Option<DoNotDisplayPageBoundaries>, pub display_background_shape: Option<DisplayBackgroundShape>, pub print_post_script_over_text: Option<PrintPostScriptOverText>, pub print_fractional_character_width: Option<PrintFractionalCharacterWidth>, pub print_forms_data: Option<PrintFormsData>, pub embed_true_type_fonts: Option<EmbedTrueTypeFonts>, pub embed_system_fonts: Option<EmbedSystemFonts>, pub save_subset_fonts: Option<SaveSubsetFonts>, pub save_forms_data: Option<SaveFormsData>, pub mirror_margins: Option<MirrorMargins>, pub align_borders_and_edges: Option<AlignBordersAndEdges>, pub borders_do_not_surround_header: Option<BordersDoNotSurroundHeader>, pub borders_do_not_surround_footer: Option<BordersDoNotSurroundFooter>, pub gutter_at_top: Option<GutterAtTop>, pub hide_spelling_errors: Option<HideSpellingErrors>, pub hide_grammatical_errors: Option<HideGrammaticalErrors>, pub active_writing_style: Option<ActiveWritingStyle>, pub proof_state: Option<ProofState>, pub forms_design: Option<FormsDesign>, pub attached_template: Option<AttachedTemplate<'a>>, pub link_styles: Option<LinkStyles>, pub style_pane_format_filter: Option<StylePaneFormatFilter>, pub style_pane_sort_method: Option<StylePaneSortMethod>, pub document_type: Option<DocumentType>, pub mail_merge: Option<MailMerge>, pub revision_view: Option<RevisionView>, pub track_revisions: Option<TrackRevisions>, pub do_not_track_moves: Option<DoNotTrackMoves>, pub do_not_track_formatting: Option<DoNotTrackFormatting>, pub document_protection: Option<DocumentProtection>, pub auto_format_override: Option<AutoFormatOverride>, pub style_lock_theme: Option<StyleLockTheme>, pub style_lock_qfset: Option<StyleLockQfset>, pub default_tab_stop: Option<DefaultTabStop>, pub auto_hyphenation: Option<AutoHyphenation>, pub consecutive_hyphen_limit: Option<ConsecutiveHyphenLimit>, pub hyphenation_zone: Option<HyphenationZone>, pub do_not_hyphenate_caps: Option<DoNotHyphenateCaps>, pub show_envelope: Option<ShowEnvelope>, pub summary_length: Option<SummaryLength>, pub click_and_type_style: Option<ClickAndTypeStyle>, pub default_table_style: Option<DefaultTableStyle>, pub even_and_odd_headers: Option<EvenAndOddHeaders>, pub book_fold_rev_printing: Option<BookFoldRevPrinting>, pub book_fold_printing: Option<BookFoldPrinting>, pub book_fold_printing_sheets: Option<BookFoldPrintingSheets>, pub drawing_grid_horizontal_spacing: Option<DrawingGridHorizontalSpacing>, pub drawing_grid_vertical_spacing: Option<DrawingGridVerticalSpacing>, pub display_horizontal_drawing_grid_every: Option<DisplayHorizontalDrawingGridEvery>, pub display_vertical_drawing_grid_every: Option<DisplayVerticalDrawingGridEvery>, pub do_not_use_margins_for_drawing_grid_origin: Option<DoNotUseMarginsForDrawingGridOrigin>, pub drawing_grid_horizontal_origin: Option<DrawingGridHorizontalOrigin>, pub drawing_grid_vertical_origin: Option<DrawingGridVerticalOrigin>, pub do_not_shade_form_data: Option<DoNotShadeFormData>, pub no_punctuation_kerning: Option<NoPunctuationKerning>, pub character_spacing_control: Option<CharacterSpacingControl>, pub print_two_on_one: Option<PrintTwoOnOne>, pub strict_first_and_last_chars: Option<StrictFirstAndLastChars>, pub no_line_breaks_after: Option<NoLineBreaksAfter>, pub no_line_breaks_before: Option<NoLineBreaksBefore>, pub save_preview_picture: Option<SavePreviewPicture>, pub do_not_validate_against_schema: Option<DoNotValidateAgainstSchema>, pub save_invalid_xml: Option<SaveInvalidXml>, pub ignore_mixed_content: Option<IgnoreMixedContent>, pub always_show_placeholder_text: Option<AlwaysShowPlaceholderText>, pub do_not_demarcate_invalid_xml: Option<DoNotDemarcateInvalidXml>, pub save_xml_data_only: Option<SaveXmlDataOnly>, pub use_xsltwhen_saving: Option<UseXsltwhenSaving>, pub save_through_xslt: Option<SaveThroughXslt>, pub show_xmltags: Option<ShowXmltags>, pub always_merge_empty_namespace: Option<AlwaysMergeEmptyNamespace>, pub update_fields: Option<UpdateFields>, pub hdr_shape_defaults: Option<HdrShapeDefaults>, pub footnote_pr: Option<FootnoteProperty2>, pub endnote_pr: Option<EndnoteProperty2>, pub compat: Option<Compat>, pub doc_vars: Option<DocVars<'a>>, pub rsids: Option<Rsids<'a>>, pub ui_compat97_to2003: Option<UiCompat97to2003>, pub theme_font_lang: Option<ThemeFontLang<'a>>, pub clr_scheme_mapping: Option<ClrSchemeMapping>, pub do_not_include_subdocs_in_stats: Option<DoNotIncludeSubdocsInStats>, pub do_not_auto_compress_pictures: Option<DoNotAutoCompressPictures>, pub force_upgrade: Option<ForceUpgrade>, pub captions: Option<Captions>, pub read_mode_ink_lock_down: Option<ReadModeInkLockDown>, pub shape_defaults: Option<ShapeDefaults>, pub do_not_embed_smart_tags: Option<DoNotEmbedSmartTags>, pub decimal_symbol: Option<DecimalSymbol<'a>>, pub list_separator: Option<ListSeparator<'a>>,
}
Expand description

The root element of the main document part.

Fields§

§write_protection: Option<WriteProtection>

Write Protection

§view: Option<View>

Document View Setting

§zoom: Option<Zoom>

Magnification Setting

§remove_personal_information: Option<RemovePersonalInformation>

Remove Personal Information from Document Properties

§remove_date_and_time: Option<RemoveDateAndTime>

Remove Date and Time from Annotations

§do_not_display_page_boundaries: Option<DoNotDisplayPageBoundaries>

Do Not Display Visual Boundary For Header/Footer or Between Pages

§display_background_shape: Option<DisplayBackgroundShape>

Display Background Objects When Displaying Document

§print_post_script_over_text: Option<PrintPostScriptOverText>

Print PostScript Codes With Document Text

§print_fractional_character_width: Option<PrintFractionalCharacterWidth>

Print Fractional Character Widths

§print_forms_data: Option<PrintFormsData>

Only Print Form Field Content

§embed_true_type_fonts: Option<EmbedTrueTypeFonts>

Embed TrueType Fonts

§embed_system_fonts: Option<EmbedSystemFonts>

Embed Common System Fonts

§save_subset_fonts: Option<SaveSubsetFonts>

Subset Fonts When Embedding

§save_forms_data: Option<SaveFormsData>

Only Save Form Field Content

§mirror_margins: Option<MirrorMargins>

Mirror Page Margins

§align_borders_and_edges: Option<AlignBordersAndEdges>

Align Paragraph and Table Borders with Page Border

§borders_do_not_surround_header: Option<BordersDoNotSurroundHeader>

Page Border Excludes Header

§borders_do_not_surround_footer: Option<BordersDoNotSurroundFooter>

Page Border Excludes Footer

§gutter_at_top: Option<GutterAtTop>

Position Gutter At Top of Page

§hide_spelling_errors: Option<HideSpellingErrors>

Do Not Display Visual Indication of Spelling Errors

§hide_grammatical_errors: Option<HideGrammaticalErrors>

Do Not Display Visual Indication of Grammatical Errors

§active_writing_style: Option<ActiveWritingStyle>

Grammar Checking Settings

§proof_state: Option<ProofState>

Spelling and Grammatical Checking State

§forms_design: Option<FormsDesign>

Structured Document Tag Placeholder Text Should be Resaved

§attached_template: Option<AttachedTemplate<'a>>

Attached Document Template

§link_styles: Option<LinkStyles>

Automatically Update Styles From Document Template

§style_pane_format_filter: Option<StylePaneFormatFilter>

Suggested Filtering for List of Document Styles

§style_pane_sort_method: Option<StylePaneSortMethod>

Suggested Sorting for List of Document Styles

§document_type: Option<DocumentType>

Document Classification

§mail_merge: Option<MailMerge>

Mail Merge Settings

§revision_view: Option<RevisionView>

Visibility of Annotation Types

§track_revisions: Option<TrackRevisions>

Track Revisions to Document

§do_not_track_moves: Option<DoNotTrackMoves>

Do Not Use Move Syntax When Tracking Revisions

§do_not_track_formatting: Option<DoNotTrackFormatting>

Do Not Track Formatting Revisions When Tracking Revisions

§document_protection: Option<DocumentProtection>

Document Editing Restrictions

§auto_format_override: Option<AutoFormatOverride>

Allow Automatic Formatting to Override Formatting Protection Settings

§style_lock_theme: Option<StyleLockTheme>

Prevent Modification of Themes Part

§style_lock_qfset: Option<StyleLockQfset>

Prevent Replacement of Styles Part

§default_tab_stop: Option<DefaultTabStop>

Distance Between Automatic Tab Stops

§auto_hyphenation: Option<AutoHyphenation>

Automatically Hyphenate Document Contents When Displayed

§consecutive_hyphen_limit: Option<ConsecutiveHyphenLimit>

Maximum Number of Consecutively Hyphenated Lines

§hyphenation_zone: Option<HyphenationZone>

Hyphenation Zone

§do_not_hyphenate_caps: Option<DoNotHyphenateCaps>

Do Not Hyphenate Words in ALL CAPITAL LETTERS

§show_envelope: Option<ShowEnvelope>

Show E-Mail Message Header

§summary_length: Option<SummaryLength>

Percentage of Document to Use When Generating Summary

§click_and_type_style: Option<ClickAndTypeStyle>

Paragraph Style Applied to Automatically Generated Paragraphs

§default_table_style: Option<DefaultTableStyle>

Default Table Style for Newly Inserted Tables

§even_and_odd_headers: Option<EvenAndOddHeaders>

Different Even/Odd Page Headers and Footers

§book_fold_rev_printing: Option<BookFoldRevPrinting>

Reverse Book Fold Printing

§book_fold_printing: Option<BookFoldPrinting>

Book Fold Printing

§book_fold_printing_sheets: Option<BookFoldPrintingSheets>

Number of Pages Per Booklet

§drawing_grid_horizontal_spacing: Option<DrawingGridHorizontalSpacing>

Drawing Grid Horizontal Grid Unit Size

§drawing_grid_vertical_spacing: Option<DrawingGridVerticalSpacing>

Drawing Grid Vertical Grid Unit Size

§display_horizontal_drawing_grid_every: Option<DisplayHorizontalDrawingGridEvery>

Distance between Horizontal Gridlines

§display_vertical_drawing_grid_every: Option<DisplayVerticalDrawingGridEvery>

Distance between Vertical Gridlines

§do_not_use_margins_for_drawing_grid_origin: Option<DoNotUseMarginsForDrawingGridOrigin>

Do Not Use Margins for Drawing Grid Origin

§drawing_grid_horizontal_origin: Option<DrawingGridHorizontalOrigin>

Drawing Grid Horizontal Origin Point

§drawing_grid_vertical_origin: Option<DrawingGridVerticalOrigin>

Drawing Grid Vertical Origin Point

§do_not_shade_form_data: Option<DoNotShadeFormData>

Do Not Show Visual Indicator For Form Fields

§no_punctuation_kerning: Option<NoPunctuationKerning>

Never Kern Punctuation Characters

§character_spacing_control: Option<CharacterSpacingControl>

Character-Level Whitespace Compression

§print_two_on_one: Option<PrintTwoOnOne>

Print Two Pages Per Sheet

§strict_first_and_last_chars: Option<StrictFirstAndLastChars>

Use Strict Kinsoku Rules for Japanese Text

§no_line_breaks_after: Option<NoLineBreaksAfter>

Custom Set of Characters Which Cannot End a Line

§no_line_breaks_before: Option<NoLineBreaksBefore>

Custom Set Of Characters Which Cannot Begin A Line

§save_preview_picture: Option<SavePreviewPicture>

Generate Thumbnail For Document On Save

§do_not_validate_against_schema: Option<DoNotValidateAgainstSchema>

Do Not Validate Custom XML Markup Against Schemas

§save_invalid_xml: Option<SaveInvalidXml>

Allow Saving Document As XML File When Custom XML Markup Is Invalid

§ignore_mixed_content: Option<IgnoreMixedContent>

Ignore Mixed Content When Validating Custom XML Markup

§always_show_placeholder_text: Option<AlwaysShowPlaceholderText>

Use Custom XML Element Names as Default Placeholder Text

§do_not_demarcate_invalid_xml: Option<DoNotDemarcateInvalidXml>

Do Not Show Visual Indicator For Invalid Custom XML Markup

§save_xml_data_only: Option<SaveXmlDataOnly>

Only Save Custom XML Markup

§use_xsltwhen_saving: Option<UseXsltwhenSaving>

Save Document as XML File through Custom XSL Transform

§save_through_xslt: Option<SaveThroughXslt>

Custom XSL Transform To Use When Saving As XML File

§show_xmltags: Option<ShowXmltags>

Show Visual Indicators for Custom XML Markup Start/End Locations

§always_merge_empty_namespace: Option<AlwaysMergeEmptyNamespace>

Do Not Mark Custom XML Elements With No Namespace As Invalid

§update_fields: Option<UpdateFields>

Automatically Recalculate Fields on Open

§hdr_shape_defaults: Option<HdrShapeDefaults>

Default Properties for VML Objects in Header and Footer

§footnote_pr: Option<FootnoteProperty2>

Document-Wide Footnote Properties

§endnote_pr: Option<EndnoteProperty2>

Document-Wide Endnote Properties

§compat: Option<Compat>

Compatibility Settings

§doc_vars: Option<DocVars<'a>>

Document Variables

§rsids: Option<Rsids<'a>>

Listing of All Revision Save ID Values

§ui_compat97_to2003: Option<UiCompat97to2003>

Disable Features Incompatible With Earlier Word Processing Formats

§theme_font_lang: Option<ThemeFontLang<'a>>

Theme Font Languages

§clr_scheme_mapping: Option<ClrSchemeMapping>

Theme Color Mappings

§do_not_include_subdocs_in_stats: Option<DoNotIncludeSubdocsInStats>

Do Not Include Content in Text Boxes, Footnotes, and Endnotes in Document Statistics

§do_not_auto_compress_pictures: Option<DoNotAutoCompressPictures>

Do Not Automatically Compress Images

§force_upgrade: Option<ForceUpgrade>

Upgrade Document on Open

§captions: Option<Captions>

Caption Settings

§read_mode_ink_lock_down: Option<ReadModeInkLockDown>

Freeze Document Layout

§shape_defaults: Option<ShapeDefaults>

Default Properties for VML Objects in Main Document

§do_not_embed_smart_tags: Option<DoNotEmbedSmartTags>

Remove Smart Tags When Saving

§decimal_symbol: Option<DecimalSymbol<'a>>

Radix Point for Field Code Evaluation

§list_separator: Option<ListSeparator<'a>>

List Separator for Field Code Evaluation

Trait Implementations§

Source§

impl<'a> Clone for Settings<'a>

Source§

fn clone(&self) -> Settings<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Settings<'a>

Source§

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

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

impl<'a> Default for Settings<'a>

Source§

fn default() -> Settings<'a>

Returns the “default value” for a type. Read more
Source§

impl<'__input: 'a, 'a> XmlRead<'__input> for Settings<'a>

Source§

fn from_reader(reader: &mut XmlReader<'__input>) -> XmlResult<Self>

Source§

fn from_str(text: &'a str) -> Result<Self, XmlError>

Source§

impl<'a> XmlWrite for Settings<'a>

Source§

fn to_writer<W: Write>(&self, writer: &mut XmlWriter<W>) -> XmlResult<()>

Source§

fn to_string(&self) -> Result<String, XmlError>

Auto Trait Implementations§

§

impl<'a> Freeze for Settings<'a>

§

impl<'a> RefUnwindSafe for Settings<'a>

§

impl<'a> Send for Settings<'a>

§

impl<'a> Sync for Settings<'a>

§

impl<'a> Unpin for Settings<'a>

§

impl<'a> UnwindSafe for Settings<'a>

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<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<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> 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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> XmlReadOwned for T
where T: for<'s> XmlRead<'s>,