Kaydet (Commit) 7e291eed authored tarafından Jan Holesovsky's avatar Jan Holesovsky

sd lok: Remove the .uno:LeftPaneImpress call from sd lok initialization.

According to my testing, this makes no difference and the moving of
slides and multiple selection behaves the same way with or without this.

So let's return to not activating the SlideSorterBar, because otherwise
we are doing a lot of pixel bashing behind the scenes unnecessarily.

Having said that, if we want to activate it at some stage, it is better
to do something like the following (+ remove the explicit LOK-only if's
from svtools/source/config/slidesorterbaropt.cxx):

  SvtSlideSorterBarOptions().SetVisibleImpressView(true);

instead (and potentially we can also make it floating not to occupy the
space in the main view by

  GetWindow()->SetFloatingMode(true);

in the LOK case in sd/source/ui/dlg/PaneChildWindows.cxxi).

Change-Id: I86b23b484674ad4c6a75246ee6186ad9b828931f
Reviewed-on: https://gerrit.libreoffice.org/71271Reviewed-by: 's avatarAshod Nakashian <ashnakash@gmail.com>
Tested-by: 's avatarAshod Nakashian <ashnakash@gmail.com>
üst 5fd55f1e
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <com/sun/star/embed/Aspects.hpp> #include <com/sun/star/embed/Aspects.hpp>
#include <comphelper/dispatchcommand.hxx>
#include <comphelper/lok.hxx> #include <comphelper/lok.hxx>
#include <comphelper/sequence.hxx> #include <comphelper/sequence.hxx>
#include <comphelper/servicehelper.hxx> #include <comphelper/servicehelper.hxx>
...@@ -2512,16 +2511,6 @@ void SdXImpressDocument::initializeForTiledRendering(const css::uno::Sequence<cs ...@@ -2512,16 +2511,6 @@ void SdXImpressDocument::initializeForTiledRendering(const css::uno::Sequence<cs
// causing 'Save' being disabled; so let's always save to the original // causing 'Save' being disabled; so let's always save to the original
// format // format
SvtSaveOptions().SetWarnAlienFormat(false); 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) 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