summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-16 11:24:25 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-16 12:18:56 +0000
commit051e660b37549fec7cc42e4471ae65a4cefed495 (patch)
tree720c439d57664224ec579e14a72b5f4ccce391a5 /sw
parent1d852b32d7ad89b2317c04958060f366f8922ca4 (diff)
loplugin:unusedmethods svx(part2)
Change-Id: I161360e2f3113c4814fe1c2c095e602b2c93dcd7 Reviewed-on: https://gerrit.libreoffice.org/17120 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/accmap.hxx3
-rw-r--r--sw/source/core/access/accmap.cxx39
2 files changed, 0 insertions, 42 deletions
diff --git a/sw/inc/accmap.hxx b/sw/inc/accmap.hxx
index bf9dcd1c613a..19453289d593 100644
--- a/sw/inc/accmap.hxx
+++ b/sw/inc/accmap.hxx
@@ -260,12 +260,9 @@ public:
// IAccessibleViewForwarder
- virtual bool IsValid() const SAL_OVERRIDE;
virtual Rectangle GetVisibleArea() const SAL_OVERRIDE;
virtual Point LogicToPixel (const Point& rPoint) const SAL_OVERRIDE;
virtual Size LogicToPixel (const Size& rSize) const SAL_OVERRIDE;
- virtual Point PixelToLogic (const Point& rPoint) const SAL_OVERRIDE;
- virtual Size PixelToLogic (const Size& rSize) const SAL_OVERRIDE;
// IAccessibleParent
virtual bool ReplaceChild (
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 0716234e84fb..5bbf0db11f43 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -3115,11 +3115,6 @@ void SwAccessibleMap::FireEvents()
}
-bool SwAccessibleMap::IsValid() const
-{
- return true;
-}
-
Rectangle SwAccessibleMap::GetVisibleArea() const
{
MapMode aSrc( MAP_TWIP );
@@ -3164,40 +3159,6 @@ Size SwAccessibleMap::LogicToPixel( const Size& rSize ) const
return aSize;
}
-Point SwAccessibleMap::PixelToLogic( const Point& rPoint ) const
-{
- Point aPoint;
- vcl::Window *pWin = GetShell()->GetWin();
- if( pWin )
- {
- aPoint = pWin->ScreenToOutputPixel( rPoint );
- MapMode aMapMode;
- GetMapMode( aPoint, aMapMode );
- aPoint = pWin->PixelToLogic( aPoint, aMapMode );
- MapMode aSrc( MAP_TWIP );
- MapMode aDest( MAP_100TH_MM );
- aPoint = OutputDevice::LogicToLogic( aPoint, aSrc, aDest );
- }
-
- return aPoint;
-}
-
-Size SwAccessibleMap::PixelToLogic( const Size& rSize ) const
-{
- Size aSize;
- if( GetShell()->GetWin() )
- {
- MapMode aMapMode;
- GetMapMode( Point(0,0), aMapMode );
- aSize = GetShell()->GetWin()->PixelToLogic( rSize, aMapMode );
- MapMode aSrc( MAP_TWIP );
- MapMode aDest( MAP_100TH_MM );
- aSize = OutputDevice::LogicToLogic( aSize, aSrc, aDest );
- }
-
- return aSize;
-}
-
bool SwAccessibleMap::ReplaceChild (
::accessibility::AccessibleShape* pCurrentChild,
const uno::Reference< drawing::XShape >& _rxShape,