diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-24 14:33:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-24 15:11:44 +0100 |
commit | db4154cc19c803707f34bdd5ce4e8a43eac528a6 (patch) | |
tree | 6a55c6c5251c175d42772f54295aa97d76c4b70f /vcl/source/gdi/print3.cxx | |
parent | 1c068a7a772ab903af627236ee93b0a1804be844 (diff) |
add gtk_message_dialog_new-alike ctor for MessageDialog
Change-Id: Ie422cd2c903cbd18353b1929c074574d452559ce
Diffstat (limited to 'vcl/source/gdi/print3.cxx')
-rw-r--r-- | vcl/source/gdi/print3.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx index 366caa808143..f08bb250d8b2 100644 --- a/vcl/source/gdi/print3.cxx +++ b/vcl/source/gdi/print3.cxx @@ -17,10 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include "vcl/layout.hxx" #include "vcl/print.hxx" #include "vcl/svapp.hxx" #include "vcl/metaact.hxx" -#include "vcl/msgbox.hxx" #include "vcl/configsettings.hxx" #include "vcl/unohelp.hxx" @@ -312,7 +312,8 @@ void Printer::ImplPrintJob( const boost::shared_ptr<PrinterController>& i_pContr // && ! pController->isDirectPrint() ) { - ErrorBox aBox( NULL, VclResId( SV_PRINT_NOPRINTERWARNING ) ); + MessageDialog aBox(NULL, "ErrorNoPrinterDialog", + "vcl/ui/errornoprinterdialog.ui"); aBox.Execute(); } pController->setValue( OUString( "IsDirect" ), @@ -460,7 +461,8 @@ void Printer::ImplPrintJob( const boost::shared_ptr<PrinterController>& i_pContr { if( pController->getFilteredPageCount() == 0 ) { - ErrorBox aBox( NULL, VclResId( SV_PRINT_NOCONTENT ) ); + MessageDialog aBox(NULL, "ErrorNoContentDialog", + "vcl/ui/errornocontentdialog.ui"); aBox.Execute(); return; } |