• Laurent Godard's avatar
    new uno sidebar api tdf#91806 · a6499951
    Laurent Godard yazdı
    the entry point is SfxBaseController::getSidebar()
    
    the Decks and panels are now per SidebarController and not global anymore
    
    ' macro example
    Sub testSidebarApi
    
    	controller =  thisComponent.currentcontroller
    	frameIni =  thisComponent.currentcontroller.frame
    	sidebar =  thisComponent.currentcontroller.getSidebar()
    
    	sidebar.setVisible(true)
    
    	frame = sidebar.getFrame()
    
    	decks = sidebar.getdecks()
    
    	c = decks.count
    
    	h = decks.hasElements()
    
    	e = decks.getElementNames()
    
    	a =  decks.hasByName("MyDeck")
    
    	deck = decks.getByName("MyDeck")
    	deck.activate(true)
    
    	t = deck.getTitle()
    	deck.setTitle("new deck title")
    
            deck.moveFirst()
            deck.moveLast()
            deck.moveUp()
            deck.moveDown()
    
            index = deck.getOrderIndex()
    
    	panels = deck.getPanels()
    	ep = panels.getElementnames()
    
    	ap = panels.hasByName("aPanelName")
    
    	panel = panels.getByName("aPanelName")
    	panel.setTitle("new panel title")
    
    	panel.collapse()
    
    	panel.expand(true) ' expand and collapse other
    
            index = panel.getOrderIndex()
    
            panel.moveLast()
            panel.moveFirst()
            panel.moveDown()
            panel.moveUp()
    
    End Sub
    
    Change-Id: I7a4b953f2277dea483bb296ba6ead35de7205ace
    Reviewed-on: https://gerrit.libreoffice.org/15856Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
    Tested-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
    a6499951
Adı
Son kayıt (commit)
Son güncelleme
..
AsynchronousLink.hxx Loading commit data...
IController.hxx Loading commit data...
ToolBoxHelper.hxx Loading commit data...
controllerframe.hxx Loading commit data...
dataview.hxx Loading commit data...
dbaccessdllapi.h Loading commit data...
dbaundomanager.hxx Loading commit data...
dbsubcomponentcontroller.hxx Loading commit data...
genericcontroller.hxx Loading commit data...