sd/qa/unit/tiledrendering/tiledrendering.cxx |    8 ++++----
 sd/source/ui/unoidl/unomodel.cxx             |    2 ++
 2 files changed, 6 insertions(+), 4 deletions(-)

New commits:
commit 464c11aa8c56db3e7b96a07d5cbdeb7b202f697e
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Wed Apr 17 11:38:00 2024 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed Apr 17 15:56:08 2024 +0200

    add Spell state to impress RenderState like we do for calc/writer
    
    Change-Id: I1adfef0fa7220d93b096fbe4b86d0c04b2e5547e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166176
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sd/qa/unit/tiledrendering/tiledrendering.cxx 
b/sd/qa/unit/tiledrendering/tiledrendering.cxx
index 3e28200b4b6a..adc39d571b0a 100644
--- a/sd/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sd/qa/unit/tiledrendering/tiledrendering.cxx
@@ -2423,11 +2423,11 @@ CPPUNIT_TEST_FIXTURE(SdTiledRenderingTest, 
testGetViewRenderState)
     SdXImpressDocument* pXImpressDocument = createDoc("dummy.odp");
     int nFirstViewId = SfxLokHelper::getView();
     ViewCallback aView1;
-    CPPUNIT_ASSERT_EQUAL(";Default"_ostr, 
pXImpressDocument->getViewRenderState());
+    CPPUNIT_ASSERT_EQUAL("S;Default"_ostr, 
pXImpressDocument->getViewRenderState());
     // Create a second view
     SfxLokHelper::createView();
     ViewCallback aView2;
-    CPPUNIT_ASSERT_EQUAL(";Default"_ostr, 
pXImpressDocument->getViewRenderState());
+    CPPUNIT_ASSERT_EQUAL("S;Default"_ostr, 
pXImpressDocument->getViewRenderState());
     // Set to dark scheme
     {
         uno::Sequence<beans::PropertyValue> aPropertyValues = 
comphelper::InitPropertySequence(
@@ -2437,10 +2437,10 @@ CPPUNIT_TEST_FIXTURE(SdTiledRenderingTest, 
testGetViewRenderState)
         );
         dispatchCommand(mxComponent, ".uno:ChangeTheme", aPropertyValues);
     }
-    CPPUNIT_ASSERT_EQUAL(";Dark"_ostr, 
pXImpressDocument->getViewRenderState());
+    CPPUNIT_ASSERT_EQUAL("S;Dark"_ostr, 
pXImpressDocument->getViewRenderState());
     // Switch back to the first view, and check that the options string is the 
same
     SfxLokHelper::setView(nFirstViewId);
-    CPPUNIT_ASSERT_EQUAL(";Default"_ostr, 
pXImpressDocument->getViewRenderState());
+    CPPUNIT_ASSERT_EQUAL("S;Default"_ostr, 
pXImpressDocument->getViewRenderState());
 }
 
 // Helper function to get a tile to a bitmap and check the pixel color
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index f8b6e6af5e87..0fc6bcbcfdeb 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2342,6 +2342,8 @@ OString 
SdXImpressDocument::getViewRenderState(SfxViewShell* pViewShell)
     if (pView)
     {
         const SdViewOptions& pVOpt = pView->GetViewOptions();
+        if (mpDoc->GetOnlineSpell())
+            aState.append('S');
         aState.append(';');
 
         OString aThemeName = OUStringToOString(pVOpt.msColorSchemeName, 
RTL_TEXTENCODING_UTF8);

Reply via email to