• Philippe Jung's avatar
    Impress: Rework the way the display modes are presented. · 229fc164
    Philippe Jung yazdı
    TODO: take into account remarks from Gerrit
    
    New combo to select display mode among:
     - Slide edition (Normal)
     - Outline
     - Notes
     - Slide sorter
     - Slide master
     - Notes master
     - Handout (master, as we are designing the template used to generate
       the handout)
    
    The combo is based on uno command .uno:DisplayMode
    
    Center pane tabs are hidden by default. A new uno dispatch
    command (.uno:ToggleTabBarVisibility) is available to show/hide
    this tab bar.
    
    Modified uno dispatch commands:
    
    No uno name has been modified.
    
    .uno:DiaMode :
    SID_DIAMODE renamed SID_SLIDER_SORTER_MODE
    
    .uno:OutlineMode
    SID_OUTLINEMODE renamed SID_OUTLINE_MODE
    
    .uno:NotesMode
    No change
    
    .uno:HandoutMode
    SID_HANDOUT_MODE renamed SID_HANDOUT_MASTER_MODE
    All internal code also considers the edit mode as master
    
    .uno:SlideMasterPage
    SID_SLIDE_MASTERPAGE renamed SID_SLIDE_MASTER_MODE
    If the input parameter SfxBoolItem Isactive is true or not provided,
    activates Slide Master mode. If parameter is false, activates the
    "Normal" (slide editing) mode.
    
    .uno:NotesMasterPage
    SID_NOTES_MASTERPAGE renamed SID_NOTES_MASTER_MODE
    If the input parameter SfxBoolItem Isactive is true or not provided,
    activates Notes Master mode. If parameter is false, activates the
    "Notes" mode.
    
    Modified behaviours: Now only one mode can be chosen. It is possible to
    navigate from a mode to any other mode.
    Previous behaviour: the following navigation
         Normal -> Slide Master -> Notes -> Normal
    was displaying slide master. It was required to activate Normal once more
    to get back to normal.
    Now the same commands will display the requested mode.
    
    Still to come (at least):
    - Fix reopen the last display mode.
    - Center pane tabs are now presenting all buttons for all modes (TODO).
    
    Change-Id: I11ab59d2f3caa9149260c5e55d44d598d0ce3390
    Reviewed-on: https://gerrit.libreoffice.org/16723Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarJan Holesovsky <kendy@collabora.com>
    Tested-by: 's avatarJan Holesovsky <kendy@collabora.com>
    229fc164
sdraw.sdi 140 KB