LibreOffice Module filter (master) 1
Classes | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
CustomToolBarImportHelper Class Reference

#include <mstoolbar.hxx>

Collaboration diagram for CustomToolBarImportHelper:
[legend]

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)
 
SfxObjectShellGetDocShell ()
 
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< iconcontrolitemiconcommands
 
std::unique_ptr< MSOCommandConvertorpMSOCmdConvertor
 
css::uno::Reference< css::ui::XUIConfigurationManagerSupplier > m_xCfgSupp
 
css::uno::Reference< css::ui::XUIConfigurationManager > m_xAppCfgMgr
 
SfxObjectShellmrDocSh
 

Detailed Description

Definition at line 44 of file mstoolbar.hxx.

Constructor & Destructor Documentation

◆ CustomToolBarImportHelper()

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.

Member Function Documentation

◆ addIcon()

void CustomToolBarImportHelper::addIcon ( const css::uno::Reference< css::graphic::XGraphic > &  xImage,
const OUString &  sString 
)

◆ applyIcons()

void CustomToolBarImportHelper::applyIcons ( )

◆ createCommandFromMacro()

uno::Any CustomToolBarImportHelper::createCommandFromMacro ( std::u16string_view  sCmd)
static

Definition at line 100 of file mstoolbar.cxx.

Referenced by TBCGeneralInfo::ImportToolBarControlData().

◆ createMenu()

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().

◆ getAppCfgManager()

const css::uno::Reference< css::ui::XUIConfigurationManager > & CustomToolBarImportHelper::getAppCfgManager ( ) const
inline

Definition at line 62 of file mstoolbar.hxx.

◆ getCfgManager()

uno::Reference< ui::XUIConfigurationManager > CustomToolBarImportHelper::getCfgManager ( )

Definition at line 93 of file mstoolbar.cxx.

References m_xCfgSupp.

Referenced by applyIcons(), and createMenu().

◆ GetDocShell()

SfxObjectShell & CustomToolBarImportHelper::GetDocShell ( )
inline

Definition at line 71 of file mstoolbar.hxx.

◆ MSOCommandToOOCommand()

OUString CustomToolBarImportHelper::MSOCommandToOOCommand ( sal_Int16  msoCmd)

Definition at line 109 of file mstoolbar.cxx.

References pMSOCmdConvertor, and result.

◆ MSOTCIDToOOCommand()

OUString CustomToolBarImportHelper::MSOTCIDToOOCommand ( sal_Int16  msoTCID)

Definition at line 117 of file mstoolbar.cxx.

References pMSOCmdConvertor, and result.

◆ ScaleImage()

void CustomToolBarImportHelper::ScaleImage ( css::uno::Reference< css::graphic::XGraphic > &  xGraphic,
tools::Long  nNewSize 
)
staticprivate

◆ setMSOCommandMap()

void CustomToolBarImportHelper::setMSOCommandMap ( MSOCommandConvertor pCnvtr)
inline

Definition at line 60 of file mstoolbar.hxx.

Member Data Documentation

◆ iconcommands

std::vector< iconcontrolitem > CustomToolBarImportHelper::iconcommands
private

Definition at line 51 of file mstoolbar.hxx.

Referenced by addIcon(), and applyIcons().

◆ m_xAppCfgMgr

css::uno::Reference< css::ui::XUIConfigurationManager > CustomToolBarImportHelper::m_xAppCfgMgr
private

Definition at line 54 of file mstoolbar.hxx.

Referenced by CustomToolBarImportHelper().

◆ m_xCfgSupp

css::uno::Reference< css::ui::XUIConfigurationManagerSupplier > CustomToolBarImportHelper::m_xCfgSupp
private

Definition at line 53 of file mstoolbar.hxx.

Referenced by CustomToolBarImportHelper(), and getCfgManager().

◆ mrDocSh

SfxObjectShell& CustomToolBarImportHelper::mrDocSh
private

Definition at line 55 of file mstoolbar.hxx.

Referenced by CustomToolBarImportHelper().

◆ pMSOCmdConvertor

std::unique_ptr< MSOCommandConvertor > CustomToolBarImportHelper::pMSOCmdConvertor
private

Definition at line 52 of file mstoolbar.hxx.

Referenced by MSOCommandToOOCommand(), and MSOTCIDToOOCommand().


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