LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SfxUnoDeck Class Referencefinal

get the decks More...

#include <UnoDeck.hxx>

Inheritance diagram for SfxUnoDeck:
[legend]
Collaboration diagram for SfxUnoDeck:
[legend]

Public Member Functions

 SfxUnoDeck (css::uno::Reference< css::frame::XFrame >, OUString)
 
virtual OUString SAL_CALL getId () override
 
virtual OUString SAL_CALL getTitle () override
 
virtual void SAL_CALL setTitle (const OUString &newTitle) override
 
virtual sal_Bool SAL_CALL isActive () override
 
virtual void SAL_CALL activate (const sal_Bool bActivate) override
 
virtual css::uno::Reference< css::ui::XPanels > SAL_CALL getPanels () override
 
virtual sal_Int32 SAL_CALL getOrderIndex () override
 
virtual void SAL_CALL setOrderIndex (const sal_Int32 newOrderIndex) override
 
virtual void SAL_CALL moveFirst () override
 
virtual void SAL_CALL moveLast () override
 
virtual void SAL_CALL moveUp () override
 
virtual void SAL_CALL moveDown () override
 

Private Member Functions

sfx2::sidebar::SidebarControllergetSidebarController ()
 
sal_Int32 GetMaxOrderIndex (const sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer &rDecks)
 
sal_Int32 GetMinOrderIndex (const sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer &rDecks)
 

Private Attributes

const css::uno::Reference< css::frame::XFrame > xFrame
 
const OUString mDeckId
 

Detailed Description

get the decks

Definition at line 26 of file UnoDeck.hxx.

Constructor & Destructor Documentation

◆ SfxUnoDeck()

SfxUnoDeck::SfxUnoDeck ( css::uno::Reference< css::frame::XFrame >  ,
OUString   
)

Definition at line 27 of file UnoDeck.cxx.

References xFrame.

Member Function Documentation

◆ activate()

void SAL_CALL SfxUnoDeck::activate ( const sal_Bool  bActivate)
overridevirtual

Definition at line 93 of file UnoDeck.cxx.

References getSidebarController(), and mDeckId.

◆ getId()

OUString SAL_CALL SfxUnoDeck::getId ( )
overridevirtual

Definition at line 38 of file UnoDeck.cxx.

References mDeckId.

◆ GetMaxOrderIndex()

sal_Int32 SfxUnoDeck::GetMaxOrderIndex ( const sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer rDecks)
private

Definition at line 267 of file UnoDeck.cxx.

References getSidebarController(), and index.

Referenced by moveDown(), and moveLast().

◆ GetMinOrderIndex()

sal_Int32 SfxUnoDeck::GetMinOrderIndex ( const sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer rDecks)
private

Definition at line 251 of file UnoDeck.cxx.

References getSidebarController(), and index.

Referenced by moveFirst(), and moveUp().

◆ getOrderIndex()

sal_Int32 SAL_CALL SfxUnoDeck::getOrderIndex ( )
overridevirtual

Definition at line 119 of file UnoDeck.cxx.

References getSidebarController(), index, and mDeckId.

Referenced by moveDown(), moveFirst(), moveLast(), and moveUp().

◆ getPanels()

uno::Reference< ui::XPanels > SAL_CALL SfxUnoDeck::getPanels ( )
overridevirtual

Definition at line 111 of file UnoDeck.cxx.

References mDeckId, and xFrame.

◆ getSidebarController()

SidebarController * SfxUnoDeck::getSidebarController ( )
private

◆ getTitle()

OUString SAL_CALL SfxUnoDeck::getTitle ( )
overridevirtual

Definition at line 45 of file UnoDeck.cxx.

References getSidebarController(), and mDeckId.

◆ isActive()

sal_Bool SAL_CALL SfxUnoDeck::isActive ( )
overridevirtual

Definition at line 84 of file UnoDeck.cxx.

References getSidebarController(), and mDeckId.

◆ moveDown()

void SAL_CALL SfxUnoDeck::moveDown ( )
overridevirtual

Definition at line 220 of file UnoDeck.cxx.

References GetMaxOrderIndex(), getOrderIndex(), getSidebarController(), index, and mDeckId.

◆ moveFirst()

void SAL_CALL SfxUnoDeck::moveFirst ( )
overridevirtual

Definition at line 143 of file UnoDeck.cxx.

References GetMinOrderIndex(), getOrderIndex(), getSidebarController(), and mDeckId.

◆ moveLast()

void SAL_CALL SfxUnoDeck::moveLast ( )
overridevirtual

Definition at line 166 of file UnoDeck.cxx.

References GetMaxOrderIndex(), getOrderIndex(), getSidebarController(), and mDeckId.

◆ moveUp()

void SAL_CALL SfxUnoDeck::moveUp ( )
overridevirtual

Definition at line 189 of file UnoDeck.cxx.

References GetMinOrderIndex(), getOrderIndex(), getSidebarController(), index, and mDeckId.

◆ setOrderIndex()

void SAL_CALL SfxUnoDeck::setOrderIndex ( const sal_Int32  newOrderIndex)
overridevirtual

Definition at line 128 of file UnoDeck.cxx.

References getSidebarController(), and mDeckId.

◆ setTitle()

void SAL_CALL SfxUnoDeck::setTitle ( const OUString &  newTitle)
overridevirtual

Definition at line 62 of file UnoDeck.cxx.

References getSidebarController(), and mDeckId.

Member Data Documentation

◆ mDeckId

const OUString SfxUnoDeck::mDeckId
private

◆ xFrame

const css::uno::Reference<css::frame::XFrame> SfxUnoDeck::xFrame
private

Definition at line 52 of file UnoDeck.hxx.

Referenced by getPanels(), and getSidebarController().


The documentation for this class was generated from the following files: