add the permission to fill forms

svn path=/trunk/playground/graphics/okular/; revision=643462
This commit is contained in:
Pino Toscano 2007-03-17 14:14:55 +00:00
parent 1117200950
commit f18845576b
2 changed files with 5 additions and 1 deletions

View file

@ -22,7 +22,8 @@ enum Permission
AllowModify = 1, ///< Allows to modify the document
AllowCopy = 2, ///< Allows to copy the document
AllowPrint = 4, ///< Allows to print the document
AllowNotes = 8 ///< Allows to add annotations to the document
AllowNotes = 8, ///< Allows to add annotations to the document
AllowFillForms = 16 ///< Allows to fill the forms in the document
};
Q_DECLARE_FLAGS( Permissions, Permission )

View file

@ -608,6 +608,9 @@ bool PDFGenerator::isAllowed( Okular::Permission permission ) const
case Okular::AllowNotes:
b = pdfdoc->okToAddNotes();
break;
case Okular::AllowFillForms:
b = pdfdoc->okToFillForm();
break;
default: ;
}
return b;