LibreOffice Module basic (master) 1
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
basic::SfxLibrary Class Referenceabstract

#include <namecont.hxx>

Inheritance diagram for basic::SfxLibrary:
[legend]
Collaboration diagram for basic::SfxLibrary:
[legend]

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
 
ModifiableHelpermrModifiable
 
rtl::Reference< NameContainermaNameContainer
 
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
 

Detailed Description

Definition at line 468 of file namecont.hxx.

Constructor & Destructor Documentation

◆ SfxLibrary() [1/2]

basic::SfxLibrary::SfxLibrary ( ModifiableHelper _rModifiable,
const css::uno::Type &  aType,
const css::uno::Reference< css::ucb::XSimpleFileAccess3 > &  xSFI 
)

◆ SfxLibrary() [2/2]

basic::SfxLibrary::SfxLibrary ( ModifiableHelper _rModifiable,
const css::uno::Type &  aType,
const css::uno::Reference< css::ucb::XSimpleFileAccess3 > &  xSFI,
OUString  aLibInfoFileURL,
OUString  aStorageURL,
bool  ReadOnly 
)

Member Function Documentation

◆ acquire()

virtual void SAL_CALL basic::SfxLibrary::acquire ( )
inlineoverridevirtualnoexcept

Reimplemented from comphelper::WeakComponentImplHelper<>.

Definition at line 552 of file namecont.hxx.

◆ addChangesListener()

void SAL_CALL basic::SfxLibrary::addChangesListener ( const css::uno::Reference< css::util::XChangesListener > &  xListener)
overridevirtual

Definition at line 3170 of file namecont.cxx.

References maNameContainer.

◆ addContainerListener()

void SAL_CALL basic::SfxLibrary::addContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
overridevirtual

Definition at line 3158 of file namecont.cxx.

References maNameContainer.

◆ getByName()

Any basic::SfxLibrary::getByName ( const OUString &  aName)
overridevirtual

Definition at line 3028 of file namecont.cxx.

References aName, Any, impl_checkLoaded(), and maNameContainer.

◆ getElementNames()

Sequence< OUString > basic::SfxLibrary::getElementNames ( )
overridevirtual

◆ getElementType()

Type basic::SfxLibrary::getElementType ( )
overridevirtual

Definition at line 3016 of file namecont.cxx.

References maNameContainer.

◆ getImplementationId()

Sequence< sal_Int8 > basic::SfxLibrary::getImplementationId ( )
overridevirtual

Reimplemented from comphelper::WeakComponentImplHelper<>.

Definition at line 3152 of file namecont.cxx.

◆ getTypes()

Sequence< Type > basic::SfxLibrary::getTypes ( )
overridevirtual

Reimplemented from comphelper::WeakComponentImplHelper<>.

Definition at line 3140 of file namecont.cxx.

References cppu::OTypeCollection::getTypes().

◆ hasByName()

sal_Bool basic::SfxLibrary::hasByName ( const OUString &  aName)
overridevirtual

Definition at line 3041 of file namecont.cxx.

References aName, and maNameContainer.

Referenced by basic::SfxLibraryContainer::loadLibrary().

◆ hasElements()

sal_Bool basic::SfxLibrary::hasElements ( )
overridevirtual

Definition at line 3021 of file namecont.cxx.

References maNameContainer.

Referenced by basic::SfxLibraryContainer::isModified().

◆ impl_checkLoaded()

void basic::SfxLibrary::impl_checkLoaded ( )
private

checks whether the library is loaded, throws a LibraryNotLoadedException (wrapped in a WrappedTargetException), if not.

Definition at line 3059 of file namecont.cxx.

References Any, and mbLoaded.

Referenced by getByName(), insertByName(), removeByName(), and replaceByName().

◆ impl_checkReadOnly()

void basic::SfxLibrary::impl_checkReadOnly ( )
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().

◆ impl_removeWithoutChecks()

void basic::SfxLibrary::impl_removeWithoutChecks ( const OUString &  _rElementName)
private

◆ implIsModified()

bool basic::SfxLibrary::implIsModified ( ) const
inlineprotected

◆ implSetModified()

void basic::SfxLibrary::implSetModified ( bool  _bIsModified)
protected

◆ insertByName()

void basic::SfxLibrary::insertByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

◆ isLibraryElementValid()

virtual bool basic::SfxLibrary::isLibraryElementValid ( const css::uno::Any &  rElement) const
protectedpure virtual

◆ isLoadedStorable()

bool basic::SfxLibrary::isLoadedStorable ( )
protectedvirtual

◆ isModified()

virtual bool basic::SfxLibrary::isModified ( )
privatepure virtual

◆ queryInterface()

Any SAL_CALL basic::SfxLibrary::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from comphelper::WeakComponentImplHelper<>.

Definition at line 2998 of file namecont.cxx.

References Any.

◆ release()

virtual void SAL_CALL basic::SfxLibrary::release ( )
inlineoverridevirtualnoexcept

Reimplemented from comphelper::WeakComponentImplHelper<>.

Definition at line 553 of file namecont.hxx.

◆ removeByName()

void basic::SfxLibrary::removeByName ( const OUString &  Name)
overridevirtual

◆ removeChangesListener()

void SAL_CALL basic::SfxLibrary::removeChangesListener ( const css::uno::Reference< css::util::XChangesListener > &  xListener)
overridevirtual

Definition at line 3176 of file namecont.cxx.

References maNameContainer.

◆ removeContainerListener()

void SAL_CALL basic::SfxLibrary::removeContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
overridevirtual

Definition at line 3164 of file namecont.cxx.

References maNameContainer.

◆ removeElementWithoutChecks()

void basic::SfxLibrary::removeElementWithoutChecks ( const OUString &  _rElementName,
LibraryContainerAccess   
)
inline

Definition at line 589 of file namecont.hxx.

References impl_removeWithoutChecks().

Referenced by basic::SfxLibraryContainer::removeLibrary().

◆ replaceByName()

void basic::SfxLibrary::replaceByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

◆ storeResources()

virtual void basic::SfxLibrary::storeResources ( )
privatepure virtual

◆ storeResourcesAsURL()

virtual void basic::SfxLibrary::storeResourcesAsURL ( const OUString &  URL,
const OUString &  NewName 
)
privatepure virtual

◆ storeResourcesToStorage()

virtual void basic::SfxLibrary::storeResourcesToStorage ( const css::uno::Reference< css::embed::XStorage > &  xStorage)
privatepure virtual

◆ storeResourcesToURL()

virtual void basic::SfxLibrary::storeResourcesToURL ( const OUString &  URL,
const css::uno::Reference< css::task::XInteractionHandler > &  xHandler 
)
privatepure virtual

Friends And Related Function Documentation

◆ SfxDialogLibraryContainer

friend class SfxDialogLibraryContainer
friend

Definition at line 475 of file namecont.hxx.

◆ SfxLibraryContainer

friend class SfxLibraryContainer
friend

Definition at line 474 of file namecont.hxx.

◆ SfxScriptLibraryContainer

friend class SfxScriptLibraryContainer
friend

Definition at line 476 of file namecont.hxx.

Member Data Documentation

◆ maLibElementFileExtension

OUString basic::SfxLibrary::maLibElementFileExtension
private

Definition at line 489 of file namecont.hxx.

Referenced by impl_removeWithoutChecks().

◆ maLibInfoFileURL

OUString basic::SfxLibrary::maLibInfoFileURL
private

◆ maNameContainer

rtl::Reference<NameContainer> basic::SfxLibrary::maNameContainer
private

◆ maOriginalStorageURL

OUString basic::SfxLibrary::maOriginalStorageURL
private

Definition at line 493 of file namecont.hxx.

Referenced by basic::SfxLibraryContainer::getOriginalLibraryLinkURL().

◆ maPassword

OUString basic::SfxLibrary::maPassword
private

◆ maStorageURL

OUString basic::SfxLibrary::maStorageURL
private

◆ maUnexpandedStorageURL

OUString basic::SfxLibrary::maUnexpandedStorageURL
private

◆ mbDoc50Password

bool basic::SfxLibrary::mbDoc50Password
private

◆ mbExtension

bool basic::SfxLibrary::mbExtension
private

Definition at line 508 of file namecont.hxx.

Referenced by basic::SfxLibraryContainer::storeLibraries_Impl().

◆ mbInitialised

bool basic::SfxLibrary::mbInitialised
private

Definition at line 485 of file namecont.hxx.

Referenced by basic::SfxLibraryContainer::init_Impl().

◆ mbIsModified

bool basic::SfxLibrary::mbIsModified
private

Definition at line 484 of file namecont.hxx.

Referenced by implIsModified(), and implSetModified().

◆ mbLink

bool basic::SfxLibrary::mbLink
private

◆ mbLoaded

bool basic::SfxLibrary::mbLoaded
private

◆ mbPasswordProtected

bool basic::SfxLibrary::mbPasswordProtected
protected

◆ mbPasswordVerified

bool basic::SfxLibrary::mbPasswordVerified
private

◆ mbPreload

bool basic::SfxLibrary::mbPreload
private

◆ mbReadOnly

bool basic::SfxLibrary::mbReadOnly
private

◆ mbReadOnlyLink

bool basic::SfxLibrary::mbReadOnlyLink
private

◆ mbSharedIndexFile

bool basic::SfxLibrary::mbSharedIndexFile
private

◆ mrModifiable

ModifiableHelper& basic::SfxLibrary::mrModifiable
private

Definition at line 480 of file namecont.hxx.

Referenced by implSetModified().

◆ mxSFI

css::uno::Reference< css::ucb::XSimpleFileAccess3 > basic::SfxLibrary::mxSFI
private

Definition at line 478 of file namecont.hxx.

Referenced by impl_removeWithoutChecks().


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