Skip to content

Commit 4c810a2

Browse files
committed
Implement tplc, legal_numbering
1 parent ec63983 commit 4c810a2

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

lib/openxml/docx/elements/level.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ class Level < OpenXml::Docx::Element
99
attribute :level, expects: :integer, displays_as: :ilvl # required
1010
# tplc is an entirely opaque "Word template code" and is
1111
# "application-specific" according to the spec
12-
# attribute :tplc
12+
attribute :template_code, expects: :long_hex_number, displays_as: :tplc
1313
attribute :tentative, expects: :boolean
1414
end
1515

1616
value_property :start
1717
value_property :number_format
1818
value_property :level_restart
19-
# value_property :p_style
20-
# value_property :is_lgl
19+
value_property :paragraph_style
20+
value_property :legal_numbering
2121
value_property :suffix
2222
value_property :level_text
23+
# TODO: Add pic_bullet support (this refers to an element that isn't
24+
# implemented in the Numbering part)
2325
# value_property :lvl_pic_bullet_id
2426
value_property :alignment, as: :level_alignment
2527

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module OpenXml
2+
module Docx
3+
module Properties
4+
class LegalNumbering < OnOffProperty
5+
tag :isLgl
6+
7+
end
8+
end
9+
end
10+
end

0 commit comments

Comments
 (0)