diff options
author | Harri Pitkänen <hatapitk@iki.fi> | 2013-09-21 11:01:56 +0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-21 16:27:02 +0000 |
commit | 745f594556f690b57918bc32579157acc5598336 (patch) | |
tree | cb442bbcb247cd4d1ade28915c475dd25a69e887 /sw/source/ui/chrdlg | |
parent | ca0169340c94adc791061e3fb098fa656f22a8c5 (diff) |
Enable Drop Caps for Firefox HTML compatibility mode
Drop Caps tab was disabled in paragraph options when Firefox was
selected in HTML compatibility options and Writer was in HTML
editor mode. There is no need to do that. Firefox and all modern
browsers will display drop caps correctly if they are exported
from LibreOffice.
Change-Id: I9ee0d9647b8e8ed7c57c4b08dc4995ef1b8f91f3
Reviewed-on: https://gerrit.libreoffice.org/6013
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/chrdlg')
-rw-r--r-- | sw/source/ui/chrdlg/pardlg.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sw/source/ui/chrdlg/pardlg.cxx b/sw/source/ui/chrdlg/pardlg.cxx index 31068946dc9d..a964eb04544c 100644 --- a/sw/source/ui/chrdlg/pardlg.cxx +++ b/sw/source/ui/chrdlg/pardlg.cxx @@ -134,14 +134,9 @@ SwParaDlg::SwParaDlg(Window *pParent, m_nParaNumPara = AddTabPage("labelTP_NUMPARA", SwParagraphNumTabPage::Create, SwParagraphNumTabPage::GetRanges); else RemoveTabPage("labelTP_NUMPARA"); - if(!bHtmlMode || (nHtmlMode & HTMLMODE_FULL_STYLES)) - { - m_nParaDrpCps = AddTabPage("labelTP_DROPCAPS", SwDropCapsPage::Create, SwDropCapsPage::GetRanges); - } - else - { - RemoveTabPage("labelTP_DROPCAPS"); - } + + m_nParaDrpCps = AddTabPage("labelTP_DROPCAPS", SwDropCapsPage::Create, SwDropCapsPage::GetRanges); + if(!bHtmlMode || (nHtmlMode & (HTMLMODE_SOME_STYLES|HTMLMODE_FULL_STYLES))) { OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), "GetTabPageCreatorFunc fail!"); |