diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-18 15:22:39 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-19 06:42:05 +0000 |
commit | 727d4dbebaf947593ce5caae6915238c8c4f3da2 (patch) | |
tree | 65aba50668cc9a4a46750e63323bfa26f5f482f3 /reportdesign/source/ui/inc/ViewsWindow.hxx | |
parent | 808c2b9ff52bea3c1e0580e7ac2aa75406d6e2d1 (diff) |
loplugin:unusedmethods in package to rsc
Change-Id: I61c6f56a69891d656a41d3617d0ce2b34d848c84
Reviewed-on: https://gerrit.libreoffice.org/25108
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'reportdesign/source/ui/inc/ViewsWindow.hxx')
-rw-r--r-- | reportdesign/source/ui/inc/ViewsWindow.hxx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/reportdesign/source/ui/inc/ViewsWindow.hxx b/reportdesign/source/ui/inc/ViewsWindow.hxx index d97a5be109d3..8ac2f0313430 100644 --- a/reportdesign/source/ui/inc/ViewsWindow.hxx +++ b/reportdesign/source/ui/inc/ViewsWindow.hxx @@ -71,35 +71,6 @@ namespace rptui } }; - class OWindowPositionCorrector - { - ::std::vector< ::std::pair<VclPtr<vcl::Window>,Point> > m_aChildren; - long m_nDeltaX; - long m_nDeltaY; - public: - OWindowPositionCorrector(vcl::Window* _pWindow,long _nDeltaX, long _nDeltaY) :m_nDeltaX(_nDeltaX), m_nDeltaY(_nDeltaY) - { - sal_uInt16 nCount = _pWindow->GetChildCount(); - m_aChildren.reserve(nCount); - while( nCount ) - { - vcl::Window* pChild = _pWindow->GetChild(--nCount); - m_aChildren.push_back(::std::pair<vcl::Window*,Point>(pChild,pChild->GetPosPixel())); - } - } - ~OWindowPositionCorrector() - { - auto aIter = m_aChildren.begin(); - auto aEnd = m_aChildren.end(); - for (; aIter != aEnd; ++aIter) - { - const Point aPos = aIter->first->GetPosPixel(); - if ( aPos == aIter->second ) - aIter->first->SetPosPixel(Point(m_nDeltaX,m_nDeltaY) + aPos); - } - } - }; - class OViewsWindow : public vcl::Window , public utl::ConfigurationListener , public IMarkedSection |