22#include <com/sun/star/embed/XStorage.hpp>
23#include <com/sun/star/lang/XEventListener.hpp>
24#include <com/sun/star/ui/ConfigurationEvent.hpp>
25#include <com/sun/star/ui/XUIConfigurationListener.hpp>
26#include <com/sun/star/uno/XComponentContext.hpp>
27#include <com/sun/star/embed/XTransactedObject.hpp>
31#include <rtl/ustring.hxx>
37#include <unordered_map>
47 CmdImageList(css::uno::Reference< css::uno::XComponentContext > xContext, OUString aModuleIdentifier);
62 css::uno::Reference<css::uno::XComponentContext>
m_xContext;
68 explicit GlobalImageList(
const css::uno::Reference< css::uno::XComponentContext >& rxContext);
87 void addEventListener(
const css::uno::Reference< css::lang::XEventListener >& xListener );
89 void removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& aListener );
99 bool hasImage( ::sal_Int16 nImageType,
const OUString& aCommandURL );
102 css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > >
getImages( ::sal_Int16 nImageType,
const css::uno::Sequence< OUString >& aCommandURLSequence );
106 void replaceImages( ::sal_Int16 nImageType,
const css::uno::Sequence< OUString >& aCommandURLSequence,
const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > >& aGraphicsSequence );
110 void removeImages( ::sal_Int16 nImageType,
const css::uno::Sequence< OUString >& aResourceURLSequence );
115 void insertImages( ::sal_Int16 nImageType,
const css::uno::Sequence< OUString >& aCommandURLSequence,
const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > >& aGraphicSequence );
151 const css::uno::Reference< css::embed::XStorage >& xUserImageStorage,
152 const css::uno::Reference< css::embed::XStorage >& xUserBitmapsStorage );
154 const css::uno::Reference< css::embed::XStorage >& xUserImageStorage,
155 const css::uno::Reference< css::embed::XStorage >& xUserBitmapsStorage );
163 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
css::uno::Reference< css::uno::XComponentContext > m_xContext
CmdImageList(css::uno::Reference< css::uno::XComponentContext > xContext, OUString aModuleIdentifier)
virtual std::vector< OUString > & getImageCommandNames()
vcl::CommandImageResolver m_aResolver
OUString m_aModuleIdentifier
virtual Image getImageFromCommandURL(vcl::ImageType nImageType, const OUString &rCommandURL)
virtual bool hasImage(vcl::ImageType nImageType, const OUString &rCommandURL)
virtual ::std::vector< OUString > & getImageCommandNames() override
virtual ~GlobalImageList() override
GlobalImageList(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual Image getImageFromCommandURL(vcl::ImageType nImageType, const OUString &rCommandURL) override
virtual bool hasImage(vcl::ImageType nImageType, const OUString &rCommandURL) override
OUString m_aResourceString
css::uno::Sequence< OUString > getAllImageNames(::sal_Int16 nImageType)
void implts_notifyContainerListener(const css::ui::ConfigurationEvent &aEvent, NotifyOp eOp)
o3tl::enumarray< vcl::ImageType, std::unique_ptr< ImageList > > m_pUserImageList
ImageManagerImpl(css::uno::Reference< css::uno::XComponentContext > xContext,::cppu::OWeakObject *pOwner, bool _bUseGlobal)
::cppu::OWeakObject * m_pOwner
css::uno::Reference< css::embed::XStorage > m_xUserConfigStorage
CmdImageList * implts_getDefaultImageList()
void storeToStorage(const css::uno::Reference< css::embed::XStorage > &Storage)
o3tl::enumarray< vcl::ImageType, bool > m_bUserImageListModified
std::unique_ptr< CmdImageList > m_pDefaultImageList
void insertImages(::sal_Int16 nImageType, const css::uno::Sequence< OUString > &aCommandURLSequence, const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > > &aGraphicSequence)
rtl::Reference< GlobalImageList > m_pGlobalImageList
bool hasImage(::sal_Int16 nImageType, const OUString &aCommandURL)
const rtl::Reference< GlobalImageList > & implts_getGlobalImageList()
css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > > getImages(::sal_Int16 nImageType, const css::uno::Sequence< OUString > &aCommandURLSequence)
comphelper::OInterfaceContainerHelper4< css::ui::XUIConfigurationListener > m_aConfigListeners
css::uno::Reference< css::embed::XStorage > m_xUserBitmapsStorage
css::uno::Reference< css::embed::XStorage > m_xUserImageStorage
OUString m_aModuleIdentifier
void addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener)
void initialize(const css::uno::Sequence< css::uno::Any > &aArguments)
void removeImages(::sal_Int16 nImageType, const css::uno::Sequence< OUString > &aResourceURLSequence)
void replaceImages(::sal_Int16 nImageType, const css::uno::Sequence< OUString > &aCommandURLSequence, const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > > &aGraphicsSequence)
css::uno::Reference< css::embed::XTransactedObject > m_xUserRootCommit
void removeConfigurationListener(const css::uno::Reference< css::ui::XUIConfigurationListener > &Listener)
bool implts_storeUserImages(vcl::ImageType nImageType, const css::uno::Reference< css::embed::XStorage > &xUserImageStorage, const css::uno::Reference< css::embed::XStorage > &xUserBitmapsStorage)
ImageList * implts_getUserImageList(vcl::ImageType nImageType)
void implts_loadUserImages(vcl::ImageType nImageType, const css::uno::Reference< css::embed::XStorage > &xUserImageStorage, const css::uno::Reference< css::embed::XStorage > &xUserBitmapsStorage)
void removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener)
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aEventListeners
void addConfigurationListener(const css::uno::Reference< css::ui::XUIConfigurationListener > &Listener)
css::uno::Reference< css::uno::XComponentContext > m_xContext
Sequence< PropertyValue > aArguments