summaryrefslogtreecommitdiff
path: root/oox
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 /oox
parent93be239c9512c27369e1134150610248e93d6157 (diff)
set properly initial size of starmath component when importing docx
Diffstat (limited to 'oox')
-rw-r--r--oox/inc/oox/mathml/import.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/oox/inc/oox/mathml/import.hxx b/oox/inc/oox/mathml/import.hxx
index 715426405dba..8c922abf73ac 100644
--- a/oox/inc/oox/mathml/import.hxx
+++ b/oox/inc/oox/mathml/import.hxx
@@ -29,6 +29,7 @@
#define _STARMATHIMPORT_HXX
#include <com/sun/star/embed/XEmbeddedObject.hpp>
+#include <tools/gen.hxx>
#include <oox/dllapi.h>
@@ -40,11 +41,17 @@ namespace formulaimport
class XmlStream;
}
+/**
+ Interface class, StarMath will implement readFormulaOoxml() to read OOXML
+ representing the formula and getFormulaSize() to provide the size of the resulting
+ formula.
+ */
class OOX_DLLPUBLIC FormulaImportBase
{
public:
FormulaImportBase();
virtual void readFormulaOoxml( oox::formulaimport::XmlStream& stream ) = 0;
+ virtual Size getFormulaSize() const = 0;
};
} // namespace