Lines Matching refs:rInfo
830 AutoRecovery::TDocumentInfo& rInfo = *pIt; in addStatusListener() local
831 …StateEvent aEvent = AutoRecovery::implst_createFeatureStateEvent(m_eJob, OPERATION_UPDATE, &rInfo); in addStatusListener()
1209 void AutoRecovery::implts_specifyDefaultFilterAndExtension(AutoRecovery::TDocumentInfo& rInfo) in implts_specifyDefaultFilterAndExtension() argument
1211 if (!rInfo.AppModule.getLength()) in implts_specifyDefaultFilterAndExtension()
1242 xCFG->getByName(rInfo.AppModule), in implts_specifyDefaultFilterAndExtension()
1245 xModuleProps->getByName(CFG_ENTRY_REALDEFAULTFILTER) >>= rInfo.DefaultFilter; in implts_specifyDefaultFilterAndExtension()
1250 …::comphelper::SequenceAsHashMap lFilterProps (xFilterCFG->getByName(rInfo.DefaultFilt… in implts_specifyDefaultFilterAndExtension()
1256 rInfo.Extension = ::rtl::OUString::createFromAscii("."); in implts_specifyDefaultFilterAndExtension()
1257 rInfo.Extension += lExtensions[0]; in implts_specifyDefaultFilterAndExtension()
1260 rInfo.Extension = ::rtl::OUString::createFromAscii(".unknown"); in implts_specifyDefaultFilterAndExtension()
1264 rInfo.DefaultFilter = ::rtl::OUString(); in implts_specifyDefaultFilterAndExtension()
1265 rInfo.Extension = ::rtl::OUString(); in implts_specifyDefaultFilterAndExtension()
1270 void AutoRecovery::implts_specifyAppModuleAndFactory(AutoRecovery::TDocumentInfo& rInfo) in implts_specifyAppModuleAndFactory() argument
1273 rInfo.AppModule.getLength() || rInfo.Document.is(), in implts_specifyAppModuleAndFactory()
1286 if (!rInfo.AppModule.getLength()) in implts_specifyAppModuleAndFactory()
1287 rInfo.AppModule = xManager->identify(rInfo.Document); in implts_specifyAppModuleAndFactory()
1289 ::comphelper::SequenceAsHashMap lModuleDescription(xModuleConfig->getByName(rInfo.AppModule)); in implts_specifyAppModuleAndFactory()
1290 lModuleDescription[CFG_ENTRY_PROP_EMPTYDOCUMENTURL] >>= rInfo.FactoryURL; in implts_specifyAppModuleAndFactory()
1291 lModuleDescription[CFG_ENTRY_PROP_FACTORYSERVICE] >>= rInfo.FactoryService; in implts_specifyAppModuleAndFactory()
1353 void AutoRecovery::implts_flushConfigItem(const AutoRecovery::TDocumentInfo& rInfo, sal_Bool bRemov… in implts_flushConfigItem() argument
1369 sIDBuf.append((sal_Int32)rInfo.ID); in implts_flushConfigItem()
1395 … xSet->setPropertyValue(CFG_ENTRY_PROP_ORIGINALURL , css::uno::makeAny(rInfo.OrgURL )); in implts_flushConfigItem()
1396 … xSet->setPropertyValue(CFG_ENTRY_PROP_TEMPURL , css::uno::makeAny(rInfo.OldTempURL )); in implts_flushConfigItem()
1397 … xSet->setPropertyValue(CFG_ENTRY_PROP_TEMPLATEURL , css::uno::makeAny(rInfo.TemplateURL )); in implts_flushConfigItem()
1398 … xSet->setPropertyValue(CFG_ENTRY_PROP_FILTER , css::uno::makeAny(rInfo.RealFilter )); in implts_flushConfigItem()
1399 … xSet->setPropertyValue(CFG_ENTRY_PROP_DOCUMENTSTATE, css::uno::makeAny(rInfo.DocumentState)); in implts_flushConfigItem()
1400 … xSet->setPropertyValue(CFG_ENTRY_PROP_MODULE , css::uno::makeAny(rInfo.AppModule )); in implts_flushConfigItem()
1401 … xSet->setPropertyValue(CFG_ENTRY_PROP_TITLE , css::uno::makeAny(rInfo.Title )); in implts_flushConfigItem()
1402 … xSet->setPropertyValue(CFG_ENTRY_PROP_VIEWNAMES , css::uno::makeAny(rInfo.ViewNames )); in implts_flushConfigItem()
1532 void AutoRecovery::implts_startModifyListeningOnDoc(AutoRecovery::TDocumentInfo& rInfo) in implts_startModifyListeningOnDoc() argument
1534 if (rInfo.ListenForModify) in implts_startModifyListeningOnDoc()
1537 …css::uno::Reference< css::util::XModifyBroadcaster > xBroadcaster(rInfo.Document, css::uno::UNO_QU… in implts_startModifyListeningOnDoc()
1542 rInfo.ListenForModify = sal_True; in implts_startModifyListeningOnDoc()
1547 void AutoRecovery::implts_stopModifyListeningOnDoc(AutoRecovery::TDocumentInfo& rInfo) in implts_stopModifyListeningOnDoc() argument
1549 if (! rInfo.ListenForModify) in implts_stopModifyListeningOnDoc()
1552 …css::uno::Reference< css::util::XModifyBroadcaster > xBroadcaster(rInfo.Document, css::uno::UNO_QU… in implts_stopModifyListeningOnDoc()
1557 rInfo.ListenForModify = sal_False; in implts_stopModifyListeningOnDoc()
1852 AutoRecovery::TDocumentInfo& rInfo = *pIt1; in implts_registerDocument() local
1857 implts_flushConfigItem(rInfo); in implts_registerDocument()
1858 implts_startModifyListeningOnDoc(rInfo); in implts_registerDocument()
1923 AutoRecovery::TDocumentInfo& rInfo = *pIt; in implts_markDocumentModifiedAgainstLastBackup() local
1930 implts_stopModifyListeningOnDoc(rInfo); in implts_markDocumentModifiedAgainstLastBackup()
1948 AutoRecovery::TDocumentInfo& rInfo = *pIt; in implts_updateModifiedState() local
1957 rInfo.DocumentState |= AutoRecovery::E_MODIFIED; in implts_updateModifiedState()
1961 rInfo.DocumentState &= ~AutoRecovery::E_MODIFIED; in implts_updateModifiedState()
1981 AutoRecovery::TDocumentInfo& rInfo = *pIt; in implts_updateDocumentUsedForSavingState() local
1982 rInfo.UsedForSaving = bSaveInProgress; in implts_updateDocumentUsedForSavingState()
1999 AutoRecovery::TDocumentInfo& rInfo = *pIt; in implts_markDocumentAsSaved() local
2001 rInfo.DocumentState = AutoRecovery::E_UNKNOWN; in implts_markDocumentAsSaved()
2003 css::uno::Reference< css::frame::XStorable > xDoc(rInfo.Document, css::uno::UNO_QUERY); in implts_markDocumentAsSaved()
2004 rInfo.OrgURL = xDoc->getLocation(); in implts_markDocumentAsSaved()
2006 ::rtl::OUString sRemoveURL1 = rInfo.OldTempURL; in implts_markDocumentAsSaved()
2007 ::rtl::OUString sRemoveURL2 = rInfo.NewTempURL; in implts_markDocumentAsSaved()
2008 rInfo.OldTempURL = ::rtl::OUString(); in implts_markDocumentAsSaved()
2009 rInfo.NewTempURL = ::rtl::OUString(); in implts_markDocumentAsSaved()
2011 ::comphelper::MediaDescriptor lDescriptor(rInfo.Document->getArgs()); in implts_markDocumentAsSaved()
2012 …rInfo.RealFilter = lDescriptor.getUnpackedValueOrDefault(::comphelper::MediaDescriptor::PROP_FILTE… in implts_markDocumentAsSaved()
2016 rInfo.Title = xDocTitle->getTitle (); in implts_markDocumentAsSaved()
2019 …rInfo.Title = lDescriptor.getUnpackedValueOrDefault(::comphelper::MediaDescriptor::PROP_TITLE… in implts_markDocumentAsSaved()
2020 if (!rInfo.Title.getLength()) in implts_markDocumentAsSaved()
2021 …rInfo.Title = lDescriptor.getUnpackedValueOrDefault(::comphelper::MediaDescriptor::PROP_DOCUMENTT… in implts_markDocumentAsSaved()
2024 rInfo.UsedForSaving = sal_False; in implts_markDocumentAsSaved()
2029 implts_flushConfigItem(rInfo); in implts_markDocumentAsSaved()
2046 const AutoRecovery::TDocumentInfo& rInfo = *pIt; in impl_searchDocument() local
2047 if (rInfo.Document == xDocument) in impl_searchDocument()
2100 void lc_removeLockFile(AutoRecovery::TDocumentInfo& rInfo) in lc_removeLockFile() argument
2102 if ( rInfo.Document.is() ) in lc_removeLockFile()
2106 … css::uno::Reference< css::frame::XStorable > xStore(rInfo.Document, css::uno::UNO_QUERY_THROW); in lc_removeLockFile()
2136 AutoRecovery::TDocumentInfo& rInfo = *pIt; in implts_prepareSessionShutdown() local
2140 lc_removeLockFile( rInfo ); in implts_prepareSessionShutdown()
2147 rInfo.IgnoreClosing = sal_True; in implts_prepareSessionShutdown()
2151 implts_stopModifyListeningOnDoc(rInfo); in implts_prepareSessionShutdown()
2158 … css::uno::Reference< css::util::XModifiable > xModify(rInfo.Document, css::uno::UNO_QUERY); in implts_prepareSessionShutdown()
2163 … css::uno::Reference< css::util::XCloseable > xClose(rInfo.Document, css::uno::UNO_QUERY); in implts_prepareSessionShutdown()
2182 rInfo.Document.clear(); in implts_prepareSessionShutdown()
2208 sal_Bool lc_checkIfSaveForbiddenByArguments(AutoRecovery::TDocumentInfo& rInfo) in lc_checkIfSaveForbiddenByArguments() argument
2210 if (! rInfo.Document.is()) in lc_checkIfSaveForbiddenByArguments()
2213 ::comphelper::MediaDescriptor lDescriptor(rInfo.Document->getArgs()); in lc_checkIfSaveForbiddenByArguments()
2398 … AutoRecovery::TDocumentInfo& rInfo , in implts_saveOneDoc() argument
2406 if (!rInfo.Document.is()) in implts_saveOneDoc()
2409 ::comphelper::MediaDescriptor lOldArgs(rInfo.Document->getArgs()); in implts_saveOneDoc()
2410 implts_generateNewTempURL(sBackupPath, lOldArgs, rInfo); in implts_saveOneDoc()
2421 if (rInfo.DefaultFilter.getLength()) in implts_saveOneDoc()
2422 lNewArgs[::comphelper::MediaDescriptor::PROP_FILTERNAME()] <<= rInfo.DefaultFilter; in implts_saveOneDoc()
2427 impl_establishProgress(rInfo, lNewArgs, css::uno::Reference< css::frame::XFrame >()); in implts_saveOneDoc()
2436 Reference< XDocumentRecovery > xDocRecover(rInfo.Document, css::uno::UNO_QUERY_THROW); in implts_saveOneDoc()
2440 rInfo.DocumentState |= AutoRecovery::E_TRY_SAVE; in implts_saveOneDoc()
2441 implts_flushConfigItem(rInfo); in implts_saveOneDoc()
2449 … xDocRecover->storeToRecoveryFile( rInfo.NewTempURL, lNewArgs.getAsConstPropertyValueList() ); in implts_saveOneDoc()
2490 rInfo.DocumentState &= ~AutoRecovery::E_TRY_SAVE; in implts_saveOneDoc()
2491 rInfo.DocumentState |= AutoRecovery::E_HANDLED; in implts_saveOneDoc()
2492 rInfo.DocumentState |= AutoRecovery::E_SUCCEDED; in implts_saveOneDoc()
2497 rInfo.NewTempURL = ::rtl::OUString(); in implts_saveOneDoc()
2498 rInfo.DocumentState &= ~AutoRecovery::E_TRY_SAVE; in implts_saveOneDoc()
2499 rInfo.DocumentState |= AutoRecovery::E_HANDLED; in implts_saveOneDoc()
2500 rInfo.DocumentState |= AutoRecovery::E_INCOMPLETE; in implts_saveOneDoc()
2504 impl_forgetProgress(rInfo, lNewArgs, css::uno::Reference< css::frame::XFrame >()); in implts_saveOneDoc()
2509 ::rtl::OUString sRemoveFile = rInfo.OldTempURL; in implts_saveOneDoc()
2510 rInfo.OldTempURL = rInfo.NewTempURL; in implts_saveOneDoc()
2511 rInfo.NewTempURL = ::rtl::OUString(); in implts_saveOneDoc()
2513 implts_flushConfigItem(rInfo); in implts_saveOneDoc()
2516 implts_startModifyListeningOnDoc(rInfo); in implts_saveOneDoc()
2537 AutoRecovery::TDocumentInfo& rInfo = *pIt; in implts_openDocs() local
2542 if ((rInfo.DocumentState & AutoRecovery::E_HANDLED) == AutoRecovery::E_HANDLED) in implts_openDocs()
2546 if ((rInfo.DocumentState & AutoRecovery::E_DAMAGED) == AutoRecovery::E_DAMAGED) in implts_openDocs()
2556 AutoRecovery::implst_createFeatureStateEvent(eJob, OPERATION_UPDATE, &rInfo)); in implts_openDocs()
2575 …((rInfo.DocumentState & AutoRecovery::E_TRY_LOAD_BACKUP ) == AutoRecovery::E_TRY_LOAD_BACKUP) || … in implts_openDocs()
2576 …((rInfo.DocumentState & AutoRecovery::E_INCOMPLETE ) == AutoRecovery::E_INCOMPLETE ) … in implts_openDocs()
2578 …sal_Bool bOriginalWasTried = ((rInfo.DocumentState & AutoRecovery::E_TRY_LOAD_ORIGINAL) == AutoRec… in implts_openDocs()
2584 rInfo.DocumentState |= AutoRecovery::E_INCOMPLETE; in implts_openDocs()
2589 rInfo.DocumentState |= AutoRecovery::E_DAMAGED; in implts_openDocs()
2598 sLoadBackupURL = rInfo.OldTempURL; in implts_openDocs()
2600 if (rInfo.OrgURL.getLength()) in implts_openDocs()
2602 sLoadOriginalURL = rInfo.OrgURL; in implts_openDocs()
2605 if (rInfo.TemplateURL.getLength()) in implts_openDocs()
2607 sLoadOriginalURL = rInfo.TemplateURL; in implts_openDocs()
2609 lDescriptor[::comphelper::MediaDescriptor::PROP_TEMPLATENAME()] <<= rInfo.TemplateURL; in implts_openDocs()
2612 if (rInfo.FactoryURL.getLength()) in implts_openDocs()
2614 sLoadOriginalURL = rInfo.FactoryURL; in implts_openDocs()
2624 rInfo.DocumentState |= AutoRecovery::E_TRY_LOAD_BACKUP; in implts_openDocs()
2631 rInfo.DocumentState |= AutoRecovery::E_TRY_LOAD_ORIGINAL; in implts_openDocs()
2641 implts_flushConfigItem(rInfo); in implts_openDocs()
2643 AutoRecovery::implst_createFeatureStateEvent(eJob, OPERATION_UPDATE, &rInfo)); in implts_openDocs()
2647 implts_openOneDoc(sURL, lDescriptor, rInfo); in implts_openDocs()
2651 rInfo.DocumentState &= ~AutoRecovery::E_TRY_LOAD_BACKUP; in implts_openDocs()
2652 rInfo.DocumentState &= ~AutoRecovery::E_TRY_LOAD_ORIGINAL; in implts_openDocs()
2655 rInfo.DocumentState |= AutoRecovery::E_INCOMPLETE; in implts_openDocs()
2660 rInfo.DocumentState |= AutoRecovery::E_HANDLED; in implts_openDocs()
2661 rInfo.DocumentState |= AutoRecovery::E_DAMAGED; in implts_openDocs()
2664 implts_flushConfigItem(rInfo, sal_True); in implts_openDocs()
2666 AutoRecovery::implst_createFeatureStateEvent(eJob, OPERATION_UPDATE, &rInfo)); in implts_openDocs()
2674 if (rInfo.RealFilter.getLength()) in implts_openDocs()
2676 ::comphelper::MediaDescriptor lPatchDescriptor(rInfo.Document->getArgs()); in implts_openDocs()
2677 lPatchDescriptor[::comphelper::MediaDescriptor::PROP_FILTERNAME()] <<= rInfo.RealFilter; in implts_openDocs()
2678 …rInfo.Document->attachResource(rInfo.Document->getURL(), lPatchDescriptor.getAsConstPropertyValueL… in implts_openDocs()
2684 css::uno::Reference< css::util::XModifiable > xModify(rInfo.Document, css::uno::UNO_QUERY); in implts_openDocs()
2687 …sal_Bool bModified = ((rInfo.DocumentState & AutoRecovery::E_MODIFIED) == AutoRecovery::E_MODIFIED… in implts_openDocs()
2691 rInfo.DocumentState &= ~AutoRecovery::E_TRY_LOAD_BACKUP; in implts_openDocs()
2692 rInfo.DocumentState &= ~AutoRecovery::E_TRY_LOAD_ORIGINAL; in implts_openDocs()
2693 rInfo.DocumentState |= AutoRecovery::E_HANDLED; in implts_openDocs()
2694 rInfo.DocumentState |= AutoRecovery::E_SUCCEDED; in implts_openDocs()
2696 implts_flushConfigItem(rInfo); in implts_openDocs()
2698 AutoRecovery::implst_createFeatureStateEvent(eJob, OPERATION_UPDATE, &rInfo)); in implts_openDocs()
2707 implts_startModifyListeningOnDoc(rInfo); in implts_openDocs()
2723 AutoRecovery::TDocumentInfo& rInfo ) in implts_openOneDoc() argument
2737 … Reference< XModel2 > xModel( xSMGR->createInstance( rInfo.FactoryService ), UNO_QUERY_THROW ); in implts_openOneDoc()
2742 lDescriptor[ ::comphelper::MediaDescriptor::PROP_FILTERNAME() ] <<= rInfo.RealFilter; in implts_openOneDoc()
2744 if ( sURL == rInfo.FactoryURL ) in implts_openOneDoc()
2747 ENSURE_OR_THROW( ( rInfo.DocumentState & AutoRecovery::E_MODIFIED ) == 0, in implts_openOneDoc()
2770 ::std::vector< ::rtl::OUString > aViewsToRestore( rInfo.ViewNames.getLength() ); in implts_openOneDoc()
2771 if ( rInfo.ViewNames.getLength() ) in implts_openOneDoc()
2772 …::std::copy( rInfo.ViewNames.getConstArray(), rInfo.ViewNames.getConstArray() + rInfo.ViewNames.ge… in implts_openOneDoc()
2805 rInfo.Document = xModel.get(); in implts_openOneDoc()
2843 AutoRecovery::TDocumentInfo& rInfo ) in implts_generateNewTempURL() argument
2860 if (rInfo.OrgURL.getLength()) in implts_generateNewTempURL()
2864 aURL.Complete = rInfo.OrgURL; in implts_generateNewTempURL()
2869 if (rInfo.FactoryURL.getLength()) in implts_generateNewTempURL()
2876 String sExtension(rInfo.Extension ); in implts_generateNewTempURL()
2880 rInfo.NewTempURL = aTempFile.GetURL(); in implts_generateNewTempURL()
3038 AutoRecovery::TDocumentInfo& rInfo = *pIt; in implts_resetHandleStates() local
3039 rInfo.DocumentState &= ~AutoRecovery::E_HANDLED ; in implts_resetHandleStates()
3040 rInfo.DocumentState &= ~AutoRecovery::E_POSTPONED; in implts_resetHandleStates()
3044 implts_flushConfigItem(rInfo); in implts_resetHandleStates()
3255 const AutoRecovery::TDocumentInfo& rInfo = *pIt; in implts_backupWorkingEntry() local
3256 if (rInfo.ID != aParams.m_nWorkingEntryID) in implts_backupWorkingEntry()
3261 if (rInfo.OldTempURL.getLength()) in implts_backupWorkingEntry()
3262 sSourceURL = rInfo.OldTempURL; in implts_backupWorkingEntry()
3264 if (rInfo.NewTempURL.getLength()) in implts_backupWorkingEntry()
3265 sSourceURL = rInfo.NewTempURL; in implts_backupWorkingEntry()
3267 if (rInfo.OrgURL.getLength()) in implts_backupWorkingEntry()
3268 sSourceURL = rInfo.OrgURL; in implts_backupWorkingEntry()
3294 AutoRecovery::TDocumentInfo& rInfo = *pIt; in implts_cleanUpWorkingEntry() local
3295 if (rInfo.ID != aParams.m_nWorkingEntryID) in implts_cleanUpWorkingEntry()
3298 AutoRecovery::st_impl_removeFile(rInfo.OldTempURL); in implts_cleanUpWorkingEntry()
3299 AutoRecovery::st_impl_removeFile(rInfo.NewTempURL); in implts_cleanUpWorkingEntry()
3300 implts_flushConfigItem(rInfo, sal_True); // sal_True => remove it from xml config! in implts_cleanUpWorkingEntry()
3585 void AutoRecovery::impl_establishProgress(const AutoRecovery::TDocumentInfo& rInfo … in impl_establishProgress() argument
3597 (rInfo.Document.is()) in impl_establishProgress()
3600 …css::uno::Reference< css::frame::XController > xController = rInfo.Document->getCurrentController(… in impl_establishProgress()
3651 void AutoRecovery::impl_forgetProgress(const AutoRecovery::TDocumentInfo& rInfo , in impl_forgetProgress() argument
3663 (rInfo.Document.is()) in impl_forgetProgress()
3666 …css::uno::Reference< css::frame::XController > xController = rInfo.Document->getCurrentController(… in impl_forgetProgress()