LibreOffice Module sfx2 (master) 1
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SfxBasicManagerHolder Class Referencefinal

helper class which holds and manipulates a BasicManager More...

#include <appbaslib.hxx>

Inheritance diagram for SfxBasicManagerHolder:
[legend]
Collaboration diagram for SfxBasicManagerHolder:
[legend]

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

BasicManagermpBasicManager
 
css::uno::Reference< css::script::XStorageBasedLibraryContainer > mxBasicContainer
 
css::uno::Reference< css::script::XStorageBasedLibraryContainer > mxDialogContainer
 

Detailed Description

helper class which holds and manipulates a BasicManager

Definition at line 33 of file appbaslib.hxx.

Member Enumeration Documentation

◆ ContainerType

Enumerator
SCRIPTS 
DIALOGS 

Definition at line 46 of file appbaslib.hxx.

Constructor & Destructor Documentation

◆ SfxBasicManagerHolder()

SfxBasicManagerHolder::SfxBasicManagerHolder ( )

Definition at line 36 of file appbaslib.cxx.

Member Function Documentation

◆ get()

BasicManager * SfxBasicManagerHolder::get ( ) const
inline

returns the BasicManager which this instance is currently bound to

Definition at line 59 of file appbaslib.hxx.

References mpBasicManager.

◆ getLibraryContainer()

XLibraryContainer * SfxBasicManagerHolder::getLibraryContainer ( ContainerType  _eType)

Definition at line 134 of file appbaslib.cxx.

References DIALOGS, isValid(), mxBasicContainer, mxDialogContainer, and SCRIPTS.

◆ ImgVersion12PsswdBinaryLimitExceeded()

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.

◆ impl_releaseContainers()

void SfxBasicManagerHolder::impl_releaseContainers ( )
private

Definition at line 147 of file appbaslib.cxx.

References mxBasicContainer, and mxDialogContainer.

Referenced by reset().

◆ isValid()

bool SfxBasicManagerHolder::isValid ( ) const
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().

◆ Notify()

void SfxBasicManagerHolder::Notify ( SfxBroadcaster rBC,
SfxHint const &  rHint 
)
overridevirtual

Reimplemented from SfxListener.

Definition at line 41 of file appbaslib.cxx.

References SfxHint::GetId(), mpBasicManager, mxBasicContainer, and mxDialogContainer.

◆ reset()

void SfxBasicManagerHolder::reset ( BasicManager _pBasicManager)

◆ setStorage()

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.

◆ storeAllLibraries()

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.

◆ storeLibrariesToStorage()

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.

Member Data Documentation

◆ mpBasicManager

BasicManager* SfxBasicManagerHolder::mpBasicManager
private

Definition at line 37 of file appbaslib.hxx.

Referenced by get(), ImgVersion12PsswdBinaryLimitExceeded(), isValid(), Notify(), and reset().

◆ mxBasicContainer

css::uno::Reference< css::script::XStorageBasedLibraryContainer > SfxBasicManagerHolder::mxBasicContainer
private

◆ mxDialogContainer

css::uno::Reference< css::script::XStorageBasedLibraryContainer > SfxBasicManagerHolder::mxDialogContainer
private

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