HwpxParaShape

Struct HwpxParaShape 

Source
#[non_exhaustive]
pub struct HwpxParaShape {
Show 20 fields pub alignment: Alignment, pub margin_left: HwpUnit, pub margin_right: HwpUnit, pub indent: HwpUnit, pub spacing_before: HwpUnit, pub spacing_after: HwpUnit, pub line_spacing: i32, pub line_spacing_type: LineSpacingType, pub break_type: BreakType, pub keep_with_next: bool, pub keep_lines_together: bool, pub widow_orphan: bool, pub break_latin_word: WordBreakType, pub break_non_latin_word: WordBreakType, pub border_fill_id: Option<BorderFillIndex>, pub heading_type: HeadingType, pub heading_id_ref: u32, pub heading_level: u32, pub tab_pr_id_ref: u32, pub condense: u32,
}
Expand description

Resolved paragraph properties from <hh:paraPr>.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§alignment: Alignment

Horizontal alignment.

§margin_left: HwpUnit

Left indent (from <hc:left value="..."/>).

§margin_right: HwpUnit

Right indent.

§indent: HwpUnit

Paragraph indent (from <hc:intent value="..."/>).

§spacing_before: HwpUnit

Space before paragraph (from <hc:prev value="..."/>).

§spacing_after: HwpUnit

Space after paragraph (from <hc:next value="..."/>).

§line_spacing: i32

Line spacing value.

§line_spacing_type: LineSpacingType

Line spacing type.

§break_type: BreakType

Page/column break type before paragraph.

§keep_with_next: bool

Keep paragraph with next (prevent page break between).

§keep_lines_together: bool

Keep lines together (prevent page break within paragraph).

§widow_orphan: bool

Widow/orphan control (minimum 2 lines at page boundaries).

§break_latin_word: WordBreakType

Word-breaking rule for Latin text (default: KeepWord).

§break_non_latin_word: WordBreakType

Word-breaking rule for non-Latin text including Korean (default: KeepWord).

§border_fill_id: Option<BorderFillIndex>

Border/fill reference (None = no border/fill).

§heading_type: HeadingType

Heading type for this paragraph.

§heading_id_ref: u32

Heading numbering reference (idRef in heading element, 0 = none).

§heading_level: u32

Heading outline level (0 = none, 1-10 for outline levels).

§tab_pr_id_ref: u32

Tab property reference (tabPrIDRef, 0 = default).

§condense: u32

Condense value for tight outline spacing.

Trait Implementations§

Source§

impl Clone for HwpxParaShape

Source§

fn clone(&self) -> HwpxParaShape

Returns a duplicate 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 Debug for HwpxParaShape

Source§

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

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

impl Default for HwpxParaShape

Source§

fn default() -> Self

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

impl PartialEq for HwpxParaShape

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for HwpxParaShape

Source§

impl StructuralPartialEq for HwpxParaShape

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<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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

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

§

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

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

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

§

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

Compare self to key and return true if they are equal.
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.