From bc712935a05dd34142b4c17dd6686761d9b9d5e1 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Mon, 31 Aug 2015 23:35:00 +0200 Subject: TableRef: refresh table column names before saving ... to match reality and be able to re-load structured references in range names once we save TableRefs as well. Change-Id: I5f8fc858be2a773d7841816c3e4bf21590d37e64 --- sc/inc/dbdata.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sc/inc/dbdata.hxx') diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx index 2b6dfaec97a8..bacf0999357b 100644 --- a/sc/inc/dbdata.hxx +++ b/sc/inc/dbdata.hxx @@ -114,6 +114,9 @@ public: void SetTableColumnNames( const ::std::vector< OUString >& rNames ) { maTableColumnNames = rNames; } const ::std::vector< OUString >& GetTableColumnNames() const { return maTableColumnNames; } + /** Refresh/update the column names with the header row's cell contents. */ + SC_DLLPUBLIC void RefreshTableColumnNames( ScDocument* pDoc ); + /** Finds the column named rName and returns the corresponding offset within the table. @returns -1 if not found. -- cgit