From cfcbbfaeb4cfee5ffeb968dc21d1c266a870d89f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 Dec 2016 13:15:43 +0200 Subject: remove unnecessary casting in BrowseBox::pDataWin member Change-Id: I1187691c19808c53ff3839cfd8892ab06d36053e Reviewed-on: https://gerrit.libreoffice.org/32381 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svtools/brwbox.hxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index 6a97897aff4a..237ee5cbf6b9 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -197,9 +197,9 @@ public: static const sal_uInt16 HandleColumnId = 0; private: - VclPtr pDataWin; // window to display data rows - VclPtr pVScroll; // vertical scrollbar - VclPtr aHScroll; // horizontal scrollbar + VclPtr pDataWin; // window to display data rows + VclPtr pVScroll; // vertical scrollbar + VclPtr aHScroll; // horizontal scrollbar long nDataRowHeight; // height of a single data-row sal_uInt16 nTitleLines; // number of lines in title row @@ -356,8 +356,7 @@ protected: virtual void VisibleRowsChanged( long nNewTopRow, sal_uInt16 nNumRows); // number of visible rows in the window (incl. "truncated" rows) - sal_uInt16 GetVisibleRows() - { return (sal_uInt16)((pDataWin->GetOutputSizePixel().Height() - 1 )/ GetDataRowHeight() + 1); } + sal_uInt16 GetVisibleRows(); long GetTopRow() { return nTopRow; } sal_uInt16 GetFirstVisibleColNumber() const { return nFirstCol; } @@ -436,7 +435,7 @@ public: // map-mode and font control void SetFont( const vcl::Font& rNewFont ); - const vcl::Font& GetFont() const { return pDataWin->GetFont(); } + const vcl::Font& GetFont() const; void SetTitleFont( const vcl::Font& rNewFont ) { Control::SetFont( rNewFont ); } @@ -505,7 +504,7 @@ public: bool IsResizing() const { return bResizing; } // access to positions of fields, column and rows - vcl::Window& GetDataWindow() const { return *pDataWin; } + vcl::Window& GetDataWindow() const; Rectangle GetRowRectPixel( long nRow ) const; Rectangle GetFieldRectPixel( long nRow, sal_uInt16 nColId, bool bRelToBrowser = true) const; -- cgit