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
857be5b2
Kaydet (Commit)
857be5b2
authored
Ock 05, 2017
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: tdf#105024 generate and parse detailed "#ERRxxx!" error constants
Change-Id: I4e5d98cdbbc2f3e7746cd3892f70151376bc5808
üst
f91dc034
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
FormulaCompiler.cxx
formula/source/core/api/FormulaCompiler.cxx
+20
-1
No files found.
formula/source/core/api/FormulaCompiler.cxx
Dosyayı görüntüle @
857be5b2
...
@@ -1185,6 +1185,17 @@ FormulaError FormulaCompiler::GetErrorConstant( const OUString& rName ) const
...
@@ -1185,6 +1185,17 @@ FormulaError FormulaCompiler::GetErrorConstant( const OUString& rName ) const
;
// nothing
;
// nothing
}
}
}
}
else
{
// Per convention recognize detailed "#ERRxxx!" constants, always
// untranslated.
if
(
rName
.
startsWithIgnoreAsciiCase
(
"#ERR"
)
&&
rName
[
rName
.
getLength
()
-
1
]
==
'!'
)
{
sal_uInt32
nErr
=
rName
.
copy
(
4
,
rName
.
getLength
()
-
5
).
toUInt32
();
if
(
0
<
nErr
&&
nErr
<=
SAL_MAX_UINT16
)
nError
=
static_cast
<
FormulaError
>
(
nErr
);
}
}
return
nError
;
return
nError
;
}
}
...
@@ -1203,7 +1214,6 @@ void FormulaCompiler::AppendErrorConstant( OUStringBuffer& rBuffer, FormulaError
...
@@ -1203,7 +1214,6 @@ void FormulaCompiler::AppendErrorConstant( OUStringBuffer& rBuffer, FormulaError
OpCode
eOp
;
OpCode
eOp
;
switch
(
nError
)
switch
(
nError
)
{
{
default
:
case
FormulaError
:
:
NoCode
:
case
FormulaError
:
:
NoCode
:
eOp
=
ocErrNull
;
eOp
=
ocErrNull
;
break
;
break
;
...
@@ -1225,6 +1235,15 @@ void FormulaCompiler::AppendErrorConstant( OUStringBuffer& rBuffer, FormulaError
...
@@ -1225,6 +1235,15 @@ void FormulaCompiler::AppendErrorConstant( OUStringBuffer& rBuffer, FormulaError
case
FormulaError
:
:
NotAvailable
:
case
FormulaError
:
:
NotAvailable
:
eOp
=
ocErrNA
;
eOp
=
ocErrNA
;
break
;
break
;
default
:
{
// Per convention create detailed "#ERRxxx!" constants, always
// untranslated.
rBuffer
.
append
(
"#ERR"
);
rBuffer
.
append
(
static_cast
<
sal_Int32
>
(
nError
));
rBuffer
.
append
(
'!'
);
return
;
}
}
}
rBuffer
.
append
(
mxSymbols
->
getSymbol
(
eOp
));
rBuffer
.
append
(
mxSymbols
->
getSymbol
(
eOp
));
}
}
...
...
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