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
cecf256f
Kaydet (Commit)
cecf256f
authored
Nis 20, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16: constify and simplify
Change-Id: I120c19a4fd5bccc3d2d070cc0d52d5155fa5a037
üst
fa772f7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
numpara.cxx
sw/source/ui/chrdlg/numpara.cxx
+6
-8
No files found.
sw/source/ui/chrdlg/numpara.cxx
Dosyayı görüntüle @
cecf256f
...
@@ -75,7 +75,7 @@ SwParagraphNumTabPage::SwParagraphNumTabPage(Window* pParent, const SfxItemSet&
...
@@ -75,7 +75,7 @@ SwParagraphNumTabPage::SwParagraphNumTabPage(Window* pParent, const SfxItemSet&
(
0
!=
(
pObjSh
=
SfxObjectShell
::
Current
())
&&
(
0
!=
(
pObjSh
=
SfxObjectShell
::
Current
())
&&
0
!=
(
pItem
=
pObjSh
->
GetItem
(
SID_HTML_MODE
))))
0
!=
(
pItem
=
pObjSh
->
GetItem
(
SID_HTML_MODE
))))
{
{
sal_uInt16
nHtmlMode
=
((
const
SfxUInt16Item
*
)
pItem
)
->
GetValue
();
const
sal_uInt16
nHtmlMode
=
((
const
SfxUInt16Item
*
)
pItem
)
->
GetValue
();
if
(
HTMLMODE_ON
&
nHtmlMode
)
if
(
HTMLMODE_ON
&
nHtmlMode
)
m_pCountParaFram
->
Hide
();
m_pCountParaFram
->
Hide
();
...
@@ -107,7 +107,7 @@ bool SwParagraphNumTabPage::FillItemSet( SfxItemSet& rSet )
...
@@ -107,7 +107,7 @@ bool SwParagraphNumTabPage::FillItemSet( SfxItemSet& rSet )
{
{
if
(
m_pOutlineLvLB
->
GetSelectEntryPos
()
!=
m_pOutlineLvLB
->
GetSavedValue
())
if
(
m_pOutlineLvLB
->
GetSelectEntryPos
()
!=
m_pOutlineLvLB
->
GetSavedValue
())
{
{
sal_uInt16
aOutlineLv
=
m_pOutlineLvLB
->
GetSelectEntryPos
();
const
sal_uInt16
aOutlineLv
=
m_pOutlineLvLB
->
GetSelectEntryPos
();
const
SfxUInt16Item
*
pOldOutlineLv
=
(
const
SfxUInt16Item
*
)
GetOldItem
(
rSet
,
SID_ATTR_PARA_OUTLINE_LEVEL
);
const
SfxUInt16Item
*
pOldOutlineLv
=
(
const
SfxUInt16Item
*
)
GetOldItem
(
rSet
,
SID_ATTR_PARA_OUTLINE_LEVEL
);
SfxUInt16Item
*
pOutlineLv
=
(
SfxUInt16Item
*
)
pOldOutlineLv
->
Clone
();
SfxUInt16Item
*
pOutlineLv
=
(
SfxUInt16Item
*
)
pOldOutlineLv
->
Clone
();
pOutlineLv
->
SetValue
(
aOutlineLv
);
pOutlineLv
->
SetValue
(
aOutlineLv
);
...
@@ -221,12 +221,10 @@ void SwParagraphNumTabPage::Reset( const SfxItemSet& rSet )
...
@@ -221,12 +221,10 @@ void SwParagraphNumTabPage::Reset( const SfxItemSet& rSet )
eItemState
=
rSet
.
GetItemState
(
FN_NUMBER_NEWSTART_AT
);
eItemState
=
rSet
.
GetItemState
(
FN_NUMBER_NEWSTART_AT
);
if
(
eItemState
>
SFX_ITEM_AVAILABLE
)
if
(
eItemState
>
SFX_ITEM_AVAILABLE
)
{
{
sal_uInt16
nNewStart
=
((
const
SfxUInt16Item
&
)
rSet
.
Get
(
FN_NUMBER_NEWSTART_AT
)).
GetValue
();
const
sal_uInt16
nNewStart
=
((
const
SfxUInt16Item
&
)
rSet
.
Get
(
FN_NUMBER_NEWSTART_AT
)).
GetValue
();
m_pNewStartNumberCB
->
Check
(
USHRT_MAX
!=
nNewStart
);
const
bool
bNotMax
=
USHRT_MAX
!=
nNewStart
;
if
(
USHRT_MAX
==
nNewStart
)
m_pNewStartNumberCB
->
Check
(
bNotMax
);
nNewStart
=
1
;
m_pNewStartNF
->
SetValue
(
bNotMax
?
nNewStart
:
1
);
m_pNewStartNF
->
SetValue
(
nNewStart
);
m_pNewStartNumberCB
->
EnableTriState
(
false
);
m_pNewStartNumberCB
->
EnableTriState
(
false
);
}
}
else
else
...
...
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