diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-05 22:59:04 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-05 23:06:27 -0500 |
commit | bc504b5adfaeeac0b910b89b0c98ae564f1ff5b8 (patch) | |
tree | 8259b0795bd42d3a81f6c656372f34638c62fbd7 /sc/inc/mtvcellfunc.hxx | |
parent | fdo#74556: Have ReleaseNote() really release note rather than destroying it. (diff) | |
download | core-bc504b5adfaeeac0b910b89b0c98ae564f1ff5b8.tar.gz core-bc504b5adfaeeac0b910b89b0c98ae564f1ff5b8.zip |
fdo#74556: Correctly handle note captions life cycles.
When copying notes to clipboard, we don't clone captions but leave them
pointing to the original captions objects. Also, during undo and redo,
we need to clear all caption pointers to prevent them from being deleted
when the ScPostIt objects get deleted. The undo and redo of caption objects
are handled in the drawing layer afterwards.
Change-Id: I2b9cf0858dba5b3cac26db3ef501ea09779a795a
Diffstat (limited to 'sc/inc/mtvcellfunc.hxx')
-rw-r--r-- | sc/inc/mtvcellfunc.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/inc/mtvcellfunc.hxx b/sc/inc/mtvcellfunc.hxx index 793f2dbc1872..fc6d2dcd74b0 100644 --- a/sc/inc/mtvcellfunc.hxx +++ b/sc/inc/mtvcellfunc.hxx @@ -166,6 +166,16 @@ void ProcessNote(CellNoteStoreType& rStore, _Func& rFunc) ProcessElements1<CellNoteStoreType, cellnote_block, _Func, FuncElseNoOp<size_t> >(rStore, rFunc, aElse); } +template<typename _FuncElem> +typename CellNoteStoreType::iterator +ProcessNote( + const CellNoteStoreType::iterator& it, CellNoteStoreType& rStore, SCROW nRow1, SCROW nRow2, _FuncElem& rFuncElem) +{ + FuncElseNoOp<size_t> aElse; + return ProcessElements1< + CellNoteStoreType, cellnote_block, _FuncElem, FuncElseNoOp<size_t> >(it, rStore, nRow1, nRow2, rFuncElem, aElse); +} + } #endif |