diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-23 13:15:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-23 11:56:20 +0000 |
commit | cfcbbfaeb4cfee5ffeb968dc21d1c266a870d89f (patch) | |
tree | 10dcfcf2bbfb9e25893d86254756eab1012263ab /include/svtools | |
parent | 0c267bbc2c023ba5c0c905c91c3324aab6ce00cb (diff) |
remove unnecessary casting in BrowseBox::pDataWin member
Change-Id: I1187691c19808c53ff3839cfd8892ab06d36053e
Reviewed-on: https://gerrit.libreoffice.org/32381
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/brwbox.hxx | 13 |
1 files changed, 6 insertions, 7 deletions
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<vcl::Window> pDataWin; // window to display data rows - VclPtr<ScrollBar> pVScroll; // vertical scrollbar - VclPtr<ScrollBar> aHScroll; // horizontal scrollbar + VclPtr<BrowserDataWin> pDataWin; // window to display data rows + VclPtr<ScrollBar> pVScroll; // vertical scrollbar + VclPtr<ScrollBar> 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; |