LibreOffice Module basic (master) 1
|
#include <namecont.hxx>
Public Member Functions | |
SfxLibraryContainer () | |
virtual | ~SfxLibraryContainer () override |
void | setBasicManager (BasicManager *pBasMgr) |
void | enterMethod () |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual css::uno::Any SAL_CALL | getByName (const OUString &aName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getElementNames () override |
virtual sal_Bool SAL_CALL | hasByName (const OUString &aName) override |
virtual css::uno::Reference< css::embed::XStorage > SAL_CALL | getRootStorage () override |
virtual void SAL_CALL | setRootStorage (const css::uno::Reference< css::embed::XStorage > &_rootstorage) override |
virtual void SAL_CALL | storeLibrariesToStorage (const css::uno::Reference< css::embed::XStorage > &RootStorage) override |
virtual sal_Bool SAL_CALL | isModified () override |
virtual void SAL_CALL | setModified (sal_Bool bModified) override |
virtual void SAL_CALL | addModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override |
virtual void SAL_CALL | removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override |
virtual css::uno::Any SAL_CALL | getRootLocation () override |
virtual OUString SAL_CALL | getContainerLocationName () override |
virtual void SAL_CALL | storeLibraries () override |
virtual OUString SAL_CALL | getOriginalLibraryLinkURL (const OUString &Name) override |
virtual sal_Bool SAL_CALL | isLibraryLink (const OUString &Name) override |
virtual OUString SAL_CALL | getLibraryLinkURL (const OUString &Name) override |
virtual sal_Bool SAL_CALL | isLibraryReadOnly (const OUString &Name) override |
virtual void SAL_CALL | setLibraryReadOnly (const OUString &Name, sal_Bool bReadOnly) override |
virtual void SAL_CALL | renameLibrary (const OUString &Name, const OUString &NewName) override |
virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL | createLibrary (const OUString &Name) override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | createLibraryLink (const OUString &Name, const OUString &StorageURL, sal_Bool ReadOnly) override |
virtual void SAL_CALL | removeLibrary (const OUString &Name) override |
virtual sal_Bool SAL_CALL | isLibraryLoaded (const OUString &Name) override |
virtual void SAL_CALL | loadLibrary (const OUString &Name) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual sal_Bool SAL_CALL | isLibraryPasswordProtected (const OUString &Name) override |
virtual sal_Bool SAL_CALL | isLibraryPasswordVerified (const OUString &Name) override |
virtual sal_Bool SAL_CALL | verifyLibraryPassword (const OUString &Name, const OUString &Password) override |
virtual void SAL_CALL | changeLibraryPassword (const OUString &Name, const OUString &OldPassword, const OUString &NewPassword) override |
virtual void SAL_CALL | addContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override |
virtual void SAL_CALL | removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override |
virtual void SAL_CALL | exportLibrary (const OUString &Name, const OUString &URL, const css::uno::Reference< css::task::XInteractionHandler > &Handler) override |
virtual OUString SAL_CALL | getImplementationName () override=0 |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override=0 |
virtual sal_Bool SAL_CALL | getVBACompatibilityMode () override |
virtual void SAL_CALL | setVBACompatibilityMode (sal_Bool _vbacompatmodeon) override |
virtual OUString SAL_CALL | getProjectName () override |
virtual void SAL_CALL | setProjectName (const OUString &_projectname) override |
virtual sal_Int32 SAL_CALL | getRunningVBAScripts () override |
virtual void SAL_CALL | addVBAScriptListener (const css::uno::Reference< css::script::vba::XVBAScriptListener > &Listener) override |
virtual void SAL_CALL | removeVBAScriptListener (const css::uno::Reference< css::script::vba::XVBAScriptListener > &Listener) override |
virtual void SAL_CALL | broadcastVBAScriptEvent (sal_Int32 nIdentifier, const OUString &rModuleName) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
Static Public Member Functions | |
static void | leaveMethod () |
Protected Types | |
enum | InitMode { DEFAULT , CONTAINER_INIT_FILE , LIBRARY_INIT_FILE , OFFICE_DOCUMENT , OLD_BASIC_STORAGE } |
Protected Member Functions | |
void | implStoreLibrary (SfxLibrary *pLib, std::u16string_view rName, const css::uno::Reference< css::embed::XStorage > &rStorage) |
void | implStoreLibrary (SfxLibrary *pLib, std::u16string_view rName, const css::uno::Reference< css::embed::XStorage > &rStorage, std::u16string_view rTargetURL, const css::uno::Reference< css::ucb::XSimpleFileAccess3 > &rToUseSFI, const css::uno::Reference< css::task::XInteractionHandler > &rHandler) |
void | implStoreLibraryIndexFile (SfxLibrary *pLib, const ::xmlscript::LibDescriptor &rLib, const css::uno::Reference< css::embed::XStorage > &xStorage) |
void | implStoreLibraryIndexFile (SfxLibrary *pLib, const ::xmlscript::LibDescriptor &rLib, const css::uno::Reference< css::embed::XStorage > &xStorage, std::u16string_view aTargetURL, const css::uno::Reference< css::ucb::XSimpleFileAccess3 > &rToUseSFI) |
bool | implLoadLibraryIndexFile (SfxLibrary *pLib, ::xmlscript::LibDescriptor &rLib, const css::uno::Reference< css::embed::XStorage > &xStorage, const OUString &aIndexFileName) |
void | implImportLibDescriptor (SfxLibrary *pLib, ::xmlscript::LibDescriptor const &rLib) |
virtual rtl::Reference< SfxLibrary > | implCreateLibrary (const OUString &aName)=0 |
virtual rtl::Reference< SfxLibrary > | implCreateLibraryLink (const OUString &aName, const OUString &aLibInfoFileURL, const OUString &StorageURL, bool ReadOnly)=0 |
virtual css::uno::Any | createEmptyLibraryElement ()=0 |
virtual bool | isLibraryElementValid (const css::uno::Any &rElement) const =0 |
virtual void | writeLibraryElement (const css::uno::Reference< css::container::XNameContainer > &xLibrary, const OUString &aElementName, const css::uno::Reference< css::io::XOutputStream > &xOutput)=0 |
virtual css::uno::Any | importLibraryElement (const css::uno::Reference< css::container::XNameContainer > &xLibrary, const OUString &aElementName, const OUString &aFile, const css::uno::Reference< css::io::XInputStream > &xElementStream)=0 |
virtual void | importFromOldStorage (const OUString &aFile)=0 |
virtual bool | implStorePasswordLibrary (SfxLibrary *pLib, const OUString &aName, const css::uno::Reference< css::embed::XStorage > &xStorage, const css::uno::Reference< css::task::XInteractionHandler > &Handler) |
virtual bool | implStorePasswordLibrary (SfxLibrary *pLib, const OUString &aName, const css::uno::Reference< css::embed::XStorage > &rStorage, const OUString &aTargetURL, const css::uno::Reference< css::ucb::XSimpleFileAccess3 > &rToUseSFI, const css::uno::Reference< css::task::XInteractionHandler > &Handler) |
virtual bool | implLoadPasswordLibrary (SfxLibrary *pLib, const OUString &Name, bool bVerifyPasswordOnly=false) |
virtual void | onNewRootStorage ()=0 |
virtual rtl::Reference< SfxLibraryContainer > | createInstanceImpl ()=0 |
BasicManager * | getBasicManager () |
OUString | createAppLibraryFolder (SfxLibrary *pLib, std::u16string_view aName) |
void | init (const OUString &rInitialDocumentURL, const css::uno::Reference< css::embed::XStorage > &_rxInitialStorage) |
virtual OUString | getInfoFileName () const =0 |
virtual OUString | getOldInfoFileName () const =0 |
virtual OUString | getLibElementFileExtension () const =0 |
virtual OUString | getLibrariesDir () const =0 |
void | checkStorageURL (const OUString &aSourceURL, OUString &aLibInfoFileURL, OUString &aStorageURL, OUString &aUnexpandedStorageURL) |
OUString | expand_url (const OUString &url) |
SfxLibrary * | getImplLib (const OUString &rLibraryName) |
void | storeLibraries_Impl (const css::uno::Reference< css::embed::XStorage > &xStorage, bool bComplete) |
void | initializeFromDocument (const css::uno::Reference< css::document::XStorageBasedDocument > &_rxDocument) |
virtual void | _disposing (const css::lang::EventObject &_rSource) override |
virtual void SAL_CALL | disposing () override |
Protected Member Functions inherited from utl::OEventListenerAdapter | |
OEventListenerAdapter () | |
virtual | ~OEventListenerAdapter () |
void | startComponentListening (const css::uno::Reference< css::lang::XComponent > &_rxComp) |
void | stopComponentListening (const css::uno::Reference< css::lang::XComponent > &_rxComp) |
void | stopAllComponentListening () |
virtual void | _disposing (const css::lang::EventObject &_rSource)=0 |
Protected Attributes | |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
css::uno::Reference< css::ucb::XSimpleFileAccess3 > | mxSFI |
css::uno::Reference< css::util::XStringSubstitution > | mxStringSubstitution |
css::uno::WeakReference< css::frame::XModel > | mxOwnerDocument |
ModifiableHelper | maModifiable |
rtl::Reference< NameContainer > | maNameContainer |
bool | mbOldInfoFormat |
bool | mbOasis2OOoFormat |
OUString | maInitialDocumentURL |
OUString | maInfoFileName |
OUString | maOldInfoFileName |
OUString | maLibElementFileExtension |
OUString | maLibraryPath |
OUString | maLibrariesDir |
css::uno::Reference< css::embed::XStorage > | mxStorage |
BasicManager * | mpBasMgr |
bool | mbOwnBasMgr |
enum basic::SfxLibraryContainer::InitMode | meInitMode |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Private Member Functions | |
void | init_Impl (const OUString &rInitialDocumentURL, const css::uno::Reference< css::embed::XStorage > &_rxInitialStorage) |
void | implScanExtensions () |
Private Attributes | |
VBAScriptListenerContainer | maVBAScriptListeners |
sal_Int32 | mnRunningVBAScripts |
bool | mbVBACompat |
OUString | msProjectName |
rtl_TextEncoding | meVBATextEncoding |
Static Private Attributes | |
static constexpr OUStringLiteral | sVBATextEncodingPropName = u"VBATextEncoding" |
Definition at line 177 of file namecont.hxx.
|
protected |
Enumerator | |
---|---|
DEFAULT | |
CONTAINER_INIT_FILE | |
LIBRARY_INIT_FILE | |
OFFICE_DOCUMENT | |
OLD_BASIC_STORAGE |
Definition at line 210 of file namecont.hxx.
basic::SfxLibraryContainer::SfxLibraryContainer | ( | ) |
Definition at line 345 of file namecont.cxx.
References DEFAULT, get(), comphelper::getProcessComponentContext(), m_aMutex, mxContext, mxSFI, and mxStringSubstitution.
|
overridevirtual |
Definition at line 366 of file namecont.cxx.
References mbOwnBasMgr, and mpBasMgr.
|
overrideprotectedvirtual |
Implements utl::OEventListenerAdapter.
Definition at line 2661 of file namecont.cxx.
References dispose(), mxOwnerDocument, and SAL_WARN_IF.
|
overridevirtual |
Definition at line 2706 of file namecont.cxx.
References maNameContainer.
|
overridevirtual |
Definition at line 499 of file namecont.cxx.
References basic::ModifiableHelper::addModifyListener(), and maModifiable.
|
overridevirtual |
Definition at line 2903 of file namecont.cxx.
|
overridevirtual |
Definition at line 2852 of file namecont.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), and maVBAScriptListeners.
|
overridevirtual |
Definition at line 2915 of file namecont.cxx.
|
overridevirtual |
Definition at line 2862 of file namecont.cxx.
References aEvent, enterMethod(), leaveMethod(), maVBAScriptListeners, mnRunningVBAScripts, mxOwnerDocument, comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach(), and xModel.
|
overridevirtual |
Reimplemented in basic::SfxScriptLibraryContainer.
Definition at line 2700 of file namecont.cxx.
|
protected |
Definition at line 1255 of file namecont.cxx.
References INetURLObject::All, expand_url(), INetURLObject::getExtension(), INetURLObject::GetMainURL(), INetURLObject::insertName(), INetURLObject::LAST_SEGMENT, maInfoFileName, INetURLObject::NONE, INetURLObject::removeSegment(), INetURLObject::setExtension(), and u.
Referenced by createAppLibraryFolder(), createLibrary(), createLibraryLink(), implLoadLibraryIndexFile(), init_Impl(), and renameLibrary().
|
protected |
Definition at line 1323 of file namecont.cxx.
References INetURLObject::All, aName, checkStorageURL(), Exception, INetURLObject::GetMainURL(), o3tl::getToken(), INetURLObject::insertName(), INetURLObject::LAST_SEGMENT, maLibraryPath, mxSFI, INetURLObject::NONE, and pLib.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), basic::SfxDialogLibraryContainer::implCreateStringResource(), implLoadLibraryIndexFile(), basic::SfxScriptLibraryContainer::implLoadPasswordLibrary(), and removeLibrary().
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by implImportLibDescriptor().
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by init_Impl().
|
overridevirtual |
Definition at line 2139 of file namecont.cxx.
References Any, checkStorageURL(), basic::createVariableURL(), implCreateLibrary(), maInfoFileName, maLibElementFileExtension, maModifiable, maNameContainer, Name, and basic::ModifiableHelper::setModified().
Referenced by implLoadLibraryIndexFile(), and init_Impl().
|
overridevirtual |
Definition at line 2159 of file namecont.cxx.
References Any, checkStorageURL(), implCreateLibraryLink(), implImportLibDescriptor(), implLoadLibraryIndexFile(), maLibElementFileExtension, maModifiable, maNameContainer, Name, ReadOnly, and basic::ModifiableHelper::setModified().
Referenced by implScanExtensions(), and init_Impl().
|
overrideprotectedvirtual |
Definition at line 2675 of file namecont.cxx.
References aEvent, comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), maVBAScriptListeners, mxOwnerDocument, utl::OEventListenerAdapter::stopAllComponentListening(), and xModel.
void basic::SfxLibraryContainer::enterMethod | ( | ) |
Definition at line 374 of file namecont.cxx.
References comphelper::SolarMutex::acquire(), and Application::GetSolarMutex().
Referenced by broadcastVBAScriptEvent(), and basic::LibraryContainerMethodGuard::LibraryContainerMethodGuard().
|
protected |
css::uno::RuntimeException |
Definition at line 2756 of file namecont.cxx.
References comphelper::getExpandedUri(), mxContext, and mxStringSubstitution.
Referenced by checkStorageURL().
|
overridevirtual |
Definition at line 2720 of file namecont.cxx.
References xmlscript::LibDescriptor::aElementNames, xmlscript::LibDescriptor::aName, xmlscript::LibDescriptor::bLink, xmlscript::LibDescriptor::bPasswordProtected, xmlscript::LibDescriptor::bPreload, xmlscript::LibDescriptor::bReadOnly, basic::SfxLibrary::getElementNames(), getImplLib(), implStoreLibrary(), implStoreLibraryIndexFile(), implStorePasswordLibrary(), loadLibrary(), basic::SfxLibrary::mbPasswordProtected, basic::SfxLibrary::mbReadOnly, mxContext, Name, and URL.
|
protected |
Definition at line 388 of file namecont.cxx.
References basic::BasicManagerRepository::getDocumentBasicManager(), mpBasMgr, mxOwnerDocument, SAL_WARN_IF, and TOOLS_WARN_EXCEPTION.
Referenced by basic::SfxScriptLibraryContainer::HasExecutableCode(), basic::SfxScriptLibraryContainer::implLoadPasswordLibrary(), setProjectName(), and setVBACompatibilityMode().
|
overridevirtual |
Definition at line 2119 of file namecont.cxx.
References aName, Any, and maNameContainer.
Referenced by basic::SfxDialogLibraryContainer::storeLibrariesToStorage().
|
overridevirtual |
Definition at line 518 of file namecont.cxx.
References maLibrariesDir.
|
overridevirtual |
Definition at line 2126 of file namecont.cxx.
References maNameContainer.
Referenced by basic::SfxDialogLibraryContainer::storeLibrariesToStorage().
|
overridevirtual |
Definition at line 2105 of file namecont.cxx.
References maNameContainer.
|
overridepure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
|
protected |
Definition at line 1283 of file namecont.cxx.
References Any, and maNameContainer.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), exportLibrary(), getLibraryLinkURL(), getOriginalLibraryLinkURL(), init_Impl(), isLibraryLink(), isLibraryLoaded(), basic::SfxScriptLibraryContainer::isLibraryPasswordProtected(), basic::SfxScriptLibraryContainer::isLibraryPasswordVerified(), isLibraryReadOnly(), isModified(), basic::SfxDialogLibraryContainer::onNewRootStorage(), basic::SfxScriptLibraryContainer::setLibraryPassword(), setLibraryReadOnly(), storeLibraries_Impl(), and basic::SfxScriptLibraryContainer::verifyLibraryPassword().
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by init_Impl().
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by init_Impl().
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by init_Impl().
|
overridevirtual |
Definition at line 2430 of file namecont.cxx.
References getImplLib(), basic::SfxLibrary::maLibInfoFileURL, basic::SfxLibrary::mbLink, and Name.
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by init_Impl().
|
overridevirtual |
Definition at line 2774 of file namecont.cxx.
References getImplLib(), basic::SfxLibrary::maOriginalStorageURL, basic::SfxLibrary::mbLink, and Name.
|
inlineoverridevirtual |
Definition at line 422 of file namecont.hxx.
References msProjectName.
|
overridevirtual |
Definition at line 2883 of file namecont.cxx.
|
overridevirtual |
Definition at line 2896 of file namecont.cxx.
References meVBATextEncoding, and sVBATextEncodingPropName.
|
overridevirtual |
Definition at line 512 of file namecont.cxx.
References Any, and getRootStorage().
|
overridevirtual |
|
overridevirtual |
Definition at line 2846 of file namecont.cxx.
References mnRunningVBAScripts.
|
overridepure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
|
overridevirtual |
Definition at line 2789 of file namecont.cxx.
References mbVBACompat.
Referenced by basic::SfxScriptLibraryContainer::importLibraryElement().
|
overridevirtual |
Definition at line 2132 of file namecont.cxx.
References aName, and maNameContainer.
Referenced by implScanExtensions(), and init_Impl().
|
overridevirtual |
Definition at line 2111 of file namecont.cxx.
References maNameContainer.
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by createLibrary().
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by createLibraryLink().
|
protected |
Definition at line 1706 of file namecont.cxx.
References xmlscript::LibDescriptor::aElementNames, Any, xmlscript::LibDescriptor::bPasswordProtected, xmlscript::LibDescriptor::bPreload, xmlscript::LibDescriptor::bReadOnly, createEmptyLibraryElement(), i, and pLib.
Referenced by createLibraryLink(), implLoadLibraryIndexFile(), and init_Impl().
|
protected |
Definition at line 1610 of file namecont.cxx.
References xmlscript::LibDescriptor::aName, xmlscript::LibDescriptor::aStorageURL, checkStorageURL(), createAppLibraryFolder(), createLibrary(), ERRCODE_IO_GENERAL, ERRCTX_SFX_LOADBASIC, Exception, basic::GbMigrationSuppressErrors, ErrorHandler::HandleError(), implImportLibDescriptor(), maInfoFileName, mxContext, mxSFI, pLib, READ, and SAL_WARN.
Referenced by createLibraryLink(), and init_Impl().
|
protectedvirtual |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Reimplemented in basic::SfxScriptLibraryContainer.
Definition at line 1315 of file namecont.cxx.
Referenced by loadLibrary().
|
private |
Definition at line 1205 of file namecont.cxx.
References bReadOnly, createLibraryLink(), hasByName(), maInfoFileName, and basic::ScriptExtensionIterator::nextBasicOrDialogLibrary().
Referenced by init_Impl().
|
protected |
Referenced by exportLibrary(), and storeLibraries_Impl().
|
protected |
|
protected |
Referenced by exportLibrary(), init_Impl(), and storeLibraries_Impl().
|
protected |
|
protectedvirtual |
Reimplemented in basic::SfxScriptLibraryContainer.
|
protectedvirtual |
Reimplemented in basic::SfxScriptLibraryContainer.
Referenced by exportLibrary(), and storeLibraries_Impl().
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by init_Impl().
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by loadLibrary().
|
protected |
Definition at line 576 of file namecont.cxx.
References init_Impl(), and m_refCount.
Referenced by initialize(), and initializeFromDocument().
|
private |
Definition at line 586 of file namecont.cxx.
References INetURLObject::All, aName, xmlscript::LibDescriptor::aName, INetURLObject::Append(), xmlscript::LibDescriptor::aStorageURL, xmlscript::LibDescriptor::bLink, xmlscript::LibDescriptor::bReadOnly, basic::checkAndCopyFileImpl(), checkStorageURL(), CONTAINER_INIT_FILE, createInstanceImpl(), createLibrary(), createLibraryLink(), basic::createVariableURL(), DEFAULT, Exception, basic::GbMigrationSuppressErrors, SvtPathOptions::GetBasicPath(), INetURLObject::getExtension(), getImplLib(), getInfoFileName(), getLibElementFileExtension(), getLibrariesDir(), INetURLObject::GetMainURL(), getOldInfoFileName(), comphelper::OStorageHelper::GetStorageFromURL(), o3tl::getToken(), hasByName(), i, implImportLibDescriptor(), implLoadLibraryIndexFile(), implScanExtensions(), basic::SfxLibrary::implSetModified(), implStoreLibraryIndexFile(), importFromOldStorage(), INetURLObject::insertName(), SotStorage::IsOLEStorage(), INetURLObject::LAST_SEGMENT, LIBRARY_INIT_FILE, loadLibrary(), maInfoFileName, maInitialDocumentURL, maLibElementFileExtension, basic::SfxLibrary::maLibInfoFileURL, maLibrariesDir, maLibraryPath, maModifiable, maNameContainer, maOldInfoFileName, basic::SfxLibrary::maStorageURL, basic::SfxLibrary::maUnexpandedStorageURL, basic::SfxLibrary::mbInitialised, basic::SfxLibrary::mbLink, basic::SfxLibrary::mbLoaded, mbOldInfoFormat, mbOwnBasMgr, basic::SfxLibrary::mbPreload, basic::SfxLibrary::mbReadOnly, basic::SfxLibrary::mbSharedIndexFile, meInitMode, mpBasMgr, mxContext, mxSFI, mxStorage, INetURLObject::NONE, OFFICE_DOCUMENT, OLD_BASIC_STORAGE, READ, removeLibrary(), INetURLObject::removeSegment(), SAL_WARN, SAL_WARN_IF, INetURLObject::setExtension(), basic::ModifiableHelper::setModified(), TOOLS_WARN_EXCEPTION, u, and xStream.
Referenced by init().
|
overridevirtual |
Definition at line 2610 of file namecont.cxx.
References init(), and initializeFromDocument().
|
protected |
Definition at line 2634 of file namecont.cxx.
References Exception, init(), mxOwnerDocument, and utl::OEventListenerAdapter::startComponentListening().
Referenced by initialize().
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
|
overridevirtual |
Definition at line 2422 of file namecont.cxx.
References getImplLib(), basic::SfxLibrary::mbLink, and Name.
|
overridevirtual |
Definition at line 2274 of file namecont.cxx.
References getImplLib(), basic::SfxLibrary::mbLoaded, and Name.
|
overridevirtual |
Reimplemented in basic::SfxScriptLibraryContainer.
Definition at line 2685 of file namecont.cxx.
|
overridevirtual |
Reimplemented in basic::SfxScriptLibraryContainer.
Definition at line 2690 of file namecont.cxx.
|
overridevirtual |
Definition at line 2443 of file namecont.cxx.
References getImplLib(), basic::SfxLibrary::mbLink, basic::SfxLibrary::mbReadOnly, basic::SfxLibrary::mbReadOnlyLink, and Name.
|
overridevirtual |
Definition at line 451 of file namecont.cxx.
References aName, getImplLib(), basic::SfxLibrary::hasElements(), i, basic::ModifiableHelper::isModified(), basic::SfxLibrary::isModified(), maModifiable, and maNameContainer.
|
static |
Definition at line 383 of file namecont.cxx.
References Application::GetSolarMutex(), and comphelper::SolarMutex::release().
Referenced by broadcastVBAScriptEvent(), and basic::LibraryContainerMethodGuard::~LibraryContainerMethodGuard().
|
overridevirtual |
Definition at line 2283 of file namecont.cxx.
References INetURLObject::All, Any, basic::SfxLibrary::getElementNames(), INetURLObject::GetMainURL(), basic::SfxLibrary::hasByName(), i, implLoadPasswordLibrary(), basic::SfxLibrary::implSetModified(), importLibraryElement(), INetURLObject::insertName(), INetURLObject::LAST_SEGMENT, maLibElementFileExtension, maLibrariesDir, maNameContainer, basic::SfxLibrary::maNameContainer, basic::SfxLibrary::maStorageURL, basic::SfxLibrary::mbLink, basic::SfxLibrary::mbLoaded, basic::SfxLibrary::mbPasswordProtected, mxStorage, Name, INetURLObject::NONE, READ, SAL_WARN, SAL_WARN_IF, INetURLObject::setExtension(), and TOOLS_WARN_EXCEPTION.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), exportLibrary(), init_Impl(), renameLibrary(), storeLibraries_Impl(), and basic::SfxDialogLibraryContainer::storeLibrariesToStorage().
|
protectedpure virtual |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
Referenced by setRootStorage().
|
overridevirtual |
Definition at line 2713 of file namecont.cxx.
References maNameContainer.
|
overridevirtual |
Definition at line 2204 of file namecont.cxx.
References INetURLObject::All, Any, createAppLibraryFolder(), Exception, basic::SfxLibrary::getElementNames(), INetURLObject::GetMainURL(), o3tl::getToken(), i, INetURLObject::insertName(), INetURLObject::LAST_SEGMENT, basic::SfxLibrary::maLibInfoFileURL, maLibraryPath, maModifiable, maNameContainer, basic::SfxLibrary::mbLink, basic::SfxLibrary::mbReadOnly, mxSFI, mxStorage, Name, nCount, INetURLObject::NONE, basic::SfxLibrary::removeElementWithoutChecks(), and basic::ModifiableHelper::setModified().
Referenced by init_Impl().
|
overridevirtual |
Definition at line 505 of file namecont.cxx.
References maModifiable, and basic::ModifiableHelper::removeModifyListener().
|
overridevirtual |
Definition at line 2909 of file namecont.cxx.
|
overridevirtual |
Definition at line 2857 of file namecont.cxx.
References maVBAScriptListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 2921 of file namecont.cxx.
|
overridevirtual |
Definition at line 2474 of file namecont.cxx.
References INetURLObject::All, Any, checkStorageURL(), Exception, INetURLObject::GetMainURL(), o3tl::getToken(), i, basic::SfxLibrary::implSetModified(), INetURLObject::insertName(), INetURLObject::LAST_SEGMENT, loadLibrary(), maLibElementFileExtension, basic::SfxLibrary::maLibInfoFileURL, maLibraryPath, maModifiable, maNameContainer, basic::SfxLibrary::maStorageURL, basic::SfxLibrary::maUnexpandedStorageURL, basic::SfxLibrary::mbLink, basic::SfxLibrary::mbPasswordProtected, basic::SfxLibrary::mbPasswordVerified, mxSFI, mxStorage, Name, nCount, INetURLObject::NONE, INetURLObject::setExtension(), basic::ModifiableHelper::setModified(), and basic::SfxLibrary::storeResourcesAsURL().
|
inline |
Definition at line 342 of file namecont.hxx.
References mpBasMgr.
|
overridevirtual |
Definition at line 2451 of file namecont.cxx.
References bReadOnly, getImplLib(), basic::SfxLibrary::implSetModified(), maModifiable, basic::SfxLibrary::mbLink, basic::SfxLibrary::mbReadOnly, basic::SfxLibrary::mbReadOnlyLink, Name, and basic::ModifiableHelper::setModified().
|
overridevirtual |
Definition at line 493 of file namecont.cxx.
References maModifiable, and basic::ModifiableHelper::setModified().
|
overridevirtual |
Definition at line 2832 of file namecont.cxx.
References getBasicManager(), msProjectName, and BasicManager::SetName().
|
overridevirtual |
Definition at line 2888 of file namecont.cxx.
References meVBATextEncoding, and sVBATextEncodingPropName.
|
overridevirtual |
Definition at line 420 of file namecont.cxx.
References mxStorage, and onNewRootStorage().
|
overridevirtual |
Definition at line 2794 of file namecont.cxx.
References Exception, getBasicManager(), BasicManager::GetLib(), BasicManager::GetName(), mbVBACompat, mxOwnerDocument, xFactory, and xModel.
|
overridevirtual |
Definition at line 524 of file namecont.cxx.
References Exception, mxStorage, and storeLibraries_Impl().
|
protected |
Definition at line 1728 of file namecont.cxx.
References xmlscript::LibDescriptor::aElementNames, INetURLObject::All, xmlscript::LibDescriptor::aName, Any, xmlscript::LibDescriptor::aStorageURL, xmlscript::LibDescriptor::bLink, xmlscript::LibDescriptor::bPasswordProtected, xmlscript::LibDescriptor::bPreload, xmlscript::LibDescriptor::bReadOnly, DBG_UNHANDLED_EXCEPTION, ERRCODE_IO_GENERAL, ERRCTX_SFX_SAVEDOC, Exception, xmlscript::exportLibraryContainer(), basic::SfxLibrary::getElementNames(), getImplLib(), INetURLObject::GetMainURL(), o3tl::getToken(), ErrorHandler::HandleError(), basic::SfxLibrary::implIsModified(), basic::SfxLibrary::implSetModified(), implStoreLibrary(), implStoreLibraryIndexFile(), implStorePasswordLibrary(), index, INetURLObject::insertName(), basic::SfxLibrary::isLoadedStorable(), basic::ModifiableHelper::isModified(), INetURLObject::LAST_SEGMENT, loadLibrary(), maInfoFileName, basic::SfxLibrary::maLibInfoFileURL, maLibrariesDir, maLibraryPath, maModifiable, maNameContainer, basic::SfxLibrary::maUnexpandedStorageURL, basic::SfxLibrary::mbExtension, basic::SfxLibrary::mbLink, mbOasis2OOoFormat, mbOldInfoFormat, basic::SfxLibrary::mbPasswordProtected, basic::SfxLibrary::mbPreload, basic::SfxLibrary::mbReadOnly, basic::SfxLibrary::mbReadOnlyLink, basic::SfxLibrary::mbSharedIndexFile, mxContext, mxSFI, mxStorage, INetURLObject::NONE, pName, READ, SAL_WARN, SAL_WARN_IF, INetURLObject::setExtension(), basic::ModifiableHelper::setModified(), TOOLS_WARN_EXCEPTION, and u.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), storeLibraries(), and storeLibrariesToStorage().
|
overridevirtual |
Reimplemented in basic::SfxDialogLibraryContainer.
Definition at line 431 of file namecont.cxx.
References Exception, and storeLibraries_Impl().
Referenced by basic::SfxDialogLibraryContainer::storeLibrariesToStorage().
|
overridevirtual |
Definition at line 2928 of file namecont.cxx.
References cppu::supportsService().
|
overridevirtual |
Reimplemented in basic::SfxScriptLibraryContainer.
Definition at line 2695 of file namecont.cxx.
|
protectedpure virtual |
css::uno::Exception |
Implemented in basic::SfxDialogLibraryContainer, and basic::SfxScriptLibraryContainer.
|
protected |
Definition at line 200 of file namecont.hxx.
Referenced by checkStorageURL(), createLibrary(), implLoadLibraryIndexFile(), implScanExtensions(), init_Impl(), and storeLibraries_Impl().
|
protected |
Definition at line 199 of file namecont.hxx.
Referenced by init_Impl().
|
protected |
Definition at line 202 of file namecont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), createLibrary(), createLibraryLink(), init_Impl(), loadLibrary(), and renameLibrary().
|
protected |
Definition at line 204 of file namecont.hxx.
Referenced by getContainerLocationName(), basic::SfxDialogLibraryContainer::implCreateStringResource(), basic::SfxScriptLibraryContainer::implLoadPasswordLibrary(), init_Impl(), loadLibrary(), basic::SfxDialogLibraryContainer::onNewRootStorage(), and storeLibraries_Impl().
|
protected |
Definition at line 203 of file namecont.hxx.
Referenced by createAppLibraryFolder(), init_Impl(), removeLibrary(), renameLibrary(), and storeLibraries_Impl().
|
protected |
Definition at line 193 of file namecont.hxx.
Referenced by addModifyListener(), basic::SfxScriptLibraryContainer::changeLibraryPassword(), createLibrary(), createLibraryLink(), basic::SfxDialogLibraryContainer::implCreateLibrary(), basic::SfxScriptLibraryContainer::implCreateLibrary(), basic::SfxDialogLibraryContainer::implCreateLibraryLink(), basic::SfxScriptLibraryContainer::implCreateLibraryLink(), init_Impl(), isModified(), removeLibrary(), removeModifyListener(), renameLibrary(), setLibraryReadOnly(), setModified(), and storeLibraries_Impl().
|
protected |
Definition at line 195 of file namecont.hxx.
Referenced by addContainerListener(), createLibrary(), createLibraryLink(), getByName(), getElementNames(), getElementType(), getImplLib(), hasByName(), hasElements(), init_Impl(), isModified(), loadLibrary(), basic::SfxDialogLibraryContainer::onNewRootStorage(), removeContainerListener(), removeLibrary(), renameLibrary(), and storeLibraries_Impl().
|
protected |
Definition at line 201 of file namecont.hxx.
Referenced by init_Impl().
|
private |
Definition at line 182 of file namecont.hxx.
Referenced by addVBAScriptListener(), broadcastVBAScriptEvent(), disposing(), and removeVBAScriptListener().
|
protected |
Definition at line 197 of file namecont.hxx.
Referenced by storeLibraries_Impl(), basic::SfxDialogLibraryContainer::storeLibrariesToStorage(), and basic::SfxDialogLibraryContainer::writeLibraryElement().
|
protected |
Definition at line 196 of file namecont.hxx.
Referenced by init_Impl(), and storeLibraries_Impl().
|
protected |
Definition at line 208 of file namecont.hxx.
Referenced by init_Impl(), and ~SfxLibraryContainer().
|
private |
Definition at line 184 of file namecont.hxx.
Referenced by getVBACompatibilityMode(), and setVBACompatibilityMode().
|
protected |
Referenced by init_Impl().
|
private |
Definition at line 186 of file namecont.hxx.
Referenced by getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 183 of file namecont.hxx.
Referenced by broadcastVBAScriptEvent(), and getRunningVBAScripts().
|
protected |
Definition at line 207 of file namecont.hxx.
Referenced by getBasicManager(), init_Impl(), setBasicManager(), and ~SfxLibraryContainer().
|
private |
Definition at line 185 of file namecont.hxx.
Referenced by getProjectName(), and setProjectName().
|
protected |
Definition at line 188 of file namecont.hxx.
Referenced by expand_url(), exportLibrary(), basic::SfxDialogLibraryContainer::implCreateStringResource(), implLoadLibraryIndexFile(), basic::SfxDialogLibraryContainer::importLibraryElement(), basic::SfxScriptLibraryContainer::importLibraryElement(), init_Impl(), SfxLibraryContainer(), storeLibraries_Impl(), basic::SfxDialogLibraryContainer::storeLibrariesToStorage(), and basic::SfxScriptLibraryContainer::writeLibraryElement().
|
protected |
Definition at line 191 of file namecont.hxx.
Referenced by _disposing(), broadcastVBAScriptEvent(), disposing(), getBasicManager(), basic::SfxDialogLibraryContainer::importLibraryElement(), basic::SfxScriptLibraryContainer::importLibraryElement(), initializeFromDocument(), setVBACompatibilityMode(), and basic::SfxDialogLibraryContainer::storeLibrariesToStorage().
|
protected |
Definition at line 189 of file namecont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), createAppLibraryFolder(), basic::SfxDialogLibraryContainer::implCreateLibrary(), basic::SfxScriptLibraryContainer::implCreateLibrary(), basic::SfxDialogLibraryContainer::implCreateLibraryLink(), basic::SfxScriptLibraryContainer::implCreateLibraryLink(), implLoadLibraryIndexFile(), basic::SfxDialogLibraryContainer::importLibraryElement(), basic::SfxScriptLibraryContainer::importLibraryElement(), init_Impl(), removeLibrary(), renameLibrary(), SfxLibraryContainer(), and storeLibraries_Impl().
|
protected |
Definition at line 206 of file namecont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), getRootStorage(), basic::SfxDialogLibraryContainer::implCreateStringResource(), basic::SfxScriptLibraryContainer::implLoadPasswordLibrary(), init_Impl(), loadLibrary(), basic::SfxDialogLibraryContainer::onNewRootStorage(), removeLibrary(), renameLibrary(), setRootStorage(), storeLibraries(), storeLibraries_Impl(), and basic::SfxDialogLibraryContainer::storeLibrariesToStorage().
|
protected |
Definition at line 190 of file namecont.hxx.
Referenced by expand_url(), and SfxLibraryContainer().
|
staticconstexprprivate |
Definition at line 334 of file namecont.hxx.
Referenced by getPropertyValue(), and setPropertyValue().