Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ScExternalDataProvidersObj::insertByIndex(sal_Int32 nIndex, const css::uno::Any& rAny)
- {
- if ( rAny.getValueTypeClass() == uno::TypeClass_INTERFACE )
- {
- auto unoRef = css::uno::Reference<css::sheet::XExternalDataProvider>(rAny, css::uno::UNO_QUERY);
- mpDoc->GetExternalDataMapper().insertDataSource(sc::ExternalDataSource(OUString("rUrl"), OUString("rProvider"), mpDoc));
- }
- else
- throw lang::IllegalArgumentException();
- }
Add Comment
Please, Sign In to add comment