sc/inc/document.hxx | 1 + sc/source/core/data/document.cxx | 9 +++++++++ 2 files changed, 10 insertions(+)
New commits: commit b672dda2d1a6f055a5e7ab60d37a3f100fc4e944 Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> Date: Tue Apr 17 10:22:04 2018 +0200 Add missing method GetAllNoteEntries Needed for f382fb59ab4065b38d0db5660940bd45e850bc5a Manually cherry-picked from ec25d34fa3ac900950ff24fcb224f7e827352803 Change-Id: I3a2217accb9be93beccaf9bf2d938c7455b5fa2e diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index a0faa9aef87d..690bab10710d 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1109,6 +1109,7 @@ public: SCROW GetNotePosition( SCTAB nTab, SCCOL nCol, size_t nIndex ) const; SC_DLLPUBLIC void GetAllNoteEntries( std::vector<sc::NoteEntry>& rNotes ) const; + SC_DLLPUBLIC void GetAllNoteEntries( SCTAB nTab, std::vector<sc::NoteEntry>& rNotes ) const; void GetNotesInRange( const ScRangeList& rRange, std::vector<sc::NoteEntry>& rNotes ) const; bool ContainsNotesInRange( const ScRangeList& rRange ) const; diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index bed73d7c32e9..ec223b5c4e00 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -6541,6 +6541,15 @@ void ScDocument::GetAllNoteEntries( std::vector<sc::NoteEntry>& rNotes ) const } } +void ScDocument::GetAllNoteEntries( SCTAB nTab, std::vector<sc::NoteEntry>& rNotes ) const +{ + const ScTable* pTab = FetchTable(nTab); + if (!pTab) + return; + + return pTab->GetAllNoteEntries( rNotes ); +} + void ScDocument::GetNotesInRange( const ScRangeList& rRange, std::vector<sc::NoteEntry>& rNotes ) const { for( size_t i = 0; i < rRange.size(); ++i) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits