diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-11 09:39:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-11 14:01:00 +0200 |
commit | 7430dfe2a4a3b13ffa248bf14a3a2ca87993f48d (patch) | |
tree | 3b9607225ec2df9934b71df223c482ca7a069ff1 /sfx2 | |
parent | 3b835b8d546ca16d7edcb06eda017e276383ea0f (diff) |
loplugin:unusedmethods
Change-Id: I34009aabf0befb346470b5c0d96ad8fc476b7c4e
Reviewed-on: https://gerrit.libreoffice.org/60300
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dialoghelper.cxx | 38 | ||||
-rw-r--r-- | sfx2/source/dialog/itemconnect.cxx | 39 |
2 files changed, 0 insertions, 77 deletions
diff --git a/sfx2/source/dialog/dialoghelper.cxx b/sfx2/source/dialog/dialoghelper.cxx index 9e8bcd2f69b2..a0d9fa36ccd9 100644 --- a/sfx2/source/dialog/dialoghelper.cxx +++ b/sfx2/source/dialog/dialoghelper.cxx @@ -14,44 +14,6 @@ #include <vcl/settings.hxx> #include <vector> -//these tab pages both have the same basic layout with a preview on the -//right, get both of their non-preview areas to request the same size -//so that the preview appears in the same place in each one so -//flipping between tabs isn't distracting as it jumps around -void setPreviewsToSamePlace(vcl::Window const *pParent, VclBuilderContainer *pPage) -{ - vcl::Window *pOurGrid = pPage->get<vcl::Window>("maingrid"); - if (!pOurGrid) - return; - - std::vector<vcl::Window*> aGrids; - aGrids.push_back(pOurGrid); - - for (vcl::Window* pChild = pParent->GetWindow(GetWindowType::FirstChild); pChild; - pChild = pChild->GetWindow(GetWindowType::Next)) - { - VclBuilderContainer *pPeer = dynamic_cast<VclBuilderContainer*>(pChild); - if (!pPeer || pPeer == pPage || !pPeer->hasBuilder()) - continue; - - vcl::Window *pOtherGrid = pPeer->get<vcl::Window>("maingrid"); - if (!pOtherGrid) - continue; - - aGrids.push_back(pOtherGrid); - } - - if (aGrids.size() > 1) - { - std::shared_ptr<VclSizeGroup> xGroup(std::make_shared<VclSizeGroup>()); - for (auto const& grid : aGrids) - { - grid->remove_from_all_size_groups(); - grid->add_to_size_group(xGroup); - } - } -} - Size getParagraphPreviewOptimalSize(const OutputDevice& rReference) { return rReference.LogicToPixel(Size(68 , 112), MapMode(MapUnit::MapAppFont)); diff --git a/sfx2/source/dialog/itemconnect.cxx b/sfx2/source/dialog/itemconnect.cxx index 217fef3f09c5..d4686c709e2a 100644 --- a/sfx2/source/dialog/itemconnect.cxx +++ b/sfx2/source/dialog/itemconnect.cxx @@ -139,45 +139,6 @@ struct MultiControlWrapperHelper_Impl ControlWrpVec maVec; }; -MultiControlWrapperHelper::MultiControlWrapperHelper() : - mxImpl( new MultiControlWrapperHelper_Impl ) -{ -} - -MultiControlWrapperHelper::~MultiControlWrapperHelper() -{ -} - -void MultiControlWrapperHelper::RegisterControlWrapper( ControlWrapperBase& rWrapper ) -{ - mxImpl->maVec.push_back( &rWrapper ); -} - -void MultiControlWrapperHelper::ModifyControl( TriState eShow ) -{ - for (auto const& elem : mxImpl->maVec) - elem->ModifyControl( eShow ); -} - -bool MultiControlWrapperHelper::IsControlDontKnow() const -{ - if (mxImpl->maVec.empty()) - return false; - for (auto const& elem : mxImpl->maVec) - { - if (!elem->IsControlDontKnow()) - return false; - } - return true; -} - -void MultiControlWrapperHelper::SetControlDontKnow( bool bSet ) -{ - for (auto const& elem : mxImpl->maVec) - elem->SetControlDontKnow(bSet); -} - - // Base connection classes |