diff --git a/crates/hwp/src/hwp/paragraph/control/mod.rs b/crates/hwp/src/hwp/paragraph/control/mod.rs index 17ae742..21c879a 100644 --- a/crates/hwp/src/hwp/paragraph/control/mod.rs +++ b/crates/hwp/src/hwp/paragraph/control/mod.rs @@ -47,8 +47,8 @@ use self::{ shape_object::{ arc::ShapeArcControl, container::ContainerControl, curve::ShapeCurveControl, ellipse::ShapeEllipseControl, gen_shape_object::GenShapeObjectControl, - line::ShapeLineControl, picture::PictureControl, polygon::ShapePolygonControl, - rectangle::ShapeRectangleControl, ole::OleControl, + line::ShapeLineControl, ole::OleControl, picture::PictureControl, + polygon::ShapePolygonControl, rectangle::ShapeRectangleControl, }, sub_text::SubText, table::TableControl, @@ -70,6 +70,7 @@ pub enum Control { Picture(PictureControl), Ole(OleControl), Container(ContainerControl), + ConnectLine(ShapeLineControl), // 개체 이외 컨트롤 AutoNumber(AutoNumber), @@ -151,6 +152,9 @@ pub fn parse_control(cursor: &mut RecordCursor, version: &Version) -> Control { make_4chid!('$', 'c', 'o', 'n') => { Control::Container(ContainerControl::from_record(&mut record, cursor, version)) } + make_4chid!('$', 'c', 'o', 'l') => { + Control::ConnectLine(ShapeLineControl::from_record(&mut record, cursor, version)) + } make_4chid!('c', 'o', 'l', 'd') => Control::Column(ColumnControl::from_record(&mut record)), make_4chid!('a', 't', 'n', 'o') => { diff --git a/crates/hwp/src/hwp/paragraph/control/shape_object/content.rs b/crates/hwp/src/hwp/paragraph/control/shape_object/content.rs index fe40d7a..79433a3 100644 --- a/crates/hwp/src/hwp/paragraph/control/shape_object/content.rs +++ b/crates/hwp/src/hwp/paragraph/control/shape_object/content.rs @@ -15,6 +15,7 @@ use super::{ pub enum ShapeObjectContent { Arc(ArcRecord), Container(ContainerContent), + ConnectLine(LineRecord), Curve(CurveRecord), Ellipse(EllipseRecord), Line(LineRecord), @@ -57,6 +58,9 @@ pub fn parse_content( make_4chid!('$', 'r', 'e', 'c') => { ShapeObjectContent::Rectangle(RectangleRecord::from_record_cursor(cursor)) } + make_4chid!('$', 'c', 'o', 'l') => { + ShapeObjectContent::ConnectLine(LineRecord::from_record_cursor(cursor)) + } _ => ShapeObjectContent::Unknown(UnknownRecord::from_record_cursor(cursor)), } }