diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2021-02-10 11:04:25 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2021-02-10 16:50:22 +0100 |
commit | e8d1504ba7299d78dd825a512e8f04ef33900997 (patch) | |
tree | b7b322152accada2db7d1b2128be9e1cdd794be5 /sw | |
parent | 77bfbd8cb4db3e11c5cfd0f19ed4315845f1e46c (diff) |
Dropdown form field: don't increase code compexity for gen backend.
It's just an internal thing, we don't really need to
optimize the code for it. This HideButton() function is
not use anywhere else.
Change-Id: I2e5fff73f6d50a0dedbd8d5f7eea748d09de6330
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110709
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/bookmrk.cxx | 12 | ||||
-rw-r--r-- | sw/source/core/inc/bookmrk.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 4 |
3 files changed, 0 insertions, 18 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx index 097e2dea6bd2..472c0af54557 100644 --- a/sw/source/core/crsr/bookmrk.cxx +++ b/sw/source/core/crsr/bookmrk.cxx @@ -611,12 +611,6 @@ namespace sw { namespace mark m_pButton.disposeAndClear(); } - void FieldmarkWithDropDownButton::HideButton() - { - if(m_pButton) - m_pButton->Show(false); - } - void FieldmarkWithDropDownButton::RemoveButton() { if(m_pButton) @@ -645,12 +639,6 @@ namespace sw { namespace mark } } - void DropDownFieldmark::HideButton() - { - SendLOKMessage("hide"); - FieldmarkWithDropDownButton::HideButton(); - } - void DropDownFieldmark::RemoveButton() { SendLOKMessage("hide"); diff --git a/sw/source/core/inc/bookmrk.hxx b/sw/source/core/inc/bookmrk.hxx index f0f81bf32c3c..2fe0cf3a0d5e 100644 --- a/sw/source/core/inc/bookmrk.hxx +++ b/sw/source/core/inc/bookmrk.hxx @@ -278,7 +278,6 @@ namespace sw { virtual ~FieldmarkWithDropDownButton() override; virtual void ShowButton(SwEditWin* pEditWin) = 0; - virtual void HideButton(); virtual void RemoveButton(); protected: @@ -294,7 +293,6 @@ namespace sw { virtual ~DropDownFieldmark() override; virtual void ShowButton(SwEditWin* pEditWin) override; - virtual void HideButton() override; virtual void RemoveButton() override; // This method should be called only by the portion so we can now the portion's painting area diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 298c6ed4a2c9..44fa64318acb 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -1418,8 +1418,6 @@ void SwTextShell::Execute(SfxRequest &rReq) pFieldBM->Invalidate(); rWrtSh.InvalidateWindows( rWrtSh.GetView().GetVisArea() ); rWrtSh.UpdateCursor(); // cursor position might be invalid - // Hide the button here and make it visible later, to make transparent background work with SAL_USE_VCLPLUGIN=gen - dynamic_cast<::sw::mark::DropDownFieldmark&>(*pFieldBM).HideButton(); } } else if ( pFieldBM && pFieldBM->GetFieldname() == ODF_FORMDATE ) @@ -1432,8 +1430,6 @@ void SwTextShell::Execute(SfxRequest &rReq) rDateField.Invalidate(); rWrtSh.InvalidateWindows( rWrtSh.GetView().GetVisArea() ); rWrtSh.UpdateCursor(); // cursor position might be invalid - // Hide the button here and make it visible later, to make transparent background work with SAL_USE_VCLPLUGIN=gen - rDateField.HideButton(); } } else |