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
30396941
Kaydet (Commit)
30396941
authored
Haz 29, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
TableRef: can be used in INDIRECT
Change-Id: I8eed87f0e6c0816a7d315f6c5ed039b0b193c322
üst
b014150e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
interpr1.cxx
sc/source/core/tool/interpr1.cxx
+47
-0
No files found.
sc/source/core/tool/interpr1.cxx
Dosyayı görüntüle @
30396941
...
...
@@ -7095,6 +7095,53 @@ void ScInterpreter::ScIndirect()
}
while
(
false
);
/* TODO: simple named ranges and database ranges could be resolved. */
// It may be even a TableRef.
// Anything else that resolves to one reference could be added
// here, but we don't want to compile every arbitrary string. This
// is already nasty enough..
sal_Int32
nIndex
=
0
;
if
((
nIndex
=
sRefStr
.
indexOf
(
'['
))
>=
0
&&
sRefStr
.
indexOf
(
']'
,
nIndex
+
1
)
>
nIndex
)
{
do
{
ScCompiler
aComp
(
pDok
,
aPos
);
aComp
.
SetGrammar
(
pDok
->
GetGrammar
());
aComp
.
SetRefConvention
(
eConv
);
// must be after grammar
boost
::
scoped_ptr
<
ScTokenArray
>
pArr
(
aComp
.
CompileString
(
sRefStr
));
// Whatever.. use only the specific case.
if
(
!
pArr
->
HasOpCode
(
ocTableRef
))
break
;
aComp
.
CompileTokenArray
();
// A syntactically valid reference will generate exactly
// one RPN token, a reference or error. Discard everything
// else as error.
if
(
pArr
->
GetCodeLen
()
!=
1
)
break
;
ScTokenRef
xTok
(
pArr
->
FirstRPN
());
if
(
!
xTok
)
break
;
switch
(
xTok
->
GetType
())
{
case
svSingleRef
:
case
svDoubleRef
:
case
svError
:
PushTempToken
(
xTok
.
get
());
// success!
return
;
default
:
;
// nothing
}
}
while
(
false
);
}
PushError
(
errNoRef
);
}
}
...
...
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