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
dc23ed98
Kaydet (Commit)
dc23ed98
authored
Haz 28, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16 to sal_(u)Int32
Change-Id: I20c3715bcfb5212977699d661fd3acf1be28499f
üst
53e3cfdc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
numfmtlb.hxx
sw/source/uibase/inc/numfmtlb.hxx
+1
-1
numfmtlb.cxx
sw/source/uibase/utlui/numfmtlb.cxx
+7
-7
No files found.
sw/source/uibase/inc/numfmtlb.hxx
Dosyayı görüntüle @
dc23ed98
...
@@ -28,7 +28,7 @@ class SwView;
...
@@ -28,7 +28,7 @@ class SwView;
class
SW_DLLPUBLIC
NumFormatListBox
:
public
ListBox
class
SW_DLLPUBLIC
NumFormatListBox
:
public
ListBox
{
{
short
nCurrFormatType
;
short
nCurrFormatType
;
sal_
uInt16
nStdEntry
;
sal_
Int32
nStdEntry
;
bool
bOneArea
;
bool
bOneArea
;
sal_uLong
nDefFormat
;
sal_uLong
nDefFormat
;
SwView
*
pVw
;
SwView
*
pVw
;
...
...
sw/source/uibase/utlui/numfmtlb.cxx
Dosyayı görüntüle @
dc23ed98
...
@@ -206,7 +206,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
...
@@ -206,7 +206,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
}
}
const
SvNumberformat
*
pFmt
;
const
SvNumberformat
*
pFmt
;
sal_
uInt16
nPos
,
i
=
0
;
sal_
Int32
i
=
0
;
sal_uLong
nFormat
;
sal_uLong
nFormat
;
Color
*
pCol
;
Color
*
pCol
;
double
fVal
=
GetDefValue
(
nFormatType
);
double
fVal
=
GetDefValue
(
nFormatType
);
...
@@ -241,7 +241,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
...
@@ -241,7 +241,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
nFormat
!=
nSysShortDateFmt
&&
nFormat
!=
nSysShortDateFmt
&&
nFormat
!=
nSysLongDateFmt
)
nFormat
!=
nSysLongDateFmt
)
{
{
nPos
=
InsertEntry
(
sValue
);
const
sal_Int32
nPos
=
InsertEntry
(
sValue
);
SetEntryData
(
nPos
,
(
void
*
)
nFormat
);
SetEntryData
(
nPos
,
(
void
*
)
nFormat
);
if
(
nFormat
==
pFormatter
->
GetStandardFormat
(
if
(
nFormat
==
pFormatter
->
GetStandardFormat
(
...
@@ -253,7 +253,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
...
@@ -253,7 +253,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
if
(
!
pOwnFormatter
)
if
(
!
pOwnFormatter
)
{
{
nPos
=
InsertEntry
(
SW_RESSTR
(
STR_DEFINE_NUMBERFORMAT
));
const
sal_Int32
nPos
=
InsertEntry
(
SW_RESSTR
(
STR_DEFINE_NUMBERFORMAT
));
SetEntryData
(
nPos
,
NULL
);
SetEntryData
(
nPos
,
NULL
);
}
}
...
@@ -290,7 +290,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
...
@@ -290,7 +290,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
sal_uLong
nFormat
=
pFormatter
->
GetFormatForLanguageIfBuiltIn
(
nDefFmt
,
eCurLanguage
);
sal_uLong
nFormat
=
pFormatter
->
GetFormatForLanguageIfBuiltIn
(
nDefFmt
,
eCurLanguage
);
for
(
sal_
uInt16
i
=
0
;
i
<
GetEntryCount
();
i
++
)
for
(
sal_
Int32
i
=
0
;
i
<
GetEntryCount
();
i
++
)
{
{
if
(
nFormat
==
(
sal_uLong
)
GetEntryData
(
i
))
if
(
nFormat
==
(
sal_uLong
)
GetEntryData
(
i
))
{
{
...
@@ -315,7 +315,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
...
@@ -315,7 +315,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
pFormatter
->
GetOutputString
(
fValue
,
nDefFmt
,
sValue
,
&
pCol
);
pFormatter
->
GetOutputString
(
fValue
,
nDefFmt
,
sValue
,
&
pCol
);
}
}
sal_
uInt16
nPos
=
0
;
sal_
Int32
nPos
=
0
;
while
((
sal_uLong
)
GetEntryData
(
nPos
)
==
ULONG_MAX
)
while
((
sal_uLong
)
GetEntryData
(
nPos
)
==
ULONG_MAX
)
nPos
++
;
nPos
++
;
...
@@ -361,7 +361,7 @@ sal_uLong NumFormatListBox::GetFormat() const
...
@@ -361,7 +361,7 @@ sal_uLong NumFormatListBox::GetFormat() const
IMPL_LINK
(
NumFormatListBox
,
SelectHdl
,
ListBox
*
,
pBox
)
IMPL_LINK
(
NumFormatListBox
,
SelectHdl
,
ListBox
*
,
pBox
)
{
{
sal_uInt16
nPos
=
pBox
->
GetSelectEntryPos
();
const
sal_Int32
nPos
=
pBox
->
GetSelectEntryPos
();
OUString
sDefine
(
SW_RES
(
STR_DEFINE_NUMBERFORMAT
));
OUString
sDefine
(
SW_RES
(
STR_DEFINE_NUMBERFORMAT
));
SwView
*
pView
=
GetView
();
SwView
*
pView
=
GetView
();
...
@@ -410,7 +410,7 @@ IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox )
...
@@ -410,7 +410,7 @@ IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox )
{
{
const
sal_uInt32
*
pDelArr
=
((
SvxNumberInfoItem
*
)
pItem
)
->
GetDelArray
();
const
sal_uInt32
*
pDelArr
=
((
SvxNumberInfoItem
*
)
pItem
)
->
GetDelArray
();
for
(
sal_uInt
16
i
=
0
;
i
<
((
SvxNumberInfoItem
*
)
pItem
)
->
GetDelCount
();
i
++
)
for
(
sal_uInt
32
i
=
0
;
i
<
((
SvxNumberInfoItem
*
)
pItem
)
->
GetDelCount
();
i
++
)
pFormatter
->
DeleteEntry
(
pDelArr
[
i
]
);
pFormatter
->
DeleteEntry
(
pDelArr
[
i
]
);
}
}
...
...
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