mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 05:01:30 +00:00
add the permission to fill forms
svn path=/trunk/playground/graphics/okular/; revision=643462
This commit is contained in:
parent
1117200950
commit
f18845576b
|
@ -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 )
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue