diff options
author | dante <dante19031999@gmail.com> | 2021-08-10 14:24:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-13 15:43:56 +0200 |
commit | d3ff1aa10839be41a419d5a1004a50915182d163 (patch) | |
tree | a939e48de858a082a1003da4a8f428e2ed04657b /starmath | |
parent | 9753428dfc2bf038188c9a59af7fd2d789b46517 (diff) |
Include the starmath version inside the configuration
Change-Id: I4492fad6eb498e0c8c9a53b2096f538f2916d843
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120271
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/unomodel.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 1a5cecbabe3e..5c49c8b52a64 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -224,6 +224,7 @@ enum SmModelPropertyHandles HANDLE_DIALOG_LIBRARIES, // #i73329# HANDLE_BASELINE, HANDLE_INTEROP_GRAB_BAG, + HANDLE_STARMATH_VERSION }; } @@ -301,6 +302,7 @@ static rtl::Reference<PropertySetInfo> lcl_createModelPropertyInfo () // #i972# { OUString("BaseLine") , HANDLE_BASELINE , ::cppu::UnoType<sal_Int16>::get(), PROPERTY_NONE, 0 }, { OUString("InteropGrabBag") , HANDLE_INTEROP_GRAB_BAG , cppu::UnoType<uno::Sequence< beans::PropertyValue >>::get(), PROPERTY_NONE, 0 }, + { OUString("SyntaxVersion") , HANDLE_STARMATH_VERSION , ::cppu::UnoType<sal_Int16>::get(), PROPERTY_NONE, 0 }, { OUString(), 0, css::uno::Type(), 0, 0 } }; return rtl::Reference<PropertySetInfo>( new PropertySetInfo ( aModelPropertyInfoMap ) ); @@ -667,6 +669,9 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any* pDocSh->SetUseThumbnailSave(bThumbnail); } break; + case HANDLE_STARMATH_VERSION: + pDocSh->SetSmSyntaxVersion(pValues->get<sal_uInt16>()); + break; } } @@ -885,6 +890,9 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu *pValue <<= pDocSh->IsUseThumbnailSave(); } break; + case HANDLE_STARMATH_VERSION: + *pValue <<= pDocSh->GetSmSyntaxVersion(); + break; } } } |