LibreOffice Module basic (master) 1
|
#include <scriptcont.hxx>
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 |
Definition at line 109 of file scriptcont.hxx.
|
private |
Definition at line 113 of file scriptcont.hxx.
basic::SfxScriptLibrary::SfxScriptLibrary | ( | ModifiableHelper & | _rModifiable, |
const css::uno::Reference< css::ucb::XSimpleFileAccess3 > & | xSFI | ||
) |
basic::SfxScriptLibrary::SfxScriptLibrary | ( | ModifiableHelper & | _rModifiable, |
const css::uno::Reference< css::ucb::XSimpleFileAccess3 > & | xSFI, | ||
const OUString & | aLibInfoFileURL, | ||
const OUString & | aStorageURL, | ||
bool | ReadOnly | ||
) |
References DECLARE_XINTERFACE.
|
static |
Definition at line 1179 of file scriptcont.cxx.
Referenced by basic::SfxScriptLibraryContainer::isLibraryElementValid(), and isLibraryElementValid().
|
overridevirtual |
Definition at line 1194 of file scriptcont.cxx.
References hasModuleInfo(), and mModuleInfo.
|
overridevirtual |
Definition at line 1203 of file scriptcont.cxx.
References mModuleInfo.
Referenced by getModuleInfo(), and insertModuleInfo().
|
overridevirtual |
Definition at line 1215 of file scriptcont.cxx.
References hasModuleInfo(), and mModuleInfo.
|
overrideprivatevirtual |
Implements basic::SfxLibrary.
Definition at line 1186 of file scriptcont.cxx.
References containsValidModule().
|
overrideprivatevirtual |
Reimplemented from basic::SfxLibrary.
Definition at line 1148 of file scriptcont.cxx.
References basic::SfxLibrary::isLoadedStorable(), mbLoadedSource, and basic::SfxLibrary::mbPasswordProtected.
|
overrideprivatevirtual |
Implements basic::SfxLibrary.
Definition at line 1155 of file scriptcont.cxx.
References basic::SfxLibrary::implIsModified().
|
overridevirtual |
Definition at line 1224 of file scriptcont.cxx.
References mModuleInfo.
|
overrideprivatevirtual |
Implements basic::SfxLibrary.
Definition at line 1160 of file scriptcont.cxx.
|
overrideprivatevirtual |
Implements basic::SfxLibrary.
Definition at line 1169 of file scriptcont.cxx.
|
overrideprivatevirtual |
Implements basic::SfxLibrary.
Definition at line 1173 of file scriptcont.cxx.
|
overrideprivatevirtual |
Implements basic::SfxLibrary.
Definition at line 1165 of file scriptcont.cxx.
|
friend |
Definition at line 111 of file scriptcont.hxx.
|
private |
Definition at line 116 of file scriptcont.hxx.
Referenced by basic::SfxScriptLibraryContainer::implLoadPasswordLibrary().
|
private |
Definition at line 115 of file scriptcont.hxx.
Referenced by basic::SfxScriptLibraryContainer::changeLibraryPassword(), basic::SfxScriptLibraryContainer::implLoadPasswordLibrary(), isLoadedStorable(), and basic::SfxScriptLibraryContainer::setLibraryPassword().
|
private |
Definition at line 117 of file scriptcont.hxx.
Referenced by getModuleInfo(), hasModuleInfo(), insertModuleInfo(), and removeModuleInfo().