VikasMahato

Untitled

May 23rd, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. void ScExternalDataProvidersObj::insertByIndex(sal_Int32 nIndex, const css::uno::Any& rAny)
  2. {
  3.     if ( rAny.getValueTypeClass() == uno::TypeClass_INTERFACE )
  4.     {
  5.         auto unoRef = css::uno::Reference<css::sheet::XExternalDataProvider>(rAny, css::uno::UNO_QUERY);
  6.         mpDoc->GetExternalDataMapper().insertDataSource(sc::ExternalDataSource(OUString("rUrl"), OUString("rProvider"), mpDoc));
  7.     }
  8.     else
  9.         throw lang::IllegalArgumentException();
  10. }
Add Comment
Please, Sign In to add comment