summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarri Pitkänen <hatapitk@iki.fi>2014-04-12 13:46:54 +0300
committerCaolán McNamara <caolanm@redhat.com>2014-04-17 12:09:29 +0000
commit2b531388388853342d6ecefcbeb2027f22f8728c (patch)
tree6b4b2e48405c654fb5e69cc82103a19172416a51
parent2a3e221c8807789afcbbe9ea5eae3c3fc90a473c (diff)
Enable letter-spacing for Firefox HTML export
Kerning (letter-spacing in CSS) was disabled for Firefox HTML export mode. There is no need to do that since Firefox does support this feature. Change-Id: I237063d52f50d79517bf83d5d1904f2164095d31 Reviewed-on: https://gerrit.libreoffice.org/8947 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/filter/html/css1atr.cxx4
-rw-r--r--sw/source/filter/html/htmlatr.cxx3
2 files changed, 1 insertions, 6 deletions
diff --git a/sw/source/filter/html/css1atr.cxx b/sw/source/filter/html/css1atr.cxx
index fa6515501a1a..1e51c699f537 100644
--- a/sw/source/filter/html/css1atr.cxx
+++ b/sw/source/filter/html/css1atr.cxx
@@ -2577,10 +2577,6 @@ static Writer& OutCSS1_SvxKerning( Writer& rWrt, const SfxPoolItem& rHt )
{
SwHTMLWriter& rHTMLWrt = (SwHTMLWriter&)rWrt;
- // Only export Kerning-Item, if the Style supports it fully
- if( !rHTMLWrt.IsHTMLMode(HTMLMODE_FULL_STYLES) )
- return rWrt;
-
sal_Int16 nValue = ((const SvxKerningItem&)rHt).GetValue();
if( nValue )
{
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx
index 216a925673cc..e8c41560b6fd 100644
--- a/sw/source/filter/html/htmlatr.cxx
+++ b/sw/source/filter/html/htmlatr.cxx
@@ -1349,8 +1349,7 @@ HTMLOnOffState HTMLEndPosLst::GetHTMLItemState( const SfxPoolItem& rItem )
break;
case RES_CHRATR_KERNING:
- if( IsHTMLMode(HTMLMODE_FULL_STYLES) )
- eState = HTML_STYLE_VALUE;
+ eState = HTML_STYLE_VALUE;
break;
case RES_CHRATR_BACKGROUND: