diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-16 11:24:25 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-16 12:18:56 +0000 |
commit | 051e660b37549fec7cc42e4471ae65a4cefed495 (patch) | |
tree | 720c439d57664224ec579e14a72b5f4ccce391a5 /sd | |
parent | 1d852b32d7ad89b2317c04958060f366f8922ca4 (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 'sd')
-rw-r--r-- | sd/source/ui/accessibility/AccessibleViewForwarder.cxx | 35 | ||||
-rw-r--r-- | sd/source/ui/inc/AccessibleViewForwarder.hxx | 31 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unoobj.cxx | 8 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unoobj.hxx | 2 |
4 files changed, 0 insertions, 76 deletions
diff --git a/sd/source/ui/accessibility/AccessibleViewForwarder.cxx b/sd/source/ui/accessibility/AccessibleViewForwarder.cxx index e4b3c46e8951..8809a743509f 100644 --- a/sd/source/ui/accessibility/AccessibleViewForwarder.cxx +++ b/sd/source/ui/accessibility/AccessibleViewForwarder.cxx @@ -55,11 +55,6 @@ AccessibleViewForwarder::~AccessibleViewForwarder() // empty } -bool AccessibleViewForwarder::IsValid() const -{ - return true; -} - Rectangle AccessibleViewForwarder::GetVisibleArea() const { Rectangle aVisibleArea; @@ -104,36 +99,6 @@ Size AccessibleViewForwarder::LogicToPixel (const Size& rSize) const return Size(); } -/** First subtract the window origin to make the point coordinates relative - to the window and then transform them into internal coordinates. -*/ -Point AccessibleViewForwarder::PixelToLogic (const Point& rPoint) const -{ - OSL_ASSERT (mpView != NULL); - if((sal_uInt32)mnWindowId < mpView->PaintWindowCount()) - { - SdrPaintWindow* pPaintWindow = mpView->GetPaintWindow((sal_uInt32)mnWindowId); - OutputDevice& rOutDev = pPaintWindow->GetOutputDevice(); - Rectangle aBBox (static_cast<vcl::Window&>(rOutDev).GetWindowExtentsRelative(0L)); - return rOutDev.PixelToLogic (rPoint - aBBox.TopLeft()); - } - else - return Point(); -} - -Size AccessibleViewForwarder::PixelToLogic (const Size& rSize) const -{ - OSL_ASSERT (mpView != NULL); - if((sal_uInt32)mnWindowId < mpView->PaintWindowCount()) - { - SdrPaintWindow* pPaintWindow = mpView->GetPaintWindow((sal_uInt32)mnWindowId); - OutputDevice& rOutDev = pPaintWindow->GetOutputDevice(); - return rOutDev.PixelToLogic (rSize); - } - else - return Size(); -} - } // end of namespace accessibility /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/inc/AccessibleViewForwarder.hxx b/sd/source/ui/inc/AccessibleViewForwarder.hxx index d500eb992b4e..704dba20bd42 100644 --- a/sd/source/ui/inc/AccessibleViewForwarder.hxx +++ b/sd/source/ui/inc/AccessibleViewForwarder.hxx @@ -50,14 +50,6 @@ public: //===== IAccessibleViewforwarder ======================================== - /** This method informs you about the state of the forwarder. Do not - use it when the returned value is <false/>. - - @return - Return <true/> if the view forwarder is valid and <false/> else. - */ - virtual bool IsValid() const SAL_OVERRIDE; - /** Returns the area of the underlying document that is visible in the * corresponding window. @@ -89,29 +81,6 @@ public: */ virtual Size LogicToPixel (const Size& rSize) const SAL_OVERRIDE; - /** Transform the specified point from absolute screen coordinates to - internal coordinates. - - @param rPoint - Point in screen coordinates relative to the upper left corner of - the (current) screen. - - @return - The same point but in internal coordinates. - */ - virtual Point PixelToLogic (const Point& rPoint) const SAL_OVERRIDE; - - /** Transform the specified Size from screen coordinates to internal - coordinates. - - @param rSize - Size in screen coordinates. - - @return - The same size but in internal coordinates. - */ - virtual Size PixelToLogic (const Size& rSize) const SAL_OVERRIDE; - protected: SdrPaintView* mpView; sal_uInt16 mnWindowId; diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index 6a37fef2f9bd..7ff746963d04 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -1739,12 +1739,4 @@ void SdXShape::modelChanged( SdrModel* pNewModel ) } } -void SdXShape::pageChanged( SdrPage* ) -{ -} - -void SdXShape::objectChanged( SdrObject* ) -{ -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/unoidl/unoobj.hxx b/sd/source/ui/unoidl/unoobj.hxx index 684a0a70b077..d28d97ba7a25 100644 --- a/sd/source/ui/unoidl/unoobj.hxx +++ b/sd/source/ui/unoidl/unoobj.hxx @@ -77,8 +77,6 @@ public: virtual bool queryAggregation( const com::sun::star::uno::Type & rType, com::sun::star::uno::Any& aAny ) SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE; virtual void modelChanged( SdrModel* pNewModel ) SAL_OVERRIDE; - virtual void pageChanged( SdrPage* pNewPage ) SAL_OVERRIDE; - virtual void objectChanged( SdrObject* pNewObj ) SAL_OVERRIDE; // XInterface virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; |