include/sfx2/infobar.hxx       |    2 +-
 sfx2/source/dialog/infobar.cxx |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit d7b6bf4221c11e3c643c6058c5e697a11e4b98af
Author:     Julien Nabet <[email protected]>
AuthorDate: Sun Jun 28 20:54:54 2020 +0200
Commit:     Thorsten Behrens <[email protected]>
CommitDate: Fri Jul 3 20:09:41 2020 +0200

    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 <[email protected]>      2019-11-18 09:08:03 
+0100
    committer       Samuel Mehrbrodt <[email protected]>      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
    Reviewed-by: Julien Nabet <[email protected]>
    (cherry picked from commit c49ea906358f99cc2fca16d790b51f8e2855f9ff)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97370
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <[email protected]>

diff --git a/include/sfx2/infobar.hxx b/include/sfx2/infobar.hxx
index dc016a53a60b..40a1b1ff9fbf 100644
--- a/include/sfx2/infobar.hxx
+++ b/include/sfx2/infobar.hxx
@@ -75,7 +75,7 @@ private:
 public:
     SfxInfoBarWindow(vcl::Window* parent, const OUString& sId, const OUString& 
sPrimaryMessage,
                      const OUString& sSecondaryMessage, InfobarType 
InfobarType,
-                     bool bShowCloseButton, WinBits nMessageStyle);
+                     WinBits nMessageStyle, bool bShowCloseButton);
     virtual ~SfxInfoBarWindow() override;
     virtual void dispose() override;
 
diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx
index 771bda8f4e6c..fd64691ffa99 100644
--- a/sfx2/source/dialog/infobar.cxx
+++ b/sfx2/source/dialog/infobar.cxx
@@ -184,8 +184,7 @@ 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, bool 
bShowCloseButton)
     : Window(pParent, WB_DIALOGCONTROL)
     , m_sId(sId)
     , m_eType(ibType)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to