xmloff/source/draw/sdxmlexp.cxx | 13 +++++++++++++ xmloff/source/draw/sdxmlexp_impl.hxx | 1 + 2 files changed, 14 insertions(+)
New commits: commit f0cd6fe9075cd0aa00162474784ad804a07ed138 Author: Radek Doulik <r...@novell.com> Date: Fri Feb 22 18:06:18 2013 +0100 use document settings / embed fonts when exporting odp Change-Id: I9e8db1ae08b570f093b13d50bfde823c85cdba95 diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx index d33db72..441dbf0 100644 --- a/xmloff/source/draw/sdxmlexp.cxx +++ b/xmloff/source/draw/sdxmlexp.cxx @@ -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: */ diff --git a/xmloff/source/draw/sdxmlexp_impl.hxx b/xmloff/source/draw/sdxmlexp_impl.hxx index 166f573..cc5a5ed 100644 --- a/xmloff/source/draw/sdxmlexp_impl.hxx +++ b/xmloff/source/draw/sdxmlexp_impl.hxx @@ -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( _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits