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
6c6c70df
Kaydet (Commit)
6c6c70df
authored
Mar 15, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rename methods to something meaningful
Change-Id: I92f5b3cb637b7cc6152d118505b69e762047f78b
üst
7c66e99f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
zformat.hxx
svl/inc/svl/zformat.hxx
+3
-2
zforfind.cxx
svl/source/numbers/zforfind.cxx
+2
-2
zformat.cxx
svl/source/numbers/zformat.cxx
+3
-3
No files found.
svl/inc/svl/zformat.hxx
Dosyayı görüntüle @
6c6c70df
...
...
@@ -315,16 +315,17 @@ public:
// Whether the second subformat code is really for negative numbers
// or another limit set.
bool
Is
Negative
RealNegative
()
const
bool
Is
SecondSubformat
RealNegative
()
const
{
return
fLimit1
==
0.0
&&
fLimit2
==
0.0
&&
(
(
eOp1
==
NUMBERFORMAT_OP_GE
&&
eOp2
==
NUMBERFORMAT_OP_NO
)
||
(
eOp1
==
NUMBERFORMAT_OP_GT
&&
eOp2
==
NUMBERFORMAT_OP_LT
)
||
(
eOp1
==
NUMBERFORMAT_OP_NO
&&
eOp2
==
NUMBERFORMAT_OP_NO
)
);
}
// Whether the first subformat code is really for negative numbers
// or another limit set.
sal_Bool
IsNegativeRealNegative2
()
const
bool
IsFirstSubformatRealNegative
()
const
{
return
fLimit1
==
0.0
&&
fLimit2
==
0.0
&&
(
(
eOp2
==
NUMBERFORMAT_OP_GT
&&
eOp1
==
NUMBERFORMAT_OP_LT
)
||
...
...
svl/source/numbers/zforfind.cxx
Dosyayı görüntüle @
6c6c70df
...
...
@@ -2826,7 +2826,7 @@ bool ImpSvNumberInputScan::ScanStringNumFor( const OUString& rString, /
if
(
!
bFound
)
{
if
(
!
bDontDetectNegation
&&
(
nString
==
0
)
&&
!
bFirst
&&
(
nSign
<
0
)
&&
pFormat
->
Is
Negative
RealNegative
()
)
!
bFirst
&&
(
nSign
<
0
)
&&
pFormat
->
Is
SecondSubformat
RealNegative
()
)
{
// simply negated twice? --1
aString
=
comphelper
::
string
::
remove
(
aString
,
' '
);
...
...
@@ -2843,7 +2843,7 @@ bool ImpSvNumberInputScan::ScanStringNumFor( const OUString& rString, /
}
}
else
if
(
!
bDontDetectNegation
&&
(
nSub
==
1
)
&&
pFormat
->
Is
Negative
RealNegative
()
)
pFormat
->
Is
SecondSubformat
RealNegative
()
)
{
// negative
if
(
nStringScanSign
<
0
)
...
...
svl/source/numbers/zformat.cxx
Dosyayı görüntüle @
6c6c70df
...
...
@@ -2522,8 +2522,8 @@ bool SvNumberformat::GetOutputString(double fNumber,
}
}
if
(
fNumber
<
0.0
&&
((
nIx
==
0
&&
Is
NegativeRealNegative2
())
||
// 1st, usually positive subformat
(
nIx
==
1
&&
Is
NegativeRealNegative
())))
// 2nd, usually negative subformat
((
nIx
==
0
&&
Is
FirstSubformatRealNegative
())
||
// 1st, usually positive subformat
(
nIx
==
1
&&
Is
SecondSubformatRealNegative
())))
// 2nd, usually negative subformat
{
fNumber
=
-
fNumber
;
// eliminate sign
}
...
...
@@ -4874,7 +4874,7 @@ short SvNumberformat::GetNumForType( sal_uInt16 nNumFor, sal_uInt16 nPos,
bool
SvNumberformat
::
IsNegativeWithoutSign
()
const
{
if
(
Is
Negative
RealNegative
()
)
if
(
Is
SecondSubformat
RealNegative
()
)
{
const
OUString
*
pStr
=
GetNumForString
(
1
,
0
,
true
);
if
(
pStr
)
...
...
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