VikasMahato

Untitled

May 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. void ScExternalDataProvidersObj::insertByIndex(sal_Int32 nIndex, const css::uno::Any& rAny)
  2. {
  3.     // need a way to map to internal object here
  4.  
  5.     // Create a new Data Source :- To do so we need rUrl, rProvider, mpDoc.
  6.     // However we are taking nIndex and rAny as arguments. Why is it so?
  7.     const sc::ExternalDataSource *externalDataSource = new sc::ExternalDataSource(OUString("rUrl"), OUString("rProvider"), mpDoc);
  8.  
  9.     // Call insertDataSource :- Is this correct?
  10.     mpDoc->GetExternalDataMapper().insertDataSource(*externalDataSource);
  11.  
  12. }
Add Comment
Please, Sign In to add comment