diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-05-28 10:53:03 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-05-30 15:54:47 +0000 |
commit | 8079f40743f86c4f7e6c9af8393ff699378a0797 (patch) | |
tree | 603420522e53a4af25237a09940f04aa70b419bf /sw | |
parent | 07e756f5b9fa5d499de8f3e3ad61ee66d336a349 (diff) |
Make use of IsStarSymbol()
Change-Id: I7a2e3a6f11bbaaaff50e8163e4ce3e2583b1d03c
Reviewed-on: https://gerrit.libreoffice.org/4077
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/writerhelper.cxx | 8 | ||||
-rw-r--r-- | sw/source/filter/ww8/writerhelper.hxx | 12 | ||||
-rw-r--r-- | sw/source/filter/ww8/writerwordglue.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtw8num.cxx | 5 |
4 files changed, 4 insertions, 23 deletions
diff --git a/sw/source/filter/ww8/writerhelper.cxx b/sw/source/filter/ww8/writerhelper.cxx index 228bc59ff5a5..664d5aa5316e 100644 --- a/sw/source/filter/ww8/writerhelper.cxx +++ b/sw/source/filter/ww8/writerhelper.cxx @@ -666,14 +666,6 @@ namespace sw } } - bool IsStarSymbol(const OUString &rFontName) - { - sal_Int32 nIndex = 0; - OUString sFamilyNm(GetNextFontToken(rFontName, nIndex)); - return (sFamilyNm.equalsIgnoreAsciiCase("starsymbol") || - sFamilyNm.equalsIgnoreAsciiCase("opensymbol")); - } - Size GetSwappedInSize(const SwNoTxtNode& rNd) { Size aGrTwipSz(rNd.GetTwipSize()); diff --git a/sw/source/filter/ww8/writerhelper.hxx b/sw/source/filter/ww8/writerhelper.hxx index 52bfba74b687..e411ac8fee03 100644 --- a/sw/source/filter/ww8/writerhelper.hxx +++ b/sw/source/filter/ww8/writerhelper.hxx @@ -747,18 +747,6 @@ namespace sw */ Polygon PolygonFromPolyPolygon(const PolyPolygon &rPolyPoly); - /** Determine if the font is the special Star|Open Symbol font - - @param rFontName - The FontName to test for being Star|Open Symbol - - @return true if this is Star|Open Symbol - - @author - <a href="mailto:cmc@openoffice.org">Caolán McNamara</a> - */ - bool IsStarSymbol(const OUString &rFontName); - /** Make setting a drawing object's layer in a Writer document easy diff --git a/sw/source/filter/ww8/writerwordglue.cxx b/sw/source/filter/ww8/writerwordglue.cxx index af662eda04e7..e34b16cc539f 100644 --- a/sw/source/filter/ww8/writerwordglue.cxx +++ b/sw/source/filter/ww8/writerwordglue.cxx @@ -317,7 +317,7 @@ namespace myImplHelpers String FindBestMSSubstituteFont(const String &rFont) { String sRet; - if (sw::util::IsStarSymbol(rFont)) + if ( IsStarSymbol(rFont) ) sRet.ASSIGN_CONST_ASC("Arial Unicode MS"); else sRet = GetSubsFontName(rFont, SUBSFONT_ONLYONE | SUBSFONT_MS); diff --git a/sw/source/filter/ww8/wrtw8num.cxx b/sw/source/filter/ww8/wrtw8num.cxx index 82c54c19f778..61ffdee334b7 100644 --- a/sw/source/filter/ww8/wrtw8num.cxx +++ b/sw/source/filter/ww8/wrtw8num.cxx @@ -28,6 +28,7 @@ #include <paratr.hxx> #include <charfmt.hxx> #include <ndtxt.hxx> +#include <unotools/fontcfg.hxx> #include <com/sun/star/i18n/ScriptType.hpp> #include <doctok/sprmids.hxx> @@ -385,7 +386,7 @@ void MSWordExportBase::AbstractNumberingDefinitions() sFontName = pBulletFont->GetName(); eFamily = pBulletFont->GetFamily(); - if ( sw::util::IsStarSymbol( sFontName ) ) + if ( IsStarSymbol(sFontName) ) SubstituteBullet( sNumStr, eChrSet, sFontName ); // #i86652# @@ -642,7 +643,7 @@ void WW8Export::BuildAnlvBulletBase(WW8_ANLV& rAnlv, sal_uInt8*& rpCh, String sFontName = rFont.GetName(); sal_uInt16 nFontId; - if (sw::util::IsStarSymbol(sFontName)) + if ( IsStarSymbol(sFontName) ) { /* If we are starsymbol then in ww7- mode we will always convert to a |