Lines Matching refs:nFileId

122     NotifyLinkListener(sal_uInt16 nFileId, ScExternalRefManager::LinkUpdateType eType) :  in NotifyLinkListener()  argument
123 mnFileId(nFileId), meType(eType) {} in NotifyLinkListener()
459 const String* ScExternalRefCache::getRealTableName(sal_uInt16 nFileId, const String& rTabName) const in getRealTableName() argument
461 DocDataType::const_iterator itrDoc = maDocs.find(nFileId); in getRealTableName()
480 const String* ScExternalRefCache::getRealRangeName(sal_uInt16 nFileId, const String& rRangeName) co… in getRealRangeName() argument
482 DocDataType::const_iterator itrDoc = maDocs.find(nFileId); in getRealRangeName()
500 sal_uInt16 nFileId, const String& rTabName, SCCOL nCol, SCROW nRow, sal_uInt32* pnFmtIndex) in getCellData() argument
502 DocDataType::const_iterator itrDoc = maDocs.find(nFileId); in getCellData()
529 sal_uInt16 nFileId, const String& rTabName, const ScRange& rRange) in getCellRangeData() argument
531 DocDataType::iterator itrDoc = maDocs.find(nFileId); in getCellRangeData()
677 ScExternalRefCache::TokenArrayRef ScExternalRefCache::getRangeNameTokens(sal_uInt16 nFileId, const … in getRangeNameTokens() argument
679 DocItem* pDoc = getDocItem(nFileId); in getRangeNameTokens()
692 void ScExternalRefCache::setRangeNameTokens(sal_uInt16 nFileId, const String& rName, TokenArrayRef … in setRangeNameTokens() argument
694 DocItem* pDoc = getDocItem(nFileId); in setRangeNameTokens()
704 void ScExternalRefCache::setCellData(sal_uInt16 nFileId, const String& rTabName, SCCOL nCol, SCROW … in setCellData() argument
707 if (!isDocInitialized(nFileId)) in setCellData()
711 DocItem* pDocItem = getDocItem(nFileId); in setCellData()
732 void ScExternalRefCache::setCellRangeData(sal_uInt16 nFileId, const ScRange& rRange, const vector<S… in setCellRangeData() argument
736 if (rData.empty() || !isDocInitialized(nFileId)) in setCellRangeData()
741 DocItem* pDocItem = getDocItem(nFileId); in setCellRangeData()
799 bool ScExternalRefCache::isDocInitialized(sal_uInt16 nFileId) in isDocInitialized() argument
801 DocItem* pDoc = getDocItem(nFileId); in isDocInitialized()
818 void ScExternalRefCache::initializeDoc(sal_uInt16 nFileId, const vector<String>& rTabNames) in initializeDoc() argument
820 DocItem* pDoc = getDocItem(nFileId); in initializeDoc()
861 String ScExternalRefCache::getTableName(sal_uInt16 nFileId, size_t nCacheId) const in getTableName() argument
863 if( DocItem* pDoc = getDocItem( nFileId ) ) in getTableName()
869 void ScExternalRefCache::getAllTableNames(sal_uInt16 nFileId, vector<String>& rTabNames) const in getAllTableNames() argument
872 DocItem* pDoc = getDocItem(nFileId); in getAllTableNames()
883 SCsTAB ScExternalRefCache::getTabSpan( sal_uInt16 nFileId, const String& rStartTabName, const Strin… in getTabSpan() argument
885 DocItem* pDoc = getDocItem(nFileId); in getTabSpan()
934 bool ScExternalRefCache::setCacheDocReferenced( sal_uInt16 nFileId ) in setCacheDocReferenced() argument
936 DocItem* pDocItem = getDocItem(nFileId); in setCacheDocReferenced()
946 addCacheDocToReferenced( nFileId); in setCacheDocReferenced()
950 bool ScExternalRefCache::setCacheTableReferenced( sal_uInt16 nFileId, const String& rTabName, size_… in setCacheTableReferenced() argument
952 DocItem* pDoc = getDocItem(nFileId); in setCacheTableReferenced()
972 addCacheTableToReferenced( nFileId, i); in setCacheTableReferenced()
981 void ScExternalRefCache::setCacheTableReferencedPermanently( sal_uInt16 nFileId, const String& rTab… in setCacheTableReferencedPermanently() argument
983 DocItem* pDoc = getDocItem(nFileId); in setCacheTableReferencedPermanently()
1030 sal_uInt16 nFileId = (*itrDoc).first; in setAllCacheTableReferencedStati() local
1032 ReferencedStatus::DocReferenced & rDocReferenced = maReferenced.maDocs[nFileId]; in setAllCacheTableReferencedStati()
1041 addCacheTableToReferenced( nFileId, i); in setAllCacheTableReferencedStati()
1057 void ScExternalRefCache::addCacheTableToReferenced( sal_uInt16 nFileId, size_t nIndex ) in addCacheTableToReferenced() argument
1059 if (nFileId >= maReferenced.maDocs.size()) in addCacheTableToReferenced()
1062 ::std::vector<bool> & rTables = maReferenced.maDocs[nFileId].maTables; in addCacheTableToReferenced()
1075 maReferenced.maDocs[nFileId].mbAllTablesReferenced = true; in addCacheTableToReferenced()
1081 void ScExternalRefCache::addCacheDocToReferenced( sal_uInt16 nFileId ) in addCacheDocToReferenced() argument
1083 if (nFileId >= maReferenced.maDocs.size()) in addCacheDocToReferenced()
1086 if (!maReferenced.maDocs[nFileId].mbAllTablesReferenced) in addCacheDocToReferenced()
1088 ::std::vector<bool> & rTables = maReferenced.maDocs[nFileId].maTables; in addCacheDocToReferenced()
1092 maReferenced.maDocs[nFileId].mbAllTablesReferenced = true; in addCacheDocToReferenced()
1140 ScExternalRefCache::TableTypeRef ScExternalRefCache::getCacheTable(sal_uInt16 nFileId, size_t nTabI… in getCacheTable() argument
1142 DocItem* pDoc = getDocItem(nFileId); in getCacheTable()
1149 ScExternalRefCache::TableTypeRef ScExternalRefCache::getCacheTable(sal_uInt16 nFileId, const String… in getCacheTable() argument
1157 DocItem* pDoc = getDocItem(nFileId); in getCacheTable()
1195 void ScExternalRefCache::clearCache(sal_uInt16 nFileId) in clearCache() argument
1197 maDocs.erase(nFileId); in clearCache()
1200 ScExternalRefCache::DocItem* ScExternalRefCache::getDocItem(sal_uInt16 nFileId) const in getDocItem()
1203 DocDataType::iterator itrDoc = maDocs.find(nFileId); in getDocItem()
1208 DocDataType::value_type(nFileId, DocItem())); in getDocItem()
1222 ScExternalRefLink::ScExternalRefLink(ScDocument* pDoc, sal_uInt16 nFileId, const String& rFilter) : in ScExternalRefLink() argument
1224 mnFileId(nFileId), in ScExternalRefLink()
1499 String ScExternalRefManager::getCacheTableName(sal_uInt16 nFileId, size_t nTabIndex) const in getCacheTableName() argument
1501 return maRefCache.getTableName(nFileId, nTabIndex); in getCacheTableName()
1504 ScExternalRefCache::TableTypeRef ScExternalRefManager::getCacheTable(sal_uInt16 nFileId, size_t nTa… in getCacheTable() argument
1506 return maRefCache.getCacheTable(nFileId, nTabIndex); in getCacheTable()
1509 ScExternalRefCache::TableTypeRef ScExternalRefManager::getCacheTable(sal_uInt16 nFileId, const Stri… in getCacheTable() argument
1511 return maRefCache.getCacheTable(nFileId, rTabName, bCreateNew, pnIndex); in getCacheTable()
1542 void ScExternalRefManager::getAllCachedTableNames(sal_uInt16 nFileId, vector<String>& rTabNames) co… in getAllCachedTableNames() argument
1544 maRefCache.getAllTableNames(nFileId, rTabNames); in getAllCachedTableNames()
1547 SCsTAB ScExternalRefManager::getCachedTabSpan( sal_uInt16 nFileId, const String& rStartTabName, con… in getCachedTabSpan() argument
1549 return maRefCache.getTabSpan( nFileId, rStartTabName, rEndTabName); in getCachedTabSpan()
1595 bool ScExternalRefManager::setCacheTableReferenced( sal_uInt16 nFileId, const String& rTabName, siz… in setCacheTableReferenced() argument
1597 return maRefCache.setCacheTableReferenced( nFileId, rTabName, nSheets, false); in setCacheTableReferenced()
1600 void ScExternalRefManager::setCacheTableReferencedPermanently( sal_uInt16 nFileId, const String& rT… in setCacheTableReferencedPermanently() argument
1604 maRefCache.setCacheTableReferenced( nFileId, rTabName, nSheets, true); in setCacheTableReferencedPermanently()
1607 maRefCache.setCacheTableReferencedPermanently( nFileId, rTabName, nSheets); in setCacheTableReferencedPermanently()
1616 void ScExternalRefManager::storeRangeNameTokens(sal_uInt16 nFileId, const String& rName, const ScTo… in storeRangeNameTokens() argument
1619 maRefCache.setRangeNameTokens(nFileId, rName, pArray); in storeRangeNameTokens()
1623 sal_uInt16 nFileId, const String& rTabName, const ScAddress& rCell, in getSingleRefToken() argument
1627 insertRefCell(nFileId, *pCurPos); in getSingleRefToken()
1629 maybeLinkExternalFile(nFileId); in getSingleRefToken()
1640 nFileId, rTabName, rCell.Col(), rCell.Row(), &nFmtIndex); in getSingleRefToken()
1658 ScDocument* pSrcDoc = getSrcDocument(nFileId); in getSingleRefToken()
1687 maRefCache.getCacheTable(nFileId, rTabName, true, NULL); in getSingleRefToken()
1699 nFmtIndex = getMappedNumberFormat(nFileId, nFmtIndex, pSrcDoc); in getSingleRefToken()
1719 maRefCache.setCellData(nFileId, rTabName, rCell.Col(), rCell.Row(), pTok, nFmtIndex); in getSingleRefToken()
1725 sal_uInt16 nFileId, const String& rTabName, const ScRange& rRange, const ScAddress* pCurPos) in getDoubleRefTokens() argument
1728 insertRefCell(nFileId, *pCurPos); in getDoubleRefTokens()
1730 maybeLinkExternalFile(nFileId); in getDoubleRefTokens()
1734 maRefCache.getCellRangeData(nFileId, rTabName, rRange); in getDoubleRefTokens()
1739 ScDocument* pSrcDoc = getSrcDocument(nFileId); in getDoubleRefTokens()
1783 maRefCache.setCellRangeData(nFileId, aRange, aCacheData, pArray); in getDoubleRefTokens()
1792 maRefCache.getCacheTable(nFileId, rTabName, true, NULL); in getDoubleRefTokens()
1801 ScExternalRefCache::TokenArrayRef ScExternalRefManager::getRangeNameTokens(sal_uInt16 nFileId, cons… in getRangeNameTokens() argument
1804 insertRefCell(nFileId, *pCurPos); in getRangeNameTokens()
1806 maybeLinkExternalFile(nFileId); in getRangeNameTokens()
1808 ScExternalRefCache::TokenArrayRef pArray = maRefCache.getRangeNameTokens(nFileId, rName); in getRangeNameTokens()
1812 ScDocument* pSrcDoc = getSrcDocument(nFileId); in getRangeNameTokens()
1845 …ScExternalSingleRefToken aNewToken(nFileId, aTabName, static_cast<ScToken*>(pToken)->GetSingleRef(… in getRangeNameTokens()
1855 …ScExternalDoubleRefToken aNewToken(nFileId, aTabName, static_cast<ScToken*>(pToken)->GetDoubleRef(… in getRangeNameTokens()
1869 maRefCache.setRangeNameTokens(nFileId, pRangeData->GetName(), pNew); in getRangeNameTokens()
1873 void ScExternalRefManager::refreshAllRefCells(sal_uInt16 nFileId) in refreshAllRefCells() argument
1875 RefCellMap::iterator itrFile = maRefCells.find(nFileId); in refreshAllRefCells()
1896 void ScExternalRefManager::insertRefCell(sal_uInt16 nFileId, const ScAddress& rCell) in insertRefCell() argument
1898 RefCellMap::iterator itr = maRefCells.find(nFileId); in insertRefCell()
1903 RefCellMap::value_type(nFileId, aRefCells)); in insertRefCell()
1916 ScDocument* ScExternalRefManager::getSrcDocument(sal_uInt16 nFileId) in getSrcDocument() argument
1922 DocShellMap::iterator itr = maDocShells.find(nFileId); in getSrcDocument()
1937 const String* pFile = getExternalFileName(nFileId); in getSrcDocument()
1944 aSrcDoc.maShell = loadSrcDocument(nFileId, aFilter); in getSrcDocument()
1957 maDocShells.insert(DocShellMap::value_type(nFileId, aSrcDoc)); in getSrcDocument()
1962 if (!maRefCache.isDocInitialized(nFileId) && nTabCount) in getSrcDocument()
1973 maRefCache.initializeDoc(nFileId, aTabNames); in getSrcDocument()
1978 SfxObjectShellRef ScExternalRefManager::loadSrcDocument(sal_uInt16 nFileId, String& rFilter) in loadSrcDocument() argument
1980 const SrcFileData* pFileData = getExternalFileData(nFileId); in loadSrcDocument()
1989 maybeCreateRealFileName(nFileId); in loadSrcDocument()
2012 setRelativeFileName(nFileId, aStr); in loadSrcDocument()
2054 … setFilterData(nFileId, rFilter, aOptions); // update the filter data, including the new options in loadSrcDocument()
2081 void ScExternalRefManager::maybeLinkExternalFile(sal_uInt16 nFileId) in maybeLinkExternalFile() argument
2083 if (maLinkedDocs.count(nFileId)) in maybeLinkExternalFile()
2088 const String* pFileName = getExternalFileName(nFileId); in maybeLinkExternalFile()
2093 const SrcFileData* pFileData = getExternalFileData(nFileId); in maybeLinkExternalFile()
2104 ScExternalRefLink* pLink = new ScExternalRefLink(mpDoc, nFileId, aFilter); in maybeLinkExternalFile()
2112 maLinkedDocs.insert(LinkedDocMap::value_type(nFileId, true)); in maybeLinkExternalFile()
2133 void ScExternalRefManager::maybeCreateRealFileName(sal_uInt16 nFileId) in maybeCreateRealFileName() argument
2135 if (nFileId >= maSrcFiles.size()) in maybeCreateRealFileName()
2138 maSrcFiles[nFileId].maybeCreateRealFileName(getOwnDocumentName()); in maybeCreateRealFileName()
2182 const String* ScExternalRefManager::getExternalFileName(sal_uInt16 nFileId, bool bForceOriginal) in getExternalFileName() argument
2184 if (nFileId >= maSrcFiles.size()) in getExternalFileName()
2188 return &maSrcFiles[nFileId].maFileName; in getExternalFileName()
2190 maybeCreateRealFileName(nFileId); in getExternalFileName()
2192 if (maSrcFiles[nFileId].maRealFileName.Len()) in getExternalFileName()
2193 return &maSrcFiles[nFileId].maRealFileName; in getExternalFileName()
2195 return &maSrcFiles[nFileId].maFileName; in getExternalFileName()
2198 bool ScExternalRefManager::hasExternalFile(sal_uInt16 nFileId) const in hasExternalFile()
2200 return nFileId < maSrcFiles.size(); in hasExternalFile()
2210 …xternalRefManager::SrcFileData* ScExternalRefManager::getExternalFileData(sal_uInt16 nFileId) const in getExternalFileData()
2212 if (nFileId >= maSrcFiles.size()) in getExternalFileData()
2215 return &maSrcFiles[nFileId]; in getExternalFileData()
2218 const String* ScExternalRefManager::getRealTableName(sal_uInt16 nFileId, const String& rTabName) co… in getRealTableName() argument
2220 return maRefCache.getRealTableName(nFileId, rTabName); in getRealTableName()
2223 const String* ScExternalRefManager::getRealRangeName(sal_uInt16 nFileId, const String& rRangeName) … in getRealRangeName() argument
2225 return maRefCache.getRealRangeName(nFileId, rRangeName); in getRealRangeName()
2229 void lcl_removeByFileId(sal_uInt16 nFileId, MapContainer& rMap) in lcl_removeByFileId() argument
2231 typename MapContainer::iterator itr = rMap.find(nFileId); in lcl_removeByFileId()
2236 void ScExternalRefManager::refreshNames(sal_uInt16 nFileId) in refreshNames() argument
2238 maRefCache.clearCache(nFileId); in refreshNames()
2239 lcl_removeByFileId(nFileId, maDocShells); in refreshNames()
2245 refreshAllRefCells(nFileId); in refreshNames()
2247 notifyAllLinkListeners(nFileId, LINK_MODIFIED); in refreshNames()
2250 void ScExternalRefManager::breakLink(sal_uInt16 nFileId) in breakLink() argument
2254 RefCellMap::iterator itrRefs = maRefCells.find(nFileId); in breakLink()
2261 maRefCells.erase(nFileId); in breakLink()
2264 lcl_removeByFileId(nFileId, maDocShells); in breakLink()
2269 LinkedDocMap::iterator itr = maLinkedDocs.find(nFileId); in breakLink()
2273 notifyAllLinkListeners(nFileId, LINK_BROKEN); in breakLink()
2276 void ScExternalRefManager::switchSrcFile(sal_uInt16 nFileId, const String& rNewFile, const String& … in switchSrcFile() argument
2278 maSrcFiles[nFileId].maFileName = rNewFile; in switchSrcFile()
2279 maSrcFiles[nFileId].maRelativeName.Erase(); in switchSrcFile()
2280 maSrcFiles[nFileId].maRealFileName.Erase(); in switchSrcFile()
2281 if (!maSrcFiles[nFileId].maFilterName.Equals(rNewFilter)) in switchSrcFile()
2284 maSrcFiles[nFileId].maFilterName = rNewFilter; in switchSrcFile()
2285 maSrcFiles[nFileId].maFilterOptions.Erase(); in switchSrcFile()
2287 refreshNames(nFileId); in switchSrcFile()
2290 void ScExternalRefManager::setRelativeFileName(sal_uInt16 nFileId, const String& rRelUrl) in setRelativeFileName() argument
2292 if (nFileId >= maSrcFiles.size()) in setRelativeFileName()
2294 maSrcFiles[nFileId].maRelativeName = rRelUrl; in setRelativeFileName()
2297 void ScExternalRefManager::setFilterData(sal_uInt16 nFileId, const String& rFilterName, const Strin… in setFilterData() argument
2299 if (nFileId >= maSrcFiles.size()) in setFilterData()
2301 maSrcFiles[nFileId].maFilterName = rFilterName; in setFilterData()
2302 maSrcFiles[nFileId].maFilterOptions = rOptions; in setFilterData()
2356 void ScExternalRefManager::addLinkListener(sal_uInt16 nFileId, LinkListener* pListener) in addLinkListener() argument
2358 LinkListenerMap::iterator itr = maLinkListeners.find(nFileId); in addLinkListener()
2362 LinkListenerMap::value_type(nFileId, LinkListeners())); in addLinkListener()
2376 void ScExternalRefManager::removeLinkListener(sal_uInt16 nFileId, LinkListener* pListener) in removeLinkListener() argument
2378 LinkListenerMap::iterator itr = maLinkListeners.find(nFileId); in removeLinkListener()
2398 void ScExternalRefManager::notifyAllLinkListeners(sal_uInt16 nFileId, LinkUpdateType eType) in notifyAllLinkListeners() argument
2400 LinkListenerMap::iterator itr = maLinkListeners.find(nFileId); in notifyAllLinkListeners()
2406 for_each(rList.begin(), rList.end(), NotifyLinkListener(nFileId, eType)); in notifyAllLinkListeners()
2426 sal_uInt32 ScExternalRefManager::getMappedNumberFormat(sal_uInt16 nFileId, sal_uInt32 nNumFmt, ScDo… in getMappedNumberFormat() argument
2428 NumFmtMap::iterator itr = maNumFormatMap.find(nFileId); in getMappedNumberFormat()
2433 NumFmtMap::value_type(nFileId, SvNumberFormatterMergeMap())); in getMappedNumberFormat()