summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2024-05-02 14:32:52 +0900
committerTomaž Vajngerl <quikee@gmail.com>2024-05-03 07:13:22 +0200
commit6f7acc14866136f22d26cae1e8656d8719b58300 (patch)
treee13a946defef97c91fd1c7267ae02bb83214ddfb /vcl/source/control
parent3f2d56d486da2006e24444cfa6f2f63700a14fae (diff)
jsdialog: support for LinkButton as an independent widget
This adds support for the (weld)LinkButton (FixedHyperlink) as an independent widget and not part of FixedText to jsdialog. In addition add "click" event that triggers activate_link method. Change-Id: Id110b4a0fd60fc24592e00235243783d46ae4575 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166898 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/fixed.cxx4
-rw-r--r--vcl/source/control/fixedhyper.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index 068332e5b610..ce5bbf486c85 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -94,8 +94,8 @@ const Color& FixedText::GetCanonicalTextColor( const StyleSettings& _rStyle ) co
return _rStyle.GetLabelTextColor();
}
-FixedText::FixedText( vcl::Window* pParent, WinBits nStyle )
- : Control(WindowType::FIXEDTEXT)
+FixedText::FixedText(vcl::Window* pParent, WinBits nStyle, WindowType eType)
+ : Control(eType)
, m_nMaxWidthChars(-1)
, m_nMinWidthChars(-1)
, m_pMnemonicWindow(nullptr)
diff --git a/vcl/source/control/fixedhyper.cxx b/vcl/source/control/fixedhyper.cxx
index 5b4960d92f86..5c8e9e4a29d1 100644
--- a/vcl/source/control/fixedhyper.cxx
+++ b/vcl/source/control/fixedhyper.cxx
@@ -34,7 +34,7 @@
using namespace css;
FixedHyperlink::FixedHyperlink(vcl::Window* pParent, WinBits nWinStyle)
- : FixedText(pParent, nWinStyle)
+ : FixedText(pParent, nWinStyle, WindowType::LINK_BUTTON)
, m_nTextLen(0)
, m_aOldPointer(PointerStyle::Arrow)
{