[Libreoffice-commits] core.git: starmath/source

dante (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 13 13:44:31 UTC 2021


 starmath/source/unomodel.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit d3ff1aa10839be41a419d5a1004a50915182d163
Author:     dante <dante19031999 at gmail.com>
AuthorDate: Tue Aug 10 14:24:53 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Aug 13 15:43:56 2021 +0200

    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 at collabora.co.uk>

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;
         }
     }
 }


More information about the Libreoffice-commits mailing list