diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-03-07 13:09:20 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2023-03-21 09:35:30 +0000 |
commit | 103e656e4f9e073354dc6a683889fd3fb922ecf2 (patch) | |
tree | 7e5ff4a383c412d55e50f276d18b375cb7b147e8 /vcl/jsdialog | |
parent | 660f73385562314e01abb4cef9d443b0c0f42b06 (diff) |
jsdialog: don't send full updates on tab change
All tabs are now sent with the first full message.
So client can switch between tabs by showing another
tabpage content. We don't need to send structure again.
Change-Id: I0f3dfc8be4816fba5813a83b41722407631edb73
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148421
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149189
Tested-by: Jenkins
Diffstat (limited to 'vcl/jsdialog')
-rw-r--r-- | vcl/jsdialog/jsdialogbuilder.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index 190f1e0770c7..2d73c26613da 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -1502,52 +1502,12 @@ void JSComboBox::set_active(int pos) bool JSComboBox::changed_by_direct_pick() const { return true; } -IMPL_LINK(JSNotebook, LeaveHdl, const OString&, rPage, bool) -{ - m_aLeavePageOverridenHdl.Call(rPage); - sendFullUpdate(); - return true; -} - -IMPL_LINK(JSNotebook, EnterHdl, const OString&, rPage, bool) -{ - m_aEnterPageOverridenHdl.Call(rPage); - sendFullUpdate(); - return true; -} - JSNotebook::JSNotebook(JSDialogSender* pSender, ::TabControl* pControl, SalInstanceBuilder* pBuilder, bool bTakeOwnership) : JSWidget<SalInstanceNotebook, ::TabControl>(pSender, pControl, pBuilder, bTakeOwnership) { } -void JSNotebook::set_current_page(int nPage) -{ - bool bForce = false; - int nCurrent = get_current_page(); - if (nCurrent == nPage) - bForce = true; - - SalInstanceNotebook::set_current_page(nPage); - sendFullUpdate(bForce); - - m_aEnterPageHdl.Call(get_current_page_ident()); -} - -void JSNotebook::set_current_page(const OString& rIdent) -{ - bool bForce = false; - OString sCurrent = get_current_page_ident(); - if (sCurrent == rIdent) - bForce = true; - - SalInstanceNotebook::set_current_page(rIdent); - sendFullUpdate(bForce); - - m_aEnterPageHdl.Call(get_current_page_ident()); -} - void JSNotebook::remove_page(const OString& rIdent) { SalInstanceNotebook::remove_page(rIdent); |