• Laurent Godard's avatar
    tdf#67770 store sidebar elements states · 536c259c
    Laurent Godard yazdı
    deck & panel states at user registry level
    when disposing a sidebar
    
    if a shared deck (with "any" context application) is modified,
    it apply to all applications (eg. Gallery between calc and writer); TODO ?
    
    clean ResourceManager Get/Set const/non-const
    
    add panels when deck is created & refactoring
    
    * macro example
    
    Sub Main
    
    controller = thisComponent.currentcontroller
    sidebar = thisComponent.currentcontroller.getSidebar()
    
    sidebar.setVisible(true)
    
    decks = sidebar.getdecks()
    deck = decks.getByName("PropertyDeck")
    
    deck.activate(true)
    deck.setTitle("new deck title")
    deck.moveLast()
    
    panels = deck.getPanels()
    panel = panels.getByName("TextPropertyPanel")
    
    panel.setTitle("new panel title")
    panel.expand(true) ' expand and collapse other
    panel.moveLast()
    
    End Sub
    
    Change-Id: I2552000af92a366ebb51a479962a094b72e400b6
    Reviewed-on: https://gerrit.libreoffice.org/17992Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
    Tested-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
    536c259c
UnoDeck.cxx 9.47 KB