summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/TitleBar.cxx
diff options
context:
space:
mode:
authorAndre Fischer <af@apache.org>2013-05-06 13:12:20 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-05-20 11:33:29 +0100
commitd0d5b97d286d20e3573c5ddd6366d3da1889dd85 (patch)
tree720b37ce82dbdd2c9a1051affdba5282d8cb86cc /sfx2/source/sidebar/TitleBar.cxx
parent7f62fc9cb680818d394347cd591cf0bc8dc2fa92 (diff)
Resolves: #i122230# Fixed focus traveling in the sidebar
(cherry picked from commit bab3ddce4b3d5330835494f54b68406335821b76) Conflicts: sfx2/source/sidebar/FocusManager.cxx Change-Id: I8853a92da3c4fe41a0110c630cc6af556ffc2ce4
Diffstat (limited to 'sfx2/source/sidebar/TitleBar.cxx')
-rw-r--r--sfx2/source/sidebar/TitleBar.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/TitleBar.cxx b/sfx2/source/sidebar/TitleBar.cxx
index 6f73636e16ae..76bf7d7821a0 100644
--- a/sfx2/source/sidebar/TitleBar.cxx
+++ b/sfx2/source/sidebar/TitleBar.cxx
@@ -134,6 +134,14 @@ ToolBox& TitleBar::GetToolBox (void)
+const ToolBox& TitleBar::GetToolBox (void) const
+{
+ return maToolBox;
+}
+
+
+
+
void TitleBar::HandleToolBoxItemClick (const sal_uInt16 nItemIndex)
{
(void)nItemIndex;
@@ -182,6 +190,10 @@ void TitleBar::PaintFocus (const Rectangle& rFocusBox)
{
Push(PUSH_FONT | PUSH_TEXTCOLOR | PUSH_LINECOLOR | PUSH_FILLCOLOR);
+ Font aFont(GetFont());
+ aFont.SetWeight(WEIGHT_BOLD);
+ SetFont(aFont);
+
const Rectangle aTextBox (
GetTextRect(
rFocusBox,