LibreOffice Module sfx2 (master) 1
|
#include <weldutils.hxx>
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::Toolbar * | m_pToolbar |
weld::Builder * | m_pBuilder |
bool | m_bSideBar |
ControllerContainer | maControllers |
Definition at line 30 of file weldutils.hxx.
|
private |
Definition at line 48 of file weldutils.hxx.
ToolbarUnoDispatcher::ToolbarUnoDispatcher | ( | weld::Toolbar & | rToolbar, |
weld::Builder & | rBuilder, | ||
const css::uno::Reference< css::frame::XFrame > & | rFrame, | ||
bool | bSideBar = true |
||
) |
Definition at line 75 of file weldutils.cxx.
References SvtMiscOptions::AddListenerLink(), aLabel, aProperties, weld::Toolbar::connect_clicked(), weld::Toolbar::connect_menu_toggled(), CreateController(), sfx2::sidebar::ControllerFactory::CreateImageController(), weld::Toolbar::get_item_ident(), weld::Toolbar::get_n_items(), vcl::CommandInfoProvider::GetCommandProperties(), GetIconSize(), vcl::CommandInfoProvider::GetLabelForCommand(), AllSettings::GetLayoutRTL(), vcl::CommandInfoProvider::GetModuleIdentifier(), vcl::CommandInfoProvider::GetTooltipForCommand(), vcl::CommandInfoProvider::GetXGraphicForCommand(), i, LINK, m_aToolbarOptions, m_pBuilder, m_pBuilder, m_pToolbar, m_xFrame, m_xFrame, m_xImageController, weld::Toolbar::set_icon_size(), weld::Toolbar::set_item_ident(), weld::Toolbar::set_item_image(), weld::Toolbar::set_item_label(), and weld::Toolbar::set_item_tooltip_text().
ToolbarUnoDispatcher::~ToolbarUnoDispatcher | ( | ) |
Definition at line 204 of file weldutils.cxx.
References dispose().
|
private |
Definition at line 118 of file weldutils.cxx.
References sfx2::sidebar::ControllerFactory::CreateToolBoxController(), m_bSideBar, m_pBuilder, m_pToolbar, m_xFrame, maControllers, and xController.
Referenced by ToolbarUnoDispatcher().
|
private |
|
private |
|
private |
void ToolbarUnoDispatcher::dispose | ( | void | ) |
Definition at line 181 of file weldutils.cxx.
References weld::Toolbar::connect_clicked(), LINK, m_aToolbarOptions, m_pBuilder, m_pToolbar, m_xImageController, maControllers, and SvtMiscOptions::RemoveListenerLink().
Referenced by ~ToolbarUnoDispatcher().
css::uno::Reference< css::frame::XToolbarController > ToolbarUnoDispatcher::GetControllerForCommand | ( | const OUString & | rCommand | ) | const |
Definition at line 129 of file weldutils.cxx.
References maControllers.
|
inline |
Definition at line 60 of file weldutils.hxx.
References m_xFrame.
|
staticprivate |
Definition at line 57 of file weldutils.cxx.
References eType, vcl::Size16, vcl::Size26, and vcl::Size32.
Referenced by ToolbarUnoDispatcher().
|
private |
Definition at line 35 of file weldutils.hxx.
Referenced by dispose(), and ToolbarUnoDispatcher().
|
private |
Definition at line 38 of file weldutils.hxx.
Referenced by CreateController().
|
private |
Definition at line 37 of file weldutils.hxx.
Referenced by CreateController(), dispose(), and ToolbarUnoDispatcher().
|
private |
Definition at line 36 of file weldutils.hxx.
Referenced by CreateController(), dispose(), and ToolbarUnoDispatcher().
|
private |
Definition at line 33 of file weldutils.hxx.
Referenced by CreateController(), and ToolbarUnoDispatcher().
|
private |
Definition at line 34 of file weldutils.hxx.
Referenced by dispose(), and ToolbarUnoDispatcher().
|
private |
Definition at line 49 of file weldutils.hxx.
Referenced by CreateController(), dispose(), and GetControllerForCommand().