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
ff2fd4d1
Kaydet (Commit)
ff2fd4d1
authored
Tem 01, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:literaltoboolconversion
Change-Id: I864d5e3fbb7f8f8278c45b721be70f805c6a6713
üst
b398f815
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
hdft.cxx
svx/source/dialog/hdft.cxx
+5
-5
pagectrl.cxx
svx/source/dialog/pagectrl.cxx
+4
-4
No files found.
svx/source/dialog/hdft.cxx
Dosyayı görüntüle @
ff2fd4d1
...
@@ -590,7 +590,7 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl)
...
@@ -590,7 +590,7 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl)
{
{
// Use only the necessary items for border and background
// Use only the necessary items for border and background
const
sal_uInt16
nOuter
(
GetWhich
(
SID_ATTR_BORDER_OUTER
));
const
sal_uInt16
nOuter
(
GetWhich
(
SID_ATTR_BORDER_OUTER
));
const
sal_uInt16
nInner
(
GetWhich
(
SID_ATTR_BORDER_INNER
,
sal_F
alse
));
const
sal_uInt16
nInner
(
GetWhich
(
SID_ATTR_BORDER_INNER
,
f
alse
));
const
sal_uInt16
nShadow
(
GetWhich
(
SID_ATTR_BORDER_SHADOW
));
const
sal_uInt16
nShadow
(
GetWhich
(
SID_ATTR_BORDER_SHADOW
));
if
(
mbEnableDrawingLayerFillStyles
)
if
(
mbEnableDrawingLayerFillStyles
)
...
@@ -643,7 +643,7 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl)
...
@@ -643,7 +643,7 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl)
const
SfxPoolItem
*
pItem
;
const
SfxPoolItem
*
pItem
;
if
(
SFX_ITEM_SET
==
GetItemSet
().
GetItemState
(
GetWhich
(
nId
),
sal_F
alse
,
&
pItem
))
if
(
SFX_ITEM_SET
==
GetItemSet
().
GetItemState
(
GetWhich
(
nId
),
f
alse
,
&
pItem
))
{
{
// If a SfxItemSet from the SetItem for SID_ATTR_PAGE_HEADERSET or
// If a SfxItemSet from the SetItem for SID_ATTR_PAGE_HEADERSET or
// SID_ATTR_PAGE_FOOTERSET exists, use it's content
// SID_ATTR_PAGE_FOOTERSET exists, use it's content
...
@@ -661,7 +661,7 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl)
...
@@ -661,7 +661,7 @@ IMPL_LINK_NOARG(SvxHFPage, BackgroundHdl)
}
}
}
}
if
(
SFX_ITEM_SET
==
GetItemSet
().
GetItemState
(
nInner
,
sal_F
alse
,
&
pItem
))
if
(
SFX_ITEM_SET
==
GetItemSet
().
GetItemState
(
nInner
,
f
alse
,
&
pItem
))
{
{
// The set InfoItem is always required
// The set InfoItem is always required
pBBSet
->
Put
(
*
pItem
);
pBBSet
->
Put
(
*
pItem
);
...
@@ -781,7 +781,7 @@ void SvxHFPage::ResetBackground_Impl( const SfxItemSet& rSet )
...
@@ -781,7 +781,7 @@ void SvxHFPage::ResetBackground_Impl( const SfxItemSet& rSet )
if
(
SFX_ITEM_SET
==
rSet
.
GetItemState
(
nWhich
,
false
))
if
(
SFX_ITEM_SET
==
rSet
.
GetItemState
(
nWhich
,
false
))
{
{
const
SvxSetItem
&
rSetItem
=
static_cast
<
const
SvxSetItem
&
>
(
rSet
.
Get
(
nWhich
,
sal_F
alse
));
const
SvxSetItem
&
rSetItem
=
static_cast
<
const
SvxSetItem
&
>
(
rSet
.
Get
(
nWhich
,
f
alse
));
const
SfxItemSet
&
rTmpSet
=
rSetItem
.
GetItemSet
();
const
SfxItemSet
&
rTmpSet
=
rSetItem
.
GetItemSet
();
const
SfxBoolItem
&
rOn
=
static_cast
<
const
SfxBoolItem
&
>
(
rTmpSet
.
Get
(
GetWhich
(
SID_ATTR_PAGE_ON
)));
const
SfxBoolItem
&
rOn
=
static_cast
<
const
SfxBoolItem
&
>
(
rTmpSet
.
Get
(
GetWhich
(
SID_ATTR_PAGE_ON
)));
...
@@ -825,7 +825,7 @@ void SvxHFPage::ResetBackground_Impl( const SfxItemSet& rSet )
...
@@ -825,7 +825,7 @@ void SvxHFPage::ResetBackground_Impl( const SfxItemSet& rSet )
if
(
SFX_ITEM_SET
==
rSet
.
GetItemState
(
nWhich
,
false
))
if
(
SFX_ITEM_SET
==
rSet
.
GetItemState
(
nWhich
,
false
))
{
{
const
SvxSetItem
&
rSetItem
=
static_cast
<
const
SvxSetItem
&
>
(
rSet
.
Get
(
nWhich
,
sal_F
alse
));
const
SvxSetItem
&
rSetItem
=
static_cast
<
const
SvxSetItem
&
>
(
rSet
.
Get
(
nWhich
,
f
alse
));
const
SfxItemSet
&
rTmpSet
=
rSetItem
.
GetItemSet
();
const
SfxItemSet
&
rTmpSet
=
rSetItem
.
GetItemSet
();
const
SfxBoolItem
&
rOn
=
static_cast
<
const
SfxBoolItem
&
>
(
rTmpSet
.
Get
(
GetWhich
(
SID_ATTR_PAGE_ON
)));
const
SfxBoolItem
&
rOn
=
static_cast
<
const
SfxBoolItem
&
>
(
rTmpSet
.
Get
(
GetWhich
(
SID_ATTR_PAGE_ON
)));
...
...
svx/source/dialog/pagectrl.cxx
Dosyayı görüntüle @
ff2fd4d1
...
@@ -143,17 +143,17 @@ void SvxPageWindow::Paint(const Rectangle&)
...
@@ -143,17 +143,17 @@ void SvxPageWindow::Paint(const Rectangle&)
aSz
=
PixelToLogic
(
GetSizePixel
());
aSz
=
PixelToLogic
(
GetSizePixel
());
nYPos
=
(
aSz
.
Height
()
-
aSize
.
Height
())
/
2
;
nYPos
=
(
aSz
.
Height
()
-
aSize
.
Height
())
/
2
;
long
nXPos
=
(
aSz
.
Width
()
-
aSize
.
Width
())
/
2
;
long
nXPos
=
(
aSz
.
Width
()
-
aSize
.
Width
())
/
2
;
DrawPage
(
Point
(
nXPos
,
nYPos
),
sal_True
,
sal_T
rue
);
DrawPage
(
Point
(
nXPos
,
nYPos
),
true
,
t
rue
);
}
}
else
else
// Portrait
// Portrait
DrawPage
(
Point
((
aSz
.
Width
()
-
aSize
.
Width
())
/
2
,
nYPos
),
sal_True
,
sal_T
rue
);
DrawPage
(
Point
((
aSz
.
Width
()
-
aSize
.
Width
())
/
2
,
nYPos
),
true
,
t
rue
);
}
}
else
else
{
{
// Left and right page are different -> draw two pages if possible
// Left and right page are different -> draw two pages if possible
DrawPage
(
Point
(
0
,
nYPos
),
sal_F
alse
,(
sal_Bool
)(
eUsage
&
SVX_PAGE_LEFT
));
DrawPage
(
Point
(
0
,
nYPos
),
f
alse
,(
sal_Bool
)(
eUsage
&
SVX_PAGE_LEFT
));
DrawPage
(
Point
(
aSize
.
Width
()
+
aSize
.
Width
()
/
8
,
nYPos
),
sal_T
rue
,
DrawPage
(
Point
(
aSize
.
Width
()
+
aSize
.
Width
()
/
8
,
nYPos
),
t
rue
,
(
sal_Bool
)(
eUsage
&
SVX_PAGE_RIGHT
));
(
sal_Bool
)(
eUsage
&
SVX_PAGE_RIGHT
));
}
}
}
}
...
...
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