зеркало из https://github.com/mozilla/pjs.git
Fix for full-page plugin printing bug 53349 r=av sr=attinasi
This commit is contained in:
Родитель
113990780d
Коммит
dcc39787f3
|
@ -788,7 +788,19 @@ PluginViewerImpl::GetSaveable(PRBool *aSaveable)
|
|||
NS_IMETHODIMP
|
||||
PluginViewerImpl::Print(PRBool aSilent,FILE *aFile, nsIPrintListener *aPrintListener)
|
||||
{
|
||||
return NS_OK; // XXX: hey, plug in guys! implement me!
|
||||
nsPluginPrint npprint;
|
||||
npprint.mode = nsPluginMode_Full;
|
||||
npprint.print.fullPrint.pluginPrinted = PR_FALSE;
|
||||
npprint.print.fullPrint.printOne = PR_FALSE;
|
||||
npprint.print.fullPrint.platformPrint = nsnull;
|
||||
|
||||
NS_ENSURE_TRUE(mOwner,NS_ERROR_FAILURE);
|
||||
nsCOMPtr<nsIPluginInstance> pi;
|
||||
mOwner->GetInstance(*getter_AddRefs(pi));
|
||||
NS_ENSURE_TRUE(pi,NS_ERROR_FAILURE);
|
||||
|
||||
return pi->Print(&npprint);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче