diff options
author | Eike Rathke <erack@redhat.com> | 2015-06-25 11:52:45 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-06-25 11:54:04 +0200 |
commit | 044f79078ae2776b786f904e5f24a745f8635a18 (patch) | |
tree | 3c2cc59eba1316badec9df47bab35185e3e937e4 /sc/inc/dbdata.hxx | |
parent | 98ba33677c288ff80c6f2812e85039175b7fcff8 (diff) |
TableRef: add ScDBData::GetColumnNameOffset()
Change-Id: Id80b9e8d1f54a8b795d0f4209bdf2f980f9a5344
Diffstat (limited to 'sc/inc/dbdata.hxx')
-rw-r--r-- | sc/inc/dbdata.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx index b77e218df346..4965e94ba043 100644 --- a/sc/inc/dbdata.hxx +++ b/sc/inc/dbdata.hxx @@ -112,6 +112,16 @@ public: void SetStripData(bool bSet) { bStripData = bSet; } void SetTableColumnNames( const ::std::vector< OUString >& rNames ) { maTableColumnNames = rNames; } + /** Finds the column named rName and returns the corresponding offset + within the table. + @returns -1 if not found. + + XXX NOTE: there is no refresh of names or anything implemented yet, use + this only during document load time. + */ + sal_Int32 GetColumnNameOffset( const OUString& rName ) const; + + OUString GetSourceString() const; OUString GetOperations() const; |