summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-05-19 13:35:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-20 12:55:07 +0200
commit8270eb5d5600cc84dbf5f0e339f90c4519ef88bb (patch)
tree6253324edd37e5b13c17436a6378ee58ba6a723b /sd/source
parent4f3dd930324552aec40b333d750ec7b95ff03c26 (diff)
loplugin:unusedmethods
Change-Id: Ief95f111350808f010539bb733a553007d30a9df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152006 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/inc/SlideSorter.hxx3
-rw-r--r--sd/source/ui/slidesorter/shell/SlideSorter.cxx101
2 files changed, 0 insertions, 104 deletions
diff --git a/sd/source/ui/inc/SlideSorter.hxx b/sd/source/ui/inc/SlideSorter.hxx
index 70656680f5f2..c922e5ce4238 100644
--- a/sd/source/ui/inc/SlideSorter.hxx
+++ b/sd/source/ui/inc/SlideSorter.hxx
@@ -185,9 +185,6 @@ private:
sd::Window* pContentWindow,
ScrollAdaptor* pHorizontalScrollBar,
ScrollAdaptor* pVerticalScrollBar);
- SlideSorter (
- ViewShellBase& rBase,
- vcl::Window& rParentWindow);
void Init();
/** Create the controls for the slide sorter. This are the tab bar
diff --git a/sd/source/ui/slidesorter/shell/SlideSorter.cxx b/sd/source/ui/slidesorter/shell/SlideSorter.cxx
index 92427ab51568..534a7aa2fbf6 100644
--- a/sd/source/ui/slidesorter/shell/SlideSorter.cxx
+++ b/sd/source/ui/slidesorter/shell/SlideSorter.cxx
@@ -43,27 +43,6 @@ using namespace ::com::sun::star;
namespace sd::slidesorter {
-namespace {
-class ContentWindow : public ::sd::Window
-{
-public:
- ContentWindow(vcl::Window& rParent, SlideSorter& rSlideSorter);
-
- void SetCurrentFunction (const rtl::Reference<FuPoor>& rpFunction);
- virtual void Paint(vcl::RenderContext& /*rRenderContext*/, const ::tools::Rectangle& rRect) override;
- virtual void KeyInput (const KeyEvent& rEvent) override;
- virtual void MouseMove (const MouseEvent& rEvent) override;
- virtual void MouseButtonUp (const MouseEvent& rEvent) override;
- virtual void MouseButtonDown (const MouseEvent& rEvent) override;
- virtual void Command (const CommandEvent& rEvent) override;
- virtual bool EventNotify (NotifyEvent& rEvent) override;
-
-private:
- SlideSorter& mrSlideSorter;
- rtl::Reference<FuPoor> mpCurrentFunction;
-};
-}
-
//===== SlideSorter ===========================================================
std::shared_ptr<SlideSorter> SlideSorter::CreateSlideSorter(
@@ -98,19 +77,6 @@ SlideSorter::SlideSorter (
{
}
-SlideSorter::SlideSorter (
- ViewShellBase& rBase,
- vcl::Window& rParentWindow)
- : mpViewShell(nullptr),
- mpViewShellBase(&rBase),
- mpContentWindow(VclPtr<ContentWindow>::Create(rParentWindow,*this )),
- mpHorizontalScrollBar(VclPtr<ScrollAdaptor>::Create(&rParentWindow, true)),
- mpVerticalScrollBar(VclPtr<ScrollAdaptor>::Create(&rParentWindow, false)),
- mpProperties(std::make_shared<controller::Properties>()),
- mpTheme(std::make_shared<view::Theme>(mpProperties))
-{
-}
-
void SlideSorter::Init()
{
if (mpViewShellBase != nullptr)
@@ -340,12 +306,6 @@ void SlideSorter::SetCurrentFunction (const rtl::Reference<FuPoor>& rpFunction)
GetViewShell()->SetCurrentFunction(rpFunction);
GetViewShell()->SetOldFunction(rpFunction);
}
- else
- {
- ContentWindow* pWindow = dynamic_cast<ContentWindow*>(GetContentWindow().get());
- if (pWindow != nullptr)
- pWindow->SetCurrentFunction(rpFunction);
- }
}
std::shared_ptr<controller::Properties> const & SlideSorter::GetProperties() const
@@ -360,67 +320,6 @@ std::shared_ptr<view::Theme> const & SlideSorter::GetTheme() const
return mpTheme;
}
-//===== ContentWindow =========================================================
-
-namespace {
-
-ContentWindow::ContentWindow(
- vcl::Window& rParent,
- SlideSorter& rSlideSorter)
- : ::sd::Window(&rParent),
- mrSlideSorter(rSlideSorter)
-{
- SetDialogControlFlags(GetDialogControlFlags() & ~DialogControlFlags::WantFocus);
- SetStyle(GetStyle() | WB_NOPOINTERFOCUS);
-}
-
-void ContentWindow::SetCurrentFunction (const rtl::Reference<FuPoor>& rpFunction)
-{
- mpCurrentFunction = rpFunction;
-}
-
-void ContentWindow::Paint (vcl::RenderContext& /*rRenderContext*/, const ::tools::Rectangle& rRect)
-{
- mrSlideSorter.Paint(rRect);
-}
-
-void ContentWindow::KeyInput (const KeyEvent& rEvent)
-{
- if (mpCurrentFunction.is())
- mpCurrentFunction->KeyInput(rEvent);
-}
-
-void ContentWindow::MouseMove (const MouseEvent& rEvent)
-{
- if (mpCurrentFunction.is())
- mpCurrentFunction->MouseMove(rEvent);
-}
-
-void ContentWindow::MouseButtonUp(const MouseEvent& rEvent)
-{
- if (mpCurrentFunction.is())
- mpCurrentFunction->MouseButtonUp(rEvent);
-}
-
-void ContentWindow::MouseButtonDown(const MouseEvent& rEvent)
-{
- if (mpCurrentFunction.is())
- mpCurrentFunction->MouseButtonDown(rEvent);
-}
-
-void ContentWindow::Command(const CommandEvent& rEvent)
-{
- if (mpCurrentFunction.is())
- mpCurrentFunction->Command(rEvent);
-}
-
-bool ContentWindow::EventNotify(NotifyEvent&)
-{
- return false;
-}
-
-} // end of anonymous namespace
-
} // end of namespace ::sd::slidesorter
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */