diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-08-16 13:52:43 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-08-18 15:33:44 +0200 |
commit | 2e5e29471f9ac61ec454bf90a985525a0ad5cb1c (patch) | |
tree | 9a242eb2f2e94bf31ff8ba2b1bb5b2ccb6af89d5 /starmath | |
parent | dc03f0321b0c9b6448e516bd5740b0d920fe18e5 (diff) |
hook for calling from .docx filter to starmath for writting formulas
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/Library_sm.mk | 2 | ||||
-rw-r--r-- | starmath/inc/unomodel.hxx | 7 | ||||
-rw-r--r-- | starmath/source/unomodel.cxx | 5 |
3 files changed, 13 insertions, 1 deletions
diff --git a/starmath/Library_sm.mk b/starmath/Library_sm.mk index 86e833f00421..20564240e150 100644 --- a/starmath/Library_sm.mk +++ b/starmath/Library_sm.mk @@ -47,7 +47,9 @@ $(eval $(call gb_Library_add_linked_libs,sm,\ cppuhelper \ editeng \ i18npaper \ + msfilter \ sal \ + sax \ sfx \ sot \ svl \ diff --git a/starmath/inc/unomodel.hxx b/starmath/inc/unomodel.hxx index 693ea3bc9b2e..15ada7b3a152 100644 --- a/starmath/inc/unomodel.hxx +++ b/starmath/inc/unomodel.hxx @@ -37,6 +37,7 @@ #include <sfx2/sfxbasemodel.hxx> #include <comphelper/propertysethelper.hxx> #include <vcl/print.hxx> +#include <filter/msfilter/ooxmlexport.hxx> class SmFormat; @@ -63,7 +64,8 @@ public: class SmModel : public SfxBaseModel, public comphelper::PropertySetHelper, public com::sun::star::lang::XServiceInfo, - public com::sun::star::view::XRenderable + public com::sun::star::view::XRenderable, + public OoxmlFormulaExportBase { SmPrintUIOptions* m_pPrintUIOptions; protected: @@ -100,6 +102,9 @@ public: virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xParent ) throw( ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException ); + // OoxmlFormulaExportBase + virtual void writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer ); + 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 8ee267e65cb1..1820420e7c4c 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -1132,4 +1132,9 @@ void SAL_CALL SmModel::setParent( const uno::Reference< uno::XInterface >& xPare } } +void SmModel::writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer ) +{ +// static_cast< SmDocShell* >( GetObjectShell())->writeFormulaOoxml( m_pSerializer ); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |