LibreOffice Module framework (master) 1
Public Types | Public Member Functions | Public Attributes | List of all members
framework::ImageManagerImpl Class Reference

#include <imagemanagerimpl.hxx>

Collaboration diagram for framework::ImageManagerImpl:
[legend]

Public Types

enum  NotifyOp {
  NotifyOp_Remove ,
  NotifyOp_Insert ,
  NotifyOp_Replace
}
 

Public Member Functions

 ImageManagerImpl (css::uno::Reference< css::uno::XComponentContext > xContext,::cppu::OWeakObject *pOwner, bool _bUseGlobal)
 
 ~ImageManagerImpl ()
 
void dispose ()
 
void initialize (const css::uno::Sequence< css::uno::Any > &aArguments)
 
void addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener)
 
void removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener)
 
void reset ()
 
css::uno::Sequence< OUString > getAllImageNames (::sal_Int16 nImageType)
 
bool hasImage (::sal_Int16 nImageType, const OUString &aCommandURL)
 
css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > > getImages (::sal_Int16 nImageType, const css::uno::Sequence< OUString > &aCommandURLSequence)
 
void replaceImages (::sal_Int16 nImageType, const css::uno::Sequence< OUString > &aCommandURLSequence, const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > > &aGraphicsSequence)
 
void removeImages (::sal_Int16 nImageType, const css::uno::Sequence< OUString > &aResourceURLSequence)
 
void insertImages (::sal_Int16 nImageType, const css::uno::Sequence< OUString > &aCommandURLSequence, const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > > &aGraphicSequence)
 
void addConfigurationListener (const css::uno::Reference< css::ui::XUIConfigurationListener > &Listener)
 
void removeConfigurationListener (const css::uno::Reference< css::ui::XUIConfigurationListener > &Listener)
 
void reload ()
 
void store ()
 
void storeToStorage (const css::uno::Reference< css::embed::XStorage > &Storage)
 
bool isModified () const
 
bool isReadOnly () const
 
void clear ()
 
void implts_initialize ()
 
void implts_notifyContainerListener (const css::ui::ConfigurationEvent &aEvent, NotifyOp eOp)
 
ImageListimplts_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)
 
bool implts_storeUserImages (vcl::ImageType nImageType, const css::uno::Reference< css::embed::XStorage > &xUserImageStorage, const css::uno::Reference< css::embed::XStorage > &xUserBitmapsStorage)
 
const rtl::Reference< GlobalImageList > & implts_getGlobalImageList ()
 
CmdImageListimplts_getDefaultImageList ()
 

Public Attributes

css::uno::Reference< css::embed::XStorage > m_xUserConfigStorage
 
css::uno::Reference< css::embed::XStorage > m_xUserImageStorage
 
css::uno::Reference< css::embed::XStorage > m_xUserBitmapsStorage
 
css::uno::Reference< css::embed::XTransactedObject > m_xUserRootCommit
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
::cppu::OWeakObjectm_pOwner
 
rtl::Reference< GlobalImageListm_pGlobalImageList
 
std::unique_ptr< CmdImageListm_pDefaultImageList
 
OUString m_aModuleIdentifier
 
OUString m_aResourceString
 
std::mutex m_mutex
 
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aEventListeners
 
comphelper::OInterfaceContainerHelper4< css::ui::XUIConfigurationListener > m_aConfigListeners
 
o3tl::enumarray< vcl::ImageType, std::unique_ptr< ImageList > > m_pUserImageList
 
o3tl::enumarray< vcl::ImageType, bool > m_bUserImageListModified
 
bool m_bUseGlobal
 
bool m_bReadOnly
 
bool m_bInitialized
 
bool m_bModified
 
bool m_bDisposed
 

Detailed Description

Definition at line 76 of file imagemanagerimpl.hxx.

Member Enumeration Documentation

◆ NotifyOp

Enumerator
NotifyOp_Remove 
NotifyOp_Insert 
NotifyOp_Replace 

Definition at line 140 of file imagemanagerimpl.hxx.

Constructor & Destructor Documentation

◆ ImageManagerImpl()

framework::ImageManagerImpl::ImageManagerImpl ( css::uno::Reference< css::uno::XComponentContext >  xContext,
::cppu::OWeakObject pOwner,
bool  _bUseGlobal 
)

◆ ~ImageManagerImpl()

framework::ImageManagerImpl::~ImageManagerImpl ( )

Definition at line 496 of file imagemanagerimpl.cxx.

References clear().

Member Function Documentation

◆ addConfigurationListener()

void framework::ImageManagerImpl::addConfigurationListener ( const css::uno::Reference< css::ui::XUIConfigurationListener > &  Listener)
Exceptions
css::uno::RuntimeException

Definition at line 1148 of file imagemanagerimpl.cxx.

References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aConfigListeners, m_bDisposed, and m_mutex.

◆ addEventListener()

void framework::ImageManagerImpl::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
Exceptions
css::uno::RuntimeException

Definition at line 531 of file imagemanagerimpl.cxx.

References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aEventListeners, m_bDisposed, and m_mutex.

◆ clear()

void framework::ImageManagerImpl::clear ( )

Definition at line 1199 of file imagemanagerimpl.cxx.

References m_pUserImageList, and n.

Referenced by ~ImageManagerImpl().

◆ dispose()

void framework::ImageManagerImpl::dispose ( void  )

◆ getAllImageNames()

Sequence< OUString > framework::ImageManagerImpl::getAllImageNames ( ::sal_Int16  nImageType)

◆ getImages()

Sequence< uno::Reference< XGraphic > > framework::ImageManagerImpl::getImages ( ::sal_Int16  nImageType,
const css::uno::Sequence< OUString > &  aCommandURLSequence 
)

◆ hasImage()

bool framework::ImageManagerImpl::hasImage ( ::sal_Int16  nImageType,
const OUString &  aCommandURL 
)

◆ implts_getDefaultImageList()

CmdImageList * framework::ImageManagerImpl::implts_getDefaultImageList ( )

◆ implts_getGlobalImageList()

const rtl::Reference< GlobalImageList > & framework::ImageManagerImpl::implts_getGlobalImageList ( )

◆ implts_getUserImageList()

ImageList * framework::ImageManagerImpl::implts_getUserImageList ( vcl::ImageType  nImageType)

◆ implts_initialize()

void framework::ImageManagerImpl::implts_initialize ( )

◆ implts_loadUserImages()

void framework::ImageManagerImpl::implts_loadUserImages ( vcl::ImageType  nImageType,
const css::uno::Reference< css::embed::XStorage > &  xUserImageStorage,
const css::uno::Reference< css::embed::XStorage > &  xUserBitmapsStorage 
)

◆ implts_notifyContainerListener()

void framework::ImageManagerImpl::implts_notifyContainerListener ( const css::ui::ConfigurationEvent &  aEvent,
NotifyOp  eOp 
)

◆ implts_storeUserImages()

bool framework::ImageManagerImpl::implts_storeUserImages ( vcl::ImageType  nImageType,
const css::uno::Reference< css::embed::XStorage > &  xUserImageStorage,
const css::uno::Reference< css::embed::XStorage > &  xUserBitmapsStorage 
)

◆ initialize()

void framework::ImageManagerImpl::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)

◆ insertImages()

void framework::ImageManagerImpl::insertImages ( ::sal_Int16  nImageType,
const css::uno::Sequence< OUString > &  aCommandURLSequence,
const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > > &  aGraphicSequence 
)
Exceptions
css::container::ElementExistException
css::lang::IllegalArgumentException
css::lang::IllegalAccessException
css::uno::RuntimeException

Definition at line 925 of file imagemanagerimpl.cxx.

References replaceImages().

◆ isModified()

bool framework::ImageManagerImpl::isModified ( ) const
Exceptions
css::uno::RuntimeException

Definition at line 1136 of file imagemanagerimpl.cxx.

References m_bModified.

◆ isReadOnly()

bool framework::ImageManagerImpl::isReadOnly ( ) const
Exceptions
css::uno::RuntimeException

Definition at line 1142 of file imagemanagerimpl.cxx.

References m_bReadOnly.

◆ reload()

void framework::ImageManagerImpl::reload ( )

◆ removeConfigurationListener()

void framework::ImageManagerImpl::removeConfigurationListener ( const css::uno::Reference< css::ui::XUIConfigurationListener > &  Listener)
Exceptions
css::uno::RuntimeException

Definition at line 1162 of file imagemanagerimpl.cxx.

References m_aConfigListeners, m_mutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().

◆ removeEventListener()

void framework::ImageManagerImpl::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
Exceptions
css::uno::RuntimeException

Definition at line 545 of file imagemanagerimpl.cxx.

References m_aEventListeners, m_mutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().

◆ removeImages()

void framework::ImageManagerImpl::removeImages ( ::sal_Int16  nImageType,
const css::uno::Sequence< OUString > &  aResourceURLSequence 
)

◆ replaceImages()

void framework::ImageManagerImpl::replaceImages ( ::sal_Int16  nImageType,
const css::uno::Sequence< OUString > &  aCommandURLSequence,
const css::uno::Sequence< css::uno::Reference< css::graphic::XGraphic > > &  aGraphicsSequence 
)

◆ reset()

void framework::ImageManagerImpl::reset ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalAccessException

Definition at line 597 of file imagemanagerimpl.cxx.

References comphelper::containerToSequence(), ImageList::GetImageNames(), i, implts_getUserImageList(), m_bDisposed, m_bModified, m_bUserImageListModified, and removeImages().

◆ store()

void framework::ImageManagerImpl::store ( )
Exceptions
css::uno::Exception
css::uno::RuntimeException

Definition at line 1074 of file imagemanagerimpl.cxx.

References i, implts_storeUserImages(), m_bDisposed, m_bModified, m_bUserImageListModified, m_xUserBitmapsStorage, m_xUserConfigStorage, m_xUserImageStorage, and m_xUserRootCommit.

◆ storeToStorage()

void framework::ImageManagerImpl::storeToStorage ( const css::uno::Reference< css::embed::XStorage > &  Storage)
Exceptions
css::uno::Exception
css::uno::RuntimeException

Definition at line 1106 of file imagemanagerimpl.cxx.

References BITMAPS_FOLDER, i, IMAGE_FOLDER, implts_getUserImageList(), implts_storeUserImages(), m_bDisposed, m_bModified, and Storage.

Member Data Documentation

◆ m_aConfigListeners

comphelper::OInterfaceContainerHelper4<css::ui::XUIConfigurationListener> framework::ImageManagerImpl::m_aConfigListeners

◆ m_aEventListeners

comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> framework::ImageManagerImpl::m_aEventListeners

Definition at line 170 of file imagemanagerimpl.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

◆ m_aModuleIdentifier

OUString framework::ImageManagerImpl::m_aModuleIdentifier

Definition at line 167 of file imagemanagerimpl.hxx.

Referenced by implts_getDefaultImageList(), and initialize().

◆ m_aResourceString

OUString framework::ImageManagerImpl::m_aResourceString

Definition at line 168 of file imagemanagerimpl.hxx.

Referenced by reload(), removeImages(), and replaceImages().

◆ m_bDisposed

bool framework::ImageManagerImpl::m_bDisposed

◆ m_bInitialized

bool framework::ImageManagerImpl::m_bInitialized

Definition at line 176 of file imagemanagerimpl.hxx.

Referenced by initialize().

◆ m_bModified

bool framework::ImageManagerImpl::m_bModified

◆ m_bReadOnly

bool framework::ImageManagerImpl::m_bReadOnly

◆ m_bUseGlobal

bool framework::ImageManagerImpl::m_bUseGlobal

Definition at line 174 of file imagemanagerimpl.hxx.

Referenced by getAllImageNames(), getImages(), hasImage(), reload(), and removeImages().

◆ m_bUserImageListModified

o3tl::enumarray<vcl::ImageType,bool> framework::ImageManagerImpl::m_bUserImageListModified

◆ m_mutex

std::mutex framework::ImageManagerImpl::m_mutex

◆ m_pDefaultImageList

std::unique_ptr<CmdImageList> framework::ImageManagerImpl::m_pDefaultImageList

Definition at line 166 of file imagemanagerimpl.hxx.

Referenced by dispose(), and implts_getDefaultImageList().

◆ m_pGlobalImageList

rtl::Reference< GlobalImageList > framework::ImageManagerImpl::m_pGlobalImageList

Definition at line 165 of file imagemanagerimpl.hxx.

Referenced by implts_getGlobalImageList().

◆ m_pOwner

::cppu::OWeakObject* framework::ImageManagerImpl::m_pOwner

Definition at line 164 of file imagemanagerimpl.hxx.

Referenced by dispose(), reload(), removeImages(), and replaceImages().

◆ m_pUserImageList

o3tl::enumarray<vcl::ImageType,std::unique_ptr<ImageList> > framework::ImageManagerImpl::m_pUserImageList

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > framework::ImageManagerImpl::m_xContext

◆ m_xUserBitmapsStorage

css::uno::Reference< css::embed::XStorage > framework::ImageManagerImpl::m_xUserBitmapsStorage

Definition at line 161 of file imagemanagerimpl.hxx.

Referenced by implts_getUserImageList(), implts_initialize(), reload(), and store().

◆ m_xUserConfigStorage

css::uno::Reference< css::embed::XStorage > framework::ImageManagerImpl::m_xUserConfigStorage

Definition at line 159 of file imagemanagerimpl.hxx.

Referenced by dispose(), implts_initialize(), initialize(), and store().

◆ m_xUserImageStorage

css::uno::Reference< css::embed::XStorage > framework::ImageManagerImpl::m_xUserImageStorage

◆ m_xUserRootCommit

css::uno::Reference< css::embed::XTransactedObject > framework::ImageManagerImpl::m_xUserRootCommit

Definition at line 162 of file imagemanagerimpl.hxx.

Referenced by dispose(), initialize(), and store().


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