diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-11-25 17:08:17 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-11-29 13:27:43 +0100 |
commit | 34a98b79da15793bb9c1454239ae9162c4db94c0 (patch) | |
tree | 7ba41b00de334ed88d1c877e0412e8dd47eacf62 /starmath | |
parent | 93be239c9512c27369e1134150610248e93d6157 (diff) |
set properly initial size of starmath component when importing docx
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/unomodel.hxx | 1 | ||||
-rw-r--r-- | starmath/source/unomodel.cxx | 5 |
2 files changed, 6 insertions, 0 deletions
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: */ |