[Libreoffice-commits] core.git: Branch 'private/swe/libreoffice-5-2+backports' - sc/inc sc/source
Samuel Mehrbrodt
Samuel.Mehrbrodt at cib.de
Tue Apr 17 08:26:30 UTC 2018
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.Mehrbrodt at 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)
More information about the Libreoffice-commits
mailing list