diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-09-08 12:49:26 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-09-08 12:49:26 +0000 |
commit | d6869735c5a708f17a04b60e3976ad0883d95bd4 (patch) | |
tree | 62d4181d5dbddf6ddf7e2a71abf4e5185521fe11 /sc/source/filter/xml/XMLExportSharedData.cxx | |
parent | 1458c3592e98730c73dbf3848f4da650d136af57 (diff) |
INTEGRATION: CWS dr12 (1.4.300); FILE MERGED
2004/07/23 20:58:25 sab 1.4.300.1: #i21253#; add formatted notes
Diffstat (limited to 'sc/source/filter/xml/XMLExportSharedData.cxx')
-rw-r--r-- | sc/source/filter/xml/XMLExportSharedData.cxx | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/sc/source/filter/xml/XMLExportSharedData.cxx b/sc/source/filter/xml/XMLExportSharedData.cxx index 014b851f9b8f..dbce7f94a0ef 100644 --- a/sc/source/filter/xml/XMLExportSharedData.cxx +++ b/sc/source/filter/xml/XMLExportSharedData.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLExportSharedData.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: sab $ $Date: 2001-08-02 08:53:57 $ + * last change: $Author: hr $ $Date: 2004-09-08 13:49:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -86,6 +86,7 @@ ScMySharedData::ScMySharedData(const sal_Int32 nTempTableCount) : pDrawPages(NULL), pShapesContainer(NULL), pDetectiveObjContainer(NULL), + pNoteShapes(NULL), nTableCount(nTempTableCount) { pDetectiveObjContainer = new ScMyDetectiveObjContainer(); @@ -101,6 +102,8 @@ ScMySharedData::~ScMySharedData() delete pDrawPages; if (pDetectiveObjContainer) delete pDetectiveObjContainer; + if (pNoteShapes) + delete pNoteShapes; } void ScMySharedData::SetLastColumn(const sal_Int32 nTable, const sal_Int32 nCol) @@ -185,3 +188,19 @@ void ScMySharedData::AddTableShape(const sal_Int32 nTable, const uno::Reference< pTableShapes = new ScMyTableShapes(nTableCount); (*pTableShapes)[nTable].push_back(xShape); } + +void ScMySharedData::AddNoteObj(const uno::Reference<drawing::XShape>& xShape, const ScAddress& rPos) +{ + if (!pNoteShapes) + pNoteShapes = new ScMyNoteShapesContainer(); + ScMyNoteShape aNote; + aNote.xShape = xShape; + aNote.aPos = rPos; + pNoteShapes->AddNewNote(aNote); +} + +void ScMySharedData::SortNoteShapes() +{ + if (pNoteShapes) + pNoteShapes->Sort(); +} |