diff options
author | Eike Rathke <erack@redhat.com> | 2015-06-25 11:52:45 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-06 12:51:53 +0200 |
commit | e42dd402eaa2176b00a1617e4015e126805a8ed6 (patch) | |
tree | 0eba3bed2344fa26af9de2896c17f171f3ac3cfe /sc/inc | |
parent | 9f09039c62ef881d5bb10f78fbe28fdfe3cdbaea (diff) |
TableRef: add ScDBData::GetColumnNameOffset()
Change-Id: Id80b9e8d1f54a8b795d0f4209bdf2f980f9a5344
(cherry picked from commit 044f79078ae2776b786f904e5f24a745f8635a18)
Diffstat (limited to 'sc/inc')
-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; |