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:
parent
0cfa5a12cc
commit
bc7b2bdb80
1 changed files with 9 additions and 2 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue