home *** CD-ROM | disk | FTP | other *** search
- gEditItemWidth = max_char_width() * 8;
-
- gStdSecSetBitNum = max(
- zstring_width(zstring: '$$$avSecurityStandardHandler40'),
- zstring_width(zstring: '$$$avSecurityStandardHandler128'));
-
- gStdSecSetChangeDoc = max(
- zstring_width(zstring: '$$$avSecurityStdChgNone'),
- zstring_width(zstring: '$$$avSecurityStdChgDocAsmbly'),
- zstring_width(zstring: '$$$avSecurityStdChgFormFill'),
- zstring_width(zstring: '$$$avSecurityStdChgAnnotFill'),
- zstring_width(zstring: '$$$avSecurityStdChgAll'));
-
- gStdSecSetPrintDoc = max(
- zstring_width(zstring: '$$$avSecurityStdPrntNone'),
- zstring_width(zstring: '$$$avSecurityStdPrntBasic'),
- zstring_width(zstring: '$$$avSecurityStdPrntPS'));
-
- gLabelUserPassword= zstring_width(zstring: '$$$/Dialogs/StdSecurity/SpecifyPassword/UserPassword');
- gLabelOwnerPassword= zstring_width(zstring: '$$$/Dialogs/StdSecurity/SpecifyPassword/OwnerPassword');
- gLabelChangeDocLabel= zstring_width(zstring: '$$$/Dialogs/StdSecurity/128BitMode/ChangeDocLabel');
- gLabelPrintingLable= zstring_width(zstring: '$$$/Dialogs/StdSecurity/128BitMode/PrintingLable');
- gLabelItemWidth = max(
- gLabelChangeDocLabel,
- gLabelPrintingLable)+ max_char_width();
-
- gLabelPasswordItemWidth = max(
- gLabelUserPassword,
- gLabelOwnerPassword)+ max_char_width() * 4;
-
- gVerticalGapHeight = gStaticTextHeight / 4;
- dialog(name: '$$$/Dialogs/StdSecurity', target_id: 'OpPs')
- {
- group()
- {
- group(align_children: align_fill)
- {
- cluster(name: '$$$/Dialogs/StdSecurity/SpecifyPassword/ClusterLabel', align_children: align_left)
- {
- group()
- {
- check_box(item_id: 'UsrX', name: '$$$/Dialogs/StdSecurity/SpecifyPassword/RequireOpenPassword');
- view(align_children: align_row)
- {
- gap(width: gLabelPasswordItemWidth - gLabelUserPassword);
- static_text(name: '$$$/Dialogs/StdSecurity/SpecifyPassword/UserPassword');
- edit_text(item_id: 'UsPs', width: gEditItemWidth, password: true);
- }
- check_box(item_id: 'OwnX', name: '$$$/Dialogs/StdSecurity/SpecifyPassword/RequireOwnerPassword');
- view(align_children: align_row)
- {
- gap(width: gLabelPasswordItemWidth - gLabelOwnerPassword);
- static_text(name: '$$$/Dialogs/StdSecurity/SpecifyPassword/OwnerPassword');
- edit_text(item_id: 'OwPs', width: gEditItemWidth, password: true);
- }
- }
- }
- cluster(name: '$$$/Dialogs/StdSecurity/Permission/ClusterLabel', align_children: align_row)
- {
- group()
- {
- view(align_children: align_row)
- {
- static_text(item_id: 'cbit', name: '$$$/Dialogs/StdSecurity/CryptBit/CryptBitLabel',
- next_tab: 'Cbit');
- popup(item_id: 'Cbit', width: gStdSecSetBitNum, next_tab: 'Copy');
- }
-
- view(align_children: align_offscreen)
- {
- group(item_id: 'grp1', alignment: align_row)
- {
- check_box(item_id: 'Prin', name: '$$$/Dialogs/StdSecurity/40BitMode/Printing');
- check_box(item_id: 'Edit', name: '$$$/Dialogs/StdSecurity/40BitMode/Changing');
- check_box(item_id: 'Copy', name: '$$$/Dialogs/StdSecurity/40BitMode/Selecting');
- check_box(item_id: 'Note', name: '$$$/Dialogs/StdSecurity/40BitMode/Annot');
- }
- group(item_id: 'grp2', alignment: align_row)
- {
- gap( height: gVerticalGapHeight );
- check_box(item_id: 'Acce', name: '$$$/Dialogs/StdSecurity/128BitMode/Access');
- check_box(item_id: 'Exct', name: '$$$/Dialogs/StdSecurity/128BitMode/Extract');
- gap( height: gVerticalGapHeight );
-
- view(align_children: align_row)
- {
- gap( width: gLabelItemWidth - gLabelChangeDocLabel );
- static_text(item_id: 'chgd', name: '$$$/Dialogs/StdSecurity/128BitMode/ChangeDocLabel',
- next_tab: 'Chgd');
- popup(item_id: 'Chgd', width: gStdSecSetChangeDoc, next_tab: 'prtD');
- }
- view(align_children: align_row)
- {
- gap( width: gLabelItemWidth - gLabelPrintingLable );
- static_text(item_id: 'prtd', name: '$$$/Dialogs/StdSecurity/128BitMode/PrintingLable',
- next_tab: 'Prtd');
- popup(item_id: 'Prtd', width: gStdSecSetPrintDoc, next_tab: 'prtD');
- }
- }
- }
- }
- }
- }
- ok_cancel();
- }
- }
-