21#include <osl/file.hxx>
27SwVbaAddin::SwVbaAddin(
const uno::Reference< ooo::vba::XHelperInterface >& rParent,
const uno::Reference< uno::XComponentContext >& rContext, OUString aFileURL ) :
28 SwVbaAddin_BASE( rParent, rContext ), msFileURL(
std::move( aFileURL )), mbInstalled( true )
40 ::osl::File::getSystemPathFromFileURL(
aURL.GetLastName(),
sName );
47 throw uno::RuntimeException(
" Fail to set name" );
54 return aURL.GetURLPath();
82uno::Sequence< OUString >
virtual OUString SAL_CALL getPath() override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual sal_Bool SAL_CALL getAutoload() override
virtual ~SwVbaAddin() override
virtual sal_Bool SAL_CALL getInstalled() override
virtual OUString SAL_CALL getName() override
virtual OUString getServiceImplName() override
virtual void SAL_CALL setInstalled(sal_Bool _installed) override
SwVbaAddin(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, OUString aFileURL)
virtual void SAL_CALL setName(const OUString &_name) override
Sequence< OUString > aServiceNames