2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2004-11-26 13:21:56 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 00:30:45 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-11-26 13:21:56 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-11-26 13:21:56 +00:00
|
|
|
*
|
2008-04-11 00:30:45 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-11-26 13:21:56 +00:00
|
|
|
*
|
2008-04-11 00:30:45 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-11-26 13:21:56 +00:00
|
|
|
*
|
2008-04-11 00:30:45 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-11-26 13:21:56 +00:00
|
|
|
*
|
2008-04-11 00:30:45 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-11-26 13:21:56 +00:00
|
|
|
*
|
2008-04-11 00:30:45 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-11-26 13:21:56 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _SVX_DOCRECOVERY_HXX
|
|
|
|
#define _SVX_DOCRECOVERY_HXX
|
|
|
|
|
|
|
|
#include <vcl/tabpage.hxx>
|
|
|
|
#include <vcl/tabdlg.hxx>
|
|
|
|
#include <vcl/dialog.hxx>
|
|
|
|
#include <vcl/button.hxx>
|
|
|
|
#include <vcl/fixed.hxx>
|
2005-02-02 12:58:07 +00:00
|
|
|
#include <svtools/svmedit2.hxx>
|
2012-10-11 16:13:12 -04:00
|
|
|
#include <svtools/treelistbox.hxx>
|
|
|
|
#include <svtools/svlbitm.hxx>
|
2007-06-27 17:22:03 +00:00
|
|
|
#include <svx/simptabl.hxx>
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
#include <cppuhelper/implbase1.hxx>
|
|
|
|
#include <cppuhelper/implbase2.hxx>
|
|
|
|
#include <com/sun/star/task/XStatusIndicatorFactory.hpp>
|
|
|
|
#include <com/sun/star/frame/XStatusListener.hpp>
|
|
|
|
#include <com/sun/star/frame/XDispatch.hpp>
|
|
|
|
#include <com/sun/star/lang/XComponent.hpp>
|
|
|
|
|
|
|
|
|
2010-11-10 08:30:43 +01:00
|
|
|
#define RECOVERY_CMDPART_PROTOCOL rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.autorecovery:"))
|
2004-11-26 13:21:56 +00:00
|
|
|
|
2010-11-10 08:30:43 +01:00
|
|
|
#define RECOVERY_CMDPART_DO_EMERGENCY_SAVE rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/doEmergencySave" ))
|
|
|
|
#define RECOVERY_CMDPART_DO_RECOVERY rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/doAutoRecovery" ))
|
|
|
|
#define RECOVERY_CMDPART_DO_CRASHREPORT rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/doCrashReport" ))
|
2004-11-26 13:21:56 +00:00
|
|
|
|
2010-11-10 08:30:43 +01:00
|
|
|
#define RECOVERY_CMD_DO_PREPARE_EMERGENCY_SAVE rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.autorecovery:/doPrepareEmergencySave"))
|
|
|
|
#define RECOVERY_CMD_DO_EMERGENCY_SAVE rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.autorecovery:/doEmergencySave" ))
|
|
|
|
#define RECOVERY_CMD_DO_RECOVERY rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.autorecovery:/doAutoRecovery" ))
|
|
|
|
#define RECOVERY_CMD_DO_ENTRY_BACKUP rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.autorecovery:/doEntryBackup" ))
|
|
|
|
#define RECOVERY_CMD_DO_ENTRY_CLEANUP rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.autorecovery:/doEntryCleanUp" ))
|
2004-11-26 13:21:56 +00:00
|
|
|
|
2010-11-10 08:30:43 +01:00
|
|
|
#define SERVICENAME_PROGRESSFACTORY rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.task.StatusIndicatorFactory"))
|
|
|
|
#define SERVICENAME_DESKTOP rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.frame.Desktop" ))
|
2004-11-26 13:21:56 +00:00
|
|
|
|
2010-11-10 08:30:43 +01:00
|
|
|
#define PROP_PARENTWINDOW rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Window" ))
|
|
|
|
#define PROP_STATUSINDICATOR rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "StatusIndicator" ))
|
|
|
|
#define PROP_DISPATCHASYNCHRON rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "DispatchAsynchron"))
|
|
|
|
#define PROP_SAVEPATH rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "SavePath" ))
|
|
|
|
#define PROP_ENTRYID rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "EntryID" ))
|
|
|
|
#define PROP_ALLOWPARENTSHOW rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "AllowParentShow" ))
|
2005-02-02 12:58:07 +00:00
|
|
|
|
2010-11-10 08:30:43 +01:00
|
|
|
#define STATEPROP_ID rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "ID" ))
|
|
|
|
#define STATEPROP_STATE rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "DocumentState"))
|
|
|
|
#define STATEPROP_ORGURL rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "OriginalURL" ))
|
|
|
|
#define STATEPROP_TEMPURL rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "TempURL" ))
|
|
|
|
#define STATEPROP_FACTORYURL rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "FactoryURL" ))
|
|
|
|
#define STATEPROP_TEMPLATEURL rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "TemplateURL" ))
|
|
|
|
#define STATEPROP_TITLE rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Title" ))
|
|
|
|
#define STATEPROP_MODULE rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Module" ))
|
2005-02-02 12:58:07 +00:00
|
|
|
|
2010-11-10 08:30:43 +01:00
|
|
|
#define RECOVERY_OPERATIONSTATE_START rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "start" ))
|
|
|
|
#define RECOVERY_OPERATIONSTATE_STOP rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "stop" ))
|
|
|
|
#define RECOVERY_OPERATIONSTATE_UPDATE rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "update"))
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
#define DLG_RET_UNKNOWN -1
|
|
|
|
#define DLG_RET_OK 1
|
|
|
|
#define DLG_RET_CANCEL 0
|
|
|
|
#define DLG_RET_BACK 100
|
|
|
|
#define DLG_RET_OK_AUTOLUNCH 101
|
|
|
|
|
|
|
|
|
2012-04-21 01:30:38 +02:00
|
|
|
namespace css = ::com::sun::star;
|
|
|
|
|
2004-11-26 13:21:56 +00:00
|
|
|
namespace svx{
|
|
|
|
namespace DocRecovery{
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
enum EDocStates
|
|
|
|
{
|
|
|
|
/* TEMP STATES */
|
|
|
|
|
|
|
|
/// default state, if a document was new created or loaded
|
|
|
|
E_UNKNOWN = 0,
|
|
|
|
/// modified against the original file
|
|
|
|
E_MODIFIED = 1,
|
|
|
|
/// an active document can be postponed to be saved later.
|
|
|
|
E_POSTPONED = 2,
|
|
|
|
/// was already handled during one AutoSave/Recovery session.
|
|
|
|
E_HANDLED = 4,
|
|
|
|
/** an action was started (saving/loading) ... Can be interesting later if the process may be was interrupted by an exception. */
|
|
|
|
E_TRY_SAVE = 8,
|
|
|
|
E_TRY_LOAD_BACKUP = 16,
|
|
|
|
E_TRY_LOAD_ORIGINAL = 32,
|
|
|
|
|
|
|
|
/* FINAL STATES */
|
|
|
|
|
|
|
|
/// the Auto/Emergency saved document isnt useable any longer
|
|
|
|
E_DAMAGED = 64,
|
|
|
|
/// the Auto/Emergency saved document isnt realy up-to-date (some changes can be missing)
|
|
|
|
E_INCOMPLETE = 128,
|
|
|
|
/// the Auto/Emergency saved document was processed successfully
|
|
|
|
E_SUCCEDED = 512
|
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
enum ERecoveryState
|
|
|
|
{
|
|
|
|
E_SUCCESSFULLY_RECOVERED,
|
|
|
|
E_ORIGINAL_DOCUMENT_RECOVERED,
|
|
|
|
E_RECOVERY_FAILED,
|
2008-07-22 06:41:15 +00:00
|
|
|
E_RECOVERY_IS_IN_PROGRESS,
|
2004-11-26 13:21:56 +00:00
|
|
|
E_NOT_RECOVERED_YET
|
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
struct TURLInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2005-02-02 12:58:07 +00:00
|
|
|
/// unique ID, which is specified by the underlying autorecovery core!
|
|
|
|
sal_Int32 ID;
|
|
|
|
|
2004-11-26 13:21:56 +00:00
|
|
|
/// the full qualified document URL
|
2005-02-02 12:58:07 +00:00
|
|
|
::rtl::OUString OrgURL;
|
|
|
|
|
|
|
|
/// the full qualified URL of the temp. file (if it's exists)
|
|
|
|
::rtl::OUString TempURL;
|
|
|
|
|
|
|
|
/// a may be existing factory URL (e.g. for untitled documents)
|
|
|
|
::rtl::OUString FactoryURL;
|
|
|
|
|
|
|
|
/// may be the document base on a template file !?
|
|
|
|
::rtl::OUString TemplateURL;
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
/// the pure file name, without path, disc etcpp.
|
|
|
|
::rtl::OUString DisplayName;
|
|
|
|
|
2005-02-02 12:58:07 +00:00
|
|
|
/// the application module, where this document was loaded
|
|
|
|
::rtl::OUString Module;
|
|
|
|
|
2004-11-26 13:21:56 +00:00
|
|
|
/// state info as e.g. VALID, CORRUPTED, NON EXISTING ...
|
|
|
|
sal_Int32 DocState;
|
|
|
|
|
|
|
|
/// ui representation for DocState!
|
|
|
|
ERecoveryState RecoveryState;
|
|
|
|
|
|
|
|
/// standard icon
|
|
|
|
Image StandardImage;
|
|
|
|
|
2005-02-02 12:58:07 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
TURLInfo()
|
|
|
|
: ID (-1 )
|
|
|
|
, DocState (E_UNKNOWN )
|
|
|
|
, RecoveryState(E_NOT_RECOVERED_YET)
|
|
|
|
{}
|
2004-11-26 13:21:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
typedef ::std::vector< TURLInfo > TURLList;
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class IRecoveryUpdateListener
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
// inform listener about changed items, which should be refreshed
|
|
|
|
virtual void updateItems() = 0;
|
|
|
|
|
|
|
|
// inform listener about starting of the asynchronous recovery operation
|
|
|
|
virtual void start() = 0;
|
|
|
|
|
|
|
|
// inform listener about ending of the asynchronous recovery operation
|
|
|
|
virtual void end() = 0;
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
virtual void stepNext(TURLInfo* pItem) = 0;
|
2012-03-14 13:27:56 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
~IRecoveryUpdateListener() {}
|
2004-11-26 13:21:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class RecoveryCore : public ::cppu::WeakImplHelper1< css::frame::XStatusListener >
|
|
|
|
{
|
|
|
|
//-------------------------------------------
|
|
|
|
// types, const
|
|
|
|
public:
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// member
|
|
|
|
private:
|
|
|
|
|
|
|
|
/// TODO
|
2012-10-18 10:58:02 +02:00
|
|
|
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
/// TODO
|
|
|
|
css::uno::Reference< css::frame::XDispatch > m_xRealCore;
|
|
|
|
|
|
|
|
/// TODO
|
|
|
|
css::uno::Reference< css::task::XStatusIndicator > m_xProgress;
|
|
|
|
|
|
|
|
/// TODO
|
|
|
|
TURLList m_lURLs;
|
|
|
|
|
|
|
|
/// TODO
|
|
|
|
IRecoveryUpdateListener* m_pListener;
|
|
|
|
|
2005-02-02 12:58:07 +00:00
|
|
|
/** @short knows the reason, why we listen on our internal m_xRealCore
|
|
|
|
member.
|
|
|
|
|
|
|
|
@descr Because we listen for different operations
|
|
|
|
on the core dispatch implementation, we must know,
|
|
|
|
which URL we have to use for deregistration!
|
|
|
|
*/
|
|
|
|
sal_Bool m_bListenForSaving;
|
|
|
|
|
2004-11-26 13:21:56 +00:00
|
|
|
//-------------------------------------------
|
|
|
|
// native interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
2012-10-18 10:58:02 +02:00
|
|
|
RecoveryCore(const css::uno::Reference< css::uno::XComponentContext >& rxContext,
|
|
|
|
sal_Bool bUsedForSaving);
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
virtual ~RecoveryCore();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
2012-10-18 10:58:02 +02:00
|
|
|
virtual css::uno::Reference< css::uno::XComponentContext > getComponentContext();
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
virtual TURLList* getURLListAccess();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
2005-02-02 12:58:07 +00:00
|
|
|
virtual sal_Bool existsBrokenTempEntries();
|
|
|
|
virtual sal_Bool existsNonRecoveredEntries();
|
|
|
|
static sal_Bool isBrokenTempEntry(const TURLInfo& rInfo);
|
|
|
|
virtual void saveBrokenTempEntries(const ::rtl::OUString& sSaveDir);
|
|
|
|
virtual void saveAllTempEntries(const ::rtl::OUString& sSaveDir);
|
|
|
|
virtual void forgetBrokenTempEntries();
|
|
|
|
virtual void forgetAllRecoveryEntries();
|
2005-11-11 08:01:59 +00:00
|
|
|
void forgetBrokenRecoveryEntries();
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
virtual void setProgressHandler(const css::uno::Reference< css::task::XStatusIndicator >& xProgress);
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
virtual void setUpdateListener(IRecoveryUpdateListener* pListener);
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
2005-02-02 12:58:07 +00:00
|
|
|
virtual void doEmergencySavePrepare();
|
2004-11-26 13:21:56 +00:00
|
|
|
virtual void doEmergencySave();
|
|
|
|
virtual void doRecovery();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
static ERecoveryState mapDocState2RecoverState(sal_Int32 eDocState);
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// uno interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
// css.frame.XStatusListener
|
|
|
|
virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent& aEvent)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
// css.lang.XEventListener
|
|
|
|
virtual void SAL_CALL disposing(const css::lang::EventObject& aEvent)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// helper
|
|
|
|
private:
|
|
|
|
|
|
|
|
//---------------------------------------
|
2005-02-02 12:58:07 +00:00
|
|
|
/** @short starts listening on the internal EmergencySave/AutoRecovery core.
|
|
|
|
*/
|
2004-11-26 13:21:56 +00:00
|
|
|
void impl_startListening();
|
|
|
|
|
2005-02-02 12:58:07 +00:00
|
|
|
//---------------------------------------
|
|
|
|
/** @short stop listening on the internal EmergencySave/AutoRecovery core.
|
|
|
|
*/
|
|
|
|
void impl_stopListening();
|
|
|
|
|
2004-11-26 13:21:56 +00:00
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
css::util::URL impl_getParsedURL(const ::rtl::OUString& sURL);
|
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class PluginProgressWindow : public Window
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
|
|
|
|
css::uno::Reference< css::lang::XComponent > m_xProgress;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
PluginProgressWindow( Window* pParent ,
|
|
|
|
const css::uno::Reference< css::lang::XComponent >& xProgress);
|
|
|
|
~PluginProgressWindow();
|
|
|
|
};
|
|
|
|
|
|
|
|
class PluginProgress : public ::cppu::WeakImplHelper2< css::task::XStatusIndicator ,
|
|
|
|
css::lang::XComponent >
|
|
|
|
{
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// member
|
|
|
|
private:
|
|
|
|
|
|
|
|
/** @short TODO */
|
|
|
|
css::uno::Reference< css::task::XStatusIndicatorFactory > m_xProgressFactory;
|
|
|
|
|
|
|
|
css::uno::Reference< css::task::XStatusIndicator > m_xProgress;
|
|
|
|
|
|
|
|
PluginProgressWindow* m_pPlugProgressWindow;
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// native interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
PluginProgress( Window* pParent,
|
|
|
|
const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR );
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
virtual ~PluginProgress();
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// uno interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
// XStatusIndicator
|
|
|
|
virtual void SAL_CALL start(const ::rtl::OUString& sText ,
|
|
|
|
sal_Int32 nRange)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
virtual void SAL_CALL end()
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
virtual void SAL_CALL setText(const ::rtl::OUString& sText)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
virtual void SAL_CALL setValue(sal_Int32 nValue)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
virtual void SAL_CALL reset()
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
// XComponent
|
|
|
|
virtual void SAL_CALL dispose()
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener >& xListener)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class IExtendedTabPage : public TabPage
|
|
|
|
{
|
|
|
|
//-------------------------------------------
|
|
|
|
// member
|
|
|
|
protected:
|
|
|
|
|
|
|
|
short m_nResult;
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
IExtendedTabPage( Window* pParent, WinBits nStyle = 0 )
|
|
|
|
: TabPage( pParent, nStyle )
|
|
|
|
, m_nResult(DLG_RET_UNKNOWN)
|
|
|
|
{}
|
|
|
|
|
|
|
|
IExtendedTabPage( Window* pParent, const ResId& rResId )
|
|
|
|
: TabPage( pParent, rResId )
|
|
|
|
, m_nResult(DLG_RET_UNKNOWN)
|
|
|
|
{}
|
|
|
|
|
|
|
|
virtual ~IExtendedTabPage()
|
|
|
|
{}
|
|
|
|
|
|
|
|
virtual short execute() = 0;
|
|
|
|
virtual void setDefButton() = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef ::std::vector< IExtendedTabPage* > TTabPageList;
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class TabDialog4Recovery : public TabDialog
|
|
|
|
{
|
|
|
|
//-------------------------------------------
|
|
|
|
// member
|
|
|
|
private:
|
|
|
|
|
|
|
|
TTabPageList m_lTabPages;
|
|
|
|
TTabPageList::iterator m_pActualPage;
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
TabDialog4Recovery(Window* pParent);
|
|
|
|
virtual ~TabDialog4Recovery();
|
|
|
|
|
|
|
|
virtual void addTabPage(IExtendedTabPage* pPage);
|
|
|
|
virtual short Execute();
|
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class SaveDialog : public IExtendedTabPage
|
|
|
|
{
|
|
|
|
//-------------------------------------------
|
|
|
|
// member
|
|
|
|
private:
|
|
|
|
|
|
|
|
Window m_aTitleWin;
|
|
|
|
FixedText m_aTitleFT;
|
2005-02-02 12:58:07 +00:00
|
|
|
FixedLine m_aTitleFL;
|
2004-11-26 13:21:56 +00:00
|
|
|
FixedText m_aDescrFT;
|
|
|
|
FixedText m_aFileListFT;
|
|
|
|
ListBox m_aFileListLB;
|
|
|
|
FixedLine m_aBottomFL;
|
|
|
|
OKButton m_aOkBtn;
|
|
|
|
|
|
|
|
RecoveryCore* m_pCore;
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short create all child controls of this dialog.
|
|
|
|
|
|
|
|
@descr The dialog isnt shown nor it starts any
|
|
|
|
action by itself!
|
|
|
|
|
|
|
|
@param pParent
|
|
|
|
can point to a parent window.
|
|
|
|
If its set to 0, the defmodal-dialog-parent
|
|
|
|
is used automaticly.
|
|
|
|
|
|
|
|
@param pCore
|
|
|
|
provides access to the recovery core service
|
|
|
|
and the current list of open documents,
|
|
|
|
which should be shown inside this dialog.
|
|
|
|
*/
|
|
|
|
SaveDialog(Window* pParent,
|
|
|
|
RecoveryCore* pCore );
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short free all controls and used memory. */
|
|
|
|
virtual ~SaveDialog();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO*/
|
|
|
|
virtual short execute();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO*/
|
|
|
|
virtual void setDefButton();
|
|
|
|
|
|
|
|
DECL_LINK(OKButtonHdl, void*);
|
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class SaveProgressDialog : public ModalDialog
|
|
|
|
, public IRecoveryUpdateListener
|
|
|
|
{
|
|
|
|
//-------------------------------------------
|
|
|
|
// member
|
|
|
|
private:
|
|
|
|
|
|
|
|
FixedText m_aHintFT;
|
|
|
|
FixedText m_aProgrFT;
|
|
|
|
String m_aProgrBaseTxt;
|
|
|
|
Window m_aProgrParent;
|
|
|
|
|
|
|
|
// @short TODO
|
|
|
|
RecoveryCore* m_pCore;
|
|
|
|
|
|
|
|
// @short TODO
|
|
|
|
css::uno::Reference< css::task::XStatusIndicator > m_xProgress;
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short create all child controls of this dialog.
|
|
|
|
|
|
|
|
@descr The dialog isnt shown nor it starts any
|
|
|
|
action by itself!
|
|
|
|
|
|
|
|
@param pParent
|
|
|
|
can point to a parent window.
|
|
|
|
If its set to 0, the defmodal-dialog-parent
|
|
|
|
is used automaticly.
|
|
|
|
|
|
|
|
@param pCore
|
|
|
|
used to start emegrency save.
|
|
|
|
*/
|
|
|
|
SaveProgressDialog(Window* pParent,
|
|
|
|
RecoveryCore* pCore );
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short free all controls and used memory. */
|
|
|
|
virtual ~SaveProgressDialog();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short start the emergency save operation. */
|
|
|
|
virtual short Execute();
|
|
|
|
|
|
|
|
// IRecoveryUpdateListener
|
|
|
|
virtual void updateItems();
|
|
|
|
virtual void stepNext(TURLInfo* pItem);
|
|
|
|
virtual void start();
|
|
|
|
virtual void end();
|
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class RecovDocListEntry : public SvLBoxString
|
|
|
|
{
|
|
|
|
//-------------------------------------------
|
|
|
|
// interface
|
|
|
|
private:
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
2012-10-18 16:28:20 +02:00
|
|
|
RecovDocListEntry( SvTreeListEntry* pEntry,
|
2011-01-10 16:11:35 +01:00
|
|
|
sal_uInt16 nFlags,
|
2004-11-26 13:21:56 +00:00
|
|
|
const String& sText );
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
2012-10-11 16:13:12 -04:00
|
|
|
virtual void Paint(
|
2012-10-18 16:28:20 +02:00
|
|
|
const Point& aPos, SvTreeListBox& aDevice, sal_uInt16 nFlags, SvTreeListEntry* pEntry);
|
2004-11-26 13:21:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class RecovDocList : public SvxSimpleTable
|
|
|
|
{
|
|
|
|
//-------------------------------------------
|
|
|
|
// member
|
|
|
|
public:
|
|
|
|
|
|
|
|
Image m_aGreenCheckImg;
|
|
|
|
Image m_aYellowCheckImg;
|
|
|
|
Image m_aRedCrossImg;
|
|
|
|
|
2012-10-25 11:26:43 +01:00
|
|
|
OUString m_aSuccessRecovStr;
|
|
|
|
OUString m_aOrigDocRecovStr;
|
|
|
|
OUString m_aRecovFailedStr;
|
|
|
|
OUString m_aRecovInProgrStr;
|
|
|
|
OUString m_aNotRecovYetStr;
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
2011-07-14 14:18:13 +01:00
|
|
|
RecovDocList(SvxSimpleTableContainer& rParent, ResMgr& rResMgr);
|
2004-11-26 13:21:56 +00:00
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
virtual ~RecovDocList();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
2012-10-25 11:26:43 +01:00
|
|
|
virtual void InitEntry(SvTreeListEntry* pEntry,
|
|
|
|
const OUString& rText,
|
|
|
|
const Image& rImage1,
|
|
|
|
const Image& rImage2,
|
|
|
|
SvLBoxButtonKind eButtonKind);
|
2004-11-26 13:21:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class RecoveryDialog : public IExtendedTabPage
|
|
|
|
, public IRecoveryUpdateListener
|
|
|
|
{
|
|
|
|
//-------------------------------------------
|
|
|
|
// member
|
|
|
|
private:
|
|
|
|
Window m_aTitleWin;
|
|
|
|
FixedText m_aTitleFT;
|
2005-02-02 12:58:07 +00:00
|
|
|
FixedLine m_aTitleFL;
|
2004-11-26 13:21:56 +00:00
|
|
|
FixedText m_aDescrFT;
|
|
|
|
FixedText m_aProgressFT;
|
|
|
|
Window m_aProgrParent;
|
|
|
|
FixedText m_aFileListFT;
|
2011-07-14 14:18:13 +01:00
|
|
|
SvxSimpleTableContainer m_aFileListLBContainer;
|
2004-11-26 13:21:56 +00:00
|
|
|
RecovDocList m_aFileListLB;
|
|
|
|
FixedLine m_aBottomFL;
|
|
|
|
PushButton m_aNextBtn;
|
|
|
|
CancelButton m_aCancelBtn;
|
2005-02-02 12:58:07 +00:00
|
|
|
String m_aNextStr;
|
2005-11-03 10:54:52 +00:00
|
|
|
String m_aTitleRecoveryInProgress;
|
2006-12-20 16:52:48 +00:00
|
|
|
String m_aTitleRecoveryReport;
|
2005-11-11 11:52:19 +00:00
|
|
|
String m_aRecoveryOnlyFinish;
|
2006-12-20 16:52:48 +00:00
|
|
|
String m_aRecoveryOnlyFinishDescr;
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
PushButton* m_pDefButton;
|
|
|
|
RecoveryCore* m_pCore;
|
|
|
|
css::uno::Reference< css::task::XStatusIndicator > m_xProgress;
|
2008-07-22 06:41:15 +00:00
|
|
|
enum EInternalRecoveryState
|
2005-02-02 12:58:07 +00:00
|
|
|
{
|
|
|
|
E_RECOVERY_PREPARED, // dialog started ... recovery prepared
|
|
|
|
E_RECOVERY_IN_PROGRESS, // recovery core still in progress
|
|
|
|
E_RECOVERY_CORE_DONE, // recovery core finished it's task
|
|
|
|
E_RECOVERY_DONE, // user clicked "next" button
|
|
|
|
E_RECOVERY_CANCELED, // user clicked "cancel" button
|
|
|
|
E_RECOVERY_CANCELED_BEFORE, // user clicked "cancel" button before recovery was started
|
|
|
|
E_RECOVERY_CANCELED_AFTERWARDS, // user clicked "cancel" button after reovery was finished
|
|
|
|
E_RECOVERY_HANDLED // the recovery wizard page was shown already ... and will be shown now again ...
|
|
|
|
};
|
|
|
|
sal_Int32 m_eRecoveryState;
|
|
|
|
sal_Bool m_bWaitForUser;
|
|
|
|
sal_Bool m_bWaitForCore;
|
|
|
|
sal_Bool m_bUserDecideNext;
|
|
|
|
sal_Bool m_bWasRecoveryStarted;
|
2005-11-11 11:52:19 +00:00
|
|
|
sal_Bool m_bRecoveryOnly;
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// member
|
|
|
|
public:
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
RecoveryDialog(Window* pParent,
|
|
|
|
RecoveryCore* pCore );
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
virtual ~RecoveryDialog();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
// IRecoveryUpdateListener
|
|
|
|
virtual void updateItems();
|
|
|
|
virtual void stepNext(TURLInfo* pItem);
|
|
|
|
virtual void start();
|
|
|
|
virtual void end();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
virtual short execute();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO*/
|
|
|
|
virtual void setDefButton();
|
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// helper
|
|
|
|
private:
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
DECL_LINK(NextButtonHdl, void*);
|
|
|
|
DECL_LINK(CancelButtonHdl, void*);
|
|
|
|
|
2008-07-22 06:41:15 +00:00
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
String impl_getStatusString( const TURLInfo& rInfo ) const;
|
2004-11-26 13:21:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//===============================================
|
|
|
|
class BrokenRecoveryDialog : public ModalDialog
|
|
|
|
{
|
|
|
|
//-------------------------------------------
|
|
|
|
// member
|
|
|
|
private:
|
|
|
|
FixedText m_aDescrFT;
|
|
|
|
FixedText m_aFileListFT;
|
|
|
|
ListBox m_aFileListLB;
|
2005-02-02 12:58:07 +00:00
|
|
|
FixedText m_aSaveDirFT;
|
|
|
|
Edit m_aSaveDirED;
|
|
|
|
PushButton m_aSaveDirBtn;
|
2004-11-26 13:21:56 +00:00
|
|
|
FixedLine m_aBottomFL;
|
|
|
|
OKButton m_aOkBtn;
|
|
|
|
CancelButton m_aCancelBtn;
|
|
|
|
|
|
|
|
::rtl::OUString m_sSavePath;
|
|
|
|
RecoveryCore* m_pCore;
|
2005-02-02 12:58:07 +00:00
|
|
|
sal_Bool m_bBeforeRecovery;
|
|
|
|
sal_Bool m_bExecutionNeeded;
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// interface
|
|
|
|
public:
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
2005-02-02 12:58:07 +00:00
|
|
|
BrokenRecoveryDialog(Window* pParent ,
|
|
|
|
RecoveryCore* pCore ,
|
|
|
|
sal_Bool bBeforeRecovery);
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
virtual ~BrokenRecoveryDialog();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
2005-02-02 12:58:07 +00:00
|
|
|
virtual sal_Bool isExecutionNeeded();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
virtual ::rtl::OUString getSaveDirURL();
|
2004-11-26 13:21:56 +00:00
|
|
|
|
|
|
|
//-------------------------------------------
|
|
|
|
// helper
|
|
|
|
private:
|
|
|
|
|
2005-02-02 12:58:07 +00:00
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
void impl_refresh();
|
|
|
|
|
2004-11-26 13:21:56 +00:00
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
DECL_LINK(SaveButtonHdl, void*);
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
DECL_LINK(OkButtonHdl, void*);
|
2005-02-02 12:58:07 +00:00
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
DECL_LINK(CancelButtonHdl, void*);
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO */
|
|
|
|
void impl_askForSavePath();
|
2004-11-26 13:21:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ErrorRepWelcomeDialog : public IExtendedTabPage
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
Window maTitleWin;
|
|
|
|
FixedText maTitleFT;
|
2005-02-02 12:58:07 +00:00
|
|
|
FixedLine maTitleFL;
|
2004-11-26 13:21:56 +00:00
|
|
|
FixedText maDescrFT;
|
|
|
|
|
|
|
|
FixedLine maBottomFL;
|
|
|
|
PushButton maPrevBtn;
|
|
|
|
OKButton maNextBtn;
|
|
|
|
CancelButton maCancelBtn;
|
|
|
|
|
|
|
|
DECL_LINK( PrevBtnHdl, void* );
|
|
|
|
DECL_LINK( NextBtnHdl, void* );
|
|
|
|
DECL_LINK( CancelBtnHdl, void* );
|
|
|
|
public:
|
|
|
|
ErrorRepWelcomeDialog( Window* _pParent, sal_Bool _bAllowBack = sal_True );
|
|
|
|
virtual ~ErrorRepWelcomeDialog();
|
|
|
|
/** @short TODO*/
|
|
|
|
virtual short execute();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO*/
|
|
|
|
virtual void setDefButton();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ErrorRepParams
|
|
|
|
{
|
|
|
|
ErrorRepParams()
|
|
|
|
#ifdef WNT
|
|
|
|
: miHTTPConnectionType( 0 )
|
|
|
|
#else
|
|
|
|
: miHTTPConnectionType( 1 )
|
|
|
|
#endif
|
|
|
|
, mbAllowContact( false )
|
|
|
|
{}
|
|
|
|
|
|
|
|
String maHTTPProxyServer;
|
|
|
|
String maHTTPProxyPort;
|
|
|
|
int miHTTPConnectionType;
|
|
|
|
bool mbAllowContact;
|
|
|
|
String maReturnAddress;
|
|
|
|
String maSubject;
|
|
|
|
String maBody;
|
|
|
|
};
|
|
|
|
|
2005-02-02 12:58:07 +00:00
|
|
|
class ErrorDescriptionEdit : public MultiLineEdit
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
DECL_LINK( ModifyHdl, void* );
|
|
|
|
|
|
|
|
public:
|
|
|
|
ErrorDescriptionEdit( Window* pParent, const ResId& rResId );
|
|
|
|
virtual ~ErrorDescriptionEdit();
|
|
|
|
};
|
|
|
|
|
2004-11-26 13:21:56 +00:00
|
|
|
class ErrorRepSendDialog : public IExtendedTabPage
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
Window maTitleWin;
|
|
|
|
FixedText maTitleFT;
|
2005-02-02 12:58:07 +00:00
|
|
|
FixedLine maTitleFL;
|
2004-11-26 13:21:56 +00:00
|
|
|
FixedText maDescrFT;
|
|
|
|
|
|
|
|
FixedText maDocTypeFT;
|
|
|
|
Edit maDocTypeED;
|
|
|
|
FixedText maUsingFT;
|
2005-02-02 12:58:07 +00:00
|
|
|
ErrorDescriptionEdit maUsingML;
|
2004-11-26 13:21:56 +00:00
|
|
|
PushButton maShowRepBtn;
|
|
|
|
PushButton maOptBtn;
|
|
|
|
CheckBox maContactCB;
|
|
|
|
FixedText maEMailAddrFT;
|
|
|
|
Edit maEMailAddrED;
|
|
|
|
|
|
|
|
FixedLine maBottomFL;
|
|
|
|
PushButton maPrevBtn;
|
|
|
|
OKButton maNextBtn;
|
|
|
|
CancelButton maCancelBtn;
|
|
|
|
|
|
|
|
ErrorRepParams maParams;
|
|
|
|
|
|
|
|
DECL_LINK( ShowRepBtnHdl, void* );
|
|
|
|
DECL_LINK( OptBtnHdl, void* );
|
|
|
|
DECL_LINK( ContactCBHdl, void* );
|
|
|
|
DECL_LINK( PrevBtnHdl, void* );
|
|
|
|
DECL_LINK( SendBtnHdl, void* );
|
|
|
|
DECL_LINK( CancelBtnHdl, void* );
|
|
|
|
|
|
|
|
void initControls();
|
|
|
|
|
|
|
|
public:
|
|
|
|
ErrorRepSendDialog( Window* _pParent );
|
|
|
|
virtual ~ErrorRepSendDialog();
|
|
|
|
|
|
|
|
String GetDocType( void ) const;
|
|
|
|
String GetUsing( void ) const;
|
|
|
|
bool IsContactAllowed( void ) const;
|
|
|
|
String GetEMailAddress( void ) const;
|
|
|
|
|
|
|
|
bool ReadParams();
|
|
|
|
bool SaveParams();
|
|
|
|
bool SendReport();
|
|
|
|
|
|
|
|
/** @short TODO*/
|
|
|
|
virtual short execute();
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
/** @short TODO*/
|
|
|
|
virtual void setDefButton();
|
|
|
|
};
|
|
|
|
|
|
|
|
class ErrorRepOptionsDialog : public ModalDialog
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
FixedLine maProxyFL;
|
|
|
|
RadioButton maSystemBtn;
|
|
|
|
RadioButton maDirectBtn;
|
|
|
|
RadioButton maManualBtn;
|
|
|
|
FixedText maProxyServerFT;
|
|
|
|
Edit maProxyServerEd;
|
|
|
|
FixedText maProxyPortFT;
|
2006-06-19 15:04:38 +00:00
|
|
|
Edit maProxyPortEd;
|
2004-11-26 13:21:56 +00:00
|
|
|
FixedText maDescriptionFT;
|
|
|
|
FixedLine maButtonsFL;
|
|
|
|
OKButton maOKBtn;
|
|
|
|
CancelButton maCancelBtn;
|
|
|
|
|
|
|
|
ErrorRepParams& mrParams;
|
|
|
|
|
|
|
|
DECL_LINK( CancelBtnHdl, void* );
|
|
|
|
DECL_LINK( OKBtnHdl, void * );
|
|
|
|
DECL_LINK( ManualBtnHdl, void * );
|
|
|
|
|
|
|
|
public:
|
|
|
|
ErrorRepOptionsDialog( Window* _pParent, ErrorRepParams& rParams );
|
|
|
|
virtual ~ErrorRepOptionsDialog();
|
|
|
|
};
|
|
|
|
|
2005-02-02 12:58:07 +00:00
|
|
|
class ErrorRepEdit : public ExtMultiLineEdit
|
2004-11-26 13:21:56 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ErrorRepEdit( Window* pParent, const ResId& rResId );
|
|
|
|
virtual ~ErrorRepEdit();
|
|
|
|
};
|
|
|
|
|
|
|
|
class ErrorRepPreviewDialog : public ModalDialog
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
ErrorRepEdit maContentML;
|
|
|
|
OKButton maOKBtn;
|
|
|
|
|
2004-12-09 15:44:44 +00:00
|
|
|
long mnMinHeight;
|
|
|
|
|
2004-11-26 13:21:56 +00:00
|
|
|
public:
|
|
|
|
ErrorRepPreviewDialog( Window* _pParent );
|
|
|
|
virtual ~ErrorRepPreviewDialog();
|
2004-12-09 15:44:44 +00:00
|
|
|
|
|
|
|
virtual void Resize();
|
2004-11-26 13:21:56 +00:00
|
|
|
};
|
|
|
|
} // namespace DocRecovery
|
|
|
|
} // namespace svx
|
|
|
|
|
|
|
|
#endif
|
2010-10-27 13:11:31 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|