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
b8f5370a
Kaydet (Commit)
b8f5370a
authored
Tem 11, 2012
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i118813# Update slide sorter after page format is modified.
üst
961de71f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
15 deletions
+32
-15
SlsPageObjectPainter.hxx
sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx
+6
-0
SlsPageObjectPainter.cxx
sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx
+26
-15
No files found.
sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx
Dosyayı görüntüle @
b8f5370a
...
...
@@ -129,6 +129,12 @@ private:
const
BitmapEx
&
rOverlay
,
const
OutputDevice
*
pReferenceDevice
)
const
;
void
InvalidateBitmaps
(
void
);
/** Update the local pointer to the page object layouter to the
one owned by the general layouter.
Return <TRUE/> when after the call we have a valid page object layouter.
*/
bool
UpdatePageObjectLayouter
(
void
);
};
}
}
}
// end of namespace sd::slidesorter::view
...
...
sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx
Dosyayı görüntüle @
b8f5370a
...
...
@@ -134,6 +134,28 @@ PageObjectPainter::~PageObjectPainter (void)
void
PageObjectPainter
::
PaintPageObject
(
OutputDevice
&
rDevice
,
const
model
::
SharedPageDescriptor
&
rpDescriptor
)
{
if
(
UpdatePageObjectLayouter
())
{
// Turn off antialiasing to avoid the bitmaps from being
// shifted by fractions of a pixel and thus show blurry edges.
const
sal_uInt16
nSavedAntialiasingMode
(
rDevice
.
GetAntialiasing
());
rDevice
.
SetAntialiasing
(
nSavedAntialiasingMode
&
~
ANTIALIASING_ENABLE_B2DDRAW
);
PaintBackground
(
rDevice
,
rpDescriptor
);
PaintPreview
(
rDevice
,
rpDescriptor
);
PaintPageNumber
(
rDevice
,
rpDescriptor
);
PaintTransitionEffect
(
rDevice
,
rpDescriptor
);
mrButtonBar
.
Paint
(
rDevice
,
rpDescriptor
);
rDevice
.
SetAntialiasing
(
nSavedAntialiasingMode
);
}
}
bool
PageObjectPainter
::
UpdatePageObjectLayouter
(
void
)
{
// The page object layouter is quite volatile. It may have been replaced
// since the last call. Update it now.
...
...
@@ -141,21 +163,10 @@ void PageObjectPainter::PaintPageObject (
if
(
!
mpPageObjectLayouter
)
{
OSL_ASSERT
(
mpPageObjectLayouter
);
return
;
return
false
;
}
// Turn off antialiasing to avoid the bitmaps from being shifted by
// fractions of a pixel and thus show blurry edges.
const
sal_uInt16
nSavedAntialiasingMode
(
rDevice
.
GetAntialiasing
());
rDevice
.
SetAntialiasing
(
nSavedAntialiasingMode
&
~
ANTIALIASING_ENABLE_B2DDRAW
);
PaintBackground
(
rDevice
,
rpDescriptor
);
PaintPreview
(
rDevice
,
rpDescriptor
);
PaintPageNumber
(
rDevice
,
rpDescriptor
);
PaintTransitionEffect
(
rDevice
,
rpDescriptor
);
mrButtonBar
.
Paint
(
rDevice
,
rpDescriptor
);
rDevice
.
SetAntialiasing
(
nSavedAntialiasingMode
);
else
return
true
;
}
...
...
@@ -165,7 +176,7 @@ void PageObjectPainter::NotifyResize (const bool bForce)
{
if
(
bForce
||
!
mpPageObjectLayouter
)
InvalidateBitmaps
();
else
else
if
(
UpdatePageObjectLayouter
())
{
const
Size
aSize
(
mpPageObjectLayouter
->
GetSize
(
PageObjectLayouter
::
FocusIndicator
,
...
...
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