summaryrefslogtreecommitdiff
path: root/sc/inc/dbdata.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-09-01 00:56:34 +0200
committerEike Rathke <erack@redhat.com>2015-09-01 01:16:39 +0200
commite14c72954ec5b00557647cb1ec167d33828085cc (patch)
treed681331e4e1ff26b6550b07505a418b1ad80be61 /sc/inc/dbdata.hxx
parent5331e767c7de8ece7e596fefb451a73bae8b583c (diff)
TableRef: fall back to stored table column name if header cell is empty
... during token string creation, as an empty column specifier is the last thing we want to see.. which still can happen though if the stored name was synced with the existing cell data and copying the older original name was not possible, for example due to name clashes. Change-Id: I6a0d313a02efafc092f0bbf7725fb3b3e77e486f
Diffstat (limited to 'sc/inc/dbdata.hxx')
-rw-r--r--sc/inc/dbdata.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx
index bacf0999357b..967ba3033a18 100644
--- a/sc/inc/dbdata.hxx
+++ b/sc/inc/dbdata.hxx
@@ -126,6 +126,9 @@ public:
*/
sal_Int32 GetColumnNameOffset( const OUString& rName ) const;
+ /** Returns table column name if nCol is within column range and name
+ is stored, else empty string. */
+ const OUString& GetTableColumnName( SCCOL nCol ) const;
OUString GetSourceString() const;
OUString GetOperations() const;