diff options
Diffstat (limited to 'oox/inc/oox/xls/commentsbuffer.hxx')
-rw-r--r-- | oox/inc/oox/xls/commentsbuffer.hxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/oox/inc/oox/xls/commentsbuffer.hxx b/oox/inc/oox/xls/commentsbuffer.hxx index e87d52ff03a2..406a03534584 100644 --- a/oox/inc/oox/xls/commentsbuffer.hxx +++ b/oox/inc/oox/xls/commentsbuffer.hxx @@ -40,8 +40,11 @@ struct CommentModel { ::com::sun::star::table::CellRangeAddress maRange; /// Position of the comment in the worksheet. - RichStringRef mxText; /// Formatted text of the comment. - sal_Int32 mnAuthorId; /// Identifier of the comment's author. + RichStringRef mxText; /// Formatted text of the comment (not used in BIFF8). + ::rtl::OUString maAuthor; /// Comment author (BIFF8 only). + sal_Int32 mnAuthorId; /// Identifier of the comment's author (OOXML and BIFF12 only). + sal_uInt16 mnObjId; /// Drawing object identifier (BIFF8 only). + bool mbVisible; /// True = comment is always shown (BIFF2-BIFF8 only). explicit CommentModel(); }; @@ -57,6 +60,8 @@ public: void importComment( const AttributeList& rAttribs ); /** Imports a cell comment from the passed stream of a COMMENT record. */ void importComment( SequenceInputStream& rStrm ); + /** Imports a cell comment from the passed stream of a NOTE record. */ + void importNote( BiffInputStream& rStrm ); /** Creates and returns a new rich-string object for the comment text. */ RichStringRef createText(); @@ -65,6 +70,14 @@ public: void finalizeImport(); private: + /** Reads a BIFF2-BIFF5 NOTE record. */ + void importNoteBiff2( BiffInputStream& rStrm ); + /** Reads a BIFF8 NOTE record. */ + void importNoteBiff8( BiffInputStream& rStrm ); + /** Reads a NOTESOUND record. */ + void importNoteSound( BiffInputStream& rStrm ); + +private: CommentModel maModel; }; |