completing OnInit rework for getURL and printFiles callback
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -229,6 +229,8 @@ short wxApp::MacHandleAEPDoc(const WXEVENTREF event , WXEVENTREF WXUNUSED(reply)
|
||||
|
||||
wxString fName ;
|
||||
FSRef theRef ;
|
||||
|
||||
wxArrayString fileNames;
|
||||
|
||||
for (i = 1; i <= itemsInList; i++)
|
||||
{
|
||||
@@ -240,9 +242,10 @@ short wxApp::MacHandleAEPDoc(const WXEVENTREF event , WXEVENTREF WXUNUSED(reply)
|
||||
return err;
|
||||
|
||||
fName = wxMacFSRefToPath( &theRef ) ;
|
||||
|
||||
MacPrintFile(fName);
|
||||
files += fName;
|
||||
}
|
||||
|
||||
MacPrintFiles(fileNames);
|
||||
|
||||
return noErr;
|
||||
}
|
||||
@@ -307,6 +310,16 @@ void wxApp::MacOpenURL(const wxString & WXUNUSED(url) )
|
||||
{
|
||||
}
|
||||
|
||||
void wxApp::MacPrintFiles(const wxArrayString & fileNames )
|
||||
{
|
||||
size_t i;
|
||||
const size_t fileCount = fileNames.GetCount();
|
||||
for (i = 0; i < fileCount; i++)
|
||||
{
|
||||
MacPrintFile(fileNames[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void wxApp::MacPrintFile(const wxString & fileName )
|
||||
{
|
||||
#if wxUSE_DOC_VIEW_ARCHITECTURE
|
||||
|
||||
Reference in New Issue
Block a user