Beispiel #1
0
        public static HwpV3DocumentStyle Create(BinaryReader reader)
        {
            HwpV3DocumentStyle result = new HwpV3DocumentStyle();

            // 스타일 이름
            result.StyleName = reader.ReadKCharString(20);

            // 글자 모양
            result.FontShape = HwpV3FontShape.Create(reader);

            // 문단 모양
            result.ParagraphShape = HwpV3ParagraphShape.Create(reader);

            return(result);
        }
Beispiel #2
0
        public static HwpV3ParagraphShape Create(BinaryReader reader)
        {
            HwpV3ParagraphShape result = new HwpV3ParagraphShape();

            // 문단 왼쪽 여백
            result.LeftMargin = reader.ReadHUnit();

            // 문단 오른쪽 여백
            result.RightMargin = reader.ReadHUnit();

            // 문단 들여쓰기
            result.Indent = reader.ReadSHUnit();

            // 문단 줄 간격
            result.LineSpacing = reader.ReadHUnit();

            // 문안 아래 간격
            result.BottomMargin = reader.ReadHUnit();

            // 낱말 간격
            result.WordSpacing = reader.ReadByte();

            // 정렬 방식
            result.Alignment = reader.ReadByte();

            // 탭 설정
            result.TabSettings = HwpV3TabSettingsCollection.Create(reader);

            // 단 정의
            result.ColumnSettings = HwpV3ColumnSettings.Create(reader);

            // 음영 비율
            result.ShadeRate = reader.ReadByte();

            // 문단 테두리
            result.Border = reader.ReadByte();

            // 선 연결
            result.LineConnection = reader.ReadByte();

            // 문단 위 간격
            result.TopMargin = reader.ReadHUnit();

            // 예약
            result.Reserved = reader.ReadBytes(2);

            return(result);
        }