Bug 63465 - XWPFParagraph: how to set ILvl?
Summary: XWPFParagraph: how to set ILvl?
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 4.0.0-FINAL
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2019-05-26 23:05 UTC by Thibaut Cuvelier
Modified: 2020-03-24 08:50 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Thibaut Cuvelier 2019-05-26 23:05:38 UTC
I am trying to have nested lists (or levels, as Word calls them, I think), i.e. something like this: 

- First level
  - Second level
    - Third level

However, while I found a method XWPFParagraph.setNumID for the numbering, I don't see anything for the level (like setIlvl or setNumIlvl -- although there is getNumIlvl). Is there anything I missed? If not, I'd be happy to provide a patch adding this method (I'm just worried about what tests you'd expect from such a method).
Comment 1 Sayi 2020-03-24 07:06:12 UTC
Since 4.1.2, XWPFParagraph.setNumILvl(BigInteger)already exists.
Comment 2 Dominik Stadler 2020-03-24 08:50:03 UTC
Yes, seems this was added via r1871999 and GitHub PR163: https://github.com/apache/poi/pull/163