You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2017/04/11 18:05:45 UTC
[Bug 60971] New: XSSFChart getTitle(), setTitle(String) only handle
static text, not expressions
https://bz.apache.org/bugzilla/show_bug.cgi?id=60971
Bug ID: 60971
Summary: XSSFChart getTitle(), setTitle(String) only handle
static text, not expressions
Product: POI
Version: 3.16-dev
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: dev@poi.apache.org
Reporter: gwoolsey@apache.org
Target Milestone: ---
OOXML stores static text differently than expression strings. The current code
only works for static text chart titles.
POI needs some additional logic and methods in XSSFChart:
1) deprecate the existing methods
2) document they only apply to static text titles
3) point them to renamed versions:
getTitleText()
setTitleText(String)
4) add new methods to handle expressions:
getTitleFormula()
setTitleFormula(String)
I'm proposing "formula" method names since that's what is used elsewhere, such
as data validations.
Callers would then need to use their current formula evaluation context to
evaluate the chart title expression/formula.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60971] XSSFChart getTitle(), setTitle(String) only handle
static text, not expressions
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60971
Greg Woolsey <gw...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from Greg Woolsey <gw...@apache.org> ---
Implemented in r1791025.
Note that the previous getTitle() returned an empty RichTextString when there
was a formula based title defined. That behavior is retained for
compatibility.
The JavaDoc now indicates consumers should check for a formula string first, as
that is null if a static text title is defined or no title is defined.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org