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
f7ca0e46
Kaydet (Commit)
f7ca0e46
authored
Agu 15, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Dont draw thumbnail border if theres no thumbnail to paint.
Change-Id: I6ca934ccf2e1fa34e60cae3feb1564c87e69254b
üst
22350676
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
23 deletions
+29
-23
templatelocalviewitem.cxx
sfx2/source/control/templatelocalviewitem.cxx
+29
-23
No files found.
sfx2/source/control/templatelocalviewitem.cxx
Dosyayı görüntüle @
f7ca0e46
...
...
@@ -39,7 +39,10 @@ void TemplateLocalViewItem::Paint (drawinglayer::processor2d::BaseProcessor2D *p
const
ThumbnailItemAttributes
*
pAttrs
)
{
int
nCount
=
0
;
int
nSeqSize
=
7
;
int
nSeqSize
=
2
;
if
(
!
maPreview1
.
IsEmpty
())
nSeqSize
+=
5
;
if
(
!
maPreview2
.
IsEmpty
())
nSeqSize
+=
5
;
...
...
@@ -91,28 +94,31 @@ void TemplateLocalViewItem::Paint (drawinglayer::processor2d::BaseProcessor2D *p
B2DPoint
(
fPosX
,
fPosY
)));
}
aSeq
[
nCount
++
]
=
Primitive2DReference
(
new
FillBitmapPrimitive2D
(
createScaleTranslateB2DHomMatrix
(
fScaleX
,
fScaleY
,
aPos
.
X
(),
aPos
.
Y
()),
FillBitmapAttribute
(
maPreview1
,
B2DPoint
(
0
,
0
),
B2DVector
(
aImageSize
.
Width
(),
aImageSize
.
Height
()),
false
)
));
// draw thumbnail borders
float
fWidth
=
aImageSize
.
Width
()
*
fScaleX
;
float
fHeight
=
aImageSize
.
Height
()
*
fScaleY
;
float
fPosX
=
aPos
.
getX
();
float
fPosY
=
aPos
.
getY
();
aSeq
[
nCount
++
]
=
Primitive2DReference
(
createBorderLine
(
B2DPoint
(
fPosX
,
fPosY
),
B2DPoint
(
fPosX
+
fWidth
,
fPosY
)));
aSeq
[
nCount
++
]
=
Primitive2DReference
(
createBorderLine
(
B2DPoint
(
fPosX
+
fWidth
,
fPosY
),
B2DPoint
(
fPosX
+
fWidth
,
fPosY
+
fHeight
)));
aSeq
[
nCount
++
]
=
Primitive2DReference
(
createBorderLine
(
B2DPoint
(
fPosX
+
fWidth
,
fPosY
+
fHeight
),
B2DPoint
(
fPosX
,
fPosY
+
fHeight
)));
aSeq
[
nCount
++
]
=
Primitive2DReference
(
createBorderLine
(
B2DPoint
(
fPosX
,
fPosY
+
fHeight
),
B2DPoint
(
fPosX
,
fPosY
)));
if
(
!
maPreview1
.
IsEmpty
())
{
aSeq
[
nCount
++
]
=
Primitive2DReference
(
new
FillBitmapPrimitive2D
(
createScaleTranslateB2DHomMatrix
(
fScaleX
,
fScaleY
,
aPos
.
X
(),
aPos
.
Y
()),
FillBitmapAttribute
(
maPreview1
,
B2DPoint
(
0
,
0
),
B2DVector
(
aImageSize
.
Width
(),
aImageSize
.
Height
()),
false
)
));
// draw thumbnail borders
float
fWidth
=
aImageSize
.
Width
()
*
fScaleX
;
float
fHeight
=
aImageSize
.
Height
()
*
fScaleY
;
float
fPosX
=
aPos
.
getX
();
float
fPosY
=
aPos
.
getY
();
aSeq
[
nCount
++
]
=
Primitive2DReference
(
createBorderLine
(
B2DPoint
(
fPosX
,
fPosY
),
B2DPoint
(
fPosX
+
fWidth
,
fPosY
)));
aSeq
[
nCount
++
]
=
Primitive2DReference
(
createBorderLine
(
B2DPoint
(
fPosX
+
fWidth
,
fPosY
),
B2DPoint
(
fPosX
+
fWidth
,
fPosY
+
fHeight
)));
aSeq
[
nCount
++
]
=
Primitive2DReference
(
createBorderLine
(
B2DPoint
(
fPosX
+
fWidth
,
fPosY
+
fHeight
),
B2DPoint
(
fPosX
,
fPosY
+
fHeight
)));
aSeq
[
nCount
++
]
=
Primitive2DReference
(
createBorderLine
(
B2DPoint
(
fPosX
,
fPosY
+
fHeight
),
B2DPoint
(
fPosX
,
fPosY
)));
}
// Draw centered text below thumbnail
aPos
=
maTextPos
;
...
...
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