LibreOffice Module sfx2 (master) 1
|
helper class which holds and manipulates a BasicManager More...
#include <appbaslib.hxx>
Public Types | |
enum | ContainerType { SCRIPTS , DIALOGS } |
Public Member Functions | |
SfxBasicManagerHolder () | |
bool | isValid () const |
returns <TRUE> if and only if the instance is currently bound to a non-<NULL> BasicManager. More... | |
BasicManager * | get () const |
returns the BasicManager which this instance is currently bound to More... | |
void | reset (BasicManager *_pBasicManager) |
binds the instance to the given BasicManager More... | |
css::script::XLibraryContainer * | getLibraryContainer (ContainerType _eType) |
void | storeAllLibraries () |
calls the storeLibraries at both our script and basic library container More... | |
void | setStorage (const css::uno::Reference< css::embed::XStorage > &_rxStorage) |
calls the setStorage at all our XStorageBasedLibraryContainer. More... | |
void | storeLibrariesToStorage (const css::uno::Reference< css::embed::XStorage > &_rxStorage) |
calls the storeLibrariesToStorage at all our XStorageBasedLibraryContainer. More... | |
bool | ImgVersion12PsswdBinaryLimitExceeded (std::vector< OUString > &sModules) |
checks if any modules in the SfxLibraryContainer exceed the binary limits. More... | |
virtual void | Notify (SfxBroadcaster &rBC, SfxHint const &rHint) override |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Private Member Functions | |
void | impl_releaseContainers () |
Private Attributes | |
BasicManager * | mpBasicManager |
css::uno::Reference< css::script::XStorageBasedLibraryContainer > | mxBasicContainer |
css::uno::Reference< css::script::XStorageBasedLibraryContainer > | mxDialogContainer |
helper class which holds and manipulates a BasicManager
Definition at line 33 of file appbaslib.hxx.
Enumerator | |
---|---|
SCRIPTS | |
DIALOGS |
Definition at line 46 of file appbaslib.hxx.
SfxBasicManagerHolder::SfxBasicManagerHolder | ( | ) |
Definition at line 36 of file appbaslib.cxx.
|
inline |
returns the BasicManager which this instance is currently bound to
Definition at line 59 of file appbaslib.hxx.
References mpBasicManager.
XLibraryContainer * SfxBasicManagerHolder::getLibraryContainer | ( | ContainerType | _eType | ) |
Definition at line 134 of file appbaslib.cxx.
References DIALOGS, isValid(), mxBasicContainer, mxDialogContainer, and SCRIPTS.
bool SfxBasicManagerHolder::ImgVersion12PsswdBinaryLimitExceeded | ( | std::vector< OUString > & | sModules | ) |
checks if any modules in the SfxLibraryContainer exceed the binary limits.
Definition at line 153 of file appbaslib.cxx.
References BasicManager::ImgVersion12PsswdBinaryLimitExceeded(), and mpBasicManager.
|
private |
Definition at line 147 of file appbaslib.cxx.
References mxBasicContainer, and mxDialogContainer.
Referenced by reset().
|
inline |
returns <TRUE> if and only if the instance is currently bound to a non-<NULL> BasicManager.
Definition at line 54 of file appbaslib.hxx.
References mpBasicManager.
Referenced by getLibraryContainer(), storeAllLibraries(), and storeLibrariesToStorage().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 41 of file appbaslib.cxx.
References SfxHint::GetId(), mpBasicManager, mxBasicContainer, and mxDialogContainer.
void SfxBasicManagerHolder::reset | ( | BasicManager * | _pBasicManager | ) |
binds the instance to the given BasicManager
Definition at line 53 of file appbaslib.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, BasicManager::GetDialogLibraryContainer(), BasicManager::GetScriptLibraryContainer(), impl_releaseContainers(), mpBasicManager, mxBasicContainer, mxDialogContainer, and SfxListener::StartListening().
void SfxBasicManagerHolder::setStorage | ( | const css::uno::Reference< css::embed::XStorage > & | _rxStorage | ) |
calls the setStorage at all our XStorageBasedLibraryContainer.
Definition at line 101 of file appbaslib.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, mxBasicContainer, and mxDialogContainer.
void SfxBasicManagerHolder::storeAllLibraries | ( | ) |
calls the storeLibraries at both our script and basic library container
Definition at line 83 of file appbaslib.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, isValid(), mxBasicContainer, and mxDialogContainer.
void SfxBasicManagerHolder::storeLibrariesToStorage | ( | const css::uno::Reference< css::embed::XStorage > & | _rxStorage | ) |
calls the storeLibrariesToStorage at all our XStorageBasedLibraryContainer.
Definition at line 120 of file appbaslib.cxx.
References isValid(), mxBasicContainer, and mxDialogContainer.
|
private |
Definition at line 37 of file appbaslib.hxx.
Referenced by get(), ImgVersion12PsswdBinaryLimitExceeded(), isValid(), Notify(), and reset().
|
private |
Definition at line 39 of file appbaslib.hxx.
Referenced by getLibraryContainer(), impl_releaseContainers(), Notify(), reset(), setStorage(), storeAllLibraries(), and storeLibrariesToStorage().
|
private |
Definition at line 41 of file appbaslib.hxx.
Referenced by getLibraryContainer(), impl_releaseContainers(), Notify(), reset(), setStorage(), storeAllLibraries(), and storeLibrariesToStorage().