[Libreoffice-commits] core.git: Branch 'feature/sc-notes-storage' - sc/source
Laurent Godard
lgodard.libre at laposte.net
Mon Sep 30 05:24:56 PDT 2013
sc/source/core/data/column.cxx | 39 ---------------------------------------
1 file changed, 39 deletions(-)
New commits:
commit 93649a2319a1923d4952ae778dccf0ac9501bf9d
Author: Laurent Godard <lgodard.libre at laposte.net>
Date: Mon Sep 30 14:24:23 2013 +0200
clean CopyToClipHandler
Change-Id: I14edf3f2be47bf84fa71d57cd641b6b927aebb50
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index d8ce48a..ab26769 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -1340,45 +1340,6 @@ class CopyToClipHandler
maDestPos.miCellNotePos, nStartRow, vDestNotes.begin(), vDestNotes.end());
}
-/* ok
- void duplicateNotes(SCROW nStartRow, size_t nDataSize )
- {
- SCCOL nDestCol = mrDestCol.GetCol();
- SCTAB nDestTab = mrDestCol.GetTab();
- SCCOL nSrcCol = mrSrcCol.GetCol();
- SCTAB nSrcTab = mrSrcCol.GetTab();
-
- SCROW nRowMax = nStartRow + nDataSize;
-
- std::vector<ScPostIt*> vDestNotes(nDataSize);
-
- sc::CellNoteStoreType maSrcCellNotes = mrSrcCol.GetCellNoteStore();
- sc::CellNoteStoreType::iterator posSrc = maSrcCellNotes.begin();
-
- for (SCROW nRow = nStartRow; nRow < nRowMax; ++nRow)
- {
- sc::CellNoteStoreType::position_type curPosObj = maSrcCellNotes.position(posSrc, nRow);
- posSrc = curPosObj.first;
- size_t offset = curPosObj.second;
- if (posSrc->type == sc::element_type_cellnote)
- {
- ScAddress aDestAddress = ScAddress(nDestCol, nRow, nDestTab);
- ScAddress aSrcAddress = ScAddress(nSrcCol, nRow, nSrcTab );
-
- ScPostIt* pSrcNote = sc::cellnote_block::at(*posSrc->data, offset);
- ScPostIt* pClonedNote = pSrcNote->Clone(aSrcAddress, mrDestCol.GetDoc(), aDestAddress, true );
-
- vDestNotes[nRow-nStartRow] = pClonedNote;
- }
- }
- // set the cloned notes vector in its dest position
- sc::CellNoteStoreType maDestCellNotes = mrDestCol.GetCellNoteStore();
- maDestCellNotes.set_empty(nStartRow, nRowMax - 1);
- maDestPos.miCellNotePos = mrDestCol.GetCellNoteStore().set(
- maDestPos.miCellNotePos, nStartRow, vDestNotes.begin(), vDestNotes.end());
- }
-*/
-
public:
CopyToClipHandler(const ScColumn& rSrcCol, ScColumn& rDestCol, sc::ColumnBlockPosition* pDestPos, bool bCopyNotes) :
mrSrcCol(rSrcCol), mrDestCol(rDestCol), mpDestPos(pDestPos), mbCopyNotes(bCopyNotes)
More information about the Libreoffice-commits
mailing list