LibreOffice Module sd (master) 1
|
Collection of colors and styles that are used to paint the slide sorter view. More...
#include <SlsTheme.hxx>
Classes | |
class | GradientDescriptor |
Public Member Functions | |
Theme (const std::shared_ptr< controller::Properties > &rpProperties) | |
void | Update (const std::shared_ptr< controller::Properties > &rpProperties) |
Call this method to update some colors as response to a change of a system color change. More... | |
Color | GetColor (const ColorType eType) |
Color | GetGradientColor (const GradientColorType eType, const GradientColorClass eClass) |
void | SetGradient (const GradientColorType eType, const Color aBaseColor, const sal_Int32 nSaturationOverride, const sal_Int32 nBrightnessOverride, const sal_Int32 nFillStartOffset, const sal_Int32 nFillEndOffset, const sal_Int32 nBorderStartOffset, const sal_Int32 nBorderEndOffset) |
const BitmapEx & | GetIcon (const IconType eType) |
Static Public Member Functions | |
static std::shared_ptr< vcl::Font > | GetFont (const FontType eType, const OutputDevice &rDevice) |
Private Member Functions | |
GradientDescriptor & | GetGradient (const GradientColorType eType) |
void | InitializeIcon (const IconType eType, const OUString &rResourceId) |
Guarded initialization of the specified icon in the maIcons container. More... | |
Private Attributes | |
Color | maBackgroundColor |
::std::vector< GradientDescriptor > | maGradients |
::std::vector< BitmapEx > | maIcons |
::std::vector< Color > | maColor |
Collection of colors and styles that are used to paint the slide sorter view.
Definition at line 38 of file SlsTheme.hxx.
Definition at line 59 of file SlsTheme.hxx.
Enumerator | |
---|---|
Font_PageNumber | |
Font_PageCount |
Definition at line 51 of file SlsTheme.hxx.
|
strong |
Enumerator | |
---|---|
Border1 | |
Border2 | |
Fill1 | |
Fill2 |
Definition at line 83 of file SlsTheme.hxx.
Definition at line 73 of file SlsTheme.hxx.
Enumerator | |
---|---|
Icon_RawShadow | |
Icon_RawInsertShadow | |
Icon_HideSlideOverlay | |
Icon_FocusBorder | |
IconType_Size_ |
Definition at line 102 of file SlsTheme.hxx.
sd::slidesorter::view::Theme::Theme | ( | const std::shared_ptr< controller::Properties > & | rpProperties | ) |
Definition at line 59 of file SlsTheme.cxx.
References Color_Background, Color_PageNumberBrightBackground, Color_PageNumberDarkBackground, Color_PageNumberDefault, Color_PageNumberHighContrast, Color_PageNumberHover, Color_PreviewBorder, ColorType_Size_, maBackgroundColor, maColor, Update(), and sd::slidesorter::view::White.
Definition at line 156 of file SlsTheme.cxx.
|
static |
Definition at line 118 of file SlsTheme.cxx.
References eType, Font_PageCount, Font_PageNumber, Application::GetSettings(), Size::Height(), OutputDevice::LogicToPixel(), OutputDevice::PixelToLogic(), WEIGHT_BOLD, WEIGHT_NORMAL, and Size::Width().
Referenced by sd::slidesorter::view::InsertionIndicatorOverlay::PaintPageCount().
|
private |
Definition at line 213 of file SlsTheme.cxx.
References eType, and maGradients.
Referenced by GetGradientColor(), SetGradient(), and Update().
Color sd::slidesorter::view::Theme::GetGradientColor | ( | const GradientColorType | eType, |
const GradientColorClass | eClass | ||
) |
Definition at line 164 of file SlsTheme.cxx.
References Border1, Border2, eType, Fill1, Fill2, GetGradient(), sd::slidesorter::view::Theme::GradientDescriptor::maBorderColor1, sd::slidesorter::view::Theme::GradientDescriptor::maBorderColor2, sd::slidesorter::view::Theme::GradientDescriptor::maFillColor1, and sd::slidesorter::view::Theme::GradientDescriptor::maFillColor2.
Definition at line 202 of file SlsTheme.cxx.
|
private |
Guarded initialization of the specified icon in the maIcons container.
Definition at line 224 of file SlsTheme.cxx.
References eType, and maIcons.
Referenced by Update().
void sd::slidesorter::view::Theme::SetGradient | ( | const GradientColorType | eType, |
const Color | aBaseColor, | ||
const sal_Int32 | nSaturationOverride, | ||
const sal_Int32 | nBrightnessOverride, | ||
const sal_Int32 | nFillStartOffset, | ||
const sal_Int32 | nFillEndOffset, | ||
const sal_Int32 | nBorderStartOffset, | ||
const sal_Int32 | nBorderEndOffset | ||
) |
Definition at line 180 of file SlsTheme.cxx.
References sd::slidesorter::view::ChangeLuminance(), eType, GetGradient(), sd::slidesorter::view::HGBAdapt(), sd::slidesorter::view::Theme::GradientDescriptor::maBorderColor1, sd::slidesorter::view::Theme::GradientDescriptor::maBorderColor2, sd::slidesorter::view::Theme::GradientDescriptor::maFillColor1, and sd::slidesorter::view::Theme::GradientDescriptor::maFillColor2.
Referenced by Update().
void sd::slidesorter::view::Theme::Update | ( | const std::shared_ptr< controller::Properties > & | rpProperties | ) |
Call this method to update some colors as response to a change of a system color change.
Definition at line 74 of file SlsTheme.cxx.
References sd::slidesorter::view::Black, Color_Background, Color_PageCountFontColor, Color_Selection, GetGradient(), Gradient_FocusedPage, Gradient_MouseOverPage, Gradient_MouseOverSelected, Gradient_MouseOverSelectedAndFocusedPage, Gradient_NormalPage, Gradient_SelectedAndFocusedPage, Gradient_SelectedPage, GradientColorType_Size_, Icon_FocusBorder, Icon_HideSlideOverlay, Icon_RawInsertShadow, Icon_RawShadow, IconType_Size_, InitializeIcon(), Color::IsBright(), maBackgroundColor, maColor, sd::slidesorter::view::Theme::GradientDescriptor::maFillColor1, sd::slidesorter::view::Theme::GradientDescriptor::maFillColor2, maGradients, maIcons, SetGradient(), and sd::slidesorter::view::White.
Referenced by Theme().
|
private |
Definition at line 121 of file SlsTheme.hxx.
|
private |
Definition at line 124 of file SlsTheme.hxx.
Referenced by GetColor(), Theme(), and Update().
|
private |
Definition at line 122 of file SlsTheme.hxx.
Referenced by GetGradient(), and Update().
|
private |
Definition at line 123 of file SlsTheme.hxx.
Referenced by GetIcon(), InitializeIcon(), and Update().