summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-11-10 23:01:48 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-11-12 10:25:11 +0000
commit014b0674a17845ac320a4d3de6c7497ad803f17d (patch)
tree75f04c34ab12457f925a085f1f647630696e377d /include/svtools
parentf92c53f96dda175c971278a141a72dfd0e978466 (diff)
Encourage ValueSet to render a legend as well as an icon.
Change-Id: I83688a70b864bddb2af0a0a5b34968099c49d112 Reviewed-on: https://gerrit.libreoffice.org/19913 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/valueset.hxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx
index b51587b442a1..d63146cdd13c 100644
--- a/include/svtools/valueset.hxx
+++ b/include/svtools/valueset.hxx
@@ -307,12 +307,17 @@ public:
void DoubleClick();
virtual void UserDraw( const UserDrawEvent& rUDEvt );
+ /// Insert @rImage item.
void InsertItem(sal_uInt16 nItemId, const Image& rImage, size_t nPos = VALUESET_APPEND);
+ /// Insert @rImage item with @rStr as either a legend or tooltip depending on @bShowLegend.
void InsertItem(sal_uInt16 nItemId, const Image& rImage,
- const OUString& rStr, size_t nPos = VALUESET_APPEND);
+ const OUString& rStr, size_t nPos = VALUESET_APPEND, bool bShowLegend = false);
+ /// Insert an @rColor item with @rStr tooltip.
void InsertItem(sal_uInt16 nItemId, const Color& rColor,
const OUString& rStr, size_t nPos = VALUESET_APPEND);
+ /// Insert an User Drawn item.
void InsertItem(sal_uInt16 nItemId, size_t nPos = VALUESET_APPEND);
+ /// Insert an User Drawn item with @rStr tooltip.
void InsertItem(sal_uInt16 nItemId, const OUString& rStr, size_t nPos = VALUESET_APPEND);
void RemoveItem(sal_uInt16 nItemId);
@@ -336,8 +341,9 @@ public:
return mnUserVisLines;
}
void SetItemWidth( long nItemWidth = 0 );
-
void SetItemHeight( long nLineHeight = 0 );
+ Size GetLargestItemSize();
+ void RecalculateItemSizes();
void SelectItem( sal_uInt16 nItemId );
sal_uInt16 GetSelectItemId() const