From aae37955ade410f5440e360ac1004a11a40d5d48 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 13 Nov 2026 04:45:08 -0500 Subject: [PATCH] Expose typed IDML guide settings --- crates/idml/src/model/spread.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/idml/src/model/spread.rs b/crates/idml/src/model/spread.rs index c4d535f89..663c19482 100644 --- a/crates/idml/src/model/spread.rs +++ b/crates/idml/src/model/spread.rs @@ -188,6 +188,16 @@ impl Guide { pub fn liquid(&self) -> bool { self.values.get("GuideType") == Some("Liquid") } + + /// `Locked` is true. + pub fn locked(&self) -> bool { + self.values.boolean("Locked") == Some(true) + } + + /// `ItemLayer`: the identifier of the layer the guide belongs to. + pub fn item_layer(&self) -> Option<&str> { + self.values.item_layer() + } } /// What a page item is.