Lines Matching refs:pUserData
248 AddressUserData_Impl* pUserData = new AddressUserData_Impl(); in SwAddressListDialog() local
249 pEntry->SetUserData(pUserData); in SwAddressListDialog()
254 pUserData->nCommandType = rCurrentData.nCommandType; in SwAddressListDialog()
255 pUserData->xSource = rConfigItem.GetSource(); in SwAddressListDialog()
256 pUserData->xConnection = rConfigItem.GetConnection(); in SwAddressListDialog()
257 pUserData->xColumnsSupplier = rConfigItem.GetColumnsSupplier(); in SwAddressListDialog()
258 pUserData->xResultSet = rConfigItem.GetResultSet(); in SwAddressListDialog()
259 pUserData->sFilter = rConfigItem.GetFilter(); in SwAddressListDialog()
265 pUserData->sURL = lcl_getFlatURL( xSourceProperties ); in SwAddressListDialog()
266 bEnableEdit = pUserData->sURL.getLength() > 0 && in SwAddressListDialog()
267 SWUnoHelper::UCB_IsFile( pUserData->sURL ) && //#i97577# in SwAddressListDialog()
268 !SWUnoHelper::UCB_IsReadOnlyFileName( pUserData->sURL ); in SwAddressListDialog()
291 AddressUserData_Impl* pUserData = static_cast<AddressUserData_Impl*>(pEntry->GetUserData()); in ~SwAddressListDialog() local
292 delete pUserData; in ~SwAddressListDialog()
309 … AddressUserData_Impl* pUserData = static_cast<AddressUserData_Impl*>(pSelect->GetUserData()); in IMPL_LINK() local
310 if(pUserData->xConnection.is() ) in IMPL_LINK()
314 …uno::Reference<lang::XMultiServiceFactory> xConnectFactory(pUserData->xConnection, UNO_QUERY_THROW… in IMPL_LINK()
327 … xRowProperties->setPropertyValue(C2U("CommandType"), makeAny(pUserData->nCommandType)); in IMPL_LINK()
328 …xRowProperties->setPropertyValue(C2U("ActiveConnection"), makeAny(pUserData->xConnection.getTyped(… in IMPL_LINK()
337 if(pUserData->sFilter.getLength()) in IMPL_LINK()
338 xComposer->setFilter(pUserData->sFilter); in IMPL_LINK()
352 pUserData->sFilter = xComposer->getFilter(); in IMPL_LINK()
456 AddressUserData_Impl* pUserData = new AddressUserData_Impl(); in IMPL_LINK() local
457 pUserData->sURL = sURL; in IMPL_LINK()
458 m_pCreatedDataSource->SetUserData(pUserData); in IMPL_LINK()
476 …AddressUserData_Impl* pUserData = pEntry ? static_cast<AddressUserData_Impl*>(pEntry->GetUserData(… in IMPL_LINK() local
477 if(pUserData && pUserData->sURL.getLength()) in IMPL_LINK()
479 if(pUserData->xResultSet.is()) in IMPL_LINK()
482 if(rConfigItem.GetResultSet() != pUserData->xResultSet) in IMPL_LINK()
483 ::comphelper::disposeComponent( pUserData->xResultSet ); in IMPL_LINK()
484 pUserData->xResultSet = 0; in IMPL_LINK()
488 pUserData->xSource.clear(); in IMPL_LINK()
489 pUserData->xColumnsSupplier.clear(); in IMPL_LINK()
490 pUserData->xConnection.clear(); in IMPL_LINK()
495 pUserData->sURL, in IMPL_LINK()
521 AddressUserData_Impl* pUserData = 0; in IMPL_STATIC_LINK() local
534 pUserData = static_cast<AddressUserData_Impl*>(pSelect->GetUserData()); in IMPL_STATIC_LINK()
535 if(pUserData->nTableAndQueryCount > 1 || pUserData->nTableAndQueryCount == -1) in IMPL_STATIC_LINK()
544 pThis->m_aDBData.nCommandType = pUserData->nCommandType; in IMPL_STATIC_LINK()
551 pThis->m_aEditPB.Enable(pUserData && pUserData->sURL.getLength() && in IMPL_STATIC_LINK()
552 SWUnoHelper::UCB_IsFile( pUserData->sURL ) && //#i97577# in IMPL_STATIC_LINK()
553 !SWUnoHelper::UCB_IsReadOnlyFileName( pUserData->sURL ) ); in IMPL_STATIC_LINK()
569 … AddressUserData_Impl* pUserData = static_cast<AddressUserData_Impl*>(pSelect->GetUserData()); in DetectTablesAndQueries() local
571 if(!pUserData->xConnection.is()) in DetectTablesAndQueries()
575 pUserData->xSource = uno::Reference<XDataSource>(xComplConnection, UNO_QUERY); in DetectTablesAndQueries()
580 … pUserData->xConnection = SharedConnection( xComplConnection->connectWithCompletion( xHandler ) ); in DetectTablesAndQueries()
582 if(pUserData->xConnection.is()) in DetectTablesAndQueries()
587 uno::Reference<XTablesSupplier> xTSupplier(pUserData->xConnection, UNO_QUERY); in DetectTablesAndQueries()
594 uno::Reference<XQueriesSupplier> xQSupplier(pUserData->xConnection, UNO_QUERY); in DetectTablesAndQueries()
601 pUserData->nTableAndQueryCount = nTables; in DetectTablesAndQueries()
605 … SwSelectDBTableDialog* pDlg = new SwSelectDBTableDialog(this, pUserData->xConnection); in DetectTablesAndQueries()
608 pDlg->SetSelectedTable(sTable, pUserData->nCommandType == CommandType::TABLE); in DetectTablesAndQueries()
614 pUserData->nCommandType = m_aDBData.nCommandType; in DetectTablesAndQueries()
636 pUserData->sURL = lcl_getFlatURL( xSourceProperties ); in DetectTablesAndQueries()
638 pUserData->xColumnsSupplier = SwNewDBMgr::GetColumnSupplier(pUserData->xConnection, in DetectTablesAndQueries()
643 if( pUserData->xColumnsSupplier.is() ) in DetectTablesAndQueries()
650 m_aFilterPB.Enable( pUserData->xConnection.is() && sCommand.Len() ); in DetectTablesAndQueries()
651 m_aTablePB.Enable( pUserData->nTableAndQueryCount > 1 ); in DetectTablesAndQueries()
669 … AddressUserData_Impl* pUserData = static_cast<AddressUserData_Impl*>(pSelect->GetUserData()); in IMPL_LINK() local
673 if( pUserData->nTableAndQueryCount > 1 || pUserData->nTableAndQueryCount == -1) in IMPL_LINK()
701 … AddressUserData_Impl* pUserData = static_cast<AddressUserData_Impl*>(pSelect->GetUserData()); in GetSource() local
702 xRet = pUserData->xSource; in GetSource()
716 … AddressUserData_Impl* pUserData = static_cast<AddressUserData_Impl*>(pSelect->GetUserData()); in GetConnection() local
717 xRet = pUserData->xConnection; in GetConnection()
730 … AddressUserData_Impl* pUserData = static_cast<AddressUserData_Impl*>(pSelect->GetUserData()); in GetColumnsSupplier() local
731 xRet = pUserData->xColumnsSupplier; in GetColumnsSupplier()
744 … AddressUserData_Impl* pUserData = static_cast<AddressUserData_Impl*>(pSelect->GetUserData()); in GetFilter() local
745 sRet = pUserData->sFilter; in GetFilter()