/** helper class which holds and manipulates a BasicManager
*/ class SfxBasicManagerHolder final
: public SfxListener
{ private:
BasicManager* mpBasicManager;
css::uno::Reference< css::script::XStorageBasedLibraryContainer >
mxBasicContainer;
css::uno::Reference< css::script::XStorageBasedLibraryContainer >
mxDialogContainer;
public:
SfxBasicManagerHolder();
enum ContainerType
{
SCRIPTS, DIALOGS
};
/** returns <TRUE/> if and only if the instance is currently bound to a non-<NULL/> BasicManager.
*/ bool isValid() const { return mpBasicManager != nullptr; }
/** returns the BasicManager which this instance is currently bound to
*/
BasicManager*
get() const { return mpBasicManager; }
/** binds the instance to the given BasicManager
*/ void reset( BasicManager* _pBasicManager );
/** calls the storeLibraries at both our script and basic library container
*/ void storeAllLibraries();
/** calls the setStorage at all our XStorageBasedLibraryContainer.
*/ void setStorage( const css::uno::Reference< css::embed::XStorage >& _rxStorage
);
/** calls the storeLibrariesToStorage at all our XStorageBasedLibraryContainer.
*/ void storeLibrariesToStorage( const css::uno::Reference< css::embed::XStorage >& _rxStorage
);
/** checks if any modules in the SfxLibraryContainer exceed the binary limits.
*/ bool ImgVersion12PsswdBinaryLimitExceeded( std::vector< OUString >& sModules );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.