Files
libreoffice/svx/source/dialog/docrecovery.cxx

1486 lines
47 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patch contributed by Christian Lippka impress212: #i113063# patch: dubios self assign in svx/source/dialog/framelink.cxx http://svn.apache.org/viewvc?view=revision&revision=1167619 Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 cws mba34issues01: #i117712#: fix several resource errors introduced by IAccessible2 implementation http://svn.apache.org/viewvc?view=revision&revision=1172343 cws mba34issues01: #i117719#: use correct resource ID http://svn.apache.org/viewvc?view=revision&revision=1172351 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 Patches contributed by Armin Le-Grand #118804# corrected GraphicExporter behaviour on shortcut when pixel graphic is requested http://svn.apache.org/viewvc?view=revision&revision=1240195 fix for #118525#: Using primitives for chart sub-geometry visualisation http://svn.apache.org/viewvc?view=revision&revision=1226879 #118485# - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 #118524: apply patch, followup fixes to 118485 http://svn.apache.org/viewvc?view=revision&revision=1186077 13f79535-47bb-0310-9956-ffa450edef68 Patch contributed by Regina Henschel linecap: Reintegrating finished LineCap feature http://svn.apache.org/viewvc?view=revision&revision=1232507 Patch contributed by Wang Lei (leiw) #i118760# split the first table cell vertically, then undo&redo, the Presentation app will crash http://svn.apache.org/viewvc?view=revision&revision=1301361 cleanup globlmn hacks, undo dependent fixmes.
2012-11-21 22:06:52 +00:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
#include <config_folders.h>
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
#include <sal/macros.h>
#include <svx/dialmgr.hxx>
#include <svx/dialogs.hrc>
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
#include "docrecovery.hxx"
#include "docrecovery.hrc"
#include <comphelper/processfactory.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/string.hxx>
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
#include <svtools/imagemgr.hxx>
#include <vcl/xtextedt.hxx>
#include <vcl/settings.hxx>
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
#include <tools/urlobj.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/svapp.hxx>
#include <rtl/ustrbuf.hxx>
#include <vcl/scrbar.hxx>
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
#include <toolkit/helper/vclunohelper.hxx>
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
#include <com/sun/star/task/XStatusIndicatorFactory.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/util/URL.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/frame/theAutoRecovery.hpp>
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/awt/XWindow.hpp>
#include <com/sun/star/ui/dialogs/FolderPicker.hpp>
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
#include <osl/file.hxx>
#include <osl/security.hxx>
#include <rtl/bootstrap.hxx>
#include <unotools/pathoptions.hxx>
#include <unotools/localfilehelper.hxx>
#include "svtools/treelistentry.hxx"
#include <officecfg/Office/Recovery.hxx>
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
namespace svx{
namespace DocRecovery{
using namespace ::rtl;
using namespace ::osl;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
TabDialog4Recovery::TabDialog4Recovery(Window* pParent)
: TabDialog (pParent, SVX_RES( RID_SVX_TABDLG_DOCRECOVERY ))
, m_pActualPage(m_lTabPages.begin() )
{
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
TabDialog4Recovery::~TabDialog4Recovery()
{
m_lTabPages.clear();
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void TabDialog4Recovery::addTabPage(IExtendedTabPage* pPage)
{
if (pPage)
m_lTabPages.push_back(pPage);
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
short TabDialog4Recovery::Execute()
{
::SolarMutexGuard aLock;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
Show();
m_pActualPage = m_lTabPages.begin();
while(true)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
IExtendedTabPage* pPage = *m_pActualPage;
SetViewWindow(pPage);
pPage->Show();
pPage->setDefButton();
short nRet = pPage->execute();
pPage->Hide();
switch(nRet)
{
case DLG_RET_OK :
{
++m_pActualPage;
if (m_pActualPage == m_lTabPages.end())
return nRet;
}
break;
case DLG_RET_BACK :
{
if (m_pActualPage != m_lTabPages.begin())
--m_pActualPage;
}
break;
case DLG_RET_UNKNOWN :
case DLG_RET_CANCEL :
case DLG_RET_OK_AUTOLUNCH :
return nRet;
}
}
}
RecoveryCore::RecoveryCore(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
bool bUsedForSaving)
: m_xContext ( rxContext )
, m_pListener ( 0 )
, m_bListenForSaving(bUsedForSaving)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
impl_startListening();
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
RecoveryCore::~RecoveryCore()
{
impl_stopListening();
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
css::uno::Reference< css::uno::XComponentContext > RecoveryCore::getComponentContext()
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
return m_xContext;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
TURLList* RecoveryCore::getURLListAccess()
{
return &m_lURLs;
}
bool RecoveryCore::isBrokenTempEntry(const TURLInfo& rInfo)
{
if (rInfo.TempURL.isEmpty())
return false;
// Note: If the original files was recovery ... but a temp file
// exists ... an error inside the temp file exists!
if (
!(rInfo.RecoveryState == E_RECOVERY_FAILED ) &&
!(rInfo.RecoveryState == E_ORIGINAL_DOCUMENT_RECOVERED)
)
return false;
return true;
}
void RecoveryCore::saveBrokenTempEntries(const OUString& rPath)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
if (rPath.isEmpty())
return;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
if (!m_xRealCore.is())
return;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
// prepare all needed parameters for the following dispatch() request.
css::util::URL aCopyURL = impl_getParsedURL(RECOVERY_CMD_DO_ENTRY_BACKUP);
css::uno::Sequence< css::beans::PropertyValue > lCopyArgs(3);
lCopyArgs[0].Name = PROP_DISPATCHASYNCHRON;
lCopyArgs[0].Value <<= sal_False;
lCopyArgs[1].Name = PROP_SAVEPATH;
lCopyArgs[1].Value <<= rPath;
lCopyArgs[2].Name = PROP_ENTRYID;
// lCopyArgs[2].Value will be changed during next loop ...
// work on a copied list only ...
// Reason: We will get notifications from the core for every
// changed or removed element. And that will change our m_lURLs list.
// That's not a good idea, if we use a stl iterator inbetween .-)
TURLList lURLs = m_lURLs;
TURLList::const_iterator pIt;
for ( pIt = lURLs.begin();
pIt != lURLs.end() ;
++pIt )
{
const TURLInfo& rInfo = *pIt;
if (!RecoveryCore::isBrokenTempEntry(rInfo))
continue;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
lCopyArgs[2].Value <<= rInfo.ID;
m_xRealCore->dispatch(aCopyURL, lCopyArgs);
}
}
void RecoveryCore::saveAllTempEntries(const OUString& rPath)
{
if (rPath.isEmpty())
return;
if (!m_xRealCore.is())
return;
// prepare all needed parameters for the following dispatch() request.
css::util::URL aCopyURL = impl_getParsedURL(RECOVERY_CMD_DO_ENTRY_BACKUP);
css::uno::Sequence< css::beans::PropertyValue > lCopyArgs(3);
lCopyArgs[0].Name = PROP_DISPATCHASYNCHRON;
lCopyArgs[0].Value <<= sal_False;
lCopyArgs[1].Name = PROP_SAVEPATH;
lCopyArgs[1].Value <<= rPath;
lCopyArgs[2].Name = PROP_ENTRYID;
// lCopyArgs[2].Value will be changed during next loop ...
// work on a copied list only ...
// Reason: We will get notifications from the core for every
// changed or removed element. And that will change our m_lURLs list.
// That's not a good idea, if we use a stl iterator inbetween .-)
TURLList lURLs = m_lURLs;
TURLList::const_iterator pIt;
for ( pIt = lURLs.begin();
pIt != lURLs.end() ;
++pIt )
{
const TURLInfo& rInfo = *pIt;
if (rInfo.TempURL.isEmpty())
continue;
lCopyArgs[2].Value <<= rInfo.ID;
m_xRealCore->dispatch(aCopyURL, lCopyArgs);
}
}
void RecoveryCore::forgetBrokenTempEntries()
{
if (!m_xRealCore.is())
return;
css::util::URL aRemoveURL = impl_getParsedURL(RECOVERY_CMD_DO_ENTRY_CLEANUP);
css::uno::Sequence< css::beans::PropertyValue > lRemoveArgs(2);
lRemoveArgs[0].Name = PROP_DISPATCHASYNCHRON;
lRemoveArgs[0].Value <<= sal_False;
lRemoveArgs[1].Name = PROP_ENTRYID;
// lRemoveArgs[1].Value will be changed during next loop ...
// work on a copied list only ...
// Reason: We will get notifications from the core for every
// changed or removed element. And that will change our m_lURLs list.
// That's not a good idea, if we use a stl iterator inbetween .-)
TURLList lURLs = m_lURLs;
TURLList::const_iterator pIt;
for ( pIt = lURLs.begin();
pIt != lURLs.end() ;
++pIt )
{
const TURLInfo& rInfo = *pIt;
if (!RecoveryCore::isBrokenTempEntry(rInfo))
continue;
lRemoveArgs[1].Value <<= rInfo.ID;
m_xRealCore->dispatch(aRemoveURL, lRemoveArgs);
}
}
void RecoveryCore::forgetAllRecoveryEntries()
{
if (!m_xRealCore.is())
return;
css::util::URL aRemoveURL = impl_getParsedURL(RECOVERY_CMD_DO_ENTRY_CLEANUP);
css::uno::Sequence< css::beans::PropertyValue > lRemoveArgs(2);
lRemoveArgs[0].Name = PROP_DISPATCHASYNCHRON;
lRemoveArgs[0].Value <<= sal_False;
lRemoveArgs[1].Name = PROP_ENTRYID;
// lRemoveArgs[1].Value will be changed during next loop ...
// work on a copied list only ...
// Reason: We will get notifications from the core for every
// changed or removed element. And that will change our m_lURLs list.
// That's not a good idea, if we use a stl iterator inbetween .-)
TURLList lURLs = m_lURLs;
TURLList::const_iterator pIt;
for ( pIt = lURLs.begin();
pIt != lURLs.end() ;
++pIt )
{
const TURLInfo& rInfo = *pIt;
lRemoveArgs[1].Value <<= rInfo.ID;
m_xRealCore->dispatch(aRemoveURL, lRemoveArgs);
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
void RecoveryCore::forgetBrokenRecoveryEntries()
{
if (!m_xRealCore.is())
return;
css::util::URL aRemoveURL = impl_getParsedURL(RECOVERY_CMD_DO_ENTRY_CLEANUP);
css::uno::Sequence< css::beans::PropertyValue > lRemoveArgs(2);
lRemoveArgs[0].Name = PROP_DISPATCHASYNCHRON;
lRemoveArgs[0].Value <<= sal_False;
lRemoveArgs[1].Name = PROP_ENTRYID;
// lRemoveArgs[1].Value will be changed during next loop ...
// work on a copied list only ...
// Reason: We will get notifications from the core for every
// changed or removed element. And that will change our m_lURLs list.
// That's not a good idea, if we use a stl iterator inbetween .-)
TURLList lURLs = m_lURLs;
TURLList::const_iterator pIt;
for ( pIt = lURLs.begin();
pIt != lURLs.end() ;
++pIt )
{
const TURLInfo& rInfo = *pIt;
if (!RecoveryCore::isBrokenTempEntry(rInfo))
continue;
lRemoveArgs[1].Value <<= rInfo.ID;
m_xRealCore->dispatch(aRemoveURL, lRemoveArgs);
}
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void RecoveryCore::setProgressHandler(const css::uno::Reference< css::task::XStatusIndicator >& xProgress)
{
m_xProgress = xProgress;
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void RecoveryCore::setUpdateListener(IRecoveryUpdateListener* pListener)
{
m_pListener = pListener;
}
void RecoveryCore::doEmergencySavePrepare()
{
if (!m_xRealCore.is())
return;
css::util::URL aURL = impl_getParsedURL(RECOVERY_CMD_DO_PREPARE_EMERGENCY_SAVE);
css::uno::Sequence< css::beans::PropertyValue > lArgs(1);
lArgs[0].Name = PROP_DISPATCHASYNCHRON;
lArgs[0].Value <<= sal_False;
m_xRealCore->dispatch(aURL, lArgs);
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void RecoveryCore::doEmergencySave()
{
if (!m_xRealCore.is())
return;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
css::util::URL aURL = impl_getParsedURL(RECOVERY_CMD_DO_EMERGENCY_SAVE);
css::uno::Sequence< css::beans::PropertyValue > lArgs(2);
lArgs[0].Name = PROP_STATUSINDICATOR;
lArgs[0].Value <<= m_xProgress;
lArgs[1].Name = PROP_DISPATCHASYNCHRON;
lArgs[1].Value <<= sal_True;
m_xRealCore->dispatch(aURL, lArgs);
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void RecoveryCore::doRecovery()
{
if (!m_xRealCore.is())
return;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
css::util::URL aURL = impl_getParsedURL(RECOVERY_CMD_DO_RECOVERY);
css::uno::Sequence< css::beans::PropertyValue > lArgs(2);
lArgs[0].Name = PROP_STATUSINDICATOR;
lArgs[0].Value <<= m_xProgress;
lArgs[1].Name = PROP_DISPATCHASYNCHRON;
lArgs[1].Value <<= sal_True;
m_xRealCore->dispatch(aURL, lArgs);
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
ERecoveryState RecoveryCore::mapDocState2RecoverState(sal_Int32 eDocState)
{
// ???
ERecoveryState eRecState = E_NOT_RECOVERED_YET;
/* Attention:
Some of the following states can occur at the
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
same time. So we have to check for the "worst case" first!
DAMAGED -> INCOMPLETE -> HANDLED
*/
// running ...
if (
((eDocState & E_TRY_LOAD_BACKUP ) == E_TRY_LOAD_BACKUP ) ||
((eDocState & E_TRY_LOAD_ORIGINAL) == E_TRY_LOAD_ORIGINAL)
)
eRecState = E_RECOVERY_IS_IN_PROGRESS;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
// red
else if ((eDocState & E_DAMAGED) == E_DAMAGED)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
eRecState = E_RECOVERY_FAILED;
// yellow
else if ((eDocState & E_INCOMPLETE) == E_INCOMPLETE)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
eRecState = E_ORIGINAL_DOCUMENT_RECOVERED;
// green
else if ((eDocState & E_SUCCEDED) == E_SUCCEDED)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
eRecState = E_SUCCESSFULLY_RECOVERED;
return eRecState;
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void SAL_CALL RecoveryCore::statusChanged(const css::frame::FeatureStateEvent& aEvent)
throw(css::uno::RuntimeException, std::exception)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
// a) special notification about start/stop async dispatch!
// FeatureDescriptor = "start" || "stop"
if (aEvent.FeatureDescriptor.equals(RECOVERY_OPERATIONSTATE_START))
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
if (m_pListener)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_pListener->start();
return;
}
if (aEvent.FeatureDescriptor.equals(RECOVERY_OPERATIONSTATE_STOP))
{
if (m_pListener)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_pListener->end();
return;
}
// b) normal notification about changed items
// FeatureDescriptor = "Update"
// State = Lits of information [seq< NamedValue >]
if (! aEvent.FeatureDescriptor.equals(RECOVERY_OPERATIONSTATE_UPDATE))
return;
::comphelper::SequenceAsHashMap lInfo(aEvent.State);
TURLInfo aNew;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
aNew.ID = lInfo.getUnpackedValueOrDefault(STATEPROP_ID , (sal_Int32)0 );
aNew.DocState = lInfo.getUnpackedValueOrDefault(STATEPROP_STATE , (sal_Int32)0 );
aNew.OrgURL = lInfo.getUnpackedValueOrDefault(STATEPROP_ORGURL , OUString());
aNew.TempURL = lInfo.getUnpackedValueOrDefault(STATEPROP_TEMPURL , OUString());
aNew.FactoryURL = lInfo.getUnpackedValueOrDefault(STATEPROP_FACTORYURL , OUString());
aNew.TemplateURL = lInfo.getUnpackedValueOrDefault(STATEPROP_TEMPLATEURL, OUString());
aNew.DisplayName = lInfo.getUnpackedValueOrDefault(STATEPROP_TITLE , OUString());
aNew.Module = lInfo.getUnpackedValueOrDefault(STATEPROP_MODULE , OUString());
// search for already existing items and update her nState value ...
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
TURLList::iterator pIt;
for ( pIt = m_lURLs.begin();
pIt != m_lURLs.end() ;
++pIt )
{
TURLInfo& aOld = *pIt;
if (aOld.ID == aNew.ID)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
// change existing
aOld.DocState = aNew.DocState;
aOld.RecoveryState = RecoveryCore::mapDocState2RecoverState(aOld.DocState);
if (m_pListener)
{
m_pListener->updateItems();
m_pListener->stepNext(&aOld);
}
return;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
}
// append as new one
// TODO think about mmatching Module name to a corresponding icon
OUString sURL = aNew.OrgURL;
if (sURL.isEmpty())
sURL = aNew.FactoryURL;
if (sURL.isEmpty())
sURL = aNew.TempURL;
if (sURL.isEmpty())
sURL = aNew.TemplateURL;
INetURLObject aURL(sURL);
2010-11-16 14:33:19 +00:00
aNew.StandardImage = SvFileInformationManager::GetFileImage(aURL, false);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
/* set the right UI state for this item to NOT_RECOVERED_YET ... because nDocState shows the state of
the last emergency save operation before and is interessting for the used recovery core service only ...
for now! But if there is a further notification for this item (see lines above!) we must
map the doc state to an UI state. */
aNew.RecoveryState = E_NOT_RECOVERED_YET;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
// patch DisplayName! Because the document title contain more then the file name ...
sal_Int32 i = aNew.DisplayName.indexOf(" - ");
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
if (i > 0)
aNew.DisplayName = aNew.DisplayName.copy(0, i);
m_lURLs.push_back(aNew);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
if (m_pListener)
m_pListener->updateItems();
}
void SAL_CALL RecoveryCore::disposing(const css::lang::EventObject& /*aEvent*/)
throw(css::uno::RuntimeException, std::exception)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
m_xRealCore.clear();
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void RecoveryCore::impl_startListening()
{
// listening already initialized ?
if (m_xRealCore.is())
return;
m_xRealCore = css::frame::theAutoRecovery::get(m_xContext);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
css::util::URL aURL;
if (m_bListenForSaving)
aURL.Complete = RECOVERY_CMD_DO_EMERGENCY_SAVE;
else
aURL.Complete = RECOVERY_CMD_DO_RECOVERY;
css::uno::Reference< css::util::XURLTransformer > xParser(css::util::URLTransformer::create(m_xContext));
xParser->parseStrict(aURL);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
/* Note: addStatusListener() call us synchronous back ... so we
will get the complete list of currently open documents! */
m_xRealCore->addStatusListener(static_cast< css::frame::XStatusListener* >(this), aURL);
}
void RecoveryCore::impl_stopListening()
{
// Ignore it, if this instance doesn't listen currently
if (!m_xRealCore.is())
return;
css::util::URL aURL;
if (m_bListenForSaving)
aURL.Complete = RECOVERY_CMD_DO_EMERGENCY_SAVE;
else
aURL.Complete = RECOVERY_CMD_DO_RECOVERY;
css::uno::Reference< css::util::XURLTransformer > xParser(css::util::URLTransformer::create(m_xContext));
xParser->parseStrict(aURL);
m_xRealCore->removeStatusListener(static_cast< css::frame::XStatusListener* >(this), aURL);
m_xRealCore.clear();
}
css::util::URL RecoveryCore::impl_getParsedURL(const OUString& sURL)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
css::util::URL aURL;
aURL.Complete = sURL;
css::uno::Reference< css::util::XURLTransformer > xParser(css::util::URLTransformer::create(m_xContext));
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
xParser->parseStrict(aURL);
return aURL;
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
PluginProgressWindow::PluginProgressWindow( Window* pParent ,
const css::uno::Reference< css::lang::XComponent >& xProgress)
: Window (pParent )
, m_xProgress(xProgress)
{
Show();
Size aParentSize = pParent->GetSizePixel();
// align the progressbar to its parent
setPosSizePixel( -9, 0, aParentSize.Width() + 15, aParentSize.Height() - 4 );
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
PluginProgressWindow::~PluginProgressWindow()
{
if (m_xProgress.is())
m_xProgress->dispose();
}
PluginProgress::PluginProgress( Window* pParent,
const css::uno::Reference< css::uno::XComponentContext >& xContext )
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
m_pPlugProgressWindow = new PluginProgressWindow(pParent, static_cast< css::lang::XComponent* >(this));
css::uno::Reference< css::awt::XWindow > xProgressWindow = VCLUnoHelper::GetInterface(m_pPlugProgressWindow);
m_xProgressFactory = css::task::StatusIndicatorFactory::createWithWindow(xContext, xProgressWindow, sal_False/*DisableReschedule*/, sal_True/*AllowParentShow*/);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_xProgress = m_xProgressFactory->createStatusIndicator();
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
PluginProgress::~PluginProgress()
{
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void SAL_CALL PluginProgress::dispose()
throw(css::uno::RuntimeException, std::exception)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
// m_pPluginProgressWindow was deleted ...
// So the internal pointer of this progress
// weill be dead!
m_xProgress.clear();
}
void SAL_CALL PluginProgress::addEventListener(const css::uno::Reference< css::lang::XEventListener >& )
throw(css::uno::RuntimeException, std::exception)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
}
void SAL_CALL PluginProgress::removeEventListener( const css::uno::Reference< css::lang::XEventListener >& )
throw(css::uno::RuntimeException, std::exception)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
}
void SAL_CALL PluginProgress::start(const OUString&,
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
sal_Int32 nRange)
throw(css::uno::RuntimeException, std::exception)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
if (m_xProgress.is())
m_xProgress->start(OUString(), nRange);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void SAL_CALL PluginProgress::end()
throw(css::uno::RuntimeException, std::exception)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
if (m_xProgress.is())
m_xProgress->end();
}
void SAL_CALL PluginProgress::setText(const OUString& sText)
throw(css::uno::RuntimeException, std::exception)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
if (m_xProgress.is())
m_xProgress->setText(sText);
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void SAL_CALL PluginProgress::setValue(sal_Int32 nValue)
throw(css::uno::RuntimeException, std::exception)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
if (m_xProgress.is())
m_xProgress->setValue(nValue);
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void SAL_CALL PluginProgress::reset()
throw(css::uno::RuntimeException, std::exception)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
if (m_xProgress.is())
m_xProgress->reset();
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
SaveDialog::SaveDialog(Window* pParent,
RecoveryCore* pCore )
: IExtendedTabPage( pParent, SVX_RES( RID_SVXPAGE_DOCRECOVERY_SAVE ) )
, m_aTitleFT ( this , SVX_RES ( FT_SAVE_TITLE ) )
, m_aTitleWin ( this , SVX_RES ( WIN_SAVE_TITLE ) )
, m_aTitleFL ( this , SVX_RES ( FL_SAVE_TITLE ) )
, m_aDescrFT ( this , SVX_RES ( FT_SAVE_DESCR ) )
, m_aFileListFT ( this , SVX_RES ( FT_SAVE_FILELIST ) )
, m_aFileListLB ( this , SVX_RES ( LB_SAVE_FILELIST ) )
, m_aBottomFL ( this , SVX_RES ( FL_SAVE_BOTTOM ) )
, m_aOkBtn ( this , SVX_RES ( BT_SAVE_OK ) )
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
, m_pCore ( pCore )
{
FreeResource();
// Prepare the office for the following crash save step.
// E.g. hide all open widows so the user can't influence our
// operation .-)
m_pCore->doEmergencySavePrepare();
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
Wallpaper aBackground(rStyleSettings.GetWindowColor());
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_aTitleWin.SetBackground(aBackground);
m_aTitleFT.SetBackground (aBackground);
Font aFont(m_aTitleFT.GetFont());
aFont.SetWeight(WEIGHT_BOLD);
m_aTitleFT.SetFont(aFont);
m_aOkBtn.SetClickHdl( LINK( this, SaveDialog, OKButtonHdl ) );
m_aFileListLB.SetControlBackground( rStyleSettings.GetDialogColor() );
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
// fill listbox with current open documents
m_aFileListLB.Clear();
TURLList* pURLs = m_pCore->getURLListAccess();
TURLList::const_iterator pIt;
for ( pIt = pURLs->begin();
pIt != pURLs->end() ;
++pIt )
{
const TURLInfo& rInfo = *pIt;
m_aFileListLB.InsertEntry( rInfo.DisplayName, rInfo.StandardImage );
}
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
SaveDialog::~SaveDialog()
{
}
IMPL_LINK_NOARG(SaveDialog, OKButtonHdl)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
m_nResult = DLG_RET_OK;
return 0;
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
short SaveDialog::execute()
{
::SolarMutexGuard aLock;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
// wait for user input "OK"
m_nResult = DLG_RET_UNKNOWN;
while(m_nResult == DLG_RET_UNKNOWN)
Application::Yield();
// start crash-save with progress
if (m_nResult == DLG_RET_OK)
{
SaveProgressDialog* pProgress = new SaveProgressDialog(this, m_pCore);
m_nResult = pProgress->Execute();
delete pProgress;
}
// if "CANCEL" => return "CANCEL"
// if "OK" => "AUTOLUNCH" always !
if (m_nResult == DLG_RET_OK)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_nResult = DLG_RET_OK_AUTOLUNCH;
return m_nResult;
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void SaveDialog::setDefButton()
{
m_aOkBtn.GrabFocus();
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
SaveProgressDialog::SaveProgressDialog(Window* pParent,
RecoveryCore* pCore )
: ModalDialog ( pParent , SVX_RES( RID_SVX_MDLG_DOCRECOVERY_PROGR ) )
, m_aHintFT ( this , SVX_RES ( FT_SAVEPROGR_HINT ) )
, m_aProgrFT ( this , SVX_RES ( FT_SAVEPROGR_PROGR ) )
, m_aProgrParent( this , SVX_RES ( WIN_SAVEPROGR_PROGR ) )
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
, m_pCore ( pCore )
{
FreeResource();
PluginProgress* pProgress = new PluginProgress( &m_aProgrParent, pCore->getComponentContext() );
m_xProgress = css::uno::Reference< css::task::XStatusIndicator >(static_cast< css::task::XStatusIndicator* >(pProgress), css::uno::UNO_QUERY_THROW);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
SaveProgressDialog::~SaveProgressDialog()
{
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
short SaveProgressDialog::Execute()
{
::SolarMutexGuard aLock;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_pCore->setProgressHandler(m_xProgress);
m_pCore->setUpdateListener(this);
m_pCore->doEmergencySave();
short nRet = ModalDialog::Execute();
m_pCore->setUpdateListener(0);
return nRet;
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void SaveProgressDialog::updateItems()
{
}
void SaveProgressDialog::stepNext(TURLInfo* )
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
/* TODO
wenn die m_pCore noch ein Member m_nCurrentItem haette
koennte man dort erkennen, wer gerade drann war, wer demnaechst
dran ist ... Diese Info kann man dann in unserem Progress FixText anzeigen ...
*/
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void SaveProgressDialog::start()
{
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void SaveProgressDialog::end()
{
EndDialog(DLG_RET_OK);
}
RecovDocListEntry::RecovDocListEntry( SvTreeListEntry* pEntry,
sal_uInt16 nFlags,
const OUString& sText )
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
: SvLBoxString( pEntry, nFlags, sText )
{
}
void RecovDocListEntry::Paint(
const Point& aPos, SvTreeListBox& aDevice, const SvViewDataEntry* /*pView*/, const SvTreeListEntry* pEntry)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
const Image* pImg = 0;
const OUString* pTxt = 0;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
RecovDocList* pList = static_cast< RecovDocList* >(&aDevice);
TURLInfo* pInfo = (TURLInfo*)pEntry->GetUserData();
switch(pInfo->RecoveryState)
{
case E_SUCCESSFULLY_RECOVERED :
{
pImg = &pList->m_aGreenCheckImg;
pTxt = &pList->m_aSuccessRecovStr;
}
break;
case E_ORIGINAL_DOCUMENT_RECOVERED : // TODO must be renamed into ORIGINAL DOCUMENT recovered! Because its marked as yellow
{
pImg = &pList->m_aYellowCheckImg;
pTxt = &pList->m_aOrigDocRecovStr;
}
break;
case E_RECOVERY_FAILED :
{
pImg = &pList->m_aRedCrossImg;
pTxt = &pList->m_aRecovFailedStr;
}
break;
case E_RECOVERY_IS_IN_PROGRESS :
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
pImg = 0;
pTxt = &pList->m_aRecovInProgrStr;
}
break;
case E_NOT_RECOVERED_YET :
{
pImg = 0;
pTxt = &pList->m_aNotRecovYetStr;
}
break;
}
if (pImg)
aDevice.DrawImage(aPos, *pImg);
if (pTxt)
{
Point aPnt(aPos);
aPnt.X() += pList->m_aGreenCheckImg.GetSizePixel().Width();
aPnt.X() += 10;
aDevice.DrawText(aPnt, *pTxt);
}
}
RecovDocList::RecovDocList(SvSimpleTableContainer& rParent, ResMgr &rResMgr)
: SvSimpleTable ( rParent )
, m_aGreenCheckImg ( ResId(IMG_GREENCHECK, rResMgr ) )
, m_aYellowCheckImg ( ResId(IMG_YELLOWCHECK, rResMgr ) )
, m_aRedCrossImg ( ResId(IMG_REDCROSS, rResMgr ) )
, m_aSuccessRecovStr ( ResId(STR_SUCCESSRECOV, rResMgr ) )
, m_aOrigDocRecovStr ( ResId(STR_ORIGDOCRECOV, rResMgr ) )
, m_aRecovFailedStr ( ResId(STR_RECOVFAILED, rResMgr ) )
, m_aRecovInProgrStr ( ResId(STR_RECOVINPROGR, rResMgr ) )
, m_aNotRecovYetStr ( ResId(STR_NOTRECOVYET, rResMgr ) )
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
RecovDocList::~RecovDocList()
{
}
void RecovDocList::InitEntry(SvTreeListEntry* pEntry,
const OUString& rText,
const Image& rImage1,
const Image& rImage2,
SvLBoxButtonKind eButtonKind)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
SvTabListBox::InitEntry(pEntry, rText, rImage1, rImage2, eButtonKind);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
DBG_ASSERT( TabCount() == 2, "*RecovDocList::InitEntry(): structure missmatch" );
SvLBoxString* pCol = (SvLBoxString*)pEntry->GetItem(2);
RecovDocListEntry* p = new RecovDocListEntry(pEntry, 0, pCol->GetText());
pEntry->ReplaceItem(p, 2);
}
short impl_askUserForWizardCancel(Window* pParent, sal_Int16 nRes)
{
QueryBox aQuery(pParent, SVX_RES(nRes));
if (aQuery.Execute() == RET_YES)
return DLG_RET_OK;
else
return DLG_RET_CANCEL;
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
RecoveryDialog::RecoveryDialog(Window* pParent,
RecoveryCore* pCore )
: IExtendedTabPage( pParent , SVX_RES( RID_SVXPAGE_DOCRECOVERY_RECOVER ) )
, m_aTitleFT ( this , SVX_RES ( FT_RECOV_TITLE ) )
, m_aTitleWin ( this , SVX_RES ( WIN_RECOV_TITLE ) )
, m_aTitleFL ( this , SVX_RES ( FL_RECOV_TITLE ) )
, m_aDescrFT ( this , SVX_RES ( FT_RECOV_DESCR ) )
, m_aProgressFT ( this , SVX_RES ( FT_RECOV_PROGR ) )
, m_aProgrParent ( this , SVX_RES ( WIN_RECOV_PROGR ) )
, m_aFileListFT ( this , SVX_RES ( FT_RECOV_FILELIST ) )
, m_aFileListLBContainer( this , SVX_RES ( LB_RECOV_FILELIST ) )
, m_aFileListLB (m_aFileListLBContainer, DIALOG_MGR())
, m_aBottomFL ( this , SVX_RES ( FL_RECOV_BOTTOM ) )
, m_aNextBtn ( this , SVX_RES ( BTN_RECOV_NEXT ) )
, m_aCancelBtn ( this , SVX_RES ( BTN_RECOV_CANCEL ) )
, m_aTitleRecoveryInProgress(SVX_RESSTR(STR_RECOVERY_INPROGRESS))
, m_aRecoveryOnlyFinish (SVX_RESSTR(STR_RECOVERYONLY_FINISH))
, m_aRecoveryOnlyFinishDescr(SVX_RESSTR(STR_RECOVERYONLY_FINISH_DESCR))
, m_pDefButton ( NULL )
, m_pCore ( pCore )
, m_eRecoveryState (RecoveryDialog::E_RECOVERY_PREPARED)
, m_bWaitForUser (false)
, m_bWaitForCore (false)
, m_bUserDecideNext (false)
, m_bWasRecoveryStarted (false)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
static long nTabs[] = { 2, 0, 40*RECOV_CONTROLWIDTH/100 };
m_aFileListLB.SetTabs( &nTabs[0] );
m_aFileListLB.InsertHeaderEntry(SVX_RESSTR(STR_HEADERBAR));
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
FreeResource();
PluginProgress* pProgress = new PluginProgress( &m_aProgrParent, pCore->getComponentContext() );
m_xProgress = css::uno::Reference< css::task::XStatusIndicator >(static_cast< css::task::XStatusIndicator* >(pProgress), css::uno::UNO_QUERY_THROW);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
Wallpaper aBackground( rStyleSettings.GetWindowColor() );
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_aTitleWin.SetBackground(aBackground);
m_aTitleFT.SetBackground (aBackground);
Font aFont(m_aTitleFT.GetFont());
aFont.SetWeight(WEIGHT_BOLD);
m_aTitleFT.SetFont(aFont);
m_aFileListLB.SetBackground( rStyleSettings.GetDialogColor() );
m_aNextBtn.Enable(true);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_aNextBtn.SetClickHdl( LINK( this, RecoveryDialog, NextButtonHdl ) );
m_aCancelBtn.SetClickHdl( LINK( this, RecoveryDialog, CancelButtonHdl ) );
// fill list box first time
TURLList* pURLList = m_pCore->getURLListAccess();
TURLList::const_iterator pIt;
for ( pIt = pURLList->begin();
pIt != pURLList->end() ;
++pIt )
{
const TURLInfo& rInfo = *pIt;
OUString sName( rInfo.DisplayName );
sName += "\t";
sName += impl_getStatusString( rInfo );
SvTreeListEntry* pEntry = m_aFileListLB.InsertEntry(sName, rInfo.StandardImage, rInfo.StandardImage);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
pEntry->SetUserData((void*)&rInfo);
}
// mark first item
SvTreeListEntry* pFirst = m_aFileListLB.First();
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
if (pFirst)
m_aFileListLB.SetCursor(pFirst, true);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
RecoveryDialog::~RecoveryDialog()
{
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
short RecoveryDialog::execute()
{
::SolarMutexGuard aSolarLock;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
switch(m_eRecoveryState)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
case RecoveryDialog::E_RECOVERY_PREPARED :
{
// Dialog was started first time ...
// wait for user decision ("start" or "cancel" recovery)
// This decision will be made inside the NextBtn handler.
m_aNextBtn.Enable(true);
m_aCancelBtn.Enable(true);
m_bWaitForUser = true;
while(m_bWaitForUser)
Application::Yield();
if (m_bUserDecideNext)
m_eRecoveryState = RecoveryDialog::E_RECOVERY_IN_PROGRESS;
else
m_eRecoveryState = RecoveryDialog::E_RECOVERY_CANCELED;
return execute();
}
case RecoveryDialog::E_RECOVERY_IN_PROGRESS :
{
// user decided to start recovery ...
m_bWasRecoveryStarted = true;
// do it asynchronous (to allow repaints)
// and wait for this asynchronous operation.
m_aDescrFT.SetText( m_aTitleRecoveryInProgress );
m_aNextBtn.Enable(false);
m_aCancelBtn.Enable(false);
m_pCore->setProgressHandler(m_xProgress);
m_pCore->setUpdateListener(this);
m_pCore->doRecovery();
m_bWaitForCore = true;
while(m_bWaitForCore)
Application::Yield();
m_pCore->setUpdateListener(0);
m_eRecoveryState = RecoveryDialog::E_RECOVERY_CORE_DONE;
return execute();
}
case RecoveryDialog::E_RECOVERY_CORE_DONE :
{
// the core finished it's task.
// let the user decide the next step.
m_aDescrFT.SetText(m_aRecoveryOnlyFinishDescr);
m_aNextBtn.SetText(m_aRecoveryOnlyFinish);
m_aNextBtn.Enable(true);
m_aCancelBtn.Enable(false);
m_bWaitForUser = true;
while(m_bWaitForUser)
Application::Yield();
if (m_bUserDecideNext)
m_eRecoveryState = RecoveryDialog::E_RECOVERY_DONE;
else
m_eRecoveryState = RecoveryDialog::E_RECOVERY_CANCELED;
return execute();
}
case RecoveryDialog::E_RECOVERY_DONE :
{
// All documents was reovered.
// User decided to step to the "next" wizard page.
// Do it ... but check first, if there exist some
// failed recovery documents. They must be saved to
// a user selected directrory.
short nRet = DLG_RET_UNKNOWN;
BrokenRecoveryDialog* pBrokenRecoveryDialog = new BrokenRecoveryDialog(this, m_pCore, !m_bWasRecoveryStarted);
OUString sSaveDir = pBrokenRecoveryDialog->getSaveDirURL(); // get the default dir
if (pBrokenRecoveryDialog->isExecutionNeeded())
{
nRet = pBrokenRecoveryDialog->Execute();
sSaveDir = pBrokenRecoveryDialog->getSaveDirURL();
}
delete pBrokenRecoveryDialog;
switch(nRet)
{
// no broken temp files exists
// step to the next wizard page
case DLG_RET_UNKNOWN :
{
m_eRecoveryState = RecoveryDialog::E_RECOVERY_HANDLED;
return DLG_RET_OK;
}
// user decided to save the broken temp files
// do and forget it
// step to the next wizard page
case DLG_RET_OK :
{
m_pCore->saveBrokenTempEntries(sSaveDir);
m_pCore->forgetBrokenTempEntries();
m_eRecoveryState = RecoveryDialog::E_RECOVERY_HANDLED;
return DLG_RET_OK;
}
// user decided to ignore broken temp files.
// Ask it again ... may be this decision was wrong.
// Results:
// IGNORE => remove broken temp files
// => step to the next wizard page
// CANCEL => step back to the recovery page
case DLG_RET_CANCEL :
{
// TODO ask user ...
m_pCore->forgetBrokenTempEntries();
m_eRecoveryState = RecoveryDialog::E_RECOVERY_HANDLED;
return DLG_RET_OK;
}
}
m_eRecoveryState = RecoveryDialog::E_RECOVERY_HANDLED;
return DLG_RET_OK;
}
case RecoveryDialog::E_RECOVERY_CANCELED :
{
// "YES" => break recovery
// But there exist different states, where "cancel" can be called.
// Handle it different.
if (m_bWasRecoveryStarted)
m_eRecoveryState = RecoveryDialog::E_RECOVERY_CANCELED_AFTERWARDS;
else
m_eRecoveryState = RecoveryDialog::E_RECOVERY_CANCELED_BEFORE;
return execute();
}
case RecoveryDialog::E_RECOVERY_CANCELED_BEFORE :
case RecoveryDialog::E_RECOVERY_CANCELED_AFTERWARDS :
{
// We have to check if there exists some temp. files.
// They should be saved to a user defined location.
// If no temp files exists or user decided to ignore it ...
// we have to remove all recovery/session data anyway!
short nRet = DLG_RET_UNKNOWN;
BrokenRecoveryDialog* pBrokenRecoveryDialog = new BrokenRecoveryDialog(this, m_pCore, !m_bWasRecoveryStarted);
OUString sSaveDir = pBrokenRecoveryDialog->getSaveDirURL(); // get the default save location
// dialog itself checks if there is a need to copy files for this mode.
// It uses the information m_bWasRecoveryStarted doing so.
if (pBrokenRecoveryDialog->isExecutionNeeded())
{
nRet = pBrokenRecoveryDialog->Execute();
sSaveDir = pBrokenRecoveryDialog->getSaveDirURL();
}
delete pBrokenRecoveryDialog;
// Possible states:
// a) nRet == DLG_RET_UNKNOWN
// dialog was not shown ...
// because there exists no temp file for copy.
// => remove all recovery data
// b) nRet == DLG_RET_OK
// dialog was shown ...
// user decided to save temp files
// => save all OR broken temp files (depends from the time, where cancel was called)
// => remove all recovery data
// c) nRet == DLG_RET_CANCEL
// dialog was shown ...
// user decided to ignore temp files
// => remove all recovery data
// => a)/c) are the same ... b) has one additional operation
// b)
if (nRet == DLG_RET_OK)
{
if (m_bWasRecoveryStarted)
m_pCore->saveBrokenTempEntries(sSaveDir);
else
m_pCore->saveAllTempEntries(sSaveDir);
}
// a,b,c)
if (m_bWasRecoveryStarted)
m_pCore->forgetBrokenRecoveryEntries();
else
m_pCore->forgetAllRecoveryEntries();
m_eRecoveryState = RecoveryDialog::E_RECOVERY_HANDLED;
// THERE IS NO WAY BACK. see impl_askUserForWizardCancel()!
return DLG_RET_CANCEL;
}
case RecoveryDialog::E_RECOVERY_HANDLED :
{
m_bWaitForUser = true;
while(m_bWaitForUser)
Application::Yield();
// TODO: show BrokenRecoveryDialog again, ift he user
// doesn't accepted it last time.
if (m_bUserDecideNext)
return DLG_RET_OK;
else
return DLG_RET_CANCEL;
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
// should never be reached .-)
2011-03-01 19:07:44 +01:00
OSL_FAIL("Should never be reached!");
return DLG_RET_OK;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void RecoveryDialog::setDefButton()
{
if ( m_aNextBtn.IsEnabled() )
m_aNextBtn.GrabFocus();
else
m_pDefButton = &m_aNextBtn;
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void RecoveryDialog::start()
{
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void RecoveryDialog::updateItems()
{
sal_uIntPtr c = m_aFileListLB.GetEntryCount();
sal_uIntPtr i = 0;
for ( i=0; i<c; ++i )
{
SvTreeListEntry* pEntry = m_aFileListLB.GetEntry(i);
if ( !pEntry )
continue;
TURLInfo* pInfo = (TURLInfo*)pEntry->GetUserData();
if ( !pInfo )
continue;
OUString sStatus = impl_getStatusString( *pInfo );
if ( !sStatus.isEmpty() )
m_aFileListLB.SetEntryText( sStatus, pEntry, 1 );
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_aFileListLB.Invalidate();
m_aFileListLB.Update();
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void RecoveryDialog::stepNext(TURLInfo* pItem)
{
sal_uIntPtr c = m_aFileListLB.GetEntryCount();
sal_uIntPtr i = 0;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
for (i=0; i<c; ++i)
{
SvTreeListEntry* pEntry = m_aFileListLB.GetEntry(i);
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
if (!pEntry)
continue;
TURLInfo* pInfo = (TURLInfo*)pEntry->GetUserData();
if (pInfo->ID != pItem->ID)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
continue;
m_aFileListLB.SetCursor(pEntry, true);
m_aFileListLB.MakeVisible(pEntry);
m_aFileListLB.Invalidate();
m_aFileListLB.Update();
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
break;
}
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
void RecoveryDialog::end()
{
if ( m_pDefButton )
{
m_pDefButton->GrabFocus();
m_pDefButton = NULL;
}
m_bWaitForCore = false;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
IMPL_LINK_NOARG(RecoveryDialog, NextButtonHdl)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
m_bUserDecideNext = true;
m_bWaitForUser = false;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
return 0;
}
IMPL_LINK_NOARG(RecoveryDialog, CancelButtonHdl)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
if (m_eRecoveryState == RecoveryDialog::E_RECOVERY_PREPARED)
{
if (impl_askUserForWizardCancel(this, RID_SVXQB_EXIT_RECOVERY) == DLG_RET_CANCEL)
return 0;
}
m_bUserDecideNext = false;
m_bWaitForUser = false;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
return 0;
}
OUString RecoveryDialog::impl_getStatusString( const TURLInfo& rInfo ) const
{
OUString sStatus;
switch ( rInfo.RecoveryState )
{
case E_SUCCESSFULLY_RECOVERED :
sStatus = m_aFileListLB.m_aSuccessRecovStr;
break;
case E_ORIGINAL_DOCUMENT_RECOVERED :
sStatus = m_aFileListLB.m_aOrigDocRecovStr;
break;
case E_RECOVERY_FAILED :
sStatus = m_aFileListLB.m_aRecovFailedStr;
break;
case E_RECOVERY_IS_IN_PROGRESS :
sStatus = m_aFileListLB.m_aRecovInProgrStr;
break;
case E_NOT_RECOVERED_YET :
sStatus = m_aFileListLB.m_aNotRecovYetStr;
break;
default:
break;
}
return sStatus;
}
BrokenRecoveryDialog::BrokenRecoveryDialog(Window* pParent ,
RecoveryCore* pCore ,
bool bBeforeRecovery)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
: ModalDialog ( pParent, SVX_RES( RID_SVX_MDLG_DOCRECOVERY_BROKEN ) )
, m_aDescrFT ( this , SVX_RES( FT_BROKEN_DESCR ) )
, m_aFileListFT ( this , SVX_RES( FT_BROKEN_FILELIST ) )
, m_aFileListLB ( this , SVX_RES( LB_BROKEN_FILELIST ) )
, m_aSaveDirFT ( this , SVX_RES( FT_BROKEN_SAVEDIR ) )
, m_aSaveDirED ( this , SVX_RES( ED_BROKEN_SAVEDIR ) )
, m_aSaveDirBtn ( this , SVX_RES( BTN_BROKEN_SAVEDIR ) )
, m_aBottomFL ( this , SVX_RES( FL_BROKEN_BOTTOM ) )
, m_aOkBtn ( this , SVX_RES( BTN_BROKEN_OK ) )
, m_aCancelBtn ( this , SVX_RES( BTN_BROKEN_CANCEL ) )
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
, m_pCore ( pCore )
, m_bBeforeRecovery (bBeforeRecovery)
, m_bExecutionNeeded(false)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
FreeResource();
m_aSaveDirBtn.SetClickHdl( LINK( this, BrokenRecoveryDialog, SaveButtonHdl ) );
m_aOkBtn.SetClickHdl( LINK( this, BrokenRecoveryDialog, OkButtonHdl ) );
m_aCancelBtn.SetClickHdl( LINK( this, BrokenRecoveryDialog, CancelButtonHdl ) );
m_sSavePath = SvtPathOptions().GetWorkPath();
INetURLObject aObj( m_sSavePath );
OUString sPath;
::utl::LocalFileHelper::ConvertURLToSystemPath( aObj.GetMainURL( INetURLObject::NO_DECODE ), sPath );
m_aSaveDirED.SetText( sPath );
impl_refresh();
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
BrokenRecoveryDialog::~BrokenRecoveryDialog()
{
}
void BrokenRecoveryDialog::impl_refresh()
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
m_bExecutionNeeded = false;
TURLList* pURLList = m_pCore->getURLListAccess();
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
TURLList::const_iterator pIt;
for ( pIt = pURLList->begin();
pIt != pURLList->end() ;
++pIt )
{
const TURLInfo& rInfo = *pIt;
if (m_bBeforeRecovery)
{
// "Cancel" before recovery ->
// search for any temp files!
if (rInfo.TempURL.isEmpty())
continue;
}
else
{
// "Cancel" after recovery ->
// search for broken temp files
if (!RecoveryCore::isBrokenTempEntry(rInfo))
continue;
}
m_bExecutionNeeded = true;
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
sal_uInt16 nPos = m_aFileListLB.InsertEntry(rInfo.DisplayName, rInfo.StandardImage );
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_aFileListLB.SetEntryData( nPos, (void*)&rInfo );
}
m_sSavePath = "";
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_aOkBtn.GrabFocus();
}
bool BrokenRecoveryDialog::isExecutionNeeded()
{
return m_bExecutionNeeded;
}
OUString BrokenRecoveryDialog::getSaveDirURL()
{
return m_sSavePath;
}
IMPL_LINK_NOARG(BrokenRecoveryDialog, OkButtonHdl)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
OUString sPhysicalPath = comphelper::string::strip(m_aSaveDirED.GetText(), ' ');
OUString sURL;
::utl::LocalFileHelper::ConvertPhysicalNameToURL( sPhysicalPath, sURL );
m_sSavePath = sURL;
while (m_sSavePath.isEmpty())
impl_askForSavePath();
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
EndDialog(DLG_RET_OK);
return 0;
}
IMPL_LINK_NOARG(BrokenRecoveryDialog, CancelButtonHdl)
{
EndDialog(DLG_RET_CANCEL);
return 0;
}
IMPL_LINK_NOARG(BrokenRecoveryDialog, SaveButtonHdl)
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
{
impl_askForSavePath();
return 0;
}
void BrokenRecoveryDialog::impl_askForSavePath()
{
css::uno::Reference< css::ui::dialogs::XFolderPicker2 > xFolderPicker =
css::ui::dialogs::FolderPicker::create( m_pCore->getComponentContext() );
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
INetURLObject aURL(m_sSavePath, INET_PROT_FILE);
xFolderPicker->setDisplayDirectory(aURL.GetMainURL(INetURLObject::NO_DECODE));
short nRet = xFolderPicker->execute();
if (nRet == css::ui::dialogs::ExecutableDialogResults::OK)
{
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
m_sSavePath = xFolderPicker->getDirectory();
OUString sPath;
::utl::LocalFileHelper::ConvertURLToSystemPath( m_sSavePath, sPath );
m_aSaveDirED.SetText( sPath );
}
INTEGRATION: CWS recovery04 (1.1.4); FILE ADDED 2004/11/18 15:09:57 hro 1.1.4.24: #i36938# Use crash reporter generated preview 2004/11/16 16:47:10 hro 1.1.4.23: #i36938# Use crash reporter generated preview 2004/11/10 09:38:39 hro 1.1.4.22: #i36455# Show Stack and Checksum in Show Report dialog 2004/11/05 14:26:19 as 1.1.4.21: #i35269# fix progress crash 2004/11/05 10:47:43 as 1.1.4.20: #i35269# handle recovery states right 2004/11/01 15:28:31 hro 1.1.4.19: #i36452# Tab page dialog needs extra cancel btn handler 2004/10/20 13:04:09 as 1.1.4.18: #i27726# use right property to initialize progress 2004/10/05 11:02:51 pb 1.1.4.17: fix: #i33865# gui beautified 2004/10/01 06:59:22 as 1.1.4.16: #i33868# fix some crashes on finish dialogs 2004/10/01 06:47:06 pb 1.1.4.15: fix: #i33865# no HelpButtons any longer 2004/09/30 12:14:16 as 1.1.4.14: #i33868# show save progress as child of save-crash dialog 2004/09/29 10:06:47 as 1.1.4.13: #i33868# use tab dialog instead of different modal dialogs 2004/09/06 13:29:41 hro 1.1.4.12: #i28480# Keep parameters persistent 2004/09/03 14:55:26 hro 1.1.4.11: #i28480# Sending only mode for crash reporter 2004/09/03 05:02:41 hro 1.1.4.10: #i28480# Sending only mode for crash reporter 2004/09/03 04:53:48 hro 1.1.4.9: #i28480# Sending only mode for crash reporter 2004/09/02 13:28:12 hro 1.1.4.8: #i20882# Typo fixed 2004/09/02 07:37:26 as 1.1.4.7: #i27726# make update mode for UI better 2004/09/01 09:00:59 as 1.1.4.6: #i27726# show save dialog as sub-modal one 2004/08/20 11:48:42 hro 1.1.4.5: #i27780# Added Crash Reporter dialogs 2004/08/06 10:32:19 as 1.1.4.4: #i27726# bind status events to UI 2004/08/05 11:26:27 as 1.1.4.3: #27726# make auto recovery aynchron; implement progress 2004/08/02 11:00:33 as 1.1.4.2: #27726# new recovery UI service 2004/07/23 11:06:07 hro 1.1.4.1: #i27780# New docrecovery resources
2004-11-26 13:19:48 +00:00
}
} // namespace DocRecovery
} // namespace svx
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */