summaryrefslogtreecommitdiff
path: root/svtools/inc
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-19 10:46:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-19 21:34:15 +0200
commit5afba3e12c8d4eb1ebb8e087134eb87593bb017a (patch)
tree065feaadfc8b8da456d0707358bb706c9f90e1e0 /svtools/inc
parent73933ed0a207f1cf210cc4a7d329755bd885f871 (diff)
use tools::Long in svtools
Change-Id: I2b26da23e625e643dc2bb5393abff3671c457884 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104518 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/inc')
-rw-r--r--svtools/inc/table/tablecontrol.hxx4
-rw-r--r--svtools/inc/table/tablecontrolinterface.hxx8
2 files changed, 6 insertions, 6 deletions
diff --git a/svtools/inc/table/tablecontrol.hxx b/svtools/inc/table/tablecontrol.hxx
index 1e780440a05a..7af537b9c19c 100644
--- a/svtools/inc/table/tablecontrol.hxx
+++ b/svtools/inc/table/tablecontrol.hxx
@@ -135,8 +135,8 @@ namespace svt::table
virtual vcl::Window* GetWindowInstance() override;
virtual sal_Int32 GetAccessibleControlCount() const override;
virtual bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint ) override;
- virtual long GetRowCount() const override;
- virtual long GetColumnCount() const override;
+ virtual tools::Long GetRowCount() const override;
+ virtual tools::Long GetColumnCount() const override;
virtual bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_Int32& _rnColPos, const Point& _rPoint ) override;
virtual tools::Rectangle calcHeaderRect( bool _bIsColumnBar ) override;
virtual tools::Rectangle calcHeaderCellRect( bool _bIsColumnBar, sal_Int32 nPos) override;
diff --git a/svtools/inc/table/tablecontrolinterface.hxx b/svtools/inc/table/tablecontrolinterface.hxx
index 69670d2bdaa6..5314b2952381 100644
--- a/svtools/inc/table/tablecontrolinterface.hxx
+++ b/svtools/inc/table/tablecontrolinterface.hxx
@@ -107,7 +107,7 @@ namespace svt::table
/** the start of the column, in pixels. Might be negative, in case the column is scrolled out of the visible
area. Note: see below.
*/
- long nStartPixel;
+ tools::Long nStartPixel;
/** the end of the column, in pixels, plus 1. Effectively, this is the accumulated width of all columns
up to the current one.
@@ -120,7 +120,7 @@ namespace svt::table
gap. So these doc comments are inconsistent. How
surprising.
*/
- long nEndPixel;
+ tools::Long nEndPixel;
ColumnMetrics()
:nStartPixel(0)
@@ -128,7 +128,7 @@ namespace svt::table
{
}
- ColumnMetrics( long const i_start, long const i_end )
+ ColumnMetrics( tools::Long const i_start, tools::Long const i_end )
:nStartPixel( i_start )
,nEndPixel( i_end )
{
@@ -215,7 +215,7 @@ namespace svt::table
virtual void invalidate( TableArea const i_what ) = 0;
/// calculates a width, given in pixels, into an AppFont-based width
- virtual long pixelWidthToAppFont( long const i_pixels ) const = 0;
+ virtual tools::Long pixelWidthToAppFont( tools::Long const i_pixels ) const = 0;
/// shows a tracking rectangle
virtual void showTracking( tools::Rectangle const & i_location, ShowTrackFlags const i_flags ) = 0;