summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-11-25 17:08:17 +0100
committerLuboš Luňák <l.lunak@suse.cz>2011-11-29 13:27:43 +0100
commit34a98b79da15793bb9c1454239ae9162c4db94c0 (patch)
tree7ba41b00de334ed88d1c877e0412e8dd47eacf62 /starmath
parent93be239c9512c27369e1134150610248e93d6157 (diff)
set properly initial size of starmath component when importing docx
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/unomodel.hxx1
-rw-r--r--starmath/source/unomodel.cxx5
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: */