From c496f727c95e6b9928063e7b4b9a17cbae577764 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Wed, 2 Apr 2008 23:02:41 +0000 Subject: 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 --- src/java/org/apache/poi/hssf/usermodel/HSSFComment.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/java') 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. -- cgit v1.2.3