diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-06-28 20:54:54 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2020-06-29 08:51:13 +0200 |
commit | a8ee7bc96fb90e21ecab46bf1269b9eac6bf8261 (patch) | |
tree | eb3f15c99263b0de519d1e34d83d9ec2f20370e2 /sfx2 | |
parent | 802161a505272732566210e9ebbd8fe1b23fb86d (diff) |
tdf#134320: fix XInfobarProvider appendInfoBar for showCloseButton
There was a mix of arguments which caused misinterpretation.
Like this since initial commit:
9e3ba7c3036c4d21e01d6f75ed29a1e8c4208141
author Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> 2019-11-18 09:08:03 +0100
committer Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> 2019-11-19 08:51:43 +0100
commit 9e3ba7c3036c4d21e01d6f75ed29a1e8c4208141 (patch)
tree c648a26f2445955be14aa6e96815c14ec193dddc
parent b234743dd26e0be4be272d2d2c82f90c67e192b7 (diff)
tdf#97926 Add UNO API for Infobar
This allows creating, updating and removing infobars from macros/extensions.
It also extends the infobar with a primary and a secondary text, so there can
be a bold summary at the beginning at the infobar with a longer text following
in normal letters.
...
Change-Id: Ic3e0b6a9da4da574eb7ca440a881fdcee1dd1132
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97349
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/infobar.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx index 771bda8f4e6c..8fbb61c23443 100644 --- a/sfx2/source/dialog/infobar.cxx +++ b/sfx2/source/dialog/infobar.cxx @@ -184,8 +184,8 @@ void SfxCloseButton::setForegroundColor(const basegfx::BColor& rColor) SfxInfoBarWindow::SfxInfoBarWindow(vcl::Window* pParent, const OUString& sId, const OUString& sPrimaryMessage, const OUString& sSecondaryMessage, InfobarType ibType, - bool bShowCloseButton, - WinBits nMessageStyle = WB_LEFT | WB_VCENTER) + WinBits nMessageStyle = WB_LEFT | WB_VCENTER, + bool bShowCloseButton = true) : Window(pParent, WB_DIALOGCONTROL) , m_sId(sId) , m_eType(ibType) |