20#include <config_features.h>
28#include <com/sun/star/uno/XComponentContext.hpp>
37 :mpBasicManager( nullptr )
45 if (SfxHintId::Dying == rHint.
GetId())
57#if !HAVE_FEATURE_SCRIPTING
58 (void) _pBasicManager;
85#if HAVE_FEATURE_SCRIPTING
86 OSL_PRECOND(
isValid(),
"SfxBasicManagerHolder::storeAllLibraries: not initialized!" );
103#if !HAVE_FEATURE_SCRIPTING
122#if !HAVE_FEATURE_SCRIPTING
125 OSL_PRECOND(
isValid(),
"SfxBasicManagerHolder::storeLibrariesToStorage: not initialized!" );
136 OSL_PRECOND(
isValid(),
"SfxBasicManagerHolder::getLibraryContainer: not initialized!" );
143 OSL_FAIL(
"SfxBasicManagerHolder::getLibraryContainer: illegal container type!" );
155#if !HAVE_FEATURE_SCRIPTING
165extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
167 css::uno::XComponentContext *,
168 css::uno::Sequence<css::uno::Any>
const &)
177extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
179 css::uno::XComponentContext *,
180 css::uno::Sequence<css::uno::Any>
const &)
SfxApplication * SfxGetpApp()
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_sfx2_ApplicationScriptLibraryContainer_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_sfx2_ApplicationDialogLibraryContainer_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
const css::uno::Reference< css::script::XPersistentLibraryContainer > & GetScriptLibraryContainer() const
const css::uno::Reference< css::script::XPersistentLibraryContainer > & GetDialogLibraryContainer() const
bool ImgVersion12PsswdBinaryLimitExceeded(std::vector< OUString > &_out_rModuleNames)
css::script::XLibraryContainer * GetBasicContainer()
static BasicManager * GetBasicManager()
css::script::XLibraryContainer * GetDialogContainer()
bool isValid() const
returns <TRUE> if and only if the instance is currently bound to a non-<NULL> BasicManager.
void storeAllLibraries()
calls the storeLibraries at both our script and basic library container
void reset(BasicManager *_pBasicManager)
binds the instance to the given BasicManager
void impl_releaseContainers()
css::uno::Reference< css::script::XStorageBasedLibraryContainer > mxBasicContainer
void setStorage(const css::uno::Reference< css::embed::XStorage > &_rxStorage)
calls the setStorage at all our XStorageBasedLibraryContainer.
css::uno::Reference< css::script::XStorageBasedLibraryContainer > mxDialogContainer
void storeLibrariesToStorage(const css::uno::Reference< css::embed::XStorage > &_rxStorage)
calls the storeLibrariesToStorage at all our XStorageBasedLibraryContainer.
virtual void Notify(SfxBroadcaster &rBC, SfxHint const &rHint) override
css::script::XLibraryContainer * getLibraryContainer(ContainerType _eType)
BasicManager * mpBasicManager
bool ImgVersion12PsswdBinaryLimitExceeded(std::vector< OUString > &sModules)
checks if any modules in the SfxLibraryContainer exceed the binary limits.
void StartListening(SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
#define DBG_UNHANDLED_EXCEPTION(...)
Implementation of the interface com.sun.star.rdf.XDocumentMetadataAccess.