summaryrefslogtreecommitdiff
path: root/sd/source/ui/toolpanel/TitleBar.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/toolpanel/TitleBar.cxx')
-rwxr-xr-xsd/source/ui/toolpanel/TitleBar.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/toolpanel/TitleBar.cxx b/sd/source/ui/toolpanel/TitleBar.cxx
index de49b7a6abb5..583285b6f54a 100755
--- a/sd/source/ui/toolpanel/TitleBar.cxx
+++ b/sd/source/ui/toolpanel/TitleBar.cxx
@@ -69,7 +69,7 @@ TitleBar::TitleBar ( ::Window* pParent, const String& rsTitle, TitleBarType eTyp
, mpDevice(new VirtualDevice (*this))
, mbIsExpandable (bIsExpandable)
{
- EnableMapMode (FALSE);
+ EnableMapMode (sal_False);
SetBackground (Wallpaper());
@@ -254,7 +254,7 @@ Image TitleBar::GetExpansionIndicator (void) const
bool bHighContrastMode (GetSettings().GetStyleSettings().GetHighContrastMode() != 0);
if (mbIsExpandable)
{
- USHORT nResourceId = 0;
+ sal_uInt16 nResourceId = 0;
switch (meType)
{
case TBT_SUB_CONTROL_HEADLINE:
@@ -310,7 +310,7 @@ void TitleBar::PaintFocusIndicator (const Rectangle& rTextBox)
if (mbFocused)
{
Rectangle aTextPixelBox (mpDevice->LogicToPixel (rTextBox));
- mpDevice->EnableMapMode (FALSE);
+ mpDevice->EnableMapMode (sal_False);
Rectangle aBox (rTextBox);
aBox.Top() -= 1;
aBox.Bottom() += 1;
@@ -327,7 +327,7 @@ void TitleBar::PaintFocusIndicator (const Rectangle& rTextBox)
mpDevice->SetLineColor (COL_BLACK);
mpDevice->DrawPolyLine (Polygon(aTextPixelBox), aDottedStyle);
- mpDevice->EnableMapMode (FALSE);
+ mpDevice->EnableMapMode (sal_False);
}
else
HideFocus ();
@@ -372,7 +372,7 @@ void TitleBar::PaintText (const Rectangle& rTextBox)
-USHORT TitleBar::GetTextStyle (void)
+sal_uInt16 TitleBar::GetTextStyle (void)
{
if(IsEnabled())
{
@@ -403,9 +403,9 @@ void TitleBar::PaintBackground (const Rectangle& rTitleBarBox)
if (mbExpanded)
{
// Make the color a little bit darker.
- aColor.SetRed(UINT8(((UINT16)aColor.GetRed()) * 8 / 10));
- aColor.SetGreen(UINT8(((UINT16)aColor.GetGreen()) * 8 / 10));
- aColor.SetBlue(UINT8(((UINT16)aColor.GetBlue()) * 8 / 10));
+ aColor.SetRed(sal_uInt8(((sal_uInt16)aColor.GetRed()) * 8 / 10));
+ aColor.SetGreen(sal_uInt8(((sal_uInt16)aColor.GetGreen()) * 8 / 10));
+ aColor.SetBlue(sal_uInt8(((sal_uInt16)aColor.GetBlue()) * 8 / 10));
}
mpDevice->SetFillColor (aColor);