LibreOffice Module basic (master) 1
|
#include <namecont.hxx>
Classes | |
struct | LibraryContainerAccess |
Public Member Functions | |
SfxLibrary (ModifiableHelper &_rModifiable, const css::uno::Type &aType, const css::uno::Reference< css::ucb::XSimpleFileAccess3 > &xSFI) | |
SfxLibrary (ModifiableHelper &_rModifiable, const css::uno::Type &aType, const css::uno::Reference< css::ucb::XSimpleFileAccess3 > &xSFI, OUString aLibInfoFileURL, OUString aStorageURL, bool ReadOnly) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
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 void SAL_CALL | replaceByName (const OUString &aName, const css::uno::Any &aElement) override |
virtual void SAL_CALL | insertByName (const OUString &aName, const css::uno::Any &aElement) override |
virtual void SAL_CALL | removeByName (const OUString &Name) override |
css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () 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 | addChangesListener (const css::uno::Reference< css::util::XChangesListener > &xListener) override |
virtual void SAL_CALL | removeChangesListener (const css::uno::Reference< css::util::XChangesListener > &xListener) override |
void | removeElementWithoutChecks (const OUString &_rElementName, LibraryContainerAccess) |
Public Member Functions inherited from comphelper::WeakComponentImplHelper<> | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | dispose () noexcept final override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
Public Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
virtual | ~WeakComponentImplHelperBase () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual void | disposing (std::unique_lock< std::mutex > &) |
Public Member Functions inherited from comphelper::UnoImplBase | |
virtual | ~UnoImplBase () |
Protected Member Functions | |
bool | implIsModified () const |
void | implSetModified (bool _bIsModified) |
virtual bool | isLoadedStorable () |
virtual bool | isLibraryElementValid (const css::uno::Any &rElement) const =0 |
Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
Protected Attributes | |
bool | mbPasswordProtected |
Protected Attributes inherited from comphelper::WeakComponentImplHelperBase | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
Protected Attributes inherited from comphelper::UnoImplBase | |
std::mutex | m_aMutex |
bool | m_bDisposed |
Private Member Functions | |
virtual bool | isModified ()=0 |
virtual void | storeResources ()=0 |
virtual void | storeResourcesAsURL (const OUString &URL, const OUString &NewName)=0 |
virtual void | storeResourcesToURL (const OUString &URL, const css::uno::Reference< css::task::XInteractionHandler > &xHandler)=0 |
virtual void | storeResourcesToStorage (const css::uno::Reference< css::embed::XStorage > &xStorage)=0 |
void | impl_checkReadOnly () |
checks whether the lib is readonly, or a readonly link, throws an IllegalArgumentException if so More... | |
void | impl_checkLoaded () |
checks whether the library is loaded, throws a LibraryNotLoadedException (wrapped in a WrappedTargetException), if not. More... | |
void | impl_removeWithoutChecks (const OUString &_rElementName) |
Private Attributes | |
css::uno::Reference< css::ucb::XSimpleFileAccess3 > | mxSFI |
ModifiableHelper & | mrModifiable |
rtl::Reference< NameContainer > | maNameContainer |
bool | mbLoaded |
bool | mbIsModified |
bool | mbInitialised |
OUString | maLibElementFileExtension |
OUString | maLibInfoFileURL |
OUString | maStorageURL |
OUString | maUnexpandedStorageURL |
OUString | maOriginalStorageURL |
bool | mbLink |
bool | mbReadOnly |
bool | mbReadOnlyLink |
bool | mbPreload |
bool | mbPasswordVerified |
bool | mbDoc50Password |
OUString | maPassword |
bool | mbSharedIndexFile |
bool | mbExtension |
Friends | |
class | SfxLibraryContainer |
class | SfxDialogLibraryContainer |
class | SfxScriptLibraryContainer |
Definition at line 468 of file namecont.hxx.
basic::SfxLibrary::SfxLibrary | ( | ModifiableHelper & | _rModifiable, |
const css::uno::Type & | aType, | ||
const css::uno::Reference< css::ucb::XSimpleFileAccess3 > & | xSFI | ||
) |
basic::SfxLibrary::SfxLibrary | ( | ModifiableHelper & | _rModifiable, |
const css::uno::Type & | aType, | ||
const css::uno::Reference< css::ucb::XSimpleFileAccess3 > & | xSFI, | ||
OUString | aLibInfoFileURL, | ||
OUString | aStorageURL, | ||
bool | ReadOnly | ||
) |
|
inlineoverridevirtualnoexcept |
Reimplemented from comphelper::WeakComponentImplHelper<>.
Definition at line 552 of file namecont.hxx.
|
overridevirtual |
Definition at line 3170 of file namecont.cxx.
References maNameContainer.
|
overridevirtual |
Definition at line 3158 of file namecont.cxx.
References maNameContainer.
|
overridevirtual |
Definition at line 3028 of file namecont.cxx.
References aName, Any, impl_checkLoaded(), and maNameContainer.
|
overridevirtual |
Definition at line 3036 of file namecont.cxx.
References maNameContainer.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), basic::SfxLibraryContainer::exportLibrary(), basic::SfxLibraryContainer::loadLibrary(), basic::SfxLibraryContainer::removeLibrary(), and basic::SfxLibraryContainer::storeLibraries_Impl().
|
overridevirtual |
Definition at line 3016 of file namecont.cxx.
References maNameContainer.
Reimplemented from comphelper::WeakComponentImplHelper<>.
Definition at line 3152 of file namecont.cxx.
Reimplemented from comphelper::WeakComponentImplHelper<>.
Definition at line 3140 of file namecont.cxx.
References cppu::OTypeCollection::getTypes().
|
overridevirtual |
Definition at line 3041 of file namecont.cxx.
References aName, and maNameContainer.
Referenced by basic::SfxLibraryContainer::loadLibrary().
|
overridevirtual |
Definition at line 3021 of file namecont.cxx.
References maNameContainer.
Referenced by basic::SfxLibraryContainer::isModified().
|
private |
checks whether the library is loaded, throws a LibraryNotLoadedException (wrapped in a WrappedTargetException), if not.
Definition at line 3059 of file namecont.cxx.
Referenced by getByName(), insertByName(), removeByName(), and replaceByName().
|
private |
checks whether the lib is readonly, or a readonly link, throws an IllegalArgumentException if so
Definition at line 3047 of file namecont.cxx.
References mbLink, mbReadOnly, and mbReadOnlyLink.
Referenced by insertByName(), removeByName(), and replaceByName().
|
private |
Definition at line 3103 of file namecont.cxx.
References INetURLObject::All, DBG_UNHANDLED_EXCEPTION, Exception, INetURLObject::GetMainURL(), implSetModified(), INetURLObject::insertName(), INetURLObject::LAST_SEGMENT, maLibElementFileExtension, maNameContainer, maStorageURL, mxSFI, INetURLObject::NONE, and INetURLObject::setExtension().
Referenced by removeByName(), and removeElementWithoutChecks().
|
inlineprotected |
Definition at line 520 of file namecont.hxx.
References mbIsModified.
Referenced by basic::SfxDialogLibrary::isModified(), basic::SfxScriptLibrary::isModified(), and basic::SfxLibraryContainer::storeLibraries_Impl().
|
protected |
Definition at line 2984 of file namecont.cxx.
References mbIsModified, mrModifiable, and basic::ModifiableHelper::setModified().
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), impl_removeWithoutChecks(), basic::SfxLibraryContainer::init_Impl(), insertByName(), basic::SfxLibraryContainer::loadLibrary(), basic::SfxLibraryContainer::renameLibrary(), replaceByName(), basic::SfxLibraryContainer::setLibraryReadOnly(), basic::SfxLibraryContainer::storeLibraries_Impl(), and basic::SfxScriptLibraryContainer::verifyLibraryPassword().
|
overridevirtual |
Definition at line 3090 of file namecont.cxx.
References aName, impl_checkLoaded(), impl_checkReadOnly(), implSetModified(), isLibraryElementValid(), maNameContainer, and SAL_WARN_IF.
|
protectedpure virtual |
Implemented in basic::SfxDialogLibrary, and basic::SfxScriptLibrary.
Referenced by insertByName(), and replaceByName().
|
protectedvirtual |
Reimplemented in basic::SfxScriptLibrary.
Definition at line 2979 of file namecont.cxx.
References mbLoaded, mbPasswordProtected, and mbPasswordVerified.
Referenced by basic::SfxScriptLibrary::isLoadedStorable(), and basic::SfxLibraryContainer::storeLibraries_Impl().
|
privatepure virtual |
Implemented in basic::SfxDialogLibrary, and basic::SfxScriptLibrary.
Referenced by basic::SfxLibraryContainer::isModified().
|
overridevirtual |
Reimplemented from comphelper::WeakComponentImplHelper<>.
Definition at line 2998 of file namecont.cxx.
References Any.
|
inlineoverridevirtualnoexcept |
Reimplemented from comphelper::WeakComponentImplHelper<>.
Definition at line 553 of file namecont.hxx.
|
overridevirtual |
Definition at line 3132 of file namecont.cxx.
References impl_checkLoaded(), impl_checkReadOnly(), impl_removeWithoutChecks(), and Name.
|
overridevirtual |
Definition at line 3176 of file namecont.cxx.
References maNameContainer.
|
overridevirtual |
Definition at line 3164 of file namecont.cxx.
References maNameContainer.
|
inline |
Definition at line 589 of file namecont.hxx.
References impl_removeWithoutChecks().
Referenced by basic::SfxLibraryContainer::removeLibrary().
|
overridevirtual |
Definition at line 3075 of file namecont.cxx.
References aName, impl_checkLoaded(), impl_checkReadOnly(), implSetModified(), isLibraryElementValid(), maNameContainer, and SAL_WARN_IF.
|
privatepure virtual |
Implemented in basic::SfxDialogLibrary, and basic::SfxScriptLibrary.
|
privatepure virtual |
Implemented in basic::SfxDialogLibrary, and basic::SfxScriptLibrary.
Referenced by basic::SfxLibraryContainer::renameLibrary().
|
privatepure virtual |
Implemented in basic::SfxDialogLibrary, and basic::SfxScriptLibrary.
|
privatepure virtual |
Implemented in basic::SfxDialogLibrary, and basic::SfxScriptLibrary.
|
friend |
Definition at line 475 of file namecont.hxx.
|
friend |
Definition at line 474 of file namecont.hxx.
|
friend |
Definition at line 476 of file namecont.hxx.
|
private |
Definition at line 489 of file namecont.hxx.
Referenced by impl_removeWithoutChecks().
|
private |
|
private |
Definition at line 481 of file namecont.hxx.
Referenced by addChangesListener(), addContainerListener(), getByName(), getElementNames(), getElementType(), hasByName(), hasElements(), impl_removeWithoutChecks(), insertByName(), basic::SfxLibraryContainer::loadLibrary(), removeChangesListener(), removeContainerListener(), and replaceByName().
|
private |
Definition at line 493 of file namecont.hxx.
Referenced by basic::SfxLibraryContainer::getOriginalLibraryLinkURL().
|
private |
Definition at line 505 of file namecont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), basic::SfxScriptLibraryContainer::setLibraryPassword(), and basic::SfxScriptLibraryContainer::verifyLibraryPassword().
|
private |
Definition at line 491 of file namecont.hxx.
Referenced by impl_removeWithoutChecks(), basic::SfxLibraryContainer::init_Impl(), basic::SfxLibraryContainer::loadLibrary(), and basic::SfxLibraryContainer::renameLibrary().
|
private |
Definition at line 492 of file namecont.hxx.
Referenced by basic::SfxLibraryContainer::init_Impl(), basic::SfxLibraryContainer::renameLibrary(), and basic::SfxLibraryContainer::storeLibraries_Impl().
|
private |
Definition at line 504 of file namecont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), basic::SfxScriptLibraryContainer::setLibraryPassword(), and basic::SfxScriptLibraryContainer::verifyLibraryPassword().
|
private |
Definition at line 508 of file namecont.hxx.
Referenced by basic::SfxLibraryContainer::storeLibraries_Impl().
|
private |
Definition at line 485 of file namecont.hxx.
Referenced by basic::SfxLibraryContainer::init_Impl().
|
private |
Definition at line 484 of file namecont.hxx.
Referenced by implIsModified(), and implSetModified().
|
private |
Definition at line 495 of file namecont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), basic::SfxLibraryContainer::getLibraryLinkURL(), basic::SfxLibraryContainer::getOriginalLibraryLinkURL(), impl_checkReadOnly(), basic::SfxLibraryContainer::init_Impl(), basic::SfxLibraryContainer::isLibraryLink(), basic::SfxLibraryContainer::isLibraryReadOnly(), basic::SfxLibraryContainer::loadLibrary(), basic::SfxLibraryContainer::removeLibrary(), basic::SfxLibraryContainer::renameLibrary(), basic::SfxLibraryContainer::setLibraryReadOnly(), and basic::SfxLibraryContainer::storeLibraries_Impl().
|
private |
Definition at line 483 of file namecont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), impl_checkLoaded(), basic::SfxScriptLibraryContainer::implLoadPasswordLibrary(), basic::SfxLibraryContainer::init_Impl(), basic::SfxLibraryContainer::isLibraryLoaded(), isLoadedStorable(), basic::SfxLibraryContainer::loadLibrary(), basic::SfxScriptLibraryContainer::setLibraryPassword(), and basic::SfxScriptLibraryContainer::verifyLibraryPassword().
|
protected |
Definition at line 501 of file namecont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), basic::SfxLibraryContainer::exportLibrary(), basic::SfxScriptLibraryContainer::isLibraryPasswordProtected(), basic::SfxScriptLibraryContainer::isLibraryPasswordVerified(), isLoadedStorable(), basic::SfxScriptLibrary::isLoadedStorable(), basic::SfxLibraryContainer::loadLibrary(), basic::SfxLibraryContainer::renameLibrary(), basic::SfxScriptLibraryContainer::setLibraryPassword(), basic::SfxLibraryContainer::storeLibraries_Impl(), and basic::SfxScriptLibraryContainer::verifyLibraryPassword().
|
private |
Definition at line 503 of file namecont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), basic::SfxScriptLibraryContainer::isLibraryPasswordVerified(), isLoadedStorable(), basic::SfxLibraryContainer::renameLibrary(), and basic::SfxScriptLibraryContainer::verifyLibraryPassword().
|
private |
Definition at line 498 of file namecont.hxx.
Referenced by basic::SfxLibraryContainer::init_Impl(), and basic::SfxLibraryContainer::storeLibraries_Impl().
|
private |
Definition at line 496 of file namecont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), basic::SfxLibraryContainer::exportLibrary(), impl_checkReadOnly(), basic::SfxDialogLibraryContainer::implCreateStringResource(), basic::SfxLibraryContainer::init_Impl(), basic::SfxLibraryContainer::isLibraryReadOnly(), basic::SfxLibraryContainer::removeLibrary(), basic::SfxLibraryContainer::setLibraryReadOnly(), and basic::SfxLibraryContainer::storeLibraries_Impl().
|
private |
Definition at line 497 of file namecont.hxx.
Referenced by impl_checkReadOnly(), basic::SfxLibraryContainer::isLibraryReadOnly(), basic::SfxLibraryContainer::setLibraryReadOnly(), and basic::SfxLibraryContainer::storeLibraries_Impl().
|
private |
Definition at line 507 of file namecont.hxx.
Referenced by basic::SfxLibraryContainer::init_Impl(), and basic::SfxLibraryContainer::storeLibraries_Impl().
|
private |
Definition at line 480 of file namecont.hxx.
Referenced by implSetModified().
|
private |
Definition at line 478 of file namecont.hxx.
Referenced by impl_removeWithoutChecks().