diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-07-28 09:03:59 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-31 20:20:25 +0000 |
commit | ff4217e9e4f90a8dd09e635a35665a64846b4505 (patch) | |
tree | 7da51246ddefca02798ad460e0bf5a9387aae3bd /starmath/inc/document.hxx | |
parent | d1d1109fd7bd5bdaa9aa09feeca9f15bf28aa57e (diff) |
tdf#101022 Export Greek symbol to MathML with correct mathvariant
In StarMath notation "{ital %GAMMA}" is recognized as italic, and
"{nitalic %iGAMMA}" is non-italic. That is, the ital/nitalic directive
takes priority over special characters' flavor.
On the other hand, in MathML a mathvariant attribute given in <mi>
overwrites inherited value.
This does not handle "bold-italic" case etc. yet.
Change-Id: I9c72dc4472f8cec553417d516d9d82aebd43d15c
Reviewed-on: https://gerrit.libreoffice.org/27604
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/inc/document.hxx')
-rw-r--r-- | starmath/inc/document.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx index fa370de600f2..a03ad0db28a0 100644 --- a/starmath/inc/document.hxx +++ b/starmath/inc/document.hxx @@ -124,7 +124,6 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener virtual bool Load( SfxMedium& rMedium ) override; virtual bool Save() override; virtual bool SaveAs( SfxMedium& rMedium ) override; - virtual bool ConvertTo( SfxMedium &rMedium ) override; virtual bool SaveCompleted( const css::uno::Reference< css::embed::XStorage >& xStorage ) override; Printer *GetPrt(); @@ -152,6 +151,11 @@ public: explicit SmDocShell( SfxModelFlags i_nSfxCreationFlags ); virtual ~SmDocShell(); + virtual bool ConvertTo( SfxMedium &rMedium ) override; + + // For unit tests, not intended to use in other context + void SetGreekCharStyle(sal_Int16 nVal) { maFormat.SetGreekCharStyle(nVal); } + static void LoadSymbols(); static void SaveSymbols(); |