Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1714dd65
Kaydet (Commit)
1714dd65
authored
Mar 12, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
TableRef: parse item specifiers
Change-Id: If1419844544be08fa14b6c78c755abba35fff353
üst
dbbe0f81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
compiler.hxx
sc/inc/compiler.hxx
+2
-0
compiler.cxx
sc/source/core/tool/compiler.cxx
+29
-0
No files found.
sc/inc/compiler.hxx
Dosyayı görüntüle @
1714dd65
...
...
@@ -381,7 +381,9 @@ public:
// Check if it is a valid english function name
bool
IsEnglishSymbol
(
const
OUString
&
rName
);
bool
IsErrorConstant
(
const
OUString
&
)
const
;
bool
IsTableRefItem
(
const
OUString
&
)
const
;
/**
* When auto correction is set, the jump command reorder must be enabled.
...
...
sc/source/core/tool/compiler.cxx
Dosyayı görüntüle @
1714dd65
...
...
@@ -3282,6 +3282,27 @@ bool ScCompiler::IsErrorConstant( const OUString& rName ) const
return
false
;
}
bool
ScCompiler
::
IsTableRefItem
(
const
OUString
&
rName
)
const
{
OpCodeHashMap
::
const_iterator
iLook
(
mxSymbols
->
getHashMap
()
->
find
(
rName
));
if
(
iLook
!=
mxSymbols
->
getHashMap
()
->
end
())
{
switch
((
*
iLook
).
second
)
{
case
ocTableRefItemAll
:
case
ocTableRefItemHeaders
:
case
ocTableRefItemData
:
case
ocTableRefItemTotals
:
case
ocTableRefItemThisRow
:
maRawToken
.
SetOpCode
(
(
*
iLook
).
second
);
return
true
;
default
:
;
}
}
return
false
;
}
void
ScCompiler
::
SetAutoCorrection
(
bool
bVal
)
{
assert
(
mbJumpCommandReorder
);
...
...
@@ -3596,9 +3617,17 @@ bool ScCompiler::NextNewToken( bool bInArray )
bAsciiUpper
=
lcl_UpperAsciiOrI18n
(
aUpper
,
aOrg
,
meGrammar
);
if
(
cSymbol
[
0
]
==
'#'
)
{
// Check for TableRef item specifiers first.
if
(
!
maTableRefs
.
empty
())
{
if
(
IsTableRefItem
(
aUpper
))
return
true
;
}
// This can be only an error constant, if any.
if
(
IsErrorConstant
(
aUpper
))
return
true
;
break
;
// do; create ocBad token or set error.
}
if
(
IsOpCode
(
aUpper
,
bInArray
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment