1. /*
  2. * @(#)Constants.java 1.6 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing.text.rtf;
  11. /**
  12. Class to hold dictionary keys used by the RTF reader/writer.
  13. These should be moved into StyleConstants.
  14. */
  15. class Constants
  16. {
  17. /** An array of TabStops */
  18. static final String Tabs = "tabs";
  19. /** The name of the character set the original RTF file was in */
  20. static final String RTFCharacterSet = "rtfCharacterSet";
  21. /** Indicates the domain of a Style */
  22. static final String StyleType = "style:type";
  23. /** Value for StyleType indicating a section style */
  24. static final String STSection = "section";
  25. /** Value for StyleType indicating a paragraph style */
  26. static final String STParagraph = "paragraph";
  27. /** Value for StyleType indicating a character style */
  28. static final String STCharacter = "character";
  29. /** The style of the text following this style */
  30. static final String StyleNext = "style:nextStyle";
  31. /** Whether the style is additive */
  32. static final String StyleAdditive = "style:additive";
  33. /** Whether the style is hidden from the user */
  34. static final String StyleHidden = "style:hidden";
  35. /* Miscellaneous character attributes */
  36. static final String Caps = "caps";
  37. static final String Deleted = "deleted";
  38. static final String Outline = "outl";
  39. static final String SmallCaps = "scaps";
  40. static final String Shadow = "shad";
  41. static final String Strikethrough = "strike";
  42. static final String Hidden = "v";
  43. /* Miscellaneous document attributes */
  44. static final String PaperWidth = "paperw";
  45. static final String PaperHeight = "paperh";
  46. static final String MarginLeft = "margl";
  47. static final String MarginRight = "margr";
  48. static final String MarginTop = "margt";
  49. static final String MarginBottom = "margb";
  50. static final String GutterWidth = "gutter";
  51. /* This is both a document and a paragraph attribute */
  52. static final String WidowControl = "widowctrl";
  53. }