aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2008-04-02 23:02:41 +0000
committerNick Burch <nick@apache.org>2008-04-02 23:02:41 +0000
commitc496f727c95e6b9928063e7b4b9a17cbae577764 (patch)
tree4669f22909def049ac8313480ef68eb1484cc0ca /src/java
parent2ef12ceb0c46725964cd33197914e232545d17c2 (diff)
downloadpoi-c496f727c95e6b9928063e7b4b9a17cbae577764.tar.gz
poi-c496f727c95e6b9928063e7b4b9a17cbae577764.zip
Fix the comments code so that we can correctly process existing XSSF comments, and add tests for this. Also tweak hssf comments slightly to match
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@644104 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFComment.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java b/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java
index 8ae4fb8926..ed723f3d9d 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFComment.java
@@ -137,6 +137,13 @@ public class HSSFComment extends HSSFTextbox implements Comment {
if(note != null) note.setAuthor(author);
this.author = author;
}
+
+ /**
+ * Fetches the rich text string of the comment
+ */
+ public HSSFRichTextString getString() {
+ return txo.getStr();
+ }
/**
* Sets the rich text string used by this comment.