From a48cf78fab4a283ef43c091e8c324c968377f9db Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 30 Sep 2013 14:44:37 +0100 Subject: merge queue_layout and queue_resize so that any window derived class, and not just dialogs, can trigger layouting of their children. Merge together the handful of hacked-up impls of this. Do that then for the sidebar PanelLayout so that when the label of the custom animation frame changes that the frame allocates enough space for the new label to display fully Change-Id: I9a95f6c3f60cd6cea47656e66cb9ffcc154a3a5a --- cui/source/inc/treeopt.hxx | 2 +- cui/source/options/treeopt.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cui') diff --git a/cui/source/inc/treeopt.hxx b/cui/source/inc/treeopt.hxx index 396834566c87..adf6563a630e 100644 --- a/cui/source/inc/treeopt.hxx +++ b/cui/source/inc/treeopt.hxx @@ -186,7 +186,7 @@ private: VectorOfNodes LoadNodes( Module* pModule, const OUString& rExtensionId ); void InsertNodes( const VectorOfNodes& rNodeList ); - virtual void queue_layout(); + virtual void queue_resize(); void SetPaneSize(Window *pPane); protected: diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 3239304719b9..01c9f22a2276 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -930,7 +930,7 @@ bool OfaTreeOptionsDialog::hasTreePendingLayout() const return maTreeLayoutTimer.IsActive(); } -void OfaTreeOptionsDialog::queue_layout() +void OfaTreeOptionsDialog::queue_resize() { if (hasTreePendingLayout()) return; -- cgit