diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-09 20:15:28 +0000 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-05-25 12:12:25 +0200 |
commit | 38c511a368a1b6b1cc3a01d0baa63c6c044734db (patch) | |
tree | e5104b980034a5c8b7b9a1331d72b64fb2e131ea /sw | |
parent | 2fc3b9e6652da307aa712936046a41c43008cda3 (diff) |
rename SfxChildWindowContext::GetFloatingWindow to what it does
Change-Id: I0a8e1be2c64d054e6af1e9826f993d3b219e854b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112245
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/navipi.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index 4961c99deaaa..6686fe732d1e 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -216,7 +216,7 @@ IMPL_LINK(SwNavigationPI, ToolBoxSelectHdl, const OString&, rCommand, void) } else if (rCommand == "listbox") { - if (SfxChildWindowContext::GetFloatingWindow(GetParent())) + if (ParentIsFloatingWindow(GetParent())) { if (IsZoomedIn()) { @@ -588,7 +588,7 @@ SwNavigationPI::SwNavigationPI(vcl::Window* pParent, m_aStatusArr[3] = SwResId(STR_ACTIVE_VIEW); - bool bFloatingNavigator = SfxChildWindowContext::GetFloatingWindow(GetParent()) != nullptr; + bool bFloatingNavigator = ParentIsFloatingWindow(GetParent()); m_xContentTree->set_selection_mode(SelectionMode::Single); m_xContentTree->ShowTree(); @@ -752,9 +752,9 @@ void SwNavigationPI::StateChanged(StateChangedType nStateChange) // the sidebar or is otherwise docked. While the navigator could change // its size, the sidebar can not, and the navigator would just waste // space. Therefore disable this button. - m_xContent6ToolBox->set_item_sensitive("listbox", SfxChildWindowContext::GetFloatingWindow(GetParent()) != nullptr); + m_xContent6ToolBox->set_item_sensitive("listbox", ParentIsFloatingWindow(GetParent())); // show content if docked - if (SfxChildWindowContext::GetFloatingWindow(GetParent()) == nullptr && IsZoomedIn()) + if (!ParentIsFloatingWindow(GetParent()) && IsZoomedIn()) ZoomOut(); } else if (nStateChange == StateChangedType::ControlFocus) |