GSoC progress for week #2.

Disabling slide sorter shorcuts when in edit mode / Impress

In Impress, when editing a text on a slide, CTRL+SHIFT+(HOME/END/ArrowUP/ArrowDOWN) shortcuts doesn’t select the text in the slide, but move the slide to the end of the slide stack.

Solution is simple: Disable slide sorter shortcuts when in text edit mode.

***

This week I tried to disable slide sorter shortcuts while in edit mode. However, I couldn’t found a proper way to disable them.

Code pointers:

Potential solution

In FuText:SetInEditMode, We should disable the global slide sorting shortcuts by something like:

    SfxItemSet aSet(mpViewShell->GetPool());
    aSet.DisableItem(SID_MOVE_PAGE_DOWN);  // and other SIDs: (LAST/UP/FIRST)

or:

    SfxItemSet& rSet = mpView->GetStyleSheet()->GetItemSet();
    rSet.DisableItem(SID_MOVE_PAGE_DOWN);

or:

    SfxItemSet aSet(mpViewShell->GetPool(), svl::Items<EE_PARA_LRSPACE, EE_PARA_LRSPACE>{} );
    aSet.DisableItem(SID_MOVE_PAGE_DOWN);

or:

    auto pSet = std::make_unique<SfxItemSet>( mpViewShell->GetPool());
    pSet->DisableItem(SID_MOVE_PAGE_DOWN);

or:

    SfxItemSet aSet(mpViewShell->GetDoc()->GetPool());
    aSet.DisableItem(SID_SLIDE_SORTER_MODE);

… However, none of them are worked, and I don’t know if there is another way to make SIDs disable while in edit mode. Since we are in the GSoC period, I don’t want to waste my time with a bug that I couldn’t make progress. I will look again this bug after GSoC with a huge free time.

Summary

Next Week TO-DO