summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-06-15 14:01:12 +0200
committerJan Holesovsky <kendy@suse.cz>2013-06-15 14:42:09 +0200
commit0342b099d7079c8246684c8bafd79d98172ae029 (patch)
tree9cf53d6ae4db2b07f4887992cc1a143eaa791a2b /include
parentKill unused TBX_UPDATER_MODE_NONE. (diff)
downloadcore-0342b099d7079c8246684c8bafd79d98172ae029.tar.gz
core-0342b099d7079c8246684c8bafd79d98172ae029.zip
sidebar: Make the color toolbox updater rendering more universal.
Render the color preview bigger if we have space for that. Change-Id: I5bbe5edbb8e354fc3009935d3ed6090271b72bf7
Diffstat (limited to 'include')
-rw-r--r--include/vcl/toolbox.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index 9c619ea35afd..e3e2ff866350 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -400,6 +400,9 @@ public:
Rectangle GetItemRect( sal_uInt16 nItemId ) const;
Rectangle GetItemPosRect( sal_uInt16 nPos ) const;
+ /// Returns size of the bitmap / text that is inside this toolbox item.
+ Size GetItemContentSize( sal_uInt16 nItemId ) const;
+
/// Retrieves the optimal position to place a popup window for this item (subtoolbar or dropdown)
Point GetItemPopupPosition( sal_uInt16 nItemId, const Size& rSize ) const;