Kaydet (Commit) 0446a695 authored tarafından Ashod Nakashian's avatar Ashod Nakashian Kaydeden (comit) Ashod Nakashian

LOK: sd: initialize slide-sorter in sd

Change-Id: I4cb6ce6d961b4ba4d542c14cb37370788cf75e45
Reviewed-on: https://gerrit.libreoffice.org/69613Reviewed-by: 's avatarAshod Nakashian <ashnakash@gmail.com>
Tested-by: 's avatarAshod Nakashian <ashnakash@gmail.com>
üst 3c9660f9
......@@ -2640,8 +2640,6 @@ static void doc_initializeForRendering(LibreOfficeKitDocument* pThis,
if (pDoc)
{
doc_iniUnoCommands();
// Create the SlideSorter which is used for multiselection and reordering.
doc_postUnoCommand(pThis, ".uno:LeftPaneImpress", nullptr, false);
pDoc->initializeForTiledRendering(
comphelper::containerToSequence(jsonToPropertyValuesVector(pArguments)));
}
......
......@@ -32,6 +32,7 @@
#include <com/sun/star/embed/Aspects.hpp>
#include <comphelper/dispatchcommand.hxx>
#include <comphelper/lok.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/servicehelper.hxx>
......@@ -2511,6 +2512,16 @@ void SdXImpressDocument::initializeForTiledRendering(const css::uno::Sequence<cs
// causing 'Save' being disabled; so let's always save to the original
// format
SvtSaveOptions().SetWarnAlienFormat(false);
// Set up the .uno command parameters.
beans::PropertyValue aSynchronMode;
aSynchronMode.Name = "SynchronMode";
aSynchronMode.Value <<= true;
const std::vector<beans::PropertyValue> aPropertyValuesVector({aSynchronMode});
// Create the SlideSorter which is used for multiselection and reordering.
static const OUString aLeftPaneCommand(".uno:LeftPaneImpress");
comphelper::dispatchCommand(aLeftPaneCommand, comphelper::containerToSequence(aPropertyValuesVector));
}
void SdXImpressDocument::postKeyEvent(int nType, int nCharCode, int nKeyCode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment