summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-17 14:17:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-19 17:32:22 +0200
commite75b57ce6e5130a7223ded6cf9d40b300850aef9 (patch)
tree09a8c63b84d079ac903eef8044905f6faaaa0935
parent1a57e75bba8c10f0a3fcedace57b746e0fdf1967 (diff)
GetLegacyDialogParent is now unused
Change-Id: I1619d3a5ccc2f97d1e22dadab6ce719c6daf3c56 Reviewed-on: https://gerrit.libreoffice.org/80995 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/inc/tabvwsh.hxx1
-rw-r--r--sc/source/ui/view/tabvwshd.cxx16
2 files changed, 0 insertions, 17 deletions
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index 9470e1697b0b..210cf689d2c1 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -226,7 +226,6 @@ public:
virtual ~ScTabViewShell() override;
weld::Window* GetDialogParent();
- vcl::Window* GetLegacyDialogParent();
bool IsRefInputMode() const;
void ExecuteInputDirect();
diff --git a/sc/source/ui/view/tabvwshd.cxx b/sc/source/ui/view/tabvwshd.cxx
index 15f35672c641..b86663900273 100644
--- a/sc/source/ui/view/tabvwshd.cxx
+++ b/sc/source/ui/view/tabvwshd.cxx
@@ -64,20 +64,4 @@ weld::Window* ScTabViewShell::GetDialogParent()
return pWin ? pWin->GetFrameWeld() : nullptr;
}
-vcl::Window* ScTabViewShell::GetLegacyDialogParent()
-{
- ScDocShell* pDocSh = GetViewData().GetDocShell();
- if ( pDocSh->IsOle() )
- {
- // TODO/LATER: how to GetEditWindow in embedded document?!
- // It should be OK to return the ViewShell Window!
- return GetWindow();
- // SvInPlaceEnvironment* pEnv = pDocSh->GetIPEnv();
- // if (pEnv)
- // return pEnv->GetEditWin();
- }
-
- return GetActiveWin(); // for normal views, too
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */