]> git.saurik.com Git - wxWidgets.git/commitdiff
Moved "enablePrint" setting around.
authorRobert Roebling <robert@roebling.de>
Wed, 27 Oct 2004 11:16:22 +0000 (11:16 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 27 Oct 2004 11:16:22 +0000 (11:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cmndata.cpp
src/generic/prntdlgg.cpp

index 4b4941d34537fefaa3939274a15c338ddbabf1c8..42fca798346952e8726064407aff1a2596ed2523 100644 (file)
@@ -267,7 +267,10 @@ wxPrintDialogData::wxPrintDialogData()
     m_printSelection = false;
     m_printEnableSelection = false;
     m_printEnablePageNumbers = true;
-    m_printEnablePrintToFile = true;
+    
+    wxPrintFactory* factory = wxPrintFactory::GetFactory();
+    m_printEnablePrintToFile = ! factory->HasOwnPrintToFile();
+    
     m_printEnableHelp = false;
     m_printSetupDialog = false;
 }
index eecef2f52664304fd8343fced3fb8a170571760c..c6bda3b8d3ddcddfa614f05bd942f73320cdfb20 100644 (file)
@@ -177,9 +177,6 @@ void wxGenericPrintDialog::Init(wxWindow * WXUNUSED(parent))
     m_printToFileCheckBox = new wxCheckBox( this, wxPRINTID_PRINTTOFILE, _("Print to File") );
     flex->Add( m_printToFileCheckBox, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
     
-    if (factory->HasOwnPrintToFile())
-        m_printToFileCheckBox->Enable( false );
-
     m_setupButton = new wxButton(this, wxPRINTID_SETUP, _("Setup...") );
     flex->Add( m_setupButton, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );