TabItem.cxx (37fee4fd) TabItem.cxx (13e1c3b4)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 46 unchanged lines hidden (view full) ---

55{
56}
57
58
59
60
61void TabItem::Paint (const Rectangle& rUpdateArea)
62{
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 46 unchanged lines hidden (view full) ---

55{
56}
57
58
59
60
61void TabItem::Paint (const Rectangle& rUpdateArea)
62{
63 OSL_TRACE("TabItem::Paint");
64 switch(mePaintType)
65 {
66 case PT_Theme:
67 default:
68 {
69 const bool bIsSelected (IsChecked());
70 const bool bIsHighlighted (IsMouseOver() || HasFocus());
71 DrawHelper::DrawRoundedRectangle(

--- 11 unchanged lines hidden (view full) ---

83 ? BMP_COLOR_HIGHCONTRAST
84 : BMP_COLOR_NORMAL));
85 const Size aIconSize (aIcon.GetSizePixel());
86 const Point aIconLocation(
87 (GetSizePixel().Width() - aIconSize.Width())/2,
88 (GetSizePixel().Height() - aIconSize.Height())/2);
89 DrawImage(
90 aIconLocation,
63 switch(mePaintType)
64 {
65 case PT_Theme:
66 default:
67 {
68 const bool bIsSelected (IsChecked());
69 const bool bIsHighlighted (IsMouseOver() || HasFocus());
70 DrawHelper::DrawRoundedRectangle(

--- 11 unchanged lines hidden (view full) ---

82 ? BMP_COLOR_HIGHCONTRAST
83 : BMP_COLOR_NORMAL));
84 const Size aIconSize (aIcon.GetSizePixel());
85 const Point aIconLocation(
86 (GetSizePixel().Width() - aIconSize.Width())/2,
87 (GetSizePixel().Height() - aIconSize.Height())/2);
88 DrawImage(
89 aIconLocation,
91 aIcon);
90 aIcon,
91 IsEnabled() ? 0 : IMAGE_DRAW_DISABLE);
92 break;
93 }
94 case PT_Native:
95 Button::Paint(rUpdateArea);
92 break;
93 }
94 case PT_Native:
95 Button::Paint(rUpdateArea);
96 // DrawImage(maIconPosition, maIcon);
97 break;
98 }
99}
100
101
102
103
104void TabItem::MouseMove (const MouseEvent& rEvent)

--- 46 unchanged lines hidden ---
96 break;
97 }
98}
99
100
101
102
103void TabItem::MouseMove (const MouseEvent& rEvent)

--- 46 unchanged lines hidden ---