summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-09-07 14:33:54 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-09-07 14:37:56 +0200
commitfc169270eaeb8156d40740cd088cd8ed958ea99c (patch)
tree368c844394526157226afd4a73dbebb0a9ccfc2f /sw
parente1276e83e0e914eab8966a189948d2238c82a1b6 (diff)
move the code for adding temporary fonts to a separate class
I'm a bit confused on how this stuff is separated between platforms, so better do it this way. Change-Id: I2dbd9baef587c81ee37b509bde272ef970f5b118
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index f9de95a7597f..e4cd0924f1c5 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -122,7 +122,7 @@
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/ustring.hxx>
-#include <vcl/fontmanager.hxx>
+#include <vcl/temporaryfonts.hxx>
#include <tools/color.hxx>
@@ -2829,7 +2829,7 @@ static inline char toHexChar( int value )
void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, const char* style )
{
- OUString fontUrl = psp::PrintFontManager::get().fileUrlForTemporaryFont( name, style );
+ OUString fontUrl = TemporaryFonts::fileUrlForFont( name, style );
// If a temporary font file exists for this font, assume it was embedded
// and embed it again.
// TODO IDocumentSettingAccess::EMBED_SYSTEM_FONTS