home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2003 August / VPR0308.ISO / ADOBEREADER60 / Installer / Data1.cab / RdLang32.JPN / EXVW / 10117 < prev    next >
Text File  |  2003-05-22  |  5KB  |  120 lines

  1. gLabelMethod = zstring_width(zstring: '$$$/Dialogs/Security/Method');
  2. gLabelCompatibility = zstring_width(zstring: '$$$/Dialogs/Security/Compatibility');
  3.  
  4. gLabelOptions = max(
  5.     gLabelMethod,
  6.     gLabelCompatibility
  7. );
  8.  
  9. gButtonWidth = max(
  10.     zstring_width(zstring: '$$$/Dialogs/Security/DisplaySettings'),
  11.     zstring_width(zstring: '$$$/Dialogs/Security/ChangeSettings')
  12. );
  13.  
  14. gExplanationWidth = zstring_width(zstring: '$$$avSecurityExplanation');
  15. gMaxTextWidth = gDocPropertiesPanelWidth - 20;
  16. gMaxRowsNeeded = (gExplanationWidth / gMaxTextWidth) + 1;
  17.  
  18. gLabelPrinting = zstring_width(zstring: '$$$/Dialogs/Security/Permissions/Printing');
  19. gLabelChanging = zstring_width(zstring: '$$$/Dialogs/Security/Permissions/Changeable');
  20. gLabelAssembly = zstring_width(zstring: '$$$/Dialogs/Security/Permissions/Assembly');
  21. gLabelExtraction = zstring_width(zstring: '$$$/Dialogs/Security/Permissions/Extract');
  22. gLabelAccessibility = zstring_width(zstring: '$$$/Dialogs/Security/Permissions/Accessibility');
  23. gLabelCommenting = zstring_width(zstring: '$$$/Dialogs/Security/Permissions/EditNotes');
  24. gLabelFormFill = zstring_width(zstring: '$$$/Dialogs/Security/Permissions/FormFill');
  25. gLabelSign = zstring_width(zstring: '$$$/Dialogs/Security/Permissions/Sign');
  26. gLabelSpawnTemplates = zstring_width(zstring: '$$$/Dialogs/Security/Permissions/Spawn');
  27.  
  28. gLabelPermissions = max(
  29.     gLabelPrinting,
  30.     gLabelChanging,
  31.     gLabelAssembly,
  32.     gLabelExtraction,
  33.     gLabelAccessibility,
  34.     gLabelCommenting,
  35.     gLabelFormFill,
  36.     gLabelSign,
  37.     gLabelSpawnTemplates
  38. );
  39.  
  40. dialog(name: '$$$/Dialogs/Security/Permissions', margin_height: 0, margin_width: 0)
  41. {
  42.     view(align_children: align_fill, dwidth: gDocPropertiesPanelWidth, dheight: gDocPropertiesPanelHeight)
  43.     {
  44.         cluster(name: '$$$/Dialogs/Security', align_children: align_left, alignment: align_fill)
  45.         {
  46.             static_text(item_id: 'expl', alignment: align_fill, height: gStaticTextHeight * (gMaxRowsNeeded + 1) );
  47.             view(align_children: align_row, alignment: align_fill)
  48.             {
  49.                 gap(width: gLabelOptions - gLabelMethod);
  50.                 static_text(name: '$$$/Dialogs/Security/Method');
  51.                 popup(item_id: 'hdlr', alignment: align_fill);
  52.                 button(item_id: 'sets', name: '$$$/Dialogs/Security/ChangeSettings', width: gButtonWidth, alignment: align_right);
  53.             }
  54.             view(align_children: align_row, alignment: align_fill)
  55.             {
  56.                 gap(width: gLabelOptions - gLabelCompatibility);
  57.                 static_text(name: '$$$/Dialogs/Security/Compatibility');
  58.                 static_text(item_id: 'comp', alignment: align_fill);
  59.                 button(item_id: 'disp', name: '$$$/Dialogs/Security/DisplaySettings', width: gButtonWidth, alignment: align_right);
  60.             }
  61.         }
  62.         cluster(name: '$$$/Dialogs/Security/RestrictionsSummary', align_children: align_left, alignment: align_fill)
  63.         {
  64.             view(align_children: align_row, alignment: align_fill)
  65.             {
  66.                 gap(width: gLabelPermissions - gLabelPrinting);
  67.                 static_text(name: '$$$/Dialogs/Security/Permissions/Printing');
  68.                 static_text(item_id: 'prnt', alignment: align_fill);
  69.             }
  70.             view(align_children: align_row, alignment: align_fill)
  71.             {
  72.                 gap(width: gLabelPermissions - gLabelChanging);
  73.                 static_text(name: '$$$/Dialogs/Security/Permissions/Changeable');
  74.                 static_text(item_id: 'chng', alignment: align_fill);
  75.             }
  76.             view(align_children: align_row, alignment: align_fill)
  77.             {
  78.                 gap(width: gLabelPermissions - gLabelAssembly);
  79.                 static_text(name: '$$$/Dialogs/Security/Permissions/Assembly');
  80.                 static_text(item_id: 'assm', alignment: align_fill);
  81.             }
  82.             view(align_children: align_row, alignment: align_fill)
  83.             {
  84.                 gap(width: gLabelPermissions - gLabelExtraction);
  85.                 static_text(name: '$$$/Dialogs/Security/Permissions/Extract');
  86.                 static_text(item_id: 'xtrc', alignment: align_fill);
  87.             }
  88.             view(align_children: align_row, alignment: align_fill)
  89.             {
  90.                 gap(width: gLabelPermissions - gLabelAccessibility);
  91.                 static_text(name: '$$$/Dialogs/Security/Permissions/Accessibility');
  92.                 static_text(item_id: 'accs', alignment: align_fill);
  93.             }
  94.             view(align_children: align_row, alignment: align_fill)
  95.             {
  96.                 gap(width: gLabelPermissions - gLabelCommenting);
  97.                 static_text(name: '$$$/Dialogs/Security/Permissions/EditNotes');
  98.                 static_text(item_id: 'cmmt', alignment: align_fill);
  99.             }
  100.             view(align_children: align_row, alignment: align_fill)
  101.             {
  102.                 gap(width: gLabelPermissions - gLabelFormFill);
  103.                 static_text(name: '$$$/Dialogs/Security/Permissions/FormFill');
  104.                 static_text(item_id: 'fill', alignment: align_fill);
  105.             }
  106.             view(align_children: align_row, alignment: align_fill)
  107.             {
  108.                 gap(width: gLabelPermissions - gLabelSign);
  109.                 static_text(name: '$$$/Dialogs/Security/Permissions/Sign');
  110.                 static_text(item_id: 'sign', alignment: align_fill);
  111.             }
  112.             view(align_children: align_row, alignment: align_fill)
  113.             {
  114.                 gap(width: gLabelPermissions - gLabelSpawnTemplates);
  115.                 static_text(name: '$$$/Dialogs/Security/Permissions/Spawn');
  116.                 static_text(item_id: 'spwn', alignment: align_fill);
  117.             }
  118.         }
  119.     }
  120. }