1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSTHEME_HXX
21 #define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_VIEW_SLSTHEME_HXX
23 #include <vcl/bitmapex.hxx>
24 #include <tools/color.hxx>
28 namespace vcl
{ class Font
; }
30 namespace sd
{ namespace slidesorter
{ namespace controller
{
34 namespace sd
{ namespace slidesorter
{ namespace view
{
36 const int Theme_FocusIndicatorWidth
= 3;
38 /** Collection of colors and styles that are used to paint the slide sorter
44 Theme (const std::shared_ptr
<controller::Properties
>& rpProperties
);
46 /** Call this method to update some colors as response to a change of
47 a system color change.
50 const std::shared_ptr
<controller::Properties
>& rpProperties
);
52 // BitmapEx GetInsertIndicatorIcon() const;
58 static std::shared_ptr
<vcl::Font
> GetFont (
60 const OutputDevice
& rDevice
);
64 Color_PageNumberDefault
,
65 Color_PageNumberHover
,
66 Color_PageNumberHighContrast
,
67 Color_PageNumberBrightBackground
,
68 Color_PageNumberDarkBackground
,
71 Color_PageCountFontColor
,
74 Color
GetColor (const ColorType eType
);
76 enum GradientColorType
{
78 Gradient_SelectedPage
,
79 Gradient_SelectedAndFocusedPage
,
80 Gradient_MouseOverPage
,
81 Gradient_MouseOverSelected
,
82 Gradient_MouseOverSelectedAndFocusedPage
,
84 GradientColorType_Size_
86 enum class GradientColorClass
{
92 Color
GetGradientColor (
93 const GradientColorType eType
,
94 const GradientColorClass eClass
);
96 const GradientColorType eType
,
97 const Color aBaseColor
,
98 const sal_Int32 nSaturationOverride
,
99 const sal_Int32 nBrightnessOverride
,
100 const sal_Int32 nFillStartOffset
,
101 const sal_Int32 nFillEndOffset
,
102 const sal_Int32 nBorderStartOffset
,
103 const sal_Int32 nBorderEndOffset
);
108 Icon_RawInsertShadow
,
109 Icon_HideSlideOverlay
,
113 const BitmapEx
& GetIcon (const IconType eType
);
116 class GradientDescriptor
121 Color maBorderColor1
;
122 Color maBorderColor2
;
124 Color maBackgroundColor
;
125 ::std::vector
<GradientDescriptor
> maGradients
;
126 ::std::vector
<BitmapEx
> maIcons
;
127 ::std::vector
<Color
> maColor
;
129 GradientDescriptor
& GetGradient (const GradientColorType eType
);
130 /** Guarded initialization of the specified icon in the maIcons
133 void InitializeIcon(const IconType eType
, const OUString
& rResourceId
);
136 } } } // end of namespace ::sd::slidesorter::view
140 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */