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
7ecebd66
Kaydet (Commit)
7ecebd66
authored
Tem 26, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16 to sal_uInt16, constify
Change-Id: Iabb5662cfe135728ca77244032a93762cd7e1c93
üst
9f5711e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
tabsh.cxx
sw/source/uibase/shells/tabsh.cxx
+9
-9
No files found.
sw/source/uibase/shells/tabsh.cxx
Dosyayı görüntüle @
7ecebd66
...
...
@@ -155,7 +155,7 @@ static SwTableRep* lcl_TableParamToItemSet( SfxItemSet& rSet, SwWrtShell &rSh )
SvxULSpaceItem
aULSpace
(
pFmt
->
GetULSpace
()
);
rSet
.
Put
(
aULSpace
);
sal_uInt16
nBackgroundDestination
=
rSh
.
GetViewOptions
()
->
GetTblDest
();
const
sal_uInt16
nBackgroundDestination
=
rSh
.
GetViewOptions
()
->
GetTblDest
();
rSet
.
Put
(
SwBackgroundDestinationItem
(
SID_BACKGRND_DESTINATION
,
nBackgroundDestination
));
SvxBrushItem
aBrush
(
RES_BACKGROUND
);
if
(
rSh
.
GetRowBackground
(
aBrush
))
...
...
@@ -227,7 +227,7 @@ static SwTableRep* lcl_TableParamToItemSet( SfxItemSet& rSet, SwWrtShell &rSh )
// The table width is wrong for relative values.
if
(
nPercent
)
nWidth
=
pRep
->
GetSpace
()
*
nPercent
/
100
;
sal_uInt16
nAlign
=
pFmt
->
GetHoriOrient
().
GetHoriOrient
();
const
sal_uInt16
nAlign
=
pFmt
->
GetHoriOrient
().
GetHoriOrient
();
pRep
->
SetAlign
(
nAlign
);
SvxLRSpaceItem
aLRSpace
(
pFmt
->
GetLRSpace
()
);
SwTwips
nLeft
=
aLRSpace
.
GetLeft
();
...
...
@@ -274,8 +274,7 @@ void ItemSetToTableParam( const SfxItemSet& rSet,
if
(
SFX_ITEM_SET
==
rSet
.
GetItemState
(
SID_BACKGRND_DESTINATION
,
false
,
&
pItem
))
{
SwViewOption
aUsrPref
(
*
rSh
.
GetViewOptions
()
);
sal_uInt16
nBackgroundDestination
=
((
SfxUInt16Item
*
)
pItem
)
->
GetValue
();
aUsrPref
.
SetTblDest
((
sal_uInt8
)
nBackgroundDestination
);
aUsrPref
.
SetTblDest
((
sal_uInt8
)((
SfxUInt16Item
*
)
pItem
)
->
GetValue
());
SW_MOD
()
->
ApplyUsrPref
(
aUsrPref
,
&
rSh
.
GetView
());
}
bool
bBorder
=
(
SFX_ITEM_SET
==
rSet
.
GetItemState
(
RES_BOX
)
||
...
...
@@ -660,7 +659,7 @@ void SwTableShell::Execute(SfxRequest &rReq)
const
sal_uInt32
*
pDelArr
=
((
SvxNumberInfoItem
*
)
pNumberFormatItem
)
->
GetDelArray
();
for
(
sal_uInt
16
i
=
0
;
i
<
((
SvxNumberInfoItem
*
)
pNumberFormatItem
)
->
GetDelCount
();
i
++
)
for
(
sal_uInt
32
i
=
0
;
i
<
((
SvxNumberInfoItem
*
)
pNumberFormatItem
)
->
GetDelCount
();
i
++
)
((
SvxNumberInfoItem
*
)
pNumberFormatItem
)
->
GetNumberFormatter
()
->
DeleteEntry
(
pDelArr
[
i
]
);
}
...
...
@@ -882,7 +881,8 @@ void SwTableShell::Execute(SfxRequest &rReq)
if
(
pDlg
.
get
()
&&
(
pDlg
->
Execute
()
==
1
)
)
{
sal_uInt16
nDispatchSlot
=
(
nSlot
==
FN_TABLE_INSERT_COL_DLG
)
?
FN_TABLE_INSERT_COL
:
FN_TABLE_INSERT_ROW
;
const
sal_uInt16
nDispatchSlot
=
(
nSlot
==
FN_TABLE_INSERT_COL_DLG
)
?
FN_TABLE_INSERT_COL
:
FN_TABLE_INSERT_ROW
;
SfxUInt16Item
aCountItem
(
nDispatchSlot
,
static_cast
<
sal_uInt16
>
(
pDlg
->
getInsertCount
())
);
SfxBoolItem
aAfter
(
FN_PARAM_INSERT_AFTER
,
!
pDlg
->
isInsertBefore
()
);
SfxViewFrame
*
pVFrame
=
GetView
().
GetViewFrame
();
...
...
@@ -1095,7 +1095,7 @@ void SwTableShell::Execute(SfxRequest &rReq)
case
SID_TABLE_VERT_CENTER
:
case
SID_TABLE_VERT_BOTTOM
:
{
sal_uInt16
nAlign
=
nSlot
==
SID_TABLE_VERT_NONE
?
const
sal_uInt16
nAlign
=
nSlot
==
SID_TABLE_VERT_NONE
?
text
::
VertOrientation
::
NONE
:
nSlot
==
SID_TABLE_VERT_CENTER
?
text
::
VertOrientation
::
CENTER
:
text
::
VertOrientation
::
BOTTOM
;
...
...
@@ -1237,7 +1237,7 @@ void SwTableShell::GetState(SfxItemSet &rSet)
case
SID_TABLE_VERT_CENTER
:
case
SID_TABLE_VERT_BOTTOM
:
{
sal_uInt16
nAlign
=
rSh
.
GetBoxAlign
();
const
sal_uInt16
nAlign
=
rSh
.
GetBoxAlign
();
bool
bSet
=
(
nSlot
==
SID_TABLE_VERT_NONE
&&
nAlign
==
text
::
VertOrientation
::
NONE
)
||
(
nSlot
==
SID_TABLE_VERT_CENTER
&&
nAlign
==
text
::
VertOrientation
::
CENTER
)
||
(
nSlot
==
SID_TABLE_VERT_BOTTOM
&&
nAlign
==
text
::
VertOrientation
::
BOTTOM
);
...
...
@@ -1411,7 +1411,7 @@ void SwTableShell::ExecNumberFormat(SfxRequest& rReq)
// At first the slots, which doesn't need a FrmMgr.
const
SfxPoolItem
*
pItem
=
0
;
sal_uInt16
nSlot
=
rReq
.
GetSlot
();
const
sal_uInt16
nSlot
=
rReq
.
GetSlot
();
if
(
pArgs
)
pArgs
->
GetItemState
(
GetPool
().
GetWhich
(
nSlot
),
false
,
&
pItem
);
...
...
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