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
540eba75
Kaydet (Commit)
540eba75
authored
Haz 28, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16 to SwTwips and delay downcasts
Change-Id: I4a8a05905a779bb8c7fad830c049d1e403d79711
üst
ddd86d9e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
16 deletions
+9
-16
envfmt.cxx
sw/source/ui/envelp/envfmt.cxx
+1
-1
uitool.hxx
sw/source/uibase/inc/uitool.hxx
+1
-1
textsh1.cxx
sw/source/uibase/shells/textsh1.cxx
+1
-1
viewtab.cxx
sw/source/uibase/uiview/viewtab.cxx
+3
-5
uiitems.cxx
sw/source/uibase/utlui/uiitems.cxx
+1
-1
uitool.cxx
sw/source/uibase/utlui/uitool.cxx
+2
-7
No files found.
sw/source/ui/envelp/envfmt.cxx
Dosyayı görüntüle @
540eba75
...
@@ -282,7 +282,7 @@ IMPL_LINK( SwEnvFmtPage, EditHdl, MenuButton *, pButton )
...
@@ -282,7 +282,7 @@ IMPL_LINK( SwEnvFmtPage, EditHdl, MenuButton *, pButton )
const
SvxTabStopItem
&
rDefTabs
=
(
const
SvxTabStopItem
&
)
const
SvxTabStopItem
&
rDefTabs
=
(
const
SvxTabStopItem
&
)
pSh
->
GetView
().
GetCurShell
()
->
GetPool
().
GetDefaultItem
(
RES_PARATR_TABSTOP
);
pSh
->
GetView
().
GetCurShell
()
->
GetPool
().
GetDefaultItem
(
RES_PARATR_TABSTOP
);
const
sal_uInt16
nDefDist
=
::
GetTabDist
(
rDefTabs
);
const
sal_uInt16
nDefDist
=
static_cast
<
sal_uInt16
>
(
::
GetTabDist
(
rDefTabs
)
);
SfxUInt16Item
aDefDistItem
(
SID_ATTR_TABSTOP_DEFAULTS
,
nDefDist
);
SfxUInt16Item
aDefDistItem
(
SID_ATTR_TABSTOP_DEFAULTS
,
nDefDist
);
aTmpSet
.
Put
(
aDefDistItem
);
aTmpSet
.
Put
(
aDefDistItem
);
...
...
sw/source/uibase/inc/uitool.hxx
Dosyayı görüntüle @
540eba75
...
@@ -74,7 +74,7 @@ SW_DLLPUBLIC void MakeDefTabs(SwTwips nDefDist, SvxTabStopItem& rTabs);
...
@@ -74,7 +74,7 @@ SW_DLLPUBLIC void MakeDefTabs(SwTwips nDefDist, SvxTabStopItem& rTabs);
//void EraseDefTabs(SvxTabStopItem& rTabs);
//void EraseDefTabs(SvxTabStopItem& rTabs);
// determine space between 1st and 2nd element
// determine space between 1st and 2nd element
SW_DLLPUBLIC
sal_uInt16
GetTabDist
(
const
SvxTabStopItem
&
rTabs
);
SW_DLLPUBLIC
SwTwips
GetTabDist
(
const
SvxTabStopItem
&
rTabs
);
// determine whether a Sfx-PageDesc combination exists in the set
// determine whether a Sfx-PageDesc combination exists in the set
// and set this in the set and delete the transport items
// and set this in the set and delete the transport items
...
...
sw/source/uibase/shells/textsh1.cxx
Dosyayı görüntüle @
540eba75
...
@@ -915,7 +915,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
...
@@ -915,7 +915,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
const
SvxTabStopItem
&
rDefTabs
=
(
const
SvxTabStopItem
&
)
const
SvxTabStopItem
&
rDefTabs
=
(
const
SvxTabStopItem
&
)
GetPool
().
GetDefaultItem
(
RES_PARATR_TABSTOP
);
GetPool
().
GetDefaultItem
(
RES_PARATR_TABSTOP
);
sal_uInt16
nDefDist
=
::
GetTabDist
(
rDefTabs
);
const
sal_uInt16
nDefDist
=
static_cast
<
sal_uInt16
>
(
::
GetTabDist
(
rDefTabs
)
);
SfxUInt16Item
aDefDistItem
(
SID_ATTR_TABSTOP_DEFAULTS
,
nDefDist
);
SfxUInt16Item
aDefDistItem
(
SID_ATTR_TABSTOP_DEFAULTS
,
nDefDist
);
aCoreSet
.
Put
(
aDefDistItem
);
aCoreSet
.
Put
(
aDefDistItem
);
...
...
sw/source/uibase/uiview/viewtab.cxx
Dosyayı görüntüle @
540eba75
...
@@ -640,8 +640,7 @@ void SwView::ExecTabWin( SfxRequest& rReq )
...
@@ -640,8 +640,7 @@ void SwView::ExecTabWin( SfxRequest& rReq )
}
}
// Populate with default tabs.
// Populate with default tabs.
sal_uInt16
nDef
=
::
GetTabDist
(
rDefTabs
);
::
MakeDefTabs
(
::
GetTabDist
(
rDefTabs
),
aTabStops
);
::
MakeDefTabs
(
nDef
,
aTabStops
);
SwTxtFmtColl
*
pColl
=
rSh
.
GetCurTxtFmtColl
();
SwTxtFmtColl
*
pColl
=
rSh
.
GetCurTxtFmtColl
();
if
(
pColl
&&
pColl
->
IsAutoUpdateFmt
()
)
if
(
pColl
&&
pColl
->
IsAutoUpdateFmt
()
)
...
@@ -720,8 +719,7 @@ void SwView::ExecTabWin( SfxRequest& rReq )
...
@@ -720,8 +719,7 @@ void SwView::ExecTabWin( SfxRequest& rReq )
const
SvxTabStopItem
&
rDefTabs
=
const
SvxTabStopItem
&
rDefTabs
=
(
const
SvxTabStopItem
&
)
rSh
.
GetDefault
(
RES_PARATR_TABSTOP
);
(
const
SvxTabStopItem
&
)
rSh
.
GetDefault
(
RES_PARATR_TABSTOP
);
sal_uInt16
nDef
=
::
GetTabDist
(
rDefTabs
);
::
MakeDefTabs
(
::
GetTabDist
(
rDefTabs
),
aTabStops
);
::
MakeDefTabs
(
nDef
,
aTabStops
);
if
(
pColl
&&
pColl
->
IsAutoUpdateFmt
())
if
(
pColl
&&
pColl
->
IsAutoUpdateFmt
())
{
{
...
@@ -1209,7 +1207,7 @@ void SwView::StateTabWin(SfxItemSet& rSet)
...
@@ -1209,7 +1207,7 @@ void SwView::StateTabWin(SfxItemSet& rSet)
rSh
.
GetDefault
(
RES_PARATR_TABSTOP
);
rSh
.
GetDefault
(
RES_PARATR_TABSTOP
);
OSL_ENSURE
(
m_pHRuler
,
"why is there no ruler?"
);
OSL_ENSURE
(
m_pHRuler
,
"why is there no ruler?"
);
long
nDefTabDist
=
::
GetTabDist
(
rDefTabs
);
const
long
nDefTabDist
=
::
GetTabDist
(
rDefTabs
);
m_pHRuler
->
SetDefTabDist
(
nDefTabDist
);
m_pHRuler
->
SetDefTabDist
(
nDefTabDist
);
m_pVRuler
->
SetDefTabDist
(
nDefTabDist
);
m_pVRuler
->
SetDefTabDist
(
nDefTabDist
);
::
lcl_EraseDefTabs
(
aTabStops
);
::
lcl_EraseDefTabs
(
aTabStops
);
...
...
sw/source/uibase/utlui/uiitems.cxx
Dosyayı görüntüle @
540eba75
...
@@ -76,7 +76,7 @@ SfxItemPresentation SwPageFtnInfoItem::GetPresentation
...
@@ -76,7 +76,7 @@ SfxItemPresentation SwPageFtnInfoItem::GetPresentation
case
SFX_ITEM_PRESENTATION_NAMELESS
:
case
SFX_ITEM_PRESENTATION_NAMELESS
:
case
SFX_ITEM_PRESENTATION_COMPLETE
:
case
SFX_ITEM_PRESENTATION_COMPLETE
:
{
{
sal_uInt16
nHght
=
(
sal_uInt16
)
GetPageFtnInfo
().
GetHeight
();
const
SwTwips
nHght
=
GetPageFtnInfo
().
GetHeight
();
if
(
nHght
)
if
(
nHght
)
{
{
rText
=
SW_RESSTR
(
STR_MAX_FTN_HEIGHT
)
+
" "
+
rText
=
SW_RESSTR
(
STR_MAX_FTN_HEIGHT
)
+
" "
+
...
...
sw/source/uibase/utlui/uitool.cxx
Dosyayı görüntüle @
540eba75
...
@@ -557,14 +557,9 @@ void MakeDefTabs(SwTwips nDefDist, SvxTabStopItem& rTabs)
...
@@ -557,14 +557,9 @@ void MakeDefTabs(SwTwips nDefDist, SvxTabStopItem& rTabs)
// Distance between two tabs
// Distance between two tabs
sal_uInt16
GetTabDist
(
const
SvxTabStopItem
&
rTabs
)
SwTwips
GetTabDist
(
const
SvxTabStopItem
&
rTabs
)
{
{
sal_uInt16
nDefDist
;
return
rTabs
.
Count
()
?
rTabs
[
0
].
GetTabPos
()
:
1134
;
// 1134 = 2 cm
if
(
rTabs
.
Count
()
)
nDefDist
=
(
sal_uInt16
)(
rTabs
[
0
].
GetTabPos
()
);
else
nDefDist
=
1134
;
// 2cm
return
nDefDist
;
}
}
// Inquire if in the set is a Sfx-PageDesc combination present and return it.
// Inquire if in the set is a Sfx-PageDesc combination present and return it.
...
...
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