diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-20 19:45:16 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-21 10:07:01 +0900 |
commit | 0dac111a3249b65eb512403897855f9d9b226f39 (patch) | |
tree | 18e1dedca566dce5c1a4623df79fdcc71949241f /include | |
parent | 68d06f69b56611bc6c95c1c2e8af400c7985a8fc (diff) |
store the paint rect in the SvViewDataEntry for SvTreeListBox
SvViewDataEntry is provided to the item when painting. If we send
the whole rect to the item, it can make better decisions when
painting. Extending or changing the method contract would be too
risky so send this information this way.
Change-Id: I985680a8d053990d992d77e4310853321c0de787
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/viewdataentry.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/svtools/viewdataentry.hxx b/include/svtools/viewdataentry.hxx index b24910b7ce72..8d39022b16ad 100644 --- a/include/svtools/viewdataentry.hxx +++ b/include/svtools/viewdataentry.hxx @@ -52,6 +52,7 @@ class SVT_DLLPUBLIC SvViewDataEntry bool mbFocused:1; bool mbCursored:1; bool mbSelectable:1; + Rectangle maPaintRectangle; public: SvViewDataEntry(); @@ -74,6 +75,10 @@ public: const SvViewDataItem* GetItem(size_t nPos) const; SvViewDataItem* GetItem(size_t nPos); + + void SetPaintRectangle(Rectangle aRectangle); + Rectangle GetPaintRectangle() const; + }; #endif |