Kaydet (Commit) f0cd6fe9 authored tarafından Radek Doulik's avatar Radek Doulik

use document settings / embed fonts when exporting odp

Change-Id: I9e8db1ae08b570f093b13d50bfde823c85cdba95
üst 6c68f2c8
......@@ -2901,4 +2901,17 @@ OUString SAL_CALL SdXMLExport::getImplementationName() throw( uno::RuntimeExcept
}
}
XMLFontAutoStylePool* SdXMLExport::CreateFontAutoStylePool()
{
bool bEmbedFonts = false;
Reference< lang::XMultiServiceFactory > xFac( GetModel(), UNO_QUERY );
if( xFac.is() )
{
Reference< beans::XPropertySet > xProps( xFac->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.Settings" ) ) ), UNO_QUERY );
if( xProps.is() )
xProps->getPropertyValue("EmbedFonts") >>= bEmbedFonts;
}
return new XMLFontAutoStylePool( *this, bEmbedFonts );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -174,6 +174,7 @@ class SdXMLExport : public SvXMLExport
protected:
virtual void GetViewSettings(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps);
virtual void GetConfigurationSettings(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps);
virtual XMLFontAutoStylePool* CreateFontAutoStylePool();
public:
SdXMLExport(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment