summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdedxv.cxx
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga.extern@allotropia.de>2023-04-01 20:44:43 +0200
committerBalazs Varga <balazs.varga.extern@allotropia.de>2023-04-04 20:16:47 +0200
commit89e65e6afdfc942cf8232886d6703947167eaec3 (patch)
tree5e97bf6fe666f71ce93ee9d9f1381f1ca07b666d /svx/source/svdraw/svdedxv.cxx
parent4b5203ebf4ca5894f4d7dd37a141832df26e8b9a (diff)
tdf#153880 sc: Make Calc text hyperlinks stand out more
Add underlining for links in Calc. TODO: unit test Change-Id: Idd5a7de7464d8ce443cdec756ac803491e73b0ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149913 Tested-by: Jenkins Tested-by: Gabor Kelemen <kelemeng@ubuntu.com> Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'svx/source/svdraw/svdedxv.cxx')
-rw-r--r--svx/source/svdraw/svdedxv.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 2710b52c4c0d..5a996b5721ed 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -1180,14 +1180,19 @@ IMPL_LINK(SdrObjEditView, ImpOutlinerCalcFieldValueHdl, EditFieldInfo*, pFI, voi
{
std::optional<Color> pTxtCol;
std::optional<Color> pFldCol;
+ std::optional<FontLineStyle> pFldLineStyle;
bOk = pTextObj->CalcFieldValue(pFI->GetField(), pFI->GetPara(), pFI->GetPos(), true,
- pTxtCol, pFldCol, rStr);
+ pTxtCol, pFldCol, pFldLineStyle, rStr);
if (bOk)
{
if (pTxtCol)
{
pFI->SetTextColor(*pTxtCol);
}
+ if (pFldLineStyle)
+ {
+ pFI->SetFontLineStyle(*pFldLineStyle);
+ }
if (pFldCol)
{
pFI->SetFieldColor(*pFldCol);