DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
D: Paste Into, Polygon Settings
Brandon Thomas87727f279a9e
diff --git a/ROADMAP.md b/ROADMAP.mdindex 5c8490dbb..c61975e82 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -27,6 +27,7 @@ DesignCraft aims at full Adobe InDesign parity — and to be better: faster, ope- Missing fonts: highlighted pink on screen (never in output), listed by Preflight; Type › Find/Replace Font (fonts in the document, missing first; replace in text, cells, footnotes and styles); `font.list` / `font.replace`.- Damage-region repaint: after an edit the canvas re-renders only the frames whose composed text (or the items that) changed and patches its texture — pixel-identical to a full render; typing in a frame repaints in under a millisecond instead of a full-viewport render (22 ms measured on the sample).- Crash recovery: unsaved documents are written to the recovery folder every 30 s and reopened (unsaved, remembering their files) after a crash; File › Revert and Save a Copy…; `file.recovery.*`, `file.revert`, `file.saveACopy`.+- Edit › Paste Into (copied objects become a frame's content, clipped by it; rendered, PDF and IDML both ways — verified in InDesign 2026); Polygon Settings (sides, star inset; double-click the Polygon tool).- Menus expose the engine's features (TOC, numbering & sections, text variables, hyperlinks, cross-references, footnotes, step and repeat, spelling, fitting/content, effects, Data Merge, Preflight, EPUB); any menu command with parameters gets a dialog generated from its parameter documentation.- Table of contents (generate/update, dot leaders) and text variables (running headers, last page number, chapter number, file name, dates, custom) resolved per page.- Soft effects: blurred drop shadow, inner shadow, outer glow, basic feather.diff --git a/crates/doc/src/item.rs b/crates/doc/src/item.rsindex 0971fe8bc..c39c7c9b6 100644--- a/crates/doc/src/item.rs+++ b/crates/doc/src/item.rs@@ -553,8 +553,20 @@ impl Item {}/// Spread-space geometric bounds (axis-aligned box of the transformed path; groups: union).+ /// A group (its bounds are its children's). A frame holding pasted-into items is not.+ pub fn is_group(&self) -> bool {+ self.shape == Shape::Group && matches!(self.content, Content::Group { .. })+ }++ /// A frame with items pasted into it (Edit › Paste Into): drawn clipped to its path.+ pub fn has_nested_items(&self) -> bool {+ self.shape != Shape::Group && matches!(&self.content, Content::Group { items } if !items.is_empty())+ }+pub fn bounds(&self) -> Rect {- if let Content::Group { items } = &self.content {+ if self.shape == Shape::Group+ && let Content::Group { items } = &self.content+ {let mut r: Option<Rect> = None;for c in items {let b = self.xf.transform_rect_bbox(c.bounds());diff --git a/crates/engine/src/cmd/edit.rs b/crates/engine/src/cmd/edit.rsindex 71770d3d2..7f3a4548c 100644--- a/crates/engine/src/cmd/edit.rs+++ b/crates/engine/src/cmd/edit.rs@@ -246,6 +246,15 @@ pub fn specs() -> Vec<CommandSpec> {})}),+ cmd!(+ "edit.pasteInto",+ "Paste Into",+ ["Edit"],+ Some("Cmd+Alt+V"),+ "{id?} — the copied objects become the content of the selected frame (or `id`), clipped by it",+ has_clip,+ paste_into+ ),cmd!("edit.pasteInPlace", "Paste in Place", ["Edit"], Some("Cmd+Alt+Shift+V"), "{}", has_clip, |s, _| s.execute("edit.paste", &json!({"inPlace": true}))),cmd!("edit.duplicate", "Duplicate", ["Edit"], Some("Cmd+Alt+Shift+D"), "{}", has_selection, |s, _| s@@ -368,3 +377,82 @@ mod text_clipboard_tests {st.check().unwrap();}}++fn paste_into(s: &mut Session, p: &Value) -> Result<Value> {+ use super::object::RemoveKeep;+ let clip = s.clipboard.clone().ok_or_else(|| super::bad("edit.pasteInto", "the clipboard holds no objects"))?;+ let target = match super::id_param(p, "id") {+ Some(id) => id,+ None => {+ let st = s.doc()?;+ match st.selection.items.as_slice() {+ [one] => *one,+ _ => return Err(super::bad("edit.pasteInto", "select one frame to paste into")),+ }+ }+ };+ let ids: Vec<ItemId> = clip.spreads.first().map(|sp| sp.items.iter().map(|i| i.id).collect()).unwrap_or_default();+ if ids.is_empty() {+ return Err(super::bad("edit.pasteInto", "the clipboard holds no objects"));+ }+ s.edit(|d, sel| {+ let loc = d.find(target).ok_or(designcraft_doc::DocError::NoItem(target))?;+ let frame = d.item_at(&loc).ok_or(designcraft_doc::DocError::NoItem(target))?.clone();+ if frame.is_group() || frame.is_text_frame() {+ return Err(super::bad("edit.pasteInto", "paste into a graphic or empty frame (not a group or text frame)"));+ }+ let world = d.parent_xf(&loc) * frame.xf;+ // Copies on the frame's spread (stories and images come along), then nested in the frame.+ let new = super::object::duplicate_from(d, &clip, &ids, loc.spread, designcraft_geom::Vec2::ZERO)?;+ let mut kids = Vec::new();+ for id in &new {+ kids.push(d.remove_item_keep_story(*id)?);+ }+ // Centre the content on the frame when it doesn't overlap it (like InDesign).+ let fb = frame.bounds();+ let cb = kids.iter().map(|k| k.bounds()).reduce(|a, b| a.union(b)).unwrap_or(fb);+ let shift = if cb.intersect(fb).area() > 0.0 { designcraft_geom::Vec2::ZERO } else { fb.center().to_vec2() - cb.center().to_vec2() };+ let inv = world.inverse();+ let kids: Vec<Arc<designcraft_doc::Item>> = kids+ .into_iter()+ .map(|mut k| {+ k.xf = inv * designcraft_geom::Affine::translate(shift) * k.xf;+ Arc::new(k)+ })+ .collect();+ let it = d.item_mut(target).ok_or(designcraft_doc::DocError::NoItem(target))?;+ it.content = designcraft_doc::Content::Group { items: kids };+ *sel = Selection::items(vec![target]);+ Ok(json!({"id": target.0, "items": new.len()}))+ })+}++#[cfg(test)]+mod paste_into_tests {+ use super::*;++ #[test]+ fn paste_into_nests_and_clips() {+ let mut s = Session::new();+ s.execute("file.new", &json!({})).unwrap();+ let a = s.execute("frame.create", &json!({"rect": [100, 100, 300, 300]})).unwrap()["id"].as_u64().unwrap();+ s.execute("object.fill", &json!({"ids": [a], "swatch": "[Black]"})).unwrap();+ let frame = s.execute("frame.create", &json!({"rect": [150, 150, 250, 250]})).unwrap()["id"].as_u64().unwrap();+ s.execute("selection.set", &json!({"ids": [a]})).unwrap();+ s.execute("edit.cut", &json!({})).unwrap();+ s.execute("selection.set", &json!({"ids": [frame]})).unwrap();+ s.execute("edit.pasteInto", &json!({})).unwrap();+ let d = s.doc().unwrap().doc.clone();+ assert_eq!(d.spreads[0].items.len(), 1, "the black square is inside the frame now");+ let f = d.item(ItemId(frame)).unwrap();+ assert!(f.has_nested_items() && !f.is_group());+ assert_eq!(f.bounds(), designcraft_geom::Rect::new(150.0, 150.0, 250.0, 250.0), "bounds stay the frame's");+ // Rendered clipped: black inside the frame, nothing outside it.+ let cache = designcraft_compose::Cache::new();+ let mut r = designcraft_render::Renderer::new();+ let img = r.render_page(&d, &cache, 0, 1.0, false, &Default::default()).unwrap();+ assert!(img.pixel(200, 200)[0] < 90, "{:?}", img.pixel(200, 200));+ assert!(img.pixel(120, 120)[0] > 200, "{:?}", img.pixel(120, 120));+ s.doc().unwrap().doc.check().unwrap();+ }+}diff --git a/crates/engine/src/cmd/object.rs b/crates/engine/src/cmd/object.rsindex c173a078f..eaea8c633 100644--- a/crates/engine/src/cmd/object.rs+++ b/crates/engine/src/cmd/object.rs@@ -367,6 +367,23 @@ pub fn specs() -> Vec<CommandSpec> {has_selection,distribute),+ cmd!(+ noundo "tool.polygonSettings",+ "Polygon Settings…",+ [],+ None,+ "{sides?: 3–100, starInset?: 0–100 (%)} → the settings new polygons use",+ super::always,+ |s, p| {+ if let Some(n) = p.get("sides").and_then(Value::as_u64) {+ s.prefs.polygon_sides = (n as u32).clamp(3, 100);+ }+ if let Some(v) = p.get("starInset").and_then(Value::as_f64) {+ s.prefs.star_inset = (v / 100.0).clamp(0.0, 1.0);+ }+ Ok(json!({"sides": s.prefs.polygon_sides, "starInset": (s.prefs.star_inset * 100.0).round()}))+ }+ ),cmd!("object.setLayer", "Move to Layer", [], None, "{layer, ids?}", has_selection, |s, p| {let l = designcraft_doc::LayerId(p.get("layer").and_then(Value::as_u64).unwrap_or(0));set_flag(s, p, move |i| i.layer = l, false)@@ -382,7 +399,8 @@ fn frame_create(s: &mut Session, p: &Value) -> Result<Value> {let lid = s.doc()?.active_layer;let text = str_param(p, "text").unwrap_or("").to_string();let caret = bool_or(p, "caret", content == "text");- let sides = p.get("sides").and_then(Value::as_u64).unwrap_or(6).clamp(3, 100) as u32;+ let sides = p.get("sides").and_then(Value::as_u64).map_or(s.prefs.polygon_sides, |v| v as u32).clamp(3, 100);+ let inset = p.get("starInset").and_then(Value::as_f64).map_or(s.prefs.star_inset, |v| v / 100.0).clamp(0.0, 1.0);let rect = Rect::new(rect.x0, rect.y0, rect.x1.max(rect.x0 + 0.5), rect.y1.max(rect.y0 + 0.5));s.edit(|d, sel| {if d.spread(sr).is_none() {@@ -390,7 +408,7 @@ fn frame_create(s: &mut Session, p: &Value) -> Result<Value> {}let (path, sh) = match shape {"ellipse" | "oval" => (shapes::ellipse(rect), Shape::Oval),- "polygon" => (polygon_in(rect, sides), Shape::Polygon),+ "polygon" => (polygon_in(rect, sides, inset), Shape::Polygon),_ => (shapes::rectangle(rect), Shape::Rectangle),};if content == "text" {@@ -420,9 +438,11 @@ fn frame_create(s: &mut Session, p: &Value) -> Result<Value> {})}-fn polygon_in(r: Rect, sides: u32) -> designcraft_geom::PathData {+/// A polygon (or, with a star inset, a star with `sides` points) fitted to `r`.+pub(crate) fn polygon_in(r: Rect, sides: u32, inset: f64) -> designcraft_geom::PathData {let c = r.center();- let mut p = shapes::polygon(Point::ZERO, 1.0, sides, 0.0);+ let mut p =+ if inset > 0.0 { shapes::star(Point::ZERO, 1.0, (1.0 - inset).max(0.0), sides, 0.0) } else { shapes::polygon(Point::ZERO, 1.0, sides, 0.0) };// Fit the unit polygon's bounds to the rect.if let Some(b) = p.bounds() {let a = Affine::translate(c.to_vec2())@@ -870,7 +890,7 @@ fn fit(s: &mut Session, p: &Value) -> Result<Value> {})}-trait RemoveKeep {+pub(crate) trait RemoveKeep {fn remove_item_keep_story(&mut self, id: ItemId) -> Result<Item>;}@@ -1111,3 +1131,27 @@ fn step_and_repeat(s: &mut Session, p: &Value) -> Result<Value> {Ok(json!({"created": all.len() - ids.len()}))})}++#[cfg(test)]+mod polygon_tests {+ use super::*;++ #[test]+ fn polygon_settings_make_stars() {+ let mut s = Session::new();+ s.execute("file.new", &json!({})).unwrap();+ s.execute("tool.polygonSettings", &json!({"sides": 5, "starInset": 50})).unwrap();+ let id = s.execute("frame.create", &json!({"rect": [100, 100, 200, 200], "shape": "polygon"})).unwrap()["id"].as_u64().unwrap();+ let d = &s.doc().unwrap().doc;+ let it = d.item(ItemId(id)).unwrap();+ // A 5-point star has 10 vertices, fitted to the rect.+ assert_eq!(it.path.subpaths[0].anchors.len(), 10);+ let b = it.bounds();+ assert!((b.x0 - 100.0).abs() < 1e-6 && (b.y1 - 200.0).abs() < 1e-6, "{b:?}");+ // Explicit parameters win over the settings.+ let id = s.execute("frame.create", &json!({"rect": [0, 0, 50, 50], "shape": "polygon", "sides": 3, "starInset": 0})).unwrap()["id"]+ .as_u64()+ .unwrap();+ assert_eq!(s.doc().unwrap().doc.item(ItemId(id)).unwrap().path.subpaths[0].anchors.len(), 3);+ }+}diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rsindex 076ba7038..65a3c98b4 100644--- a/crates/engine/src/lib.rs+++ b/crates/engine/src/lib.rs@@ -125,11 +125,14 @@ pub struct Prefs {pub keyboard_increment: f64,pub show_hidden_characters: bool,pub typographers_quotes: bool,+ /// Polygon Settings (double-click the Polygon tool): number of sides, star inset (0–1).+ pub polygon_sides: u32,+ pub star_inset: f64,}impl Default for Prefs {fn default() -> Self {- Prefs { keyboard_increment: 1.0, show_hidden_characters: false, typographers_quotes: true }+ Prefs { keyboard_increment: 1.0, show_hidden_characters: false, typographers_quotes: true, polygon_sides: 6, star_inset: 0.0 }}}diff --git a/crates/idml/src/export.rs b/crates/idml/src/export.rsindex f42e969bf..00b175a6e 100644--- a/crates/idml/src/export.rs+++ b/crates/idml/src/export.rs@@ -1107,7 +1107,7 @@ impl<'a> Ex<'a> {let d = self.d;let tag = match (&it.content, it.shape) {(Content::Text(_), _) => "TextFrame",- (Content::Group { .. }, _) => "Group",+ (Content::Group { .. }, Shape::Group) => "Group",(_, Shape::Oval) => "Oval",(_, Shape::Polygon) | (_, Shape::Path) => "Polygon",(_, Shape::GraphicLine) => "GraphicLine",diff --git a/crates/idml/src/import.rs b/crates/idml/src/import.rsindex e83a0fe04..14bbe5a63 100644--- a/crates/idml/src/import.rs+++ b/crates/idml/src/import.rs@@ -1601,6 +1601,17 @@ impl<'r> Importer<'r> {_ => {if let Some(g) = e.elements().find(|c| matches!(c.local(), "Image" | "PDF" | "EPS" | "ImportedPage" | "WMF" | "PICT" | "SVG")) {it.content = self.graphic(g);+ } else {+ // Page items pasted into this frame (Paste Into).+ let kids: Vec<Arc<Item>> = e+ .elements()+ .filter(|c| matches!(c.local(), "Rectangle" | "Oval" | "Polygon" | "GraphicLine" | "Group" | "TextFrame"))+ .filter_map(|c| self.item(c, Affine::IDENTITY))+ .map(Arc::new)+ .collect();+ if !kids.is_empty() {+ it.content = Content::Group { items: kids };+ }}}}diff --git a/crates/idml/src/tests.rs b/crates/idml/src/tests.rsindex 562751763..f4f75b542 100644--- a/crates/idml/src/tests.rs+++ b/crates/idml/src/tests.rs@@ -521,3 +521,25 @@ fn round_trips_anchored_objects() {assert_eq!(s.objects[1].item.shape, Shape::Oval);assert_eq!(s.objects[1].position, AnchorPosition::AboveLine { align: AnchorAlign::Center, space_before: 3.0, space_after: 4.0 });}++#[test]+fn round_trips_frames_with_pasted_in_items() {+ let mut d = Document::new(&NewDocument::default());+ let lid = d.default_layer();+ let inner = designcraft_doc::Item::new(designcraft_doc::ItemId(d.alloc()), lid, Shape::Oval, shapes::ellipse(Rect::new(0.0, 0.0, 300.0, 300.0)));+ let mut frame = designcraft_doc::Item::new(+ designcraft_doc::ItemId(d.alloc()),+ lid,+ Shape::Rectangle,+ shapes::rectangle(Rect::new(100.0, 100.0, 200.0, 200.0)),+ );+ frame.content = designcraft_doc::Content::Group { items: vec![std::sync::Arc::new(inner)] };+ d.insert_item(SpreadRef::Doc(0), frame, None).unwrap();+ let back = import_idml(&export_idml(&d)).unwrap();+ let f = &back.spreads[0].items[0];+ assert_eq!(f.shape, Shape::Rectangle);+ assert!(f.has_nested_items(), "{:?}", f.content);+ assert_eq!(f.children()[0].shape, Shape::Oval);+ let b = f.bounds();+ assert!((b.x0 - 100.0).abs() < 0.01 && (b.x1 - 200.0).abs() < 0.01, "{b:?}");+}diff --git a/crates/pdf/src/export.rs b/crates/pdf/src/export.rsindex 1a85595fc..38773c036 100644--- a/crates/pdf/src/export.rs+++ b/crates/pdf/src/export.rs@@ -414,6 +414,47 @@ impl Exporter<'_> {return;}let xf = parent * it.xf;+ if it.has_nested_items() {+ // A frame with items pasted into it: fill, the items clipped to the frame, stroke.+ let bp = if it.corners.is_none() { it.path.to_bezpath() } else { corners::apply(&it.path, &it.corners) };+ let path = to_path(&bp);+ let pushes = Self::push_group(s, it.opacity, it.blend);+ s.push_transform(&tf(xf));+ if !it.fill.is_none()+ && let Some(p) = &path+ && let Some(paint) = self.fill_paint(&it.fill.swatch, it.fill.tint, bp.bounding_box(), it.fill.gradient_angle)+ {+ s.set_stroke(None);+ s.set_fill(Some(Fill { paint, opacity: NormalizedF32::ONE, rule: FillRule::NonZero }));+ s.draw_path(p);+ s.set_fill(None);+ }+ s.pop();+ // The clip in page space, so the children keep their absolute transforms.+ let mut page_bp = bp.clone();+ page_bp.apply_affine(xf);+ let clip = to_path(&page_bp);+ if let Some(c) = &clip {+ s.push_clip_path(c, &FillRule::NonZero);+ }+ for c in it.children() {+ self.item(s, c, xf, page_name);+ }+ if clip.is_some() {+ s.pop();+ }+ if !it.stroke.is_none()+ && let Some(p) = &path+ {+ s.push_transform(&tf(xf));+ self.stroke(s, it, &bp, p);+ s.pop();+ }+ for _ in 0..pushes {+ s.pop();+ }+ return;+ }if !it.children().is_empty() {let pushes = Self::push_group(s, it.opacity, it.blend);for c in it.children() {diff --git a/crates/render/src/lib.rs b/crates/render/src/lib.rsindex 8ae7dcf7e..5014c2f08 100644--- a/crates/render/src/lib.rs+++ b/crates/render/src/lib.rs@@ -338,6 +338,38 @@ impl Renderer {}let xf = parent * it.xf;let vb = xf.transform_rect_bbox(it.inner_bounds()).inflate(it.stroke.weight + 2.0, it.stroke.weight + 2.0);+ if it.has_nested_items() {+ // A frame with items pasted into it: fill, the items clipped to the frame, stroke.+ if !rect_overlaps(vb, f.visible) {+ return;+ }+ let bp = if it.corners.is_none() { it.path.to_bezpath() } else { corners::apply(&it.path, &it.corners) };+ let layered = it.opacity < 0.999 || it.blend != DcBlend::Normal;+ if layered {+ ctx.set_transform(Affine::IDENTITY);+ ctx.push_layer(None, Some(blend_mode(it.blend)), Some(it.opacity), None, None);+ }+ if !it.fill.is_none() {+ ctx.set_transform(f.view * xf);+ if set_fill_paint(ctx, f.doc, &it.fill.swatch, it.fill.tint, bp.bounding_box(), it.fill.gradient_angle) {+ ctx.fill_path(&bp);+ }+ ctx.reset_paint_transform();+ }+ ctx.set_transform(f.view * xf);+ ctx.push_clip_layer(&bp);+ for c in it.children() {+ self.draw_item(ctx, f, c, xf, page_name);+ }+ ctx.pop_layer();+ if !it.stroke.is_none() {+ self.draw_stroke(ctx, f, it, &bp, xf);+ }+ if layered {+ ctx.pop_layer();+ }+ return;+ }if !it.children().is_empty() {// Groups: children carry their own transforms relative to the group.let layered = it.opacity < 0.999 || it.blend != DcBlend::Normal;diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rsindex 1883d491f..828941aff 100644--- a/crates/ui-egui/src/dialogs.rs+++ b/crates/ui-egui/src/dialogs.rs@@ -124,6 +124,7 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) {"footnoteOptions" => "Footnote Options","insertXref" => "New Cross-Reference","findFont" => "Find/Replace Font",+ "polygonSettings" => "Polygon Settings",id => match id.strip_prefix("cmd:").and_then(designcraft_engine::find_command) {Some(c) => c.label.trim_end_matches('…'),None => "Dialog",@@ -258,6 +259,19 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) {"footnoteOptions" => footnote_options(app, ui, &mut d),"insertXref" => insert_xref(app, ui, &mut d),"findFont" => find_font(app, ui, &mut d),+ "polygonSettings" => {+ egui::Grid::new("poly").num_columns(2).spacing([8.0, 6.0]).show(ui, |ui| {+ ui.label("Number of Sides:");+ text_field(ui, &mut d, "sides", 60.0);+ ui.end_row();+ ui.label("Star Inset:");+ ui.horizontal(|ui| {+ text_field(ui, &mut d, "starInset", 60.0);+ ui.label("%");+ });+ ui.end_row();+ });+ }id if id.starts_with("cmd:") => command_form(ui, &mut d),"goToPage" => {ui.horizontal(|ui| {@@ -407,6 +421,7 @@ pub fn confirm(app: &mut DesignApp) -> Result<Value, String> {}app.run("style.paragraph.edit", params)}+ "polygonSettings" => app.run("tool.polygonSettings", json!({"sides": d.n("sides").unwrap_or(6.0) as u64, "starInset": d.n("starInset").unwrap_or(0.0)})),"findFont" => {let (f, st) = (d.s("family"), d.s("style"));if f.is_empty() || d.s("toFamily").is_empty() {diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rsindex e3528a23d..2e8486308 100644--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@ -103,6 +103,8 @@ pub const MENUS: &[(&str, &[&str])] = &["cmd:edit.cut","cmd:edit.copy","cmd:edit.paste",+ "cmd:edit.pasteWithoutFormatting",+ "cmd:edit.pasteInto","cmd:edit.pasteInPlace","cmd:edit.clear","-",diff --git a/crates/ui-egui/src/toolbar.rs b/crates/ui-egui/src/toolbar.rsindex dab803e23..18537e7cf 100644--- a/crates/ui-egui/src/toolbar.rs+++ b/crates/ui-egui/src/toolbar.rs@@ -80,6 +80,11 @@ pub fn show(app: &mut DesignApp, ui: &mut egui::Ui) {if resp.clicked() {chosen = Some(shown.id);}+ // Double-click a polygon tool: Polygon Settings.+ if resp.double_clicked() && matches!(shown.id, "polygon" | "polygonFrame") {+ let cur = app.session.execute("tool.polygonSettings", &json!({})).unwrap_or_default();+ app.ui.dialog = Some(crate::dialogs::Dialog::new("polygonSettings", cur));+ }if g.len() > 1&& (resp.secondary_clicked()|| resp.long_touched()diff --git a/docs/parity.md b/docs/parity.mdindex 8ee599a17..639d6e9a6 100644--- a/docs/parity.md+++ b/docs/parity.md@@ -96,7 +96,7 @@ Open P0 items: Dockable panels, Recovery / autosave, Preferences, Document Setup| Layers | Object Layer Options for placed files | P2 | M || Frames, shapes & paths | Rectangle/Ellipse/Polygon frames | P0 | D || Frames, shapes & paths | Rectangle/Ellipse/Polygon shapes | P0 | D |-| Frames, shapes & paths | Polygon settings | P0 | P |+| Frames, shapes & paths | Polygon settings | P0 | D || Frames, shapes & paths | Line tool | P0 | D || Frames, shapes & paths | Pen, add/delete anchor, convert direction | P0 | P || Frames, shapes & paths | Pencil, Smooth, Erase | P1 | M |@@ -125,7 +125,7 @@ Open P0 items: Dockable panels, Recovery / autosave, Preferences, Document Setup| Frames, shapes & paths | Select submenu | P1 | P || Frames, shapes & paths | Select All / Deselect All | P0 | D || Frames, shapes & paths | Duplicate | P0 | D |-| Frames, shapes & paths | Paste Into / Paste in Place | P0 | P |+| Frames, shapes & paths | Paste Into / Paste in Place | P0 | D || Frames, shapes & paths | Paste Without Formatting | P0 | D || Frames, shapes & paths | Non-printing attribute | P0 | D || Frames, shapes & paths | Overprint fill/stroke/gap | P1 | P |