From 44daaebf835bb60fb7e442e928cd30191f15af52 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 11 Nov 2015 10:43:45 +0000 Subject: Resolves: tdf#95723 arrange GridControl buttons to be always visible as long as there's space for them Change-Id: Id96069b5c50483309611381afdf62bb0d30e9c38 --- include/svx/gridctrl.hxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/svx') diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx index b795a8ed97d8..5046f638e7d8 100644 --- a/include/svx/gridctrl.hxx +++ b/include/svx/gridctrl.hxx @@ -161,7 +161,6 @@ public: VclPtr m_aNextBtn; // ImageButton for 'go to the next record' VclPtr m_aLastBtn; // ImageButton for 'go to the last record' VclPtr m_aNewBtn; // ImageButton for 'go to a new record' - sal_uInt16 m_nDefaultWidth; sal_Int32 m_nCurrentPos; bool m_bPositioning; // protect PositionDataSource against recursion @@ -191,7 +190,7 @@ public: void InvalidateState(sal_uInt16 nWhich) {SetState(nWhich);} void SetState(sal_uInt16 nWhich); bool GetState(sal_uInt16 nWhich) const; - sal_uInt16 GetDefaultWidth() const {return m_nDefaultWidth;} + sal_uInt16 ArrangeControls(); protected: virtual void Resize() override; @@ -200,7 +199,6 @@ public: private: DECL_LINK_TYPED(OnClick, Button*, void); - sal_uInt16 ArrangeControls(); void PositionDataSource(sal_Int32 nRecord); }; -- cgit