diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-18 08:50:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-18 10:57:21 +0100 |
commit | a107bdfdfc1baf73f14055262d64bf616fc0a889 (patch) | |
tree | 2e4cbadd538f5e8d495fb8953a5a7939c8ab2bb5 /sfx2/source/appl | |
parent | 3b6091ca42cd2d9f230e7d81648c34f3d7085107 (diff) |
ErrorBox->MessageDialog
Change-Id: I57d4e43460e40d3aff54873280eddbb18c12446b
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r-- | sfx2/source/appl/lnkbase2.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/appl/sfxhelp.cxx | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx index 6da226519c48..81f960b6040d 100644 --- a/sfx2/source/appl/lnkbase2.cxx +++ b/sfx2/source/appl/lnkbase2.cxx @@ -23,7 +23,7 @@ #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/ui/dialogs/TemplateDescription.hpp> -#include <vcl/msgbox.hxx> +#include <vcl/layout.hxx> #include <sfx2/linkmgr.hxx> #include <vcl/svapp.hxx> #include "app.hrc" @@ -505,7 +505,7 @@ bool SvBaseLink::ExecuteEdit( const OUString& _rNewName ) else return false; - ErrorBox( pImpl->m_pParentWin, WB_OK, sError ).Execute(); + MessageDialog(pImpl->m_pParentWin, sError).Execute(); } } else if( !pImpl->m_bIsConnect ) diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index 7a1f1756a0a6..94ed20d45e3b 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -53,7 +53,7 @@ #include <osl/file.hxx> #include <unotools/bootstrap.hxx> #include <rtl/uri.hxx> -#include <vcl/msgbox.hxx> +#include <vcl/layout.hxx> #include <svtools/ehdl.hxx> #include <svtools/sfxecode.hxx> @@ -76,7 +76,7 @@ using namespace ::com::sun::star::util; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::system; -class NoHelpErrorBox : public ErrorBox +class NoHelpErrorBox : public MessageDialog { public: NoHelpErrorBox( Window* _pParent ); @@ -84,9 +84,8 @@ public: virtual void RequestHelp( const HelpEvent& rHEvt ) SAL_OVERRIDE; }; -NoHelpErrorBox::NoHelpErrorBox( Window* _pParent ) : - - ErrorBox( _pParent, WB_OK, SfxResId( RID_STR_HLPFILENOTEXIST ).toString() ) +NoHelpErrorBox::NoHelpErrorBox( Window* _pParent ) + : MessageDialog(_pParent, SfxResId(RID_STR_HLPFILENOTEXIST)) { // Error message: "No help available" } |