diff options
author | Eike Rathke [er] <eike.rathke@oracle.com> | 2011-02-23 17:04:08 +0100 |
---|---|---|
committer | Eike Rathke [er] <eike.rathke@oracle.com> | 2011-02-23 17:04:08 +0100 |
commit | 8c597c87353e3dc106308ebb93760da0a593b865 (patch) | |
tree | b282e913c293604617c7ff33ef021a216737c5b7 /sc/inc | |
parent | 6fe89ba79405c8aa94af650134abce353ec3ce33 (diff) |
calc66: in ADDRESS function handle sheet name of external document
- Previously, 'Doc'#Tab was escaped as '''Doc''#Tab' to form one sheet name.
+ Split 'Doc'#Tab to isolate Tab.
* Enquote Tab only if quotes not already present.
+ Recombine strings to form 'Doc'#'Tab' (or 'Doc'#Tab if Tab wasn't necessary
to be enquoted).
- A sheet name given as empty string lead to a ''.A1 address.
* Use sheet name only if not empty to form A1 in that case.
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/compiler.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index 27845bbc50cf..e2c863dace7d 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -361,6 +361,12 @@ public: static void CheckTabQuotes( String& aTabName, const formula::FormulaGrammar::AddressConvention eConv = formula::FormulaGrammar::CONV_OOO ); + /** Analyzes a string for a 'Doc'#Tab construct, or 'Do''c'#Tab etc.. + + @returns the position of the unquoted # hash mark in 'Doc'#Tab, or + STRING_NOTFOUND if none. */ + static xub_StrLen GetDocTabPos( const String& rString ); + static sal_Bool EnQuote( String& rStr ); sal_Unicode GetNativeAddressSymbol( Convention::SpecialSymbolType eType ) const; |