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/Accessibility/AccessibleDocumentPagePreview.cxx | |
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/Accessibility/AccessibleDocumentPagePreview.cxx')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index d7a9ebb5845a..568b4a2c59ee 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -653,7 +653,7 @@ public: virtual bool ReplaceChild ( ::accessibility::AccessibleShape* pCurrentChild, const css::uno::Reference< css::drawing::XShape >& _rxShape, - const long _nIndex, + const tools::Long _nIndex, const ::accessibility::AccessibleShapeTreeInfo& _rShapeTreeInfo ) override; @@ -802,7 +802,7 @@ void ScShapeChildren::VisAreaChanged() const bool ScShapeChildren::ReplaceChild (::accessibility::AccessibleShape* /* pCurrentChild */, const css::uno::Reference< css::drawing::XShape >& /* _rxShape */, - const long /* _nIndex */, const ::accessibility::AccessibleShapeTreeInfo& /* _rShapeTreeInfo */) + const tools::Long /* _nIndex */, const ::accessibility::AccessibleShapeTreeInfo& /* _rShapeTreeInfo */) { OSL_FAIL("should not be called in the page preview"); return false; @@ -1079,18 +1079,18 @@ struct ScPagePreviewCountData // order is background shapes, header, table or notes, footer, foreground shapes, controls tools::Rectangle aVisRect; - long nBackShapes; - long nHeaders; - long nTables; - long nNoteParagraphs; - long nFooters; - long nForeShapes; - long nControls; + tools::Long nBackShapes; + tools::Long nHeaders; + tools::Long nTables; + tools::Long nNoteParagraphs; + tools::Long nFooters; + tools::Long nForeShapes; + tools::Long nControls; ScPagePreviewCountData( const ScPreviewLocationData& rData, const vcl::Window* pSizeWindow, const ScNotesChildren* pNotesChildren, const ScShapeChildren* pShapeChildren ); - long GetTotal() const + tools::Long GetTotal() const { return nBackShapes + nHeaders + nTables + nNoteParagraphs + nFooters + nForeShapes + nControls; } @@ -1347,7 +1347,7 @@ sal_Int32 SAL_CALL ScAccessibleDocumentPagePreview::getAccessibleChildCount() SolarMutexGuard aGuard; IsObjectValid(); - long nRet = 0; + tools::Long nRet = 0; if ( mpViewShell ) { ScPagePreviewCountData aCount( mpViewShell->GetLocationData(), mpViewShell->GetWindow(), GetNotesChildren(), GetShapeChildren() ); |