LibreOffice Module basic (master) 1
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
basic::SfxScriptLibrary Class Referencefinal

#include <scriptcont.hxx>

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

Public Member Functions

 SfxScriptLibrary (ModifiableHelper &_rModifiable, const css::uno::Reference< css::ucb::XSimpleFileAccess3 > &xSFI)
 
 SfxScriptLibrary (ModifiableHelper &_rModifiable, const css::uno::Reference< css::ucb::XSimpleFileAccess3 > &xSFI, const OUString &aLibInfoFileURL, const OUString &aStorageURL, bool ReadOnly)
 
virtual css::script::ModuleInfo SAL_CALL getModuleInfo (const OUString &ModuleName) override
 
virtual sal_Bool SAL_CALL hasModuleInfo (const OUString &ModuleName) override
 
virtual void SAL_CALL insertModuleInfo (const OUString &ModuleName, const css::script::ModuleInfo &ModuleInfo) override
 
virtual void SAL_CALL removeModuleInfo (const OUString &ModuleName) override
 
- Public Member Functions inherited from basic::SfxLibrary
 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 ()
 
- Public Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 

Static Public Member Functions

static bool containsValidModule (const css::uno::Any &_rElement)
 

Private Types

typedef std::unordered_map< OUString, css::script::ModuleInfo > ModuleInfoMap
 

Private Member Functions

virtual bool isModified () override
 
virtual void storeResources () override
 
virtual void storeResourcesAsURL (const OUString &URL, const OUString &NewName) override
 
virtual void storeResourcesToURL (const OUString &URL, const css::uno::Reference< css::task::XInteractionHandler > &xHandler) override
 
virtual void storeResourcesToStorage (const css::uno::Reference< css::embed::XStorage > &xStorage) override
 
virtual bool isLoadedStorable () override
 
virtual bool isLibraryElementValid (const css::uno::Any &rElement) const override
 

Private Attributes

bool mbLoadedSource
 
bool mbLoadedBinary
 
ModuleInfoMap mModuleInfo
 

Friends

class SfxScriptLibraryContainer
 

Additional Inherited Members

- Protected Member Functions inherited from basic::SfxLibrary
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 Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
 ~ImplHelper1 () SAL_NOEXCEPT
 
- Protected Attributes inherited from basic::SfxLibrary
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
 

Detailed Description

Definition at line 109 of file scriptcont.hxx.

Member Typedef Documentation

◆ ModuleInfoMap

typedef std::unordered_map< OUString, css::script::ModuleInfo > basic::SfxScriptLibrary::ModuleInfoMap
private

Definition at line 113 of file scriptcont.hxx.

Constructor & Destructor Documentation

◆ SfxScriptLibrary() [1/2]

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

◆ SfxScriptLibrary() [2/2]

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

References DECLARE_XINTERFACE.

Member Function Documentation

◆ containsValidModule()

bool basic::SfxScriptLibrary::containsValidModule ( const css::uno::Any &  _rElement)
static

◆ getModuleInfo()

script::ModuleInfo SAL_CALL basic::SfxScriptLibrary::getModuleInfo ( const OUString &  ModuleName)
overridevirtual

Definition at line 1194 of file scriptcont.cxx.

References hasModuleInfo(), and mModuleInfo.

◆ hasModuleInfo()

sal_Bool SAL_CALL basic::SfxScriptLibrary::hasModuleInfo ( const OUString &  ModuleName)
overridevirtual

Definition at line 1203 of file scriptcont.cxx.

References mModuleInfo.

Referenced by getModuleInfo(), and insertModuleInfo().

◆ insertModuleInfo()

void SAL_CALL basic::SfxScriptLibrary::insertModuleInfo ( const OUString &  ModuleName,
const css::script::ModuleInfo &  ModuleInfo 
)
overridevirtual

Definition at line 1215 of file scriptcont.cxx.

References hasModuleInfo(), and mModuleInfo.

◆ isLibraryElementValid()

bool basic::SfxScriptLibrary::isLibraryElementValid ( const css::uno::Any &  rElement) const
overrideprivatevirtual

Implements basic::SfxLibrary.

Definition at line 1186 of file scriptcont.cxx.

References containsValidModule().

◆ isLoadedStorable()

bool basic::SfxScriptLibrary::isLoadedStorable ( )
overrideprivatevirtual

◆ isModified()

bool basic::SfxScriptLibrary::isModified ( )
overrideprivatevirtual

Implements basic::SfxLibrary.

Definition at line 1155 of file scriptcont.cxx.

References basic::SfxLibrary::implIsModified().

◆ removeModuleInfo()

void SAL_CALL basic::SfxScriptLibrary::removeModuleInfo ( const OUString &  ModuleName)
overridevirtual

Definition at line 1224 of file scriptcont.cxx.

References mModuleInfo.

◆ storeResources()

void basic::SfxScriptLibrary::storeResources ( )
overrideprivatevirtual

Implements basic::SfxLibrary.

Definition at line 1160 of file scriptcont.cxx.

◆ storeResourcesAsURL()

void basic::SfxScriptLibrary::storeResourcesAsURL ( const OUString &  URL,
const OUString &  NewName 
)
overrideprivatevirtual

Implements basic::SfxLibrary.

Definition at line 1169 of file scriptcont.cxx.

◆ storeResourcesToStorage()

void basic::SfxScriptLibrary::storeResourcesToStorage ( const css::uno::Reference< css::embed::XStorage > &  xStorage)
overrideprivatevirtual

Implements basic::SfxLibrary.

Definition at line 1173 of file scriptcont.cxx.

◆ storeResourcesToURL()

void basic::SfxScriptLibrary::storeResourcesToURL ( const OUString &  URL,
const css::uno::Reference< css::task::XInteractionHandler > &  xHandler 
)
overrideprivatevirtual

Implements basic::SfxLibrary.

Definition at line 1165 of file scriptcont.cxx.

Friends And Related Function Documentation

◆ SfxScriptLibraryContainer

friend class SfxScriptLibraryContainer
friend

Definition at line 111 of file scriptcont.hxx.

Member Data Documentation

◆ mbLoadedBinary

bool basic::SfxScriptLibrary::mbLoadedBinary
private

◆ mbLoadedSource

bool basic::SfxScriptLibrary::mbLoadedSource
private

◆ mModuleInfo

ModuleInfoMap basic::SfxScriptLibrary::mModuleInfo
private

Definition at line 117 of file scriptcont.hxx.

Referenced by getModuleInfo(), hasModuleInfo(), insertModuleInfo(), and removeModuleInfo().


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