Ported calc-toggle-relative-ref-fix.diff from ooo-build.

This corrects the code used for the Shift-F4 toggle relative / absolute
reference feature in Calc, to adopt for configurable argument separators.
This commit is contained in:
Kohei Yoshida 2010-10-01 22:35:15 -04:00
parent 0cfa5a12cc
commit bc7b2bdb80

View file

@ -43,14 +43,21 @@
// incl. Doppelpunkt -> Doppelte Referenzen werden einzeln behandelt
const sal_Unicode __FAR_DATA ScRefFinder::pDelimiters[] = {
'=','(',')',';','+','-','*','/','^','&',' ','{','}','<','>',':', 0
'=','(',')','+','-','*','/','^','&',' ','{','}','<','>',':', 0
};
// =======================================================================
inline BOOL IsText( sal_Unicode c )
{
return !ScGlobal::UnicodeStrChr( ScRefFinder::pDelimiters, c );
bool bFound = ScGlobal::UnicodeStrChr( ScRefFinder::pDelimiters, c );
if (bFound)
// This is one of delimiters, therefore not text.
return false;
// argument separator is configurable.
const sal_Unicode sep = ScCompiler::GetNativeSymbol(ocSep).GetChar(0);
return c != sep;
}
inline BOOL IsText( BOOL& bQuote, sal_Unicode c )