diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-19 15:17:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-20 08:04:35 +0200 |
commit | b225980d2d65694278c9ed89512fbe21b08febd6 (patch) | |
tree | acd7e008fdabbed097fd97f6c4ba8ddc366946bb /sc/source/ui/inc/preview.hxx | |
parent | 6eefea359fe1e51adfd4a2002614013a7c060a33 (diff) |
use tools::Long in sc
Change-Id: I8f37a8d1174ed816df971b8cee036d4e88d4a7fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104526
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/inc/preview.hxx')
-rw-r--r-- | sc/source/ui/inc/preview.hxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sc/source/ui/inc/preview.hxx b/sc/source/ui/inc/preview.hxx index 5459718f02b7..ecb6a9646106 100644 --- a/sc/source/ui/inc/preview.hxx +++ b/sc/source/ui/inc/preview.hxx @@ -34,7 +34,7 @@ class SAL_DLLPUBLIC_RTTI ScPreview : public vcl::Window private: ScMarkData::MarkedTabsType maSelectedTabs; // set: - long nPageNo; // Pages in document + tools::Long nPageNo; // Pages in document sal_uInt16 nZoom; // set Zoom Point aOffset; // positive @@ -44,11 +44,11 @@ private: std::vector<long> nPages; std::vector<long> nFirstAttr; SCTAB nTab; // Sheet - long nTabPage; // Page of sheet - long nTabStart; // First (real) page of the sheet - long nDisplayStart; // same as above, relative to the start of counting + tools::Long nTabPage; // Page of sheet + tools::Long nTabStart; // First (real) page of the sheet + tools::Long nDisplayStart; // same as above, relative to the start of counting DateTime aDateTime; - long nTotalPages; + tools::Long nTotalPages; ScPrintState aState; std::unique_ptr<ScPreviewLocationData> pLocationData; // stores table layout for accessibility API std::unique_ptr<FmFormView> pDrawView; @@ -81,14 +81,14 @@ private: ScRange aPageArea; std::vector<long> mvRight; - long nLeftPosition; - long mnScale; + tools::Long nLeftPosition; + tools::Long mnScale; SCCOL nColNumberButtonDown; Point aButtonDownChangePoint; Point aButtonDownPt; Point aButtonUpPt; - long nHeaderHeight; - long nFooterHeight; + tools::Long nHeaderHeight; + tools::Long nFooterHeight; void TestLastPage(); void CalcPages(); @@ -123,31 +123,31 @@ public: SC_DLLPUBLIC void DataChanged(bool bNewTime); // Instead of calling Invalidate void DoInvalidate(); - void SetXOffset( long nX ); - void SetYOffset( long nY ); + void SetXOffset( tools::Long nX ); + void SetYOffset( tools::Long nY ); void SetZoom(sal_uInt16 nNewZoom); - SC_DLLPUBLIC void SetPageNo( long nPage ); + SC_DLLPUBLIC void SetPageNo( tools::Long nPage ); bool GetPageMargins() const { return bPageMargin; } void SetPageMargins( bool bVal ) { bPageMargin = bVal; } - void DrawInvert( long nDragPos, PointerStyle nFlags ); - void DragMove( long nDragMovePos, PointerStyle nFlags ); + void DrawInvert( tools::Long nDragPos, PointerStyle nFlags ); + void DragMove( tools::Long nDragMovePos, PointerStyle nFlags ); const ScPreviewLocationData& GetLocationData(); OUString GetPosString(); - long GetPageNo() const { return nPageNo; } + tools::Long GetPageNo() const { return nPageNo; } sal_uInt16 GetZoom() const { return nZoom; } const Point& GetOffset() const { return aOffset; } SCTAB GetTab() { if (!bValid) { CalcPages(); RecalcPages(); } return nTab; } - long GetTotalPages() { if (!bValid) { CalcPages(); RecalcPages(); } return nTotalPages; } + tools::Long GetTotalPages() { if (!bValid) { CalcPages(); RecalcPages(); } return nTotalPages; } bool AllTested() const { return bValid && nTabsTested >= nTabCount; } sal_uInt16 GetOptimalZoom(bool bWidthOnly); - SC_DLLPUBLIC long GetFirstPage(SCTAB nTab); + SC_DLLPUBLIC tools::Long GetFirstPage(SCTAB nTab); void CalcAll() { CalcPages(); } void SetInGetState(bool bSet) { bInGetState = bSet; } |