summaryrefslogtreecommitdiff
path: root/editeng/inc
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 /editeng/inc
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 'editeng/inc')
-rw-r--r--editeng/inc/editattr.hxx3
-rw-r--r--editeng/inc/outleeng.hxx2
2 files changed, 4 insertions, 1 deletions
diff --git a/editeng/inc/editattr.hxx b/editeng/inc/editattr.hxx
index 502a5b084605..fcc14ba5ce25 100644
--- a/editeng/inc/editattr.hxx
+++ b/editeng/inc/editattr.hxx
@@ -24,6 +24,7 @@
#include <optional>
#include <tools/color.hxx>
#include <tools/debug.hxx>
+#include <tools/fontenum.hxx>
class SvxFont;
class SvxFontItem;
@@ -343,6 +344,7 @@ class EditCharAttribField final : public EditCharAttrib
OUString aFieldValue;
std::optional<Color> mxTxtColor;
std::optional<Color> mxFldColor;
+ std::optional<FontLineStyle> mxFldLineStyle;
EditCharAttribField& operator = ( const EditCharAttribField& rAttr ) = delete;
@@ -358,6 +360,7 @@ public:
virtual void SetFont( SvxFont& rFont, OutputDevice* pOutDev ) override;
std::optional<Color>& GetTextColor() { return mxTxtColor; }
std::optional<Color>& GetFieldColor() { return mxFldColor; }
+ std::optional<FontLineStyle>& GetFldLineStyle() { return mxFldLineStyle; }
const OUString& GetFieldValue() const { return aFieldValue;}
void SetFieldValue(const OUString& rVal);
diff --git a/editeng/inc/outleeng.hxx b/editeng/inc/outleeng.hxx
index 449b5ca44ce8..fb452a460864 100644
--- a/editeng/inc/outleeng.hxx
+++ b/editeng/inc/outleeng.hxx
@@ -73,7 +73,7 @@ public:
// for text conversion
virtual bool ConvertNextDocument() override;
- virtual OUString CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, std::optional<Color>& rTxtColor, std::optional<Color>& rFldColor ) override;
+ virtual OUString CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, std::optional<Color>& rTxtColor, std::optional<Color>& rFldColor, std::optional<FontLineStyle>& rFldLineStyle ) override;
virtual tools::Rectangle GetBulletArea( sal_Int32 nPara ) override;