LibreOffice Module filter (master) 1
|
#include <mstoolbar.hxx>
Classes | |
struct | iconcontrolitem |
Public Member Functions | |
CustomToolBarImportHelper (SfxObjectShell &rDocSh, const css::uno::Reference< css::ui::XUIConfigurationManager > &rxAppCfgMgr) | |
void | setMSOCommandMap (MSOCommandConvertor *pCnvtr) |
css::uno::Reference< css::ui::XUIConfigurationManager > | getCfgManager () |
const css::uno::Reference< css::ui::XUIConfigurationManager > & | getAppCfgManager () const |
void | addIcon (const css::uno::Reference< css::graphic::XGraphic > &xImage, const OUString &sString) |
void | applyIcons () |
OUString | MSOCommandToOOCommand (sal_Int16 msoCmd) |
OUString | MSOTCIDToOOCommand (sal_Int16 msoTCID) |
SfxObjectShell & | GetDocShell () |
bool | createMenu (const OUString &rName, const css::uno::Reference< css::container::XIndexAccess > &xMenuDesc) |
Static Public Member Functions | |
static css::uno::Any | createCommandFromMacro (std::u16string_view sCmd) |
Static Private Member Functions | |
static void | ScaleImage (css::uno::Reference< css::graphic::XGraphic > &xGraphic, tools::Long nNewSize) |
Private Attributes | |
std::vector< iconcontrolitem > | iconcommands |
std::unique_ptr< MSOCommandConvertor > | pMSOCmdConvertor |
css::uno::Reference< css::ui::XUIConfigurationManagerSupplier > | m_xCfgSupp |
css::uno::Reference< css::ui::XUIConfigurationManager > | m_xAppCfgMgr |
SfxObjectShell & | mrDocSh |
Definition at line 44 of file mstoolbar.hxx.
CustomToolBarImportHelper::CustomToolBarImportHelper | ( | SfxObjectShell & | rDocSh, |
const css::uno::Reference< css::ui::XUIConfigurationManager > & | rxAppCfgMgr | ||
) |
Definition at line 86 of file mstoolbar.cxx.
References SfxObjectShell::GetModel(), m_xAppCfgMgr, m_xCfgSupp, and mrDocSh.
void CustomToolBarImportHelper::addIcon | ( | const css::uno::Reference< css::graphic::XGraphic > & | xImage, |
const OUString & | sString | ||
) |
Definition at line 78 of file mstoolbar.cxx.
References iconcommands, CustomToolBarImportHelper::iconcontrolitem::image, and CustomToolBarImportHelper::iconcontrolitem::sCommand.
void CustomToolBarImportHelper::applyIcons | ( | ) |
Definition at line 56 of file mstoolbar.cxx.
References Application::GetActiveTopWindow(), vcl::Window::GetBackgroundColor(), getCfgManager(), iconcommands, Color::IsDark(), and ScaleImage().
|
static |
Definition at line 100 of file mstoolbar.cxx.
Referenced by TBCGeneralInfo::ImportToolBarControlData().
bool CustomToolBarImportHelper::createMenu | ( | const OUString & | rName, |
const css::uno::Reference< css::container::XIndexAccess > & | xMenuDesc | ||
) |
Definition at line 126 of file mstoolbar.cxx.
References getCfgManager(), and comphelper::makePropertyValue().
|
inline |
Definition at line 62 of file mstoolbar.hxx.
uno::Reference< ui::XUIConfigurationManager > CustomToolBarImportHelper::getCfgManager | ( | ) |
Definition at line 93 of file mstoolbar.cxx.
References m_xCfgSupp.
Referenced by applyIcons(), and createMenu().
|
inline |
Definition at line 71 of file mstoolbar.hxx.
OUString CustomToolBarImportHelper::MSOCommandToOOCommand | ( | sal_Int16 | msoCmd | ) |
Definition at line 109 of file mstoolbar.cxx.
References pMSOCmdConvertor, and result.
OUString CustomToolBarImportHelper::MSOTCIDToOOCommand | ( | sal_Int16 | msoTCID | ) |
Definition at line 117 of file mstoolbar.cxx.
References pMSOCmdConvertor, and result.
|
staticprivate |
Definition at line 39 of file mstoolbar.cxx.
References BitmapEx::AutoScaleBitmap(), Graphic::GetBitmapEx(), Graphic::GetSizePixel(), Graphic::GetXGraphic(), Size::Height(), and Size::Width().
Referenced by applyIcons().
|
inline |
Definition at line 60 of file mstoolbar.hxx.
|
private |
Definition at line 51 of file mstoolbar.hxx.
Referenced by addIcon(), and applyIcons().
|
private |
Definition at line 54 of file mstoolbar.hxx.
Referenced by CustomToolBarImportHelper().
|
private |
Definition at line 53 of file mstoolbar.hxx.
Referenced by CustomToolBarImportHelper(), and getCfgManager().
|
private |
Definition at line 55 of file mstoolbar.hxx.
Referenced by CustomToolBarImportHelper().
|
private |
Definition at line 52 of file mstoolbar.hxx.
Referenced by MSOCommandToOOCommand(), and MSOTCIDToOOCommand().