LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ToolbarUnoDispatcher Class Reference

#include <weldutils.hxx>

Collaboration diagram for ToolbarUnoDispatcher:
[legend]

Public Member Functions

 ToolbarUnoDispatcher (weld::Toolbar &rToolbar, weld::Builder &rBuilder, const css::uno::Reference< css::frame::XFrame > &rFrame, bool bSideBar=true)
 
css::uno::Reference< css::frame::XToolbarController > GetControllerForCommand (const OUString &rCommand) const
 
const css::uno::Reference< css::frame::XFrame > & GetFrame () const
 
void dispose ()
 
 ~ToolbarUnoDispatcher ()
 

Private Types

typedef std::map< OUString, css::uno::Reference< css::frame::XToolbarController > > ControllerContainer
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (SelectHdl, const OUString &, void)
 
 DECL_DLLPRIVATE_LINK (ToggleMenuHdl, const OUString &, void)
 
 DECL_DLLPRIVATE_LINK (ChangedIconSizeHandler, LinkParamNone *, void)
 
void CreateController (const OUString &rCommand)
 

Static Private Member Functions

static vcl::ImageType GetIconSize ()
 

Private Attributes

css::uno::Reference< css::frame::XFrame > m_xFrame
 
css::uno::Reference< css::lang::XComponent > m_xImageController
 
SvtMiscOptions m_aToolbarOptions
 
weld::Toolbarm_pToolbar
 
weld::Builderm_pBuilder
 
bool m_bSideBar
 
ControllerContainer maControllers
 

Detailed Description

Definition at line 30 of file weldutils.hxx.

Member Typedef Documentation

◆ ControllerContainer

typedef std::map<OUString, css::uno::Reference<css::frame::XToolbarController> > ToolbarUnoDispatcher::ControllerContainer
private

Definition at line 48 of file weldutils.hxx.

Constructor & Destructor Documentation

◆ ToolbarUnoDispatcher()

ToolbarUnoDispatcher::ToolbarUnoDispatcher ( weld::Toolbar rToolbar,
weld::Builder rBuilder,
const css::uno::Reference< css::frame::XFrame > &  rFrame,
bool  bSideBar = true 
)

◆ ~ToolbarUnoDispatcher()

ToolbarUnoDispatcher::~ToolbarUnoDispatcher ( )

Definition at line 204 of file weldutils.cxx.

References dispose().

Member Function Documentation

◆ CreateController()

void ToolbarUnoDispatcher::CreateController ( const OUString &  rCommand)
private

◆ DECL_DLLPRIVATE_LINK() [1/3]

ToolbarUnoDispatcher::DECL_DLLPRIVATE_LINK ( ChangedIconSizeHandler  ,
LinkParamNone ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/3]

ToolbarUnoDispatcher::DECL_DLLPRIVATE_LINK ( SelectHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/3]

ToolbarUnoDispatcher::DECL_DLLPRIVATE_LINK ( ToggleMenuHdl  ,
const OUString &  ,
void   
)
private

◆ dispose()

void ToolbarUnoDispatcher::dispose ( void  )

◆ GetControllerForCommand()

css::uno::Reference< css::frame::XToolbarController > ToolbarUnoDispatcher::GetControllerForCommand ( const OUString &  rCommand) const

Definition at line 129 of file weldutils.cxx.

References maControllers.

◆ GetFrame()

const css::uno::Reference< css::frame::XFrame > & ToolbarUnoDispatcher::GetFrame ( ) const
inline

Definition at line 60 of file weldutils.hxx.

References m_xFrame.

◆ GetIconSize()

vcl::ImageType ToolbarUnoDispatcher::GetIconSize ( )
staticprivate

Definition at line 57 of file weldutils.cxx.

References eType, vcl::Size16, vcl::Size26, and vcl::Size32.

Referenced by ToolbarUnoDispatcher().

Member Data Documentation

◆ m_aToolbarOptions

SvtMiscOptions ToolbarUnoDispatcher::m_aToolbarOptions
private

Definition at line 35 of file weldutils.hxx.

Referenced by dispose(), and ToolbarUnoDispatcher().

◆ m_bSideBar

bool ToolbarUnoDispatcher::m_bSideBar
private

Definition at line 38 of file weldutils.hxx.

Referenced by CreateController().

◆ m_pBuilder

weld::Builder* ToolbarUnoDispatcher::m_pBuilder
private

Definition at line 37 of file weldutils.hxx.

Referenced by CreateController(), dispose(), and ToolbarUnoDispatcher().

◆ m_pToolbar

weld::Toolbar* ToolbarUnoDispatcher::m_pToolbar
private

Definition at line 36 of file weldutils.hxx.

Referenced by CreateController(), dispose(), and ToolbarUnoDispatcher().

◆ m_xFrame

css::uno::Reference<css::frame::XFrame> ToolbarUnoDispatcher::m_xFrame
private

Definition at line 33 of file weldutils.hxx.

Referenced by CreateController(), and ToolbarUnoDispatcher().

◆ m_xImageController

css::uno::Reference<css::lang::XComponent> ToolbarUnoDispatcher::m_xImageController
private

Definition at line 34 of file weldutils.hxx.

Referenced by dispose(), and ToolbarUnoDispatcher().

◆ maControllers

ControllerContainer ToolbarUnoDispatcher::maControllers
private

Definition at line 49 of file weldutils.hxx.

Referenced by CreateController(), dispose(), and GetControllerForCommand().


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