From 34a98b79da15793bb9c1454239ae9162c4db94c0 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Fri, 25 Nov 2011 17:08:17 +0100 Subject: set properly initial size of starmath component when importing docx --- starmath/inc/unomodel.hxx | 1 + starmath/source/unomodel.cxx | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'starmath') diff --git a/starmath/inc/unomodel.hxx b/starmath/inc/unomodel.hxx index 5243d414442e..cf01ec401f78 100644 --- a/starmath/inc/unomodel.hxx +++ b/starmath/inc/unomodel.hxx @@ -108,6 +108,7 @@ public: virtual void writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer, oox::core::OoxmlVersion version ); // oox::FormulaImportBase virtual void readFormulaOoxml( oox::formulaimport::XmlStream& stream ); + virtual Size getFormulaSize() const; static ::com::sun::star::uno::Sequence< rtl::OUString > getSupportedServiceNames_Static(); static ::rtl::OUString getImplementationName_Static(); diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 4bbbf9db703d..70627ac21cef 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -1140,4 +1140,9 @@ void SmModel::readFormulaOoxml( oox::formulaimport::XmlStream& stream ) static_cast< SmDocShell* >( GetObjectShell())->readFormulaOoxml( stream ); } +Size SmModel::getFormulaSize() const +{ + return static_cast< SmDocShell* >( GetObjectShell())->GetSize(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit