summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-07-02 12:56:09 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2021-07-02 13:53:59 +0200
commitbcb1ce26225cefe953bc018192d12fca1a8023df (patch)
tree03d3ff587b47850c6caba50a1fb3afe8b8e68f3e /sfx2
parentba8000ccf5ba7a5c18ce4058983919407980369b (diff)
lok sidebar: remove unused code
Change-Id: I88325246d4997d44b4a1ca681627ca00ade1f030 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118285 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/Deck.cxx14
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx2
-rw-r--r--sfx2/source/sidebar/SidebarDockingWindow.cxx33
3 files changed, 0 insertions, 49 deletions
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx
index 9b266acb4e9b..ebe147fcc2d2 100644
--- a/sfx2/source/sidebar/Deck.cxx
+++ b/sfx2/source/sidebar/Deck.cxx
@@ -116,20 +116,6 @@ void Deck::DataChanged(const DataChangedEvent&)
RequestLayoutInternal();
}
-void Deck::Resize()
-{
- InterimItemWindow::Resize();
-
- if (const vcl::ILibreOfficeKitNotifier* pNotifier = GetLOKNotifier())
- {
- std::vector<vcl::LOKPayloadItem> aItems;
- aItems.emplace_back("type", "deck");
- aItems.emplace_back(std::make_pair("position", Point(GetOutOffXPixel(), GetOutOffYPixel()).toString()));
- aItems.emplace_back(std::make_pair("size", GetSizePixel().toString()));
- pNotifier->notifyWindow(GetLOKWindowId(), "size_changed", aItems);
- }
-}
-
/*
* Get the ordering as is shown in the layout, and our type as 'deck'
* also elide nested panel windows.
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 90ddc0b6c6d4..0f46d910d2cc 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -479,8 +479,6 @@ void SidebarController::NotifyResize()
}
RestrictWidth(nMinimalWidth);
-
- mpParentWindow->NotifyResize();
}
void SidebarController::ProcessNewWidth (const sal_Int32 nNewWidth)
diff --git a/sfx2/source/sidebar/SidebarDockingWindow.cxx b/sfx2/source/sidebar/SidebarDockingWindow.cxx
index f536165255d8..d50aa2b3d4b0 100644
--- a/sfx2/source/sidebar/SidebarDockingWindow.cxx
+++ b/sfx2/source/sidebar/SidebarDockingWindow.cxx
@@ -67,9 +67,6 @@ SidebarDockingWindow::~SidebarDockingWindow()
void SidebarDockingWindow::dispose()
{
- if (comphelper::LibreOfficeKit::isActive())
- LOKClose();
-
Reference<lang::XComponent> xComponent (static_cast<XWeak*>(mpSidebarController.get()), UNO_QUERY);
mpSidebarController.clear();
if (xComponent.is())
@@ -78,13 +75,6 @@ void SidebarDockingWindow::dispose()
SfxDockingWindow::dispose();
}
-void SidebarDockingWindow::LOKClose()
-{
- assert(comphelper::LibreOfficeKit::isActive());
- if (GetLOKNotifier())
- ReleaseLOKNotifier();
-}
-
void SidebarDockingWindow::GetFocus()
{
if (mpSidebarController.is())
@@ -104,35 +94,12 @@ bool SidebarDockingWindow::Close()
return SfxDockingWindow::Close();
}
-void SidebarDockingWindow::Resize()
-{
- SfxDockingWindow::Resize();
-
- NotifyResize();
-}
-
void SidebarDockingWindow::SyncUpdate()
{
if (mpSidebarController.is())
mpSidebarController->SyncUpdate();
}
-void SidebarDockingWindow::NotifyResize()
-{
- if (!(comphelper::LibreOfficeKit::isActive() && mpSidebarController.is() && SfxViewShell::Current()))
- return;
-
- const vcl::ILibreOfficeKitNotifier* pCurrentView = SfxViewShell::Current();
- if (GetLOKNotifier() != pCurrentView)
- {
- // ViewShell not yet set, or has changed. Reset it.
- // Note GetLOKWindowId will return a new value after resetting, so we must notify clients.
- LOKClose();
-
- SetLOKNotifier(pCurrentView);
- }
-}
-
SfxChildAlignment SidebarDockingWindow::CheckAlignment (
SfxChildAlignment eCurrentAlignment,
SfxChildAlignment eRequestedAlignment)