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
4c16e415
Kaydet (Commit)
4c16e415
authored
Nis 03, 2013
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool -> bool.
Change-Id: Ie23ba9e2635d2dee8ad311df956b30e62e76935e
üst
c2006fb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ndtbl.cxx
sw/source/core/docnode/ndtbl.cxx
+7
-7
No files found.
sw/source/core/docnode/ndtbl.cxx
Dosyayı görüntüle @
4c16e415
...
...
@@ -4028,8 +4028,8 @@ void SwDoc::ChkBoxNumFmt( SwTableBox& rBox, sal_Bool bCallUpdate )
SwTableBoxFmt
*
pBoxFmt
=
(
SwTableBoxFmt
*
)
rBox
.
GetFrmFmt
();
SfxItemSet
aBoxSet
(
GetAttrPool
(),
RES_BOXATR_FORMAT
,
RES_BOXATR_VALUE
);
sal_Bool
bLockModify
=
sal_T
rue
;
sal_Bool
bSetNumFmt
=
sal_F
alse
;
bool
bLockModify
=
t
rue
;
bool
bSetNumberFormat
=
f
alse
;
const
bool
bForceNumberFormat
=
IsInsTblFormatNum
()
&&
IsInsTblChangeNumFormat
();
// if the user forced a number format in this cell previously,
...
...
@@ -4046,17 +4046,17 @@ void SwDoc::ChkBoxNumFmt( SwTableBox& rBox, sal_Bool bCallUpdate )
// Current and specified NumFormat match
// -> keep old Format
nFmtIdx
=
nOldNumFmt
;
bSetNum
Fmt
=
sal_T
rue
;
bSetNum
berFormat
=
t
rue
;
}
else
{
// Current and specified NumFormat do not match
// -> insert as Text
bLockModify
=
bSetNum
Fmt
=
sal_F
alse
;
bLockModify
=
bSetNum
berFormat
=
f
alse
;
}
}
if
(
bSetNum
Fm
t
||
bForceNumberFormat
)
if
(
bSetNum
berForma
t
||
bForceNumberFormat
)
{
pBoxFmt
=
(
SwTableBoxFmt
*
)
rBox
.
ClaimFrmFmt
();
...
...
@@ -4066,7 +4066,7 @@ void SwDoc::ChkBoxNumFmt( SwTableBox& rBox, sal_Bool bCallUpdate )
// It's not enough to only reset the Formula.
// Make sure that the Text is formatted accordingly
if
(
!
bSetNum
Fm
t
&&
!
bIsEmptyTxtNd
&&
pNumFmtItem
)
if
(
!
bSetNum
berForma
t
&&
!
bIsEmptyTxtNd
&&
pNumFmtItem
)
{
// Just resetting Attributes is not enough
// Make sure that the Text is formatted accordingly
...
...
@@ -4077,7 +4077,7 @@ void SwDoc::ChkBoxNumFmt( SwTableBox& rBox, sal_Bool bCallUpdate )
pBoxFmt
->
ResetFmtAttr
(
RES_BOXATR_FORMAT
,
RES_BOXATR_VALUE
);
if
(
bLockModify
)
pBoxFmt
->
UnlockModify
();
if
(
bSetNum
Fm
t
)
if
(
bSetNum
berForma
t
)
pBoxFmt
->
SetFmtAttr
(
aBoxSet
);
}
}
...
...
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