summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-05-17 19:39:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-05-20 18:01:17 +0200
commit2140dea1413c9ef8e6e35409a15b0a3ea7149e67 (patch)
treef2f28dfda11cdd4dc982299669be56ec81fc0aab /include
parent259d01a34d27df2fbfd11c3bf6fe9dc508ff6ac2 (diff)
split width/height to allow intercept of how width is calculated
in order to possibly get width on demand Change-Id: I1e6fcb6849705f2b166821516ebe72b179e00ee7 Reviewed-on: https://gerrit.libreoffice.org/72513 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/treelistbox.hxx6
-rw-r--r--include/vcl/viewdataentry.hxx3
2 files changed, 6 insertions, 3 deletions
diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx
index 2f855e0a4b7b..d9c09d086b31 100644
--- a/include/vcl/treelistbox.hxx
+++ b/include/vcl/treelistbox.hxx
@@ -140,8 +140,10 @@ public:
SvLBoxItem();
virtual ~SvLBoxItem();
virtual SvLBoxItemType GetType() const = 0;
- const Size& GetSize(const SvTreeListBox* pView, const SvTreeListEntry* pEntry) const;
- static const Size& GetSize(const SvViewDataEntry* pData, sal_uInt16 nItemPos);
+ int GetWidth(const SvTreeListBox* pView, const SvTreeListEntry* pEntry) const;
+ int GetHeight(const SvTreeListBox* pView, const SvTreeListEntry* pEntry) const;
+ static int GetWidth(const SvViewDataEntry* pData, sal_uInt16 nItemPos);
+ static int GetHeight(const SvViewDataEntry* pData, sal_uInt16 nItemPos);
void Enable(bool bEnabled) { mbDisabled = !bEnabled; }
virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev, vcl::RenderContext& rRenderContext, const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) = 0;
diff --git a/include/vcl/viewdataentry.hxx b/include/vcl/viewdataentry.hxx
index 5cbed9d6e3ea..7967f131b6c6 100644
--- a/include/vcl/viewdataentry.hxx
+++ b/include/vcl/viewdataentry.hxx
@@ -28,7 +28,8 @@
struct SvViewDataItem
{
- Size maSize;
+ int mnWidth = 0;
+ int mnHeight = 0;
};
/**