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
88250850
Kaydet (Commit)
88250850
authored
Nis 20, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16 to sal_Int32 and constification
Change-Id: I17120ae11a1e55bdddba5706e2c36661df2c307f
üst
11b14c36
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
optload.cxx
sw/source/ui/config/optload.cxx
+7
-8
No files found.
sw/source/ui/config/optload.cxx
Dosyayı görüntüle @
88250850
...
@@ -132,7 +132,7 @@ bool SwLoadOptPage::FillItemSet( SfxItemSet& rSet )
...
@@ -132,7 +132,7 @@ bool SwLoadOptPage::FillItemSet( SfxItemSet& rSet )
sal_Bool
bRet
=
sal_False
;
sal_Bool
bRet
=
sal_False
;
SwModule
*
pMod
=
SW_MOD
();
SwModule
*
pMod
=
SW_MOD
();
sal_
uInt16
nNewLinkMode
=
AUTOMATIC
;
sal_
Int32
nNewLinkMode
=
AUTOMATIC
;
if
(
m_pNeverRB
->
IsChecked
())
if
(
m_pNeverRB
->
IsChecked
())
nNewLinkMode
=
NEVER
;
nNewLinkMode
=
NEVER
;
else
if
(
m_pRequestRB
->
IsChecked
())
else
if
(
m_pRequestRB
->
IsChecked
())
...
@@ -168,8 +168,8 @@ bool SwLoadOptPage::FillItemSet( SfxItemSet& rSet )
...
@@ -168,8 +168,8 @@ bool SwLoadOptPage::FillItemSet( SfxItemSet& rSet )
if
(
nMPos
!=
m_pMetricLB
->
GetSavedValue
()
)
if
(
nMPos
!=
m_pMetricLB
->
GetSavedValue
()
)
{
{
// Double-Cast for VA3.0
// Double-Cast for VA3.0
sal_uInt16
nFieldUnit
=
(
sal_uInt16
)(
sal_IntPtr
)
m_pMetricLB
->
GetEntryData
(
nMPos
);
const
sal_uInt16
nFieldUnit
=
(
sal_uInt16
)(
sal_IntPtr
)
m_pMetricLB
->
GetEntryData
(
nMPos
);
rSet
.
Put
(
SfxUInt16Item
(
SID_ATTR_METRIC
,
(
sal_uInt16
)
nFieldUnit
)
);
rSet
.
Put
(
SfxUInt16Item
(
SID_ATTR_METRIC
,
nFieldUnit
)
);
bRet
=
sal_True
;
bRet
=
sal_True
;
}
}
...
@@ -420,9 +420,8 @@ SwCaptionOptPage::SwCaptionOptPage( Window* pParent, const SfxItemSet& rSet )
...
@@ -420,9 +420,8 @@ SwCaptionOptPage::SwCaptionOptPage( Window* pParent, const SfxItemSet& rSet )
sal_uInt16
nSelFmt
=
SVX_NUM_ARABIC
;
sal_uInt16
nSelFmt
=
SVX_NUM_ARABIC
;
if
(
pSh
)
if
(
pSh
)
{
{
nCount
=
pMgr
->
GetFldTypeCount
();
SwFieldType
*
pFldType
;
SwFieldType
*
pFldType
;
for
(
i
=
nCount
;
i
;
)
for
(
i
=
pMgr
->
GetFldTypeCount
()
;
i
;
)
{
{
pFldType
=
pMgr
->
GetFldType
(
USHRT_MAX
,
--
i
);
pFldType
=
pMgr
->
GetFldType
(
USHRT_MAX
,
--
i
);
if
(
pFldType
->
GetName
().
equals
(
m_pCategoryBox
->
GetText
()))
if
(
pFldType
->
GetName
().
equals
(
m_pCategoryBox
->
GetText
()))
...
@@ -439,7 +438,7 @@ SwCaptionOptPage::SwCaptionOptPage( Window* pParent, const SfxItemSet& rSet )
...
@@ -439,7 +438,7 @@ SwCaptionOptPage::SwCaptionOptPage( Window* pParent, const SfxItemSet& rSet )
for
(
i
=
0
;
i
<
nCount
;
++
i
)
for
(
i
=
0
;
i
<
nCount
;
++
i
)
{
{
m_pFormatBox
->
InsertEntry
(
pMgr
->
GetFormatStr
(
TYP_SEQFLD
,
i
)
);
m_pFormatBox
->
InsertEntry
(
pMgr
->
GetFormatStr
(
TYP_SEQFLD
,
i
)
);
sal_uInt16
nFmtId
=
pMgr
->
GetFormatId
(
TYP_SEQFLD
,
i
);
const
sal_uInt16
nFmtId
=
pMgr
->
GetFormatId
(
TYP_SEQFLD
,
i
);
m_pFormatBox
->
SetEntryData
(
i
,
reinterpret_cast
<
void
*>
(
nFmtId
)
);
m_pFormatBox
->
SetEntryData
(
i
,
reinterpret_cast
<
void
*>
(
nFmtId
)
);
if
(
nFmtId
==
nSelFmt
)
if
(
nFmtId
==
nSelFmt
)
m_pFormatBox
->
SelectEntryPos
(
i
);
m_pFormatBox
->
SelectEntryPos
(
i
);
...
@@ -618,7 +617,7 @@ IMPL_LINK_NOARG(SwCaptionOptPage, ShowEntryHdl)
...
@@ -618,7 +617,7 @@ IMPL_LINK_NOARG(SwCaptionOptPage, ShowEntryHdl)
m_pCategoryBox
->
InsertEntry
(
m_sNone
);
m_pCategoryBox
->
InsertEntry
(
m_sNone
);
if
(
pSh
)
if
(
pSh
)
{
{
sal_uInt16
nCount
=
pMgr
->
GetFldTypeCount
();
const
sal_uInt16
nCount
=
pMgr
->
GetFldTypeCount
();
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
i
++
)
{
{
...
@@ -794,7 +793,7 @@ void SwCaptionOptPage::DrawSample()
...
@@ -794,7 +793,7 @@ void SwCaptionOptPage::DrawSample()
//#i61007# order of captions
//#i61007# order of captions
bool
bOrderNumberingFirst
=
m_pLbCaptionOrder
->
GetSelectEntryPos
()
==
1
;
bool
bOrderNumberingFirst
=
m_pLbCaptionOrder
->
GetSelectEntryPos
()
==
1
;
// number
// number
sal_uInt16
nNumFmt
=
(
sal_uInt16
)(
sal_uLong
)
m_pFormatBox
->
GetEntryData
(
const
sal_uInt16
nNumFmt
=
(
sal_uInt16
)(
sal_uLong
)
m_pFormatBox
->
GetEntryData
(
m_pFormatBox
->
GetSelectEntryPos
()
);
m_pFormatBox
->
GetSelectEntryPos
()
);
if
(
SVX_NUM_NUMBER_NONE
!=
nNumFmt
)
if
(
SVX_NUM_NUMBER_NONE
!=
nNumFmt
)
{
{
...
...
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