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
7978c786
Kaydet (Commit)
7978c786
authored
May 03, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more String->OUString and early bail outs
Change-Id: Ia573f27962b5fbb48e543a2e2a802e85db36fafd
üst
737fbae8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
33 deletions
+27
-33
inputhdl.cxx
sc/source/ui/app/inputhdl.cxx
+27
-33
No files found.
sc/source/ui/app/inputhdl.cxx
Dosyayı görüntüle @
7978c786
...
...
@@ -1299,7 +1299,7 @@ void ScInputHandler::PasteFunctionData()
// Selektion berechnen und als Tip-Hilfe anzeigen
//
static
String
lcl_Calculate
(
const
OUString
&
rFormula
,
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
)
static
OU
String
lcl_Calculate
(
const
OUString
&
rFormula
,
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
)
{
//! mit ScFormulaDlg::CalcValue zusammenfassen und ans Dokument verschieben !!!!
//! (Anfuehrungszeichen bei Strings werden nur hier eingefuegt)
...
...
@@ -1331,43 +1331,37 @@ static String lcl_Calculate( const OUString& rFormula, ScDocument* pDoc, const S
}
sal_uInt16
nErrCode
=
pCell
->
GetErrCode
();
if
(
nErrCode
==
0
)
if
(
nErrCode
!=
0
)
return
ScGlobal
::
GetErrorString
(
nErrCode
);
SvNumberFormatter
&
aFormatter
=
*
(
pDoc
->
GetFormatTable
());
OUString
aValue
;
if
(
pCell
->
IsValue
()
)
{
SvNumberFormatter
&
aFormatter
=
*
(
pDoc
->
GetFormatTable
()
);
Color
*
pColor
;
if
(
pCell
->
IsValue
()
)
{
double
n
=
pCell
->
GetValue
();
sal_uLong
nFormat
=
aFormatter
.
GetStandardFormat
(
n
,
0
,
pCell
->
GetFormatType
(),
ScGlobal
::
eLnge
);
aFormatter
.
GetInputLineString
(
n
,
nFormat
,
aValue
);
//! display OutputString but insert InputLineString
}
else
double
n
=
pCell
->
GetValue
(
);
sal_uLong
nFormat
=
aFormatter
.
GetStandardFormat
(
n
,
0
,
pCell
->
GetFormatType
(),
ScGlobal
::
eLnge
);
aFormatter
.
GetInputLineString
(
n
,
nFormat
,
aValue
);
//! display OutputString but insert InputLineString
}
else
{
OUString
aStr
=
pCell
->
GetString
();
sal_uLong
nFormat
=
aFormatter
.
GetStandardFormat
(
pCell
->
GetFormatType
(),
ScGlobal
::
eLnge
);
{
String
aStr
=
pCell
->
GetString
();
sal_uLong
nFormat
=
aFormatter
.
GetStandardFormat
(
pCell
->
GetFormatType
(),
ScGlobal
::
eLnge
);
{
OUString
sTempIn
(
aStr
);
OUString
sTempOut
(
aValue
);
aFormatter
.
GetOutputString
(
sTempIn
,
nFormat
,
sTempOut
,
&
pColor
);
aStr
=
sTempIn
;
aValue
=
sTempOut
;
}
aValue
.
Insert
(
'"'
,
0
);
// in Anfuehrungszeichen
aValue
+=
'"'
;
//! Anfuehrungszeichen im String escapen ????
Color
*
pColor
;
aFormatter
.
GetOutputString
(
aStr
,
nFormat
,
aValue
,
&
pColor
);
}
ScRange
aTestRange
;
if
(
bColRowName
||
(
aTestRange
.
Parse
(
rFormula
)
&
SCA_VALID
)
)
aValue
.
AppendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
" ..."
));
// Bereich
aValue
=
"
\"
"
+
aValue
+
"
\"
"
;
//! Anfuehrungszeichen im String escapen ????
}
else
aValue
=
ScGlobal
::
GetErrorString
(
nErrCode
);
ScRange
aTestRange
;
if
(
bColRowName
||
(
aTestRange
.
Parse
(
rFormula
)
&
SCA_VALID
)
)
aValue
=
aValue
+
" ..."
;
return
aValue
;
}
...
...
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