diff options
author | Andre Fischer <af@openoffice.org> | 2010-02-12 13:58:24 +0100 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2010-02-12 13:58:24 +0100 |
commit | ab518ae9111d251a4e6267ae9f40836b8a7a3913 (patch) | |
tree | a283642af55ae4f76dbb28ab09fba62627257b01 /sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx | |
parent | 2336af0eb45bee98f98b0ac9a6988bfd0e6193e5 (diff) |
renaissance1: #i107215# Adaption to latest changes of the spec.
Diffstat (limited to 'sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx')
-rw-r--r-- | sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx b/sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx index b67e6cb3969f..36a7dde48eae 100644 --- a/sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx +++ b/sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx @@ -39,6 +39,8 @@ #include "SlideSorter.hxx" #include "model/SlsPageDescriptor.hxx" #include "view/SlsLayouter.hxx" +#include "view/SlsTheme.hxx" +#include <boost/scoped_ptr.hpp> namespace sd { namespace slidesorter { namespace cache { class PageCache; } } } @@ -47,24 +49,35 @@ namespace sd { namespace slidesorter { namespace view { class Layouter; class PageObjectLayouter; +namespace { class FramePainter; } + + class PageObjectPainter { public: PageObjectPainter (const SlideSorter& rSlideSorter); + ~PageObjectPainter (void); void PaintPageObject ( OutputDevice& rDevice, const model::SharedPageDescriptor& rpDescriptor); + void NotifyResize (void); + private: const Layouter& mrLayouter; ::boost::shared_ptr<PageObjectLayouter> mpPageObjectLayouter; ::boost::shared_ptr<cache::PageCache> mpCache; ::boost::shared_ptr<controller::Properties> mpProperties; - ::boost::scoped_ptr<Font> mpFont; + ::boost::shared_ptr<view::Theme> mpTheme; + ::boost::shared_ptr<Font> mpPageNumberFont; BitmapEx maStartPresentationIcon; BitmapEx maShowSlideIcon; BitmapEx maNewSlideIcon; + ::boost::scoped_ptr<FramePainter> mpShadowPainter; + Bitmap maNormalBackground; + Bitmap maSelectionBackground; + Bitmap maMouseOverBackground; void PaintBackground ( OutputDevice& rDevice, @@ -81,8 +94,10 @@ private: void PaintButtons ( OutputDevice& rDevice, const model::SharedPageDescriptor& rpDescriptor) const; - - ColorData GetColorForVisualState (const model::SharedPageDescriptor& rpDescriptor) const; + void PrepareBackgrounds (OutputDevice& rDevice); + Bitmap CreateBackgroundBitmap( + const OutputDevice& rReferenceDevice, + const Theme::ColorType eType) const; }; } } } // end of namespace sd::slidesorter::view |