pub enum SlideHyperlinkTarget {
External(String),
Slide(usize),
NextSlide,
PreviousSlide,
FirstSlide,
LastSlide,
}Expand description
A clickable hyperlink’s target (<a:hlinkClick>, CT_Hyperlink): either
SlideHyperlinkTarget::External, or a jump to another slide in the same presentation rather
than an outside URL. <a:hlinkClick r:id=".">’s r:id resolves to a relationship — for
SlideHyperlinkTarget::External that relationship’s target is the URL itself
(TargetMode="External"); for
SlideHyperlinkTarget::Slide it instead targets another part inside the same package
(TargetMode="Internal", "./slides/slideN.xml"), paired with
action="ppaction://hlinksldjump". The four relative-jump variants need no relationship at all
— they’re expressed purely via action="ppaction://hlinkshowjump?jump=." with no r:id
attribute. Grounded against a real fixture for the r:id+hlinksldjump shape
(SlideHyperlinkTarget::Slide); the relative- jump actions have no fixture in this project’s
corpus but are modeled directly from the ppaction://hlinkshowjump action values ECMA-376
itself documents for “next slide”/“previous slide”/“first slide”/“last slide”.
Variants§
External(String)
An ordinary outside URL (e.g. "https://example.com"), the only kind this crate supported
previously.
Slide(usize)
Jumps to another slide in the same presentation, given as a 0-based index into
Presentation::slides — resolved to a relative relationship target
("./slides/slide{index + 1}.xml") purely from that index at write time, since slide
numbering is fully deterministic (no pre-built global slide-id map needed). Not validated
against the presentation’s actual slide count — an out-of-range index simply produces a link
real PowerPoint would show as broken, the same best-effort posture already used elsewhere in
this crate (e.g. table cell merge spans).
NextSlide
Jumps to the next slide in presentation order.
PreviousSlide
Jumps to the previous slide in presentation order.
FirstSlide
Jumps to the first slide in the presentation.
LastSlide
Jumps to the last slide in the presentation.
Trait Implementations§
Source§impl Clone for SlideHyperlinkTarget
impl Clone for SlideHyperlinkTarget
Source§fn clone(&self) -> SlideHyperlinkTarget
fn clone(&self) -> SlideHyperlinkTarget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SlideHyperlinkTarget
impl Debug for SlideHyperlinkTarget
impl Eq for SlideHyperlinkTarget
Source§impl PartialEq for SlideHyperlinkTarget
impl PartialEq for SlideHyperlinkTarget
impl StructuralPartialEq for SlideHyperlinkTarget
Auto Trait Implementations§
impl Freeze for SlideHyperlinkTarget
impl RefUnwindSafe for SlideHyperlinkTarget
impl Send for SlideHyperlinkTarget
impl Sync for SlideHyperlinkTarget
impl Unpin for SlideHyperlinkTarget
impl UnsafeUnpin for SlideHyperlinkTarget
impl UnwindSafe for SlideHyperlinkTarget
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
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.